/* 对齐 Nuxt front：Home / HomeBannerCategoryNav / HomeBannerQuickLinks / HomeInventoryRecommend / Footer */

/* ===== banner-box ===== */
.banner-box {
  --banner-primary: #00a876;
  --banner-secondary: #005bac;
  --banner-aside-w: clamp(220px, 24vw, 340px);
  /* 设计稿 1900×600；高度随主栏宽度等比缩放，并夹在可读区间内 */
  --banner-ratio: 1900 / 600;
  --banner-h-min: 240px;
  --banner-h-max: 520px;
  padding: 16px 0 12px;
  background: #fff;
}
.banner-box__inner {
  display: grid;
  grid-template-columns: var(--banner-aside-w) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.banner-box__aside {
  /* 不参与行高计算，高度跟右侧 banner 对齐 */
  height: 0;
  min-height: 100%;
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow: visible;
  container-type: size;
  container-name: banner-aside;
}
.banner-box__aside .category-mega--sidebar {
  --mega-nav-w: 100%;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.banner-box__aside .category-mega__nav {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.banner-box__aside .category-mega__list {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(2px, 0.4vw, 6px) 0;
  overflow: hidden;
}
.banner-box__aside .category-mega__list li {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
.banner-box__aside .category-mega__tab {
  min-height: 0;
  height: 100%;
  align-items: flex-start;
  gap: clamp(6px, 0.9vw, 12px);
  padding: 10px 8px 3px 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.banner-box__aside .category-mega__tab-body {
  overflow: hidden;
}
.banner-box__aside .category-mega__tab-text {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.3;
  font-weight: 700;
}
.banner-box__aside .category-mega__tab-cates {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-height: 2.7em;
  overflow: hidden;
}
.banner-box__aside .category-mega__tab-cates-link {
  font-size: clamp(9px, 0.6vw + 2px, 12px);
  line-height: 1.35;
  color: #7a828c;
  text-decoration: none;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-box__aside .category-mega__tab-cates-sep {
  margin: 0 5px;
  font-size: clamp(9px, 0.6vw + 2px, 12px);
  line-height: 1.35;
  color: #c0c4cc;
  flex-shrink: 0;
}
.banner-box__aside .category-mega__tab:hover .category-mega__tab-cates-link,
.banner-box__aside .category-mega__tab--active .category-mega__tab-cates-link {
  color: #fff;
}
.banner-box__aside .category-mega__tab:hover .category-mega__tab-cates-sep,
.banner-box__aside .category-mega__tab--active .category-mega__tab-cates-sep {
  color: rgba(255, 255, 255, 0.55);
}
.banner-box__aside .category-mega__tab-cates-link:hover {
  text-decoration: underline;
  opacity: 0.95;
}
.banner-box__aside .category-mega__tab-logo,
.banner-box__aside .category-mega__tab-logo-img,
.banner-box__aside .category-mega__tab-logo-fallback {
  width: clamp(22px, 2.2vw, 34px);
  height: clamp(22px, 2.2vw, 34px);
}
.banner-box__aside .category-mega__tab-logo-fallback {
  font-size: clamp(11px, 1vw, 15px);
}
.banner-box__aside .category-mega__tab-icon {
  font-size: clamp(12px, 1.1vw, 16px);
  margin-top: 0;
}
/* <1300：aside 偏矮时才隐藏三级/图标；≥1300 靠缩小字号与间距尽量同时显示 */
@media (max-width: 1299.98px) {
  @container banner-aside (max-height: 420px) {
    .banner-box__aside .category-mega__tab-cates {
      display: none;
    }
  }
  @container banner-aside (max-height: 320px) {
    .banner-box__aside .category-mega__tab-logo {
      display: none;
    }
    .banner-box__aside .category-mega__tab-text {
      font-size: clamp(11px, 1.05vw, 15px);
    }
  }
}
.banner-box__main {
  min-width: 0;
  max-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 主栏高度决定整行；aside 通过 min-height:100% 跟随 */
  align-self: stretch;
}
.banner-box__carousel {
  position: relative;
  width: 100%;
  /* 按 1900×600 等比；超出区间时由 object-fit:cover 裁切，避免与 aside 高度脱节 */
  aspect-ratio: var(--banner-ratio);
  height: auto;
  min-height: var(--banner-h-min);
  max-height: var(--banner-h-max);
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f4;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  contain: layout paint;
}
.banner-box__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transition: opacity .5s ease;
  display: block;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* 避免 a 标签内图片按行高撑开 */
  font-size: 0;
  line-height: 0;
}
.banner-box__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.banner-box__slide-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  /* 杜绝原始像素尺寸参与布局计算 */
  min-width: 0;
  min-height: 0;
}
.banner-box__carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 48, 36, 0.35) 0%,
    rgba(0, 32, 24, 0.18) 40%,
    transparent 70%
  );
}
.banner-box__carousel--image-only::after {
  display: none;
}
.banner-box__caption {
  position: absolute;
  left: 88px;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  max-width: calc(100% - 120px);
  color: #fff;
  pointer-events: none;
}
.banner-box__caption h1 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.banner-box__caption p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}
.banner-box__caption[hidden],
.banner-box__caption h1:empty,
.banner-box__caption p:empty {
  display: none;
}
.banner-box__nav {
  position: absolute;
  top: 50%;
  z-index: 12;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.38);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.banner-box__nav:hover {
  background: rgba(221, 34, 34, 0.88);
}
.banner-box__nav:active {
  transform: translateY(-50%) scale(0.96);
}
.banner-box__nav--prev { left: 14px; }
.banner-box__nav--next { right: 14px; }
.banner-box__carousel:hover .banner-box__nav,
.banner-box__carousel:focus-within .banner-box__nav {
  opacity: 1;
  visibility: visible;
}
.banner-box__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.banner-box__dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.banner-box__dot.is-active {
  width: 36px;
  background-color: #dd2222;
}

