/* ==========================================================================
   BRT — 设计系统
   基准：白底 + 深灰文字 + 品牌红主按钮 + 浅色主题横幅；克制使用渐变与阴影。
   断点：1040 / 760 / 440
   ========================================================================== */

/* ─────────────────────────── Tokens ─────────────────────────── */
:root {
  /* 品牌红：与 BRT Logo 同色系，同时对齐目标站的高饱和红 */
  --red: #cc0000;
  --red-dark: #a30000;
  --red-tint: #fdecec;
  --red-tint-2: #fbdada;

  --ink: #333333;          /* 正文（对比度 12.6:1） */
  --ink-2: #4a4a4a;
  --muted: #595959;        /* 辅助文字（7.0:1，AA 通过） */
  --muted-2: #6e6e6e;      /* 更浅的提示（5.1:1，AA 通过） */

  --line: #d6d6d6;
  --line-2: #ececec;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-alt-2: #f2f2f2;
  --sky: #d9eef7;
  --yellow: #fff2b9;
  --green: #0f7b3f;

  --shadow-1: 0 1px 5px rgba(0, 0, 0, .1);
  --shadow-2: 0 2px 12px rgba(0, 0, 0, .12);
  --shadow-3: 0 12px 40px rgba(0, 0, 0, .18);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-full: 999px;

  --container: 1280px;
  --gap: 24px;
  --mast-h: 82px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

/* ─────────────────────────── Reset ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* hidden 属性必须始终生效。组件里的 display:flex/grid 会盖掉 UA 的
   [hidden]{display:none}，导致"已隐藏"的元素照常显示（筛选提示条、购物车底栏都踩过）。 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

/* 键盘焦点：全站统一、清晰可见 */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ─────────────────────────── Layout ─────────────────────────── */
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.sec { padding: 54px 0; }
.sec-tight { padding: 34px 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px;
}
.sec-title { font-size: 1.75rem; letter-spacing: -.035em; }
.sec-sub { color: var(--muted); margin-top: 6px; font-size: .94rem; }
.sec-more { font-weight: 700; color: var(--red); white-space: nowrap; }
.sec-more:hover { text-decoration: underline; }
.sec-center .sec-head { display: block; text-align: center; }
.sec-center .sec-head .sec-more { display: inline-block; margin-top: 10px; }

/* ─────────────────────────── Utility bar ─────────────────────────── */
.util { background: var(--red); color: #fff; font-size: .8125rem; }
.util .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.util-l, .util-r { display: flex; align-items: center; gap: 18px; min-width: 0; }
.util-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.util-item svg { width: 14px; height: 14px; flex: 0 0 auto; opacity: .85; }
.util a { white-space: nowrap; }
.util a:hover { text-decoration: underline; }
.util-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .3); flex: 0 0 auto; }

/* ─────────────────────────── Masthead ─────────────────────────── */
/* 页头分两层：
   .util（红色信息条）是普通流，随页面滚动离开；
   .head-sticky（mast + subnav）吸附在视口顶端。

   #site-header 必须 display:contents —— sticky 元素只能在其「父元素盒子」范围内吸附，
   而 #site-header 本身只有页头那么高，滚动一下就带着 sticky 元素一起走了（实测 top = -1297px）。
   设为 contents 后它不再产生盒子，.util / .head-sticky 直接成为 body 的子元素。 */