.home-quick-links-section {
  padding: 0 0 8px;
  background: #fff;
  margin: 0;
}

/* ===== 库存现货（首页） ===== */
.home-stock-section.stock-section {
  background: #f5f6f7;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
  padding: 30px 0;
  margin: 0 0 36px;
}
.stock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.stock-title {
  margin: 0;
  font-size: 32px;
  color: #444444;
  font-weight: 500;
  letter-spacing: 2px;
}
.more-link {
  font-size: 18px;
  color: #909090;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.more-link:hover { color: #666; }
.category-scroll-wrap {
  position: relative;
  width: 100%;
  padding-left: 56px;
  padding-right: 56px;
}
.category-scroll-wrap.is-no-scroll {
  padding-left: 0;
  padding-right: 0;
}
.category-wrap {
  display: flex;
  align-items: center;
  gap: 36px;
  overflow-x: auto;
  padding: 4px 8px 8px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.category-wrap::-webkit-scrollbar { display: none; }
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 90px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.category-item:hover .category-text { color: #e83500; }
.category-icon {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  color: #555;
  overflow: hidden;
}
.category-icon__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.category-icon__fallback {
  font-size: 28px;
  font-weight: 600;
  color: #888;
}
.category-text {
  font-size: 15px;
  color: #606060;
  white-space: nowrap;
}
.scroll-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-58%);
  width: 48px;
  height: 48px;
  background: #e7e8ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 22px;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}
.scroll-nav-btn:hover { background: #d9dadc; }
.scroll-nav-btn[hidden] { display: none; }
.scroll-nav-btn.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.scroll-prev-btn { left: 0; }
.scroll-next-btn { right: 0; }

/* ===== 平台介绍 + 四大服务 ===== */
.home-platform-section {
  padding: 8px 0 28px;
  background: #fff;
  margin-bottom: 12px;
}
.platform-desc {
  text-align: center;
  margin-bottom: 28px;
}
.main-desc {
  margin: 0 0 12px;
  font-size: 28px;
  color: #222;
  font-weight: normal;
  line-height: 1.45;
}
.main-desc strong { font-weight: 600; }
.sub-desc {
  margin: 0;
  font-size: 16px;
  color: #888;
}
.service-container {
  display: flex;
  background: #fff;
  border: 1px solid #eeeeee;
}
.service-card {
  flex: 1;
  min-width: 0;
  padding: 36px 18px;
  text-align: center;
  border-right: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: #fafafa; }
.service-icon {
  width: 160px;
  height: 120px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.service-icon--accent { color: #e6212a; }
.service-icon__img {
  max-width: 120px;
  max-height: 100px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.service-card--has-active .service-icon__img--default,
.service-card--has-active .service-icon__img--active {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.service-card--has-active .service-icon__img--active {
  opacity: 0;
}
.service-card--has-active:hover .service-icon__img--default {
  opacity: 0;
}
.service-card--has-active:hover .service-icon__img--active {
  opacity: 1;
}
.service-icon__fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f3f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: #777;
}
.service-title {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111;
  font-weight: 500;
}
.service-tip {
  margin: 0;
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

/* ===== category mega ===== */
.category-mega {
  --mega-nav-w: 152px;
  --mega-panel-pad-x: 22px;
  --mega-tab-h: 52px;
  --mega-panel-body-w: min(1100px, 80vw);
  --mega-l3-col-w: 186px;
  --mega-accent: #e83500;
  position: relative;
  flex-shrink: 0;
  width: var(--mega-nav-w);
  height: auto;
  z-index: 30;
}
.category-mega--sidebar {
  --mega-nav-w: 340px;
  width: var(--mega-nav-w);
  height: auto;
}
.category-mega--sidebar .category-mega__nav {
  height: auto;
  max-height: none;
  overflow: visible;
}
.category-mega__nav {
  flex-shrink: 0;
  width: 100%;
  max-height: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fb 55%, #f3f6f8 100%);
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
}
.category-mega--expanded .category-mega__nav {
  border-radius: 10px 0 0 10px;
  border-right-color: #edf0f3;
}
.category-mega__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}
.category-mega__list li {
  flex: none;
  display: flex;
}
.category-mega__tab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  width: 100%;
  min-height: var(--mega-tab-h);
  padding: 12px 16px 12px 14px;
  border: none;
  border-left: 3px solid transparent;
  border-bottom: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.category-mega__tab-body { flex: 1; min-width: 0; }
.category-mega__tab-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-mega__tab-cates {
  margin-top: 6px;
  padding-right: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.category-mega__tab-cates-link {
  margin: 0;
  font-size: clamp(11px, 0.55vw + 4px, 13px);
  line-height: 1.45;
  color: #8a9199;
  text-decoration: none;
  white-space: nowrap;
}
.category-mega__tab-cates-sep {
  margin: 0 5px;
  color: #c5cad1;
  font-size: inherit;
  line-height: inherit;
  user-select: none;
}
.category-mega__tab:hover .category-mega__tab-cates-link,
.category-mega__tab--active .category-mega__tab-cates-link {
  color: #fff;
}
.category-mega__tab:hover .category-mega__tab-cates-sep,
.category-mega__tab--active .category-mega__tab-cates-sep {
  color: rgba(255, 255, 255, 0.55);
}
.category-mega__tab-cates-link:hover {
  text-decoration: underline;
}
.category-mega__tab-logo {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1px;
}
.category-mega__tab-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.category-mega__tab-logo-img--active {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  pointer-events: none;
}
.category-mega__tab--dual-icon:hover .category-mega__tab-logo-img--default,
.category-mega__tab--dual-icon.category-mega__tab--active .category-mega__tab-logo-img--default,
.category-mega__tab--dual-icon:focus-visible .category-mega__tab-logo-img--default {
  opacity: 0;
}
.category-mega__tab--dual-icon:hover .category-mega__tab-logo-img--active,
.category-mega__tab--dual-icon.category-mega__tab--active .category-mega__tab-logo-img--active,
.category-mega__tab--dual-icon:focus-visible .category-mega__tab-logo-img--active {
  opacity: 1;
}
/* 未配置 active 图标时：hover/选中将默认图标压成白色 */
.category-mega__tab:not(.category-mega__tab--dual-icon):hover .category-mega__tab-logo-img--default,
.category-mega__tab:not(.category-mega__tab--dual-icon).category-mega__tab--active .category-mega__tab-logo-img--default,
.category-mega__tab:not(.category-mega__tab--dual-icon):focus-visible .category-mega__tab-logo-img--default,
.category-mega__tab:not(.category-mega__tab--dual-icon):hover .category-mega__tab-logo-img:not(.category-mega__tab-logo-img--active),
.category-mega__tab:not(.category-mega__tab--dual-icon).category-mega__tab--active .category-mega__tab-logo-img:not(.category-mega__tab-logo-img--active),
.category-mega__tab:not(.category-mega__tab--dual-icon):focus-visible .category-mega__tab-logo-img:not(.category-mega__tab-logo-img--active) {
  filter: brightness(0) invert(1);
}
.category-mega__tab-logo-fallback {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef2f4;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}
.category-mega__tab:hover,
.category-mega__tab--active,
.category-mega__tab:focus-visible {
  background: linear-gradient(90deg, var(--mega-accent) 0%, #f04a1a 100%);
  color: #fff;
  border-left-color: #b82e00;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.category-mega__tab:hover .category-mega__tab-logo-fallback,
.category-mega__tab--active .category-mega__tab-logo-fallback {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.category-mega__tab:hover .category-mega__tab-text,
.category-mega__tab--active .category-mega__tab-text {
  color: #fff;
}
.category-mega__tab-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  word-break: break-all;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: inherit;
}
.category-mega__tab-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: #c0c4cc;
  transition: color 0.15s, transform 0.15s;
  margin-top: 3px;
}
.category-mega__tab:hover .category-mega__tab-icon,
.category-mega__tab--active .category-mega__tab-icon {
  color: #fff;
  transform: translateX(2px);
}
.category-mega__panel {
  position: absolute;
  left: calc(100% - 1px);
  top: 0;
  z-index: 2;
  width: var(--mega-panel-body-w);
  max-width: min(var(--mega-panel-body-w), calc(88vw - var(--mega-nav-w)));
  max-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-left: 1px solid #edf0f3;
  border-radius: 0 10px 10px 0;
  box-shadow: 10px 6px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.18s ease, transform 0.22s ease, visibility 0.18s ease;
  overflow: hidden;
  pointer-events: none;
}
.category-mega--expanded .category-mega__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.category-mega__panel-pane {
  display: none;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.category-mega__panel-pane.is-active {
  display: flex;
}
.category-mega__panel-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px var(--mega-panel-pad-x) 12px;
  border-bottom: 1px solid #eef1f4;
  background: #fafbfc;
}
.category-mega__panel-head-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-mega__panel-head-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.category-mega__panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.02em;
}
.category-mega__panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px var(--mega-panel-pad-x) 8px;
  display: flex;
  flex-direction: column;
}
.cate-name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 18px;
  align-items: flex-start;
}
.cate-name-list__item {
  margin: 0;
  flex: 0 1 auto;
  max-width: 100%;
}
.cate-name-list__link {
  display: inline-block;
  padding: 2px 0;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: #444;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.cate-name-list__link:hover { color: var(--mega-accent); }
.category-mega__panel-empty-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.category-mega__panel-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px var(--mega-panel-pad-x);
  font-size: 14px;
  color: #999;
}
.category-mega__panel-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  padding: 10px var(--mega-panel-pad-x) 14px;
  border-top: 1px solid #f0f2f5;
}
.category-mega__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mega-accent);
  text-decoration: none;
}
.category-mega__more:hover { color: #c42d00; }

/* ===== 展开面板内 Tabs / 热销 / 三级四级 ===== */
.mega-inner-tabs {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.mega-inner-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  background: #f0f2f5;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 4px;
}
.mega-inner-tabs__btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  position: relative;
}
.mega-inner-tabs__btn.is-active {
  background: #fff;
  color: #111827;
}
.mega-inner-tabs__btn.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--mega-accent);
}
.mega-inner-tabs__panel {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 18px 16px;
  background: #fff;
}
.mega-inner-tabs__panel.is-active {
  display: flex;
}
/* 热销类目：压缩上下板块高度，整页不出现滚动条 */
.mega-inner-tabs__panel[data-inner-panel="hot"] {
  overflow: hidden;
  padding: 10px 18px 12px;
  gap: 0;
}
.mega-hot-tags-wrap {
  position: relative;
  flex: 0 1 auto;
  max-height: 88px;
  min-height: 0;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f3;
  overflow: hidden;
}
.mega-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  line-height: 1.45;
  align-content: flex-start;
}
.mega-hot-tags__item {
  font-size: 13px;
  color: #1f2937;
  text-decoration: none;
  white-space: nowrap;
}
.mega-hot-tags__item:hover {
  color: var(--mega-accent);
}
.mega-hot-tags__item.is-hot {
  color: var(--mega-accent);
  font-weight: 600;
}
.mega-hot-tags__flame {
  margin-right: 2px;
  font-size: 12px;
}
.mega-hot-tags__ellipsis {
  position: absolute;
  right: 0;
  bottom: 6px;
  padding: 0 4px 0 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 28%);
  font-size: 13px;
  font-weight: 600;
  color: var(--mega-accent);
  text-decoration: none;
}
.mega-hot-tags__ellipsis:hover { color: #c42d00; }
.mega-hot-tags__empty {
  font-size: 12px;
  color: #9ca3af;
}
.mega-hot-products {
  /* 卡片图边长：展开窗变宽时也不跟着拉大，保持正方形小卡 */
  --mega-hot-img: 120px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mega-hot-products__head {
  display: inline-block;
  align-self: flex-start;
  flex-shrink: 0;
  background: var(--mega-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.mega-hot-products__grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
}
.mega-hot-product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  width: var(--mega-hot-img);
  max-width: var(--mega-hot-img);
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  transition: transform 0.18s ease;
  overflow: hidden;
}
.mega-hot-product:hover {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}
.mega-hot-product:hover .mega-hot-product__name {
  color: var(--mega-accent);
}
.mega-hot-product__img-wrap {
  display: block;
  flex: 0 0 auto;
  width: var(--mega-hot-img);
  height: var(--mega-hot-img);
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.mega-hot-product__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}
.mega-hot-product:hover .mega-hot-product__img-wrap img {
  transform: scale(1.04);
}
.mega-hot-product__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
  color: #9ca3af;
}
.mega-hot-product__name {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #1f2937;
  text-align: center;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  word-break: normal;
}
.mega-hot-products__empty {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9ca3af;
  grid-column: 1 / -1;
}
.mega-l3-list {
  display: flex;
  flex-direction: column;
}
.mega-l3-row {
  display: grid;
  grid-template-columns: var(--mega-l3-col-w) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f3;
  align-items: start;
}
.mega-l3-row__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 6px 10px;
  background: #e83500;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}
.mega-l3-row__body { min-width: 0; }
.mega-l4-clip {
  /* 固定两行；超出裁切，同行右下角「更多」跳转，无展开/收起 */
  --mega-l4-line: 1.55em;
  --mega-l4-gap: 6px;
  position: relative;
  max-height: calc(var(--mega-l4-line) * 2 + var(--mega-l4-gap));
  overflow: hidden;
}
.mega-l4-clip.has-more {
  padding-right: 4.2em;
}
.mega-l4-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mega-l4-gap) 0;
  align-items: center;
  align-content: flex-start;
}
.mega-l4-list__link {
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  line-height: var(--mega-l4-line);
  height: var(--mega-l4-line);
  padding: 0 8px;
  border-right: 1px solid #d1d5db;
  white-space: nowrap;
}
.mega-l4-list__link:last-child { border-right: none; }
.mega-l4-list__link:hover { color: var(--mega-accent); }
.mega-l3-row__more {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: var(--mega-l4-line, 1.55em);
  max-width: 4.2em;
  padding: 0 2px 0 12px;
  margin: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 28%);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--mega-accent);
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
}
.mega-l3-row__more[hidden] {
  display: none !important;
}
.mega-l3-row__more:hover { color: #c42d00; }
.mega-l3-list__empty {
  margin: 24px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

/* ===== quick links ===== */
.banner-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 108px;
}
.banner-quick-links__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 16px 18px;
  border-radius: 2px;
  border: 1px solid #e8ecef;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.banner-quick-links__item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.banner-quick-links__item--0 { background: linear-gradient(135deg, #fff8f5 0%, #fff 100%); }
.banner-quick-links__item--1 { background: linear-gradient(135deg, #f5faf8 0%, #fff 100%); }
.banner-quick-links__item--2 { background: linear-gradient(135deg, #f5f8fc 0%, #fff 100%); }
.banner-quick-links__item--3 { background: linear-gradient(135deg, #faf8f5 0%, #fff 100%); }
.banner-quick-links__media {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 4px;
}
.banner-quick-links__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.banner-quick-links__icon {
  color: #00a876;
  font-weight: 700;
  font-size: 18px;
}
.banner-quick-links__text { flex: 1; min-width: 0; }
.banner-quick-links__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
}
.banner-quick-links__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== inventory recommend ===== */
.home-inv-section {
  padding: 36px 0 8px;
  background: #fff;
}
.home-inv-section--retail { background: #f7f9fc; }
.home-inv-section + .home-inv-section {
  padding-top: 28px;
  padding-bottom: 40px;
}
.home-inv-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e83500;
}
.home-inv-section__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.02em;
}
.home-inv-section__more {
  color: var(--primary-color, #e83500);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}
.home-inv-section__more:hover { color: #c42d00; }
.home-inv-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1679px) {
  .home-inv-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1439px) {
  .home-inv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .home-inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .home-inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 767px) {
  .home-inv-grid { grid-template-columns: 1fr; gap: 10px; }
}
.home-inv-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebeef5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.home-inv-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.home-inv-card__image-wrap {
  aspect-ratio: 1;
  background: #fafafa;
  position: relative;
}
.home-inv-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-inv-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c4cc;
  font-size: 13px;
  background: #f5f7fa;
}
.home-inv-card__body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-inv-card__name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-inv-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.home-inv-card__price {
  font-size: 16px;
  font-weight: 700;
  color: #e6a23c;
}
.home-inv-card__price-wrap {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.home-inv-card__market-price {
  font-size: 12px;
  color: #909399;
  text-decoration: line-through;
}
.home-inv-card__min {
  font-size: 12px;
  color: #909399;
  white-space: nowrap;
}
.home-inv-empty {
  margin: 24px 0;
  text-align: center;
  color: #909399;
  font-size: 14px;
}

/* ===== footer（对齐 Footer.vue） ===== */
.footer {
  background: #2C3E50;
  color: #fff;
  padding: 60px 0 20px;
}
.footer--bottom-only { padding: 20px 0; }
.footer--bottom-only .footer-bottom {
  padding-top: 0;
  border-top: none;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-content--from-api {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a {
  color: #BDC3C7;
  transition: color 0.3s;
  text-decoration: none;
}
.footer-section ul li a:hover { color: var(--primary-color, #e83500); }
.footer-section.contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #BDC3C7;
  margin-bottom: 10px;
}
.footer-section-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section-body li { margin-bottom: 10px; }
.footer-section-body a {
  color: #BDC3C7;
  transition: color 0.3s;
  text-decoration: none;
}
.footer-section-body a:hover { color: var(--primary-color, #e83500); }
.footer-section-body p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #BDC3C7;
  margin-bottom: 10px;
}
.footer-section-body .footer-text-plain { margin: 0 0 10px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #405D7A;
  color: #BDC3C7;
  text-align: center;
}
.footer-bottom__left,
.footer-bottom__right {
  min-width: 0;
}
.footer-bottom__left p,
.footer-bottom__right p {
  margin: 0;
}
.footer-bottom__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  text-align: center;
}
.footer-beian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.footer-bottom a {
  color: #BDC3C7;
  text-decoration: underline;
}
.footer-bottom a:hover { color: var(--primary-color, #e83500); }

/* ≥1300：加大类名、加大上内边距；三级用竖线分隔并带链接 */
@media (min-width: 1300px) {
  .banner-box__aside .category-mega__list {
    padding: 2px 0;
  }
  .banner-box__aside .category-mega__tab {
    align-items: flex-start;
    gap: 8px;
    padding: 10px 8px 3px 8px;
  }
  .banner-box__aside .category-mega__tab-logo {
    display: flex;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .banner-box__aside .category-mega__tab-logo,
  .banner-box__aside .category-mega__tab-logo-img,
  .banner-box__aside .category-mega__tab-logo-fallback {
    width: 20px;
    height: 20px;
  }
  .banner-box__aside .category-mega__tab-logo-fallback {
    font-size: 11px;
  }
  .banner-box__aside .category-mega__tab-icon {
    font-size: 12px;
  }
  .banner-box__aside .category-mega__tab-text {
    font-size: 15px;
    line-height: 1.3;
  }
  .banner-box__aside .category-mega__tab-cates {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  .banner-box__aside .category-mega__tab-cates-link {
    font-size: clamp(10px, 0.55vw + 2.8px, 12px);
    line-height: 1.35;
    color: #7a828c;
  }
  .banner-box__aside .category-mega__tab-cates-sep {
    font-size: clamp(10px, 0.55vw + 2.8px, 12px);
  }
}

@media (min-width: 1366px) {
  .banner-box {
    --banner-aside-w: clamp(260px, 22vw, 360px);
    --banner-h-min: 280px;
    --banner-h-max: 560px;
  }
  .banner-box__caption h1 { font-size: 38px; }
  .category-mega {
    --mega-panel-pad-x: 24px;
    --mega-panel-body-w: 1120px;
    --mega-l3-col-w: 192px;
  }
  .category-mega--sidebar { --mega-nav-w: 360px; }
  .category-mega__tab-text { font-size: 19px; }
  .banner-box__aside .category-mega__tab-text {
    font-size: 16px;
  }
  .banner-box__aside .category-mega__tab-logo,
  .banner-box__aside .category-mega__tab-logo-img,
  .banner-box__aside .category-mega__tab-logo-fallback {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 1680px) {
  .banner-box {
    --banner-aside-w: clamp(280px, 20vw, 380px);
    --banner-h-min: 300px;
    --banner-h-max: 600px;
  }
  .category-mega {
    --mega-panel-body-w: 1240px;
    --mega-l3-col-w: 200px;
  }
  .category-mega--sidebar { --mega-nav-w: 380px; }
  .category-mega__tab-text { font-size: 20px; }
  .banner-box__aside .category-mega__tab-text {
    font-size: 17px;
  }
  .banner-box__aside .category-mega__tab-logo,
  .banner-box__aside .category-mega__tab-logo-img,
  .banner-box__aside .category-mega__tab-logo-fallback {
    width: 24px;
    height: 24px;
  }
  .banner-box__aside .category-mega__tab-cates-link,
  .banner-box__aside .category-mega__tab-cates-sep {
    font-size: clamp(11px, 0.5vw + 3.5px, 13px);
  }
}

@media (max-width: 992px) {
  .banner-box {
    --banner-aside-w: clamp(200px, 28vw, 260px);
    --banner-h-min: 200px;
    --banner-h-max: 360px;
  }
  .category-mega {
    --mega-nav-w: 132px;
    --mega-panel-pad-x: 16px;
    --mega-panel-body-w: 480px;
    --mega-l3-col-w: 128px;
    --mega-tab-h: 42px;
  }
  .category-mega--sidebar { --mega-nav-w: 260px; }
  .category-mega__tab {
    font-size: 12px;
    padding: 10px 10px 10px 8px;
  }
  .category-mega__tab-text { font-size: 15px; }
  .category-mega__tab-cates-link,
  .category-mega__tab-cates-sep { font-size: 11px; }
  .banner-box__aside .category-mega__tab {
    padding: 10px 8px 3px 8px;
  }
  .banner-box__aside .category-mega__tab-text {
    font-size: clamp(11px, 1.4vw, 15px);
  }
  .cate-name-list__link { font-size: 12px; }
  .service-container { flex-wrap: wrap; }
  .service-card {
    flex: 1 1 50%;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
  .service-card:nth-child(2n) { border-right: none; }
  .service-card:nth-last-child(-n+2) { border-bottom: none; }
  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .banner-box__aside { display: none; }
  .banner-box__inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
  .banner-box__main { min-height: 0; }
  .banner-box__carousel {
    position: relative;
    inset: auto;
    aspect-ratio: var(--banner-ratio);
    height: auto;
    min-height: 160px;
    max-height: 260px;
    flex-basis: auto;
  }
  .banner-box__caption {
    left: 28px;
    max-width: calc(100% - 48px);
  }
  .banner-box__caption h1 { font-size: 22px; }
  .banner-box__caption p { font-size: 13px; }
  .banner-box__nav {
    opacity: 1;
    visibility: visible;
    width: 34px;
    height: 34px;
  }
  .banner-box__nav--prev { left: 8px; }
  .banner-box__nav--next { right: 8px; }
  .category-mega { display: none; }
  .stock-title { font-size: 24px; letter-spacing: 1px; }
  .more-link { font-size: 15px; }
  .category-icon { width: 72px; height: 72px; }
  .category-icon__img { width: 44px; height: 44px; }
  .category-wrap { gap: 22px; }
  .main-desc { font-size: 20px; }
  .sub-desc { font-size: 14px; }
  .service-title { font-size: 18px; }
  .home-inv-section__title { font-size: 18px; }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .service-card {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .service-card:last-child { border-bottom: none; }
  .category-scroll-wrap { padding-left: 44px; padding-right: 44px; }
  .scroll-nav-btn { width: 40px; height: 40px; font-size: 18px; }
}