#site-header { display: contents; }
.head-sticky { position: sticky; top: 0; z-index: 60; background: #fff; }
.head-sticky.is-stuck { box-shadow: var(--shadow-1); }

.mast { background: #fff; border-bottom: 1px solid var(--line-2); }
.mast-in {
  height: var(--mast-h); display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 26px; align-items: center;
}
.logo { display: flex; align-items: center; white-space: nowrap; }
.logo img { height: 44px; width: auto; }

.msearch { position: relative; height: 48px; }
.msearch input {
  width: 100%; height: 100%; border: 1px solid transparent; border-radius: var(--r-full);
  background: var(--bg-alt-2); padding: 0 56px 0 20px; outline: none;
}
.msearch input::placeholder { color: var(--muted-2); }
.msearch input:focus { background: #fff; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.msearch button {
  position: absolute; right: 5px; top: 5px; width: 38px; height: 38px;
  border-radius: var(--r-full); display: grid; place-items: center; color: var(--ink);
}
.msearch button:hover { background: var(--red); color: #fff; }
.msearch button svg { width: 19px; height: 19px; }

.mact { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1px solid var(--line); border-radius: var(--r-full); padding: 8px 13px;
  background: #fff; font-weight: 700; font-size: .82rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn svg { width: 15px; height: 15px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; white-space: nowrap;
  padding: 8px 10px; border-radius: var(--r-full);
}
.cart-btn:hover { background: var(--red-tint); color: var(--red); }
.cart-btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-full);
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; flex: 0 0 auto;
}
.cart-count[hidden] { display: none; }
.mtoggle { display: none; place-items: center; width: 42px; height: 42px; border-radius: var(--r); }
.mtoggle:hover { background: var(--red-tint); color: var(--red); }
.mtoggle svg { width: 22px; height: 22px; }

/* ─────────────────────────── Subnav ─────────────────────────── */
.subnav { background: #fff; border-bottom: 1px solid var(--line-2); }
.subnav-in {
  height: 48px; display: flex; align-items: center; gap: 26px;
  font-size: .9rem; font-weight: 600; overflow-x: auto; scrollbar-width: none;
}
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--red); }
.subnav a.is-active { color: var(--red); border-bottom-color: var(--red); }
.subnav a.nav-strong { color: var(--red); }

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-full); padding: 12px 22px; font-weight: 700;
  border: 2px solid transparent; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap; text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .875rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.is-added { background: var(--green); border-color: var(--green); color: #fff; }

/* ─────────────────────────── Breadcrumbs ─────────────────────────── */
.crumb { font-size: .82rem; color: var(--muted); padding: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.crumb a:hover { color: var(--red); text-decoration: underline; }
.crumb span[aria-current] { color: var(--ink-2); }

/* ─────────────────────────── Page head ─────────────────────────── */
.phead { padding: 22px 0 4px; }
.phead h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.04em; }
.phead p { color: var(--muted); margin-top: 8px; max-width: 62ch; }

/* ─────────────────────────── Hero ─────────────────────────── */
.hero {
  background: var(--sky); border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center;
  margin: 18px 0 8px; min-height: 360px;
}
.hero-copy { padding: 48px 52px; }
.eyebrow { font-size: .82rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .1em; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.03; letter-spacing: -.055em; margin: 14px 0 18px; }
.hero p { font-size: 1.05rem; line-height: 1.55; max-width: 54ch; margin-bottom: 26px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; font-size: .85rem; color: var(--muted); }
.hero-notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; }

/* 圆图尺寸跟随容器「高度」而不是列宽：
   单列断点下列宽会变成整幅页宽（~980px），而容器高度一直只有 min-height，
   按列宽算尺寸会让圆图长到 394px 塞进 300px 的容器里，被 .hero 的 overflow:hidden 裁掉。 */
.hero-art { position: relative; align-self: stretch; min-height: 360px; }
.hero-art a { position: absolute; display: block; height: 40%; aspect-ratio: 1; width: auto; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: var(--shadow-1); }
.hero-art a img { width: 100%; height: 100%; object-fit: cover; }
.hero-art a:nth-child(1) { left: 3%; top: 7%; transform: rotate(-7deg); }
.hero-art a:nth-child(2) { right: 5%; top: 14%; transform: rotate(8deg); }
.hero-art a:nth-child(3) { left: 33%; bottom: 8%; transform: rotate(2deg); }

/* ─────────────────────── 首页轮播 Banner ───────────────────────
   建议尺寸 1600×600（比例 8:3）。aspect-ratio 让容器先占好位，
   首图加载完成前不会把下面的分类行顶来顶去（CLS）。 */
.hero-banners {
  position: relative; margin: 18px 0 8px;
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 8 / 3; background: var(--bg-alt-2);
}
.hero-banners .hb-track {
  display: flex; height: 100%;
  transition: transform .45s var(--ease);
  will-change: transform;
}
.hero-banners .hb-slide { flex: 0 0 100%; height: 100%; }
.hero-banners .hb-slide img { width: 100%; height: 100%; object-fit: cover; }
/* 单图时不渲染箭头与圆点（markup 里就没有），多图才出现 */
.hero-banners .hb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .88); color: var(--ink);
  box-shadow: var(--shadow-1); display: grid; place-items: center;
  transition: background .15s var(--ease);
}
.hero-banners .hb-arrow:hover { background: #fff; color: var(--red); }
.hero-banners .hb-arrow svg { width: 22px; height: 22px; }
.hero-banners .hb-prev { left: 14px; }
.hero-banners .hb-next { right: 14px; }
.hero-banners .hb-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
}
.hero-banners .hb-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.hero-banners .hb-dot.on { background: var(--red); transform: scale(1.15); }
@media (max-width: 760px) {
  .hero-banners .hb-arrow { width: 36px; height: 36px; }
  .hero-banners .hb-prev { left: 8px; }
  .hero-banners .hb-next { right: 8px; }
}

/* ─────────────────────────── Category row ─────────────────────────── */
.cat-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; }
.cat { text-align: center; display: block; }
.cat-img {
  /* 必须是块盒：它是 <span>，默认 display:inline —— 行内盒上
     width:100% / aspect-ratio / border-radius:50% / overflow:hidden 全都不生效，
     卡片会塌成高矩形，hover 时那个 3px 红边框也会碎成上下两小段（看起来像莫名红线）。 */
  display: block;
  width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--bg-alt);
  border: 3px solid transparent; overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat-img, .cat.is-active .cat-img { border-color: var(--red); transform: scale(1.03); }
.cat b { display: block; margin-top: 12px; font-size: .9rem; letter-spacing: -.01em; }
.cat small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }

/* ─────────────────────────── Promo band ─────────────────────────── */
.promo {
  background: var(--yellow); border-radius: var(--r); padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.promo b { font-size: 1.3rem; display: block; letter-spacing: -.02em; }
.promo p { margin-top: 6px; color: #4a4a4a; max-width: 70ch; }

/* ─────────────────────────── Product grid & card ─────────────────────────── */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.p-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.p-card { display: flex; flex-direction: column; min-width: 0; }
.p-media {
  position: relative; width: 100%; aspect-ratio: 1; background: var(--bg-alt);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
}
/* 关键：contain 保证商品轮廓完整，scale 抵消图片自带白边造成的"视觉偏小" */
.p-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .28s var(--ease); transform: scale(1.12); }
.p-card:hover .p-media img { transform: scale(1.2); }
.p-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.p-badge {
  background: #fff; border-radius: var(--r-full); padding: 5px 10px;
  font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  box-shadow: var(--shadow-1); white-space: nowrap;
}
.p-badge.red { background: var(--red); color: #fff; box-shadow: none; }
.p-badge.custom { background: var(--ink); color: #fff; box-shadow: none; }
.p-zoom {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-1);
  opacity: 0; transition: opacity .2s var(--ease);
}
.p-card:hover .p-zoom, .p-zoom:focus-visible { opacity: 1; }
.p-zoom svg { width: 17px; height: 17px; }

.p-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.p-sku { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.p-name {
  font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
  margin: 6px 0 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.p-name:hover { color: var(--red); }
.p-price { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.p-price span { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.p-meta { font-size: .78rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.p-meta b { color: var(--ink-2); font-weight: 700; }
.p-add {
  position: relative;   /* 给右上角数量角标做定位参照 */
  margin-top: 13px; width: 100%; border: 2px solid var(--red); color: var(--red);
  background: #fff; border-radius: var(--r-full); padding: 10px 14px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.p-add svg { width: 17px; height: 17px; flex: 0 0 auto; }
/* 数量角标：按钮右上角，显示「按一下会加多少」（= 起订量）。
   白描边让它从按钮的红色边框上「浮」起来，不至于糊成一片。 */
.p-add-qty {
  position: absolute; top: -9px; right: -5px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-full);
  background: var(--red); color: #fff; border: 2px solid #fff;
  font-size: .72rem; font-weight: 800; line-height: 1; letter-spacing: 0;
}
.p-add:hover { background: var(--red); color: #fff; }
.p-add.is-added { background: var(--green); border-color: var(--green); color: #fff; }
.p-add.is-added .p-add-qty { background: var(--green); }

/* ─────────────────────────── Toolbar（列表页） ─────────────────────────── */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tb-count { font-size: .9rem; color: var(--muted); }
.tb-count b { color: var(--ink); }
.tb-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-search { position: relative; width: 290px; }
.tb-search input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--r-full); padding: 0 40px 0 16px; background: #fff; }
.tb-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
/* type=search 会让 Chrome 额外画一个原生清除按钮，和我们的 .clr 并排变成两个 ✕。
   这里关掉原生的（它是蓝色、也不跟我们的配色走），只留 .clr 那一个。 */
.tb-search input::-webkit-search-cancel-button,
.tb-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.tb-search .clr { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.tb-search .clr:hover { background: var(--bg-alt-2); color: var(--ink); }
.sel {
  appearance: none; height: 42px; border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 0 38px 0 16px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23595959' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 15px center;
  font-weight: 600; font-size: .9rem;
}
.sel:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }

/* 已选条件 chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 18px; }
.chips-label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--red-tint);
  color: var(--red); border-radius: var(--r-full); padding: 6px 8px 6px 13px;
  font-size: .82rem; font-weight: 700;
}
.chip button { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--red); }
.chip button:hover { background: var(--red); color: #fff; }
.chips-clear { font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: underline; margin-left: 4px; }
.chips-clear:hover { color: var(--red); }

/* ─────────────────────────── Shop layout & filters ─────────────────────────── */
.shop { display: grid; grid-template-columns: 236px 1fr; gap: 34px; align-items: start; padding-bottom: 40px; }
/* 筛选栏：滚动时吸附并在视口内垂直居中（--filters-top / --filters-maxh 由 JS 按实际高度算）。
   面板比可用空间还高时改为顶对齐 + 内部滚动，避免底部被视口切掉。 */
.filters {
  border-top: 1px solid var(--line);
  position: sticky;
  top: var(--filters-top, calc(var(--mast-h) + 58px));
  max-height: var(--filters-maxh, none);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fhead b { font-size: .95rem; }
/* 关闭按钮只在筛选抽屉里出现。注意 .drawer-close 的基样式在文件后面，
   会盖掉同优先级的 .fclose{display:none}，所以这里用 .fhead .fclose 提高优先级。 */
.fhead .fclose { display: none; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup h3 { font-size: .9rem; letter-spacing: -.01em; }
/* 分组标题整行可点，用来折叠/展开该组 */
.fgt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 15px 0; text-align: left; font-size: .9rem; font-weight: 700;
}
.fgt:hover { color: var(--red); }
.fgt svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted-2); transition: transform .2s var(--ease); }
.fgroup.is-off .fgt svg { transform: rotate(-90deg); }
.fbody { padding-bottom: 14px; }
.fgroup.is-off .fbody { display: none; }
.fopt { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--ink-2); font-size: .9rem; cursor: pointer; }
.fopt input { width: 17px; height: 17px; accent-color: var(--red); flex: 0 0 auto; cursor: pointer; }
.fopt .n { margin-left: auto; color: var(--muted-2); font-size: .8rem; }
.fopt:hover { color: var(--red); }
/* 子类单选（bags 分类下）：缩进挂在分类组里，视觉上从属于所属分类 */
.fopt-sub { margin: 6px 0 12px; padding-left: 14px; border-left: 2px solid var(--line); }
.fopt-sub .fopt { margin: 7px 0; font-size: .86rem; }
.f-apply { display: none; }
.fbtn { display: none; }
.fmask { display: none; }

/* ─────────────────────────── Load more ─────────────────────────── */
.load-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 0 10px; }
.load-note { font-size: .85rem; color: var(--muted); }
.progress { font-size: .85rem; color: var(--muted); }

/* ─────────────────────────── Empty state ─────────────────────────── */
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--line); }
.empty b { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.empty-sug { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 18px; }
.empty-sug a { border: 1px solid var(--line); border-radius: var(--r-full); padding: 7px 14px; font-size: .85rem; font-weight: 600; }
.empty-sug a:hover { border-color: var(--red); color: var(--red); }

/* ─────────────────────────── PDP ─────────────────────────── */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: start; padding-bottom: 20px; }
.gal { position: sticky; top: calc(var(--mast-h) + 16px); }
.gal-main {
  background: var(--bg-alt); border-radius: var(--r-lg); aspect-ratio: 1;
  overflow: hidden; display: grid; place-items: center;
}
.gal-main img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.1); }
.gal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gal-thumb { background: var(--bg-alt); border-radius: var(--r); aspect-ratio: 1; overflow: hidden; border: 2px solid transparent; }
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal-thumb.is-active { border-color: var(--red); }
.gal-thumb:hover { border-color: var(--line); }

.pdp-info { min-width: 0; }
.pdp-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); letter-spacing: -.035em; line-height: 1.2; margin: 8px 0 14px; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag {
  border-radius: var(--r-full); padding: 5px 11px; font-size: .74rem; font-weight: 800;
  background: var(--red-tint); color: var(--red); letter-spacing: .02em; text-transform: uppercase;
}
.tag.dark { background: var(--bg-alt-2); color: var(--ink-2); }
.tag.green { background: #e7f5ec; color: var(--green); }
.pdp-sku { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.pdp-price { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
/* 「On quotation per 件」的 per 后缀已按业务要求去掉，价格行只剩纯文本。
   这条 span 规则当前无引用，保留以防日后把单位后缀加回来。 */
.pdp-price span { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.pdp-note { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.pdp-desc { color: var(--ink-2); margin: 16px 0; line-height: 1.65; }
/* 详情页「详细信息」参数行（Order unit / Pack / MOQ / Carton / Lead time /
   Certification）已按业务要求整块撤掉 —— 这些字段仍保留在后台表单里，
   客户通过报价单获取。当前没有页面引用 .pdp-facts，可整段删除。 */
.pdp-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.pdp-facts b { color: var(--ink-2); }

.opt-group { margin-top: 18px; }
.opt-group > label, .opt-group > .opt-label { display: block; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 9px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  position: relative;
  border: 1.5px solid var(--line); border-radius: var(--r-full); padding: 8px 16px;
  font-size: .875rem; font-weight: 600; background: #fff;
}
.opt:hover { border-color: var(--ink); }
.opt.is-on { border-color: var(--red); background: var(--red-tint); color: var(--red); font-weight: 800; }

/* 规格选项的 sku 图浮层：鼠标移上去弹出该选项的方形图片，移开即隐。
   纯 :hover / :focus-visible 驱动 —— 不挂 JS 监听就不会有「鼠标移开后
   浮层还留在页面上」的残留，也不会在语言重绘后失效。 */
.opt-pop {
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  width: 200px; padding: 8px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-3); opacity: 0; visibility: hidden;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  pointer-events: none;
}
.opt-pop::after {          /* 指向小三角，让浮层和选项对得上 */
  content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px;
  width: 12px; height: 12px; background: #fff;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.opt-pop img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--bg-alt); border-radius: var(--r-sm, 8px);
}
.opt:hover .opt-pop,
.opt:focus-visible .opt-pop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
/* 窄屏没有「悬停」这回事，直接把图收起来，免得点选规格时被浮层挡住 */
@media (hover: none) { .opt-pop { display: none; } }

.qty { display: inline-flex; align-items: center; }
.qty button { width: 42px; height: 44px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; }
.qty button:first-child { border-radius: var(--r) 0 0 var(--r); }
.qty button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.qty button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.qty button:disabled { opacity: .45; cursor: not-allowed; }
.qty input {
  width: 92px; height: 44px; border: 1.5px solid var(--line); border-left: 0; border-right: 0;
  text-align: center; font-weight: 700; background: #fff;
}
.qty input:focus { outline: none; border-color: var(--red); }
/* 去掉 number 输入框自带的上下箭头。
   数量只通过两侧的加减按钮调整（加减走 stepQty，天然落在合法档位上），
   原生 spinner 的步进值不受 moq/step 约束，会直接把客户带到不合法数量，
   而且它压在居中的数字上，把 92px 的宽度吃掉一半。 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.pdp-buy { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; align-items: stretch; }
.pdp-hint { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.pdp-hint.warn { color: var(--red); font-weight: 700; }

/* 参数表样式。详情页的「商品参数」区块已按业务要求撤掉（参数留在后台表单里，
   客户通过报价单获取），这里保留样式是为了以后若想用折叠面板放回来不必重写。
   当前没有任何页面引用 .spec-table —— 如果确定不再需要，可以整段删除。 */
.spec-table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-table tr + tr { border-top: 1px solid var(--line-2); }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; font-size: .9rem; vertical-align: top; }
.spec-table th { width: 38%; background: var(--bg-alt); font-weight: 700; color: var(--ink-2); }
/* 「Packaging & shipping」信息块已按业务要求从详情页撤掉。
   当前没有页面引用 .info-block，可整段删除。 */
.info-block { margin-top: 26px; }
.info-block h2 { font-size: 1.1rem; margin-bottom: 10px; letter-spacing: -.02em; }
.info-block p { color: var(--ink-2); line-height: 1.65; }
.pdp-sticky { display: none; }

/* ─────────────────────────── Drawer（询价车） ─────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .22s var(--ease); }
.drawer.is-open .drawer-mask { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(500px, 100%);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .26s var(--ease);
  box-shadow: var(--shadow-3);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line-2); }
.drawer-head h2 { font-size: 1.2rem; letter-spacing: -.02em; }
.drawer-head p { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt-2); display: grid; place-items: center; }
.drawer-close:hover { background: var(--red); color: #fff; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { padding: 16px 22px 20px; border-top: 1px solid var(--line-2); background: #fff; }
.drawer-empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.drawer-empty svg { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--line); }
.drawer-empty b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }

/* 购物车行（抽屉与购物车页共用） */
.citem { display: grid; grid-template-columns: 76px 1fr auto; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.citem-img { width: 76px; height: 76px; border-radius: var(--r-sm); background: var(--bg-alt); overflow: hidden; }
.citem-img img { width: 100%; height: 100%; object-fit: contain; }
.citem-main { min-width: 0; }
.citem-name { font-size: .9rem; font-weight: 700; line-height: 1.4; }
.citem-name:hover { color: var(--red); }
.citem-sku { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 3px; }
.citem-attrs { font-size: .78rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.citem-attrs b { color: var(--ink-2); }
.citem-qty { margin-top: 9px; }
.citem-qty .qty button { width: 32px; height: 32px; }
.citem-qty .qty input { width: 68px; height: 32px; font-size: .875rem; }
.citem-qty .unit-txt { font-size: .8rem; color: var(--muted); margin-left: 9px; }
.citem-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.citem-price { font-size: .82rem; color: var(--muted); text-align: right; white-space: nowrap; }
.citem-del { color: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.citem-del:hover { background: var(--red-tint); color: var(--red); }
.citem-note { grid-column: 1 / -1; }
.citem-note input {
  width: 100%; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 12px; font-size: .82rem; background: #fff;
}
.citem-note input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.drawer-summary { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.drawer-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ─────────────────────────── Cart page ─────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.cart-panel { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cart-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--bg-alt); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cart-panel-head b { font-size: 1rem; }
.cart-list { padding: 0 20px; }
.summary { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: calc(var(--mast-h) + 58px); }
.summary h2 { font-size: 1.1rem; margin-bottom: 14px; letter-spacing: -.02em; }
.summary dl { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.summary dl:last-of-type { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 700; text-align: right; }
.summary .note { font-size: .78rem; color: var(--muted); line-height: 1.6; margin: 12px 0 16px; }
.cart-sticky { display: none; }

/* ─────────────────────────── Forms ─────────────────────────── */
.form { display: grid; gap: 16px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: .85rem; font-weight: 700; }
.field .req { color: var(--red); }   /* 只标必填：选填项不加任何标记（原先的 .field .opt 已删） */
.input, .textarea, select.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px;
  background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.field-err { font-size: .8rem; color: var(--red); font-weight: 600; display: none; }
.field-err.is-on { display: block; }
.form-note { font-size: .82rem; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; border: 1.5px solid var(--line); border-radius: var(--r-full); padding: 8px 14px; cursor: pointer; }
.check input { accent-color: var(--red); }
.check:has(input:checked) { border-color: var(--red); background: var(--red-tint); color: var(--red); font-weight: 700; }

.alert { border-radius: var(--r); padding: 13px 16px; font-size: .875rem; line-height: 1.55; }
.alert-err { background: var(--red-tint); color: var(--red-dark); border: 1px solid var(--red-tint-2); }
.alert-ok { background: #e7f5ec; color: #0b5c2f; border: 1px solid #c9e8d6; }
.alert-info { background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line-2); }

/* ─────────────────────────── Inquiry layout ─────────────────────────── */
.inq-layout { display: grid; grid-template-columns: 1fr 400px; gap: 34px; align-items: start; }
.inq-items { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.inq-items-head { padding: 14px 20px; background: var(--bg-alt); border-bottom: 1px solid var(--line); font-weight: 700; font-size: .95rem; }
.inq-items-body { padding: 0 20px; max-height: 460px; overflow-y: auto; }
/* 查询报价进度页要完整展开。那个 max-height 是给询价车抽屉设的（抽屉空间有限，
   明细多了必须能滚）。但套在进度页的结果卡片上就会把明细拦腰截断——
   客户看到第二项的名字和数量，规格、单价、交期却全被切掉，而且没有任何滚动提示。 */
.inq-items--full .inq-items-body { max-height: none; overflow-y: visible; }
/* 首列的 56px 是留给缩略图的。但不是每处都有图——查询报价进度页和提交成功页
   只渲染文字。若那里仍按 56px 起列，商品名会被塞进 56px 那一列里，
   垂直堆成一条窄长条（实测就是如此）。所以按「有没有 img」切换列定义。
   多出来的列（进度页的单价）由 grid 隐式生成，宽度 auto，不必写死。 */
.inq-mini { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.inq-mini:has(img) { grid-template-columns: 56px 1fr auto; }
.inq-mini:last-child { border-bottom: 0; }
.inq-mini img { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--bg-alt); object-fit: contain; }
.inq-mini b { font-size: .875rem; display: block; line-height: 1.35; }
.inq-mini small { color: var(--muted); font-size: .76rem; }
.inq-mini .q { font-weight: 800; font-size: .9rem; white-space: nowrap; }
.inq-mini .q small { display: block; font-weight: 500; }

/* 业务员写给客户的报价备注。它位于 .inq-items 卡片内、滚动区之外，
   所以要按「卡片内的分区」来排：一条顶部分隔线 + 浅底 + 左侧红条。
   这段是「人话」不是字段，用浅底和红条跟上面的参数行区分开。
   pre-wrap 是为了保留业务员在后台敲的换行。 */
.quote-note { padding: 16px 20px 18px; background: var(--bg-alt); border-top: 1px solid var(--line); border-left: 3px solid var(--red); }
.quote-note b { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.quote-note p { font-size: .875rem; line-height: 1.65; white-space: pre-wrap; }

/* ─────────────────────────── Steps ─────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { border-top: 3px solid var(--red); padding-top: 16px; }
.step b { display: block; font-size: 1rem; margin-bottom: 7px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.step i { font-style: normal; font-family: var(--mono); font-size: .78rem; color: var(--red); font-weight: 700; }

/* ─────────────────────────── Why grid ─────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-item .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--red-tint); color: var(--red); display: grid; place-items: center; margin-bottom: 13px; }
.why-item .ic svg { width: 22px; height: 22px; }
.why-item b { display: block; font-size: 1rem; margin-bottom: 7px; letter-spacing: -.01em; }
.why-item p { color: var(--muted); font-size: .875rem; line-height: 1.6; }

/* ─────────────────────────── Thanks / Track ─────────────────────────── */
.done { max-width: 780px; margin: 0 auto; padding: 40px 0 60px; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: #e7f5ec; color: var(--green); display: grid; place-items: center; margin-bottom: 20px; }
.done-ic svg { width: 32px; height: 32px; }
.done h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.04em; margin-bottom: 10px; }
.done > p { color: var(--muted); }
.refbox {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 2px dashed var(--line); border-radius: var(--r); padding: 18px 20px; margin: 24px 0;
}
.refbox .lbl { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.refbox .val { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; }
.done-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-full); padding: 7px 15px; font-weight: 700; font-size: .85rem; background: var(--bg-alt-2); }
.status-pill.new { background: var(--red-tint); color: var(--red); }
.status-pill.quoting, .status-pill.contacted { background: #fff5d6; color: #8a6a00; }
.status-pill.quoted, .status-pill.won { background: #e7f5ec; color: var(--green); }
.status-pill.closed { background: var(--bg-alt-2); color: var(--muted); }

/* ─────────────────────────── About / Contact ─────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.split h2 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -.025em; }
.split p { color: var(--ink-2); line-height: 1.7; }
.split p + p { margin-top: 12px; }
.timeline { border-left: 2px solid var(--line); padding-left: 22px; }
.timeline li { position: relative; padding-bottom: 18px; color: var(--ink-2); }
.timeline li::before { content: ''; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.timeline li:last-child { padding-bottom: 0; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.cert-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.cert-card b { display: block; font-size: .95rem; }
.cert-card small { color: var(--muted); font-size: .78rem; }
/* 证书图片卡：整卡点击看原图 */
.cert-card-img { padding: 10px; text-align: center; }
.cert-card-img a { display: block; }
.cert-card-img img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: box-shadow .15s ease; }
.cert-card-img a:hover img { box-shadow: 0 4px 14px rgba(0, 0, 0, .13); }
.cert-card-img b { font-size: .9rem; margin-top: 10px; }
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; gap: 13px; align-items: flex-start; }
.info-list svg { width: 19px; height: 19px; color: var(--red); flex: 0 0 auto; margin-top: 3px; }
.info-list b { display: block; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.info-list span, .info-list a { font-size: .95rem; color: var(--ink-2); line-height: 1.6; }
.info-list a:hover { color: var(--red); text-decoration: underline; }

/* ─────────────────────────── Footer ─────────────────────────── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 44px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 38px; width: auto; }
.footer h3 { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer a { font-size: .9rem; color: var(--ink-2); }
.footer a:hover { color: var(--red); text-decoration: underline; }
.footer p { font-size: .875rem; color: var(--muted); line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted);
}

/* ─────────────────────────── Toast ─────────────────────────── */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 140; display: flex; flex-direction: column; gap: 10px; align-items: center; width: min(520px, calc(100% - 32px)); }
.toast {
  background: var(--ink); color: #fff; border-radius: var(--r); padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-3);
  font-size: .9rem; width: 100%; animation: toastIn .22s var(--ease);
}
.toast svg { width: 19px; height: 19px; flex: 0 0 auto; color: #7ee2a8; }
.toast.err svg { color: #ffb3b3; }
.toast .msg { flex: 1; min-width: 0; }
.toast .act { font-weight: 800; color: #fff; text-decoration: underline; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ─────────────────────────── Skeleton ─────────────────────────── */
.skel-card { border-radius: var(--r); background: var(--bg-alt); aspect-ratio: .78; position: relative; overflow: hidden; }
.skel-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  animation: skel 1.2s infinite;
}
@keyframes skel { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ─────────────────────────── Reveal ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────── Drawer (mobile nav) ─────────────────────────── */
.mnav { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.mnav.is-open { pointer-events: auto; }
.mnav-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s var(--ease); }
.mnav.is-open .mnav-mask { opacity: 1; }
.mnav-panel {
  position: absolute; left: 0; top: 0; height: 100%; width: min(320px, 86vw); background: #fff;
  transform: translateX(-102%); transition: transform .24s var(--ease); display: flex; flex-direction: column;
}
.mnav.is-open .mnav-panel { transform: none; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.mnav-list { padding: 8px 0; overflow-y: auto; }
.mnav-list a { display: block; padding: 13px 18px; font-size: 1rem; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mnav-list a:hover { color: var(--red); }
.mnav-foot { margin-top: auto; padding: 16px 18px; border-top: 1px solid var(--line-2); font-size: .85rem; color: var(--muted); }

/* ─────────────────────────── 响应式 ─────────────────────────── */
/* ─────────────────────────── 页面补充 ─────────────────────────── */
/* 搜索关键词提示条 */
#search-note {
  font-size: .88rem; color: var(--muted); margin: -6px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
#search-note::before { content: ''; width: 3px; height: 15px; background: var(--red); border-radius: 2px; flex: 0 0 auto; }

/* 筛选抽屉的关闭按钮（只在小屏出现） */
.fclose { align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.fclose:hover { background: var(--bg-alt-2); color: var(--ink); }
.fclose svg { width: 18px; height: 18px; }

/* 首页 hero-notes 里的数字 */
.hero-notes b { color: var(--ink); font-weight: 800; }

/* 关于页 info-list 里的次级链接 */
.info-list div > a { display: block; margin-top: 2px; }

/* 认证卡片 */
.cert-card b { display: block; font-size: 1rem; letter-spacing: -.01em; }
.cert-card small { display: block; color: var(--muted); font-size: .78rem; margin-top: 6px; line-height: 1.5; }

@media (max-width: 1180px) {
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-row { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
}

@media (max-width: 1040px) {
  .mast-in { grid-template-columns: auto 1fr auto; gap: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 40px 36px 30px; }
  /* 单列：圆图从「绝对定位的错落簇」改成一行的三枚，
     尺寸按容器宽度走并设上限，任何宽度下都完整可见，不会被底边裁切。 */
  .hero-art {
    position: static; display: flex; align-items: center; justify-content: center;
    gap: clamp(10px, 2.4vw, 22px); min-height: 0; padding: 2px 24px 32px;
  }
  .hero-art a { position: static; height: auto; width: 30%; max-width: 176px; aspect-ratio: 1; }
  .pdp { grid-template-columns: 1fr; gap: 34px; }
  .gal { position: static; }
  .shop { grid-template-columns: 1fr; }
  /* 移动端筛选：抽屉 */
  .fhead { display: flex; }
  .fbtn { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 auto 0 0; width: min(90vw, 340px); background: #fff; z-index: 120;
    transform: translateX(-102%); transition: transform .24s var(--ease); overflow-y: auto;
    border-top: 0; padding: 0 22px 24px; box-shadow: var(--shadow-3); top: 0;
  }
  .filters.is-open { transform: none; }
  .fhead .fclose { display: inline-grid; }
  .fhead { position: sticky; top: 0; background: #fff; z-index: 2; }
  .f-apply { display: block; margin-top: 20px; }
  .fmask { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 115; opacity: 0; pointer-events: none; transition: opacity .22s var(--ease); }
  .fmask.is-open { opacity: 1; pointer-events: auto; }
  .cart-layout, .inq-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  :root { --mast-h: auto; --gap: 18px; }
  .container { width: calc(100% - 28px); }
  .sec { padding: 40px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sec-title { font-size: 1.45rem; }
  .util-l .util-item:not(:first-child), .util-sep { display: none; }
  /* 窄屏的通栏只保留「现货提示 + 查询报价」：公司介绍/联系方式已在移动导航里，
     冗余项会把布局视口撑宽（flex 子项默认不可收缩到 min-content 以下） */
  .util-r > a:not(.util-item) { display: none; }
  .util .container { gap: 10px; }
  .util-l { flex: 1 1 auto; min-width: 0; }
  .util-r { flex: 0 0 auto; gap: 12px; }
  .util-l .util-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .mast-in { height: auto; grid-template-columns: auto 1fr auto; gap: 12px; padding: 11px 0; }
  .msearch { grid-column: 1 / -1; grid-row: 2; height: 44px; }
  .mtoggle { display: grid; order: -1; }
  .subnav { display: none; }
  .cart-btn { padding: 0 8px; }
  .cart-btn .label { display: none; }
  /* 语言按钮保留文字：评审要求「按钮明确显示当前语言」，而 EN/中文/ES 本来就只有 2–3 字 */
  .lang-btn { padding: 0 12px; }

  .hero { min-height: 0; }
  .hero-copy { padding: 30px 24px 24px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: .98rem; }
  /* 三枚圆图在 1040 断点已改成一行，这里只收紧留白（不再隐藏第三枚） */
  .hero-art { padding: 0 18px 24px; gap: 12px; }

  .cat-row { grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
  .cat b { font-size: .82rem; }
  .cat small { display: none; }

  .p-grid, .p-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .p-name { font-size: .9rem; }
  .p-price { font-size: 1rem; }
  .p-add { padding: 9px 10px; font-size: .82rem; }
  .p-zoom { display: none; }

  .toolbar { align-items: stretch; }
  .tb-right { width: 100%; gap: 8px; }
  .tb-search { width: 100%; order: 3; }
  .sel { flex: 1; }

  .why-grid, .steps { grid-template-columns: 1fr; }
  .promo { flex-direction: column; align-items: flex-start; }
  .fgrid { grid-template-columns: 1fr; }
  .done-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid > div:last-child { display: block; }

  /* 详情页底部固定加购 */
  .pdp-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--line); padding: 12px 14px;
    gap: 12px; align-items: center; box-shadow: 0 -2px 12px rgba(0, 0, 0, .07);
  }
  .pdp-sticky .info { flex: 1; min-width: 0; }
  .pdp-sticky .info b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-sticky .info small { color: var(--muted); font-size: .78rem; }
  .pdp-sticky .btn { flex: 0 0 auto; }
  .has-sticky { padding-bottom: 84px; }

  /* 购物车底部固定询盘 */
  .cart-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--line); padding: 12px 14px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .07);
  }
  .cart-sticky .meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 9px; }
}

@media (max-width: 440px) {
  /* 手机端商品列表保持两列（评审要求），只收紧内边距与字号，不塌成一列 */
  .p-grid, .p-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .p-body { padding-top: 11px; }
  .p-name { font-size: .84rem; min-height: 2.6em; }
  .p-sku { font-size: .68rem; }
  .p-price { font-size: .98rem; }
  .p-price span { font-size: .74rem; margin-left: 3px; }
  .p-meta { font-size: .72rem; }
  .p-badge { font-size: .62rem; padding: 4px 8px; }
  .p-add { padding: 8px 6px; font-size: .78rem; gap: 5px; }
  .p-add svg { width: 15px; height: 15px; }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.85rem; }
  .hero-actions .btn { width: 100%; }
  .citem { grid-template-columns: 64px 1fr auto; gap: 10px; }
  .citem-img { width: 64px; height: 64px; }
  .gal-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────── Print ─────────────────────────── */
@media print {
  .util, .mast, .subnav, .footer, .toast-wrap, .drawer, .mnav, .pdp-sticky, .cart-sticky,
  .fmask, .btn, .p-add { display: none !important; }
  body { font-size: 12pt; }
  .container { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

