/* ==========================================================================
   UsedSeek — Design System v2
   "Precision Wholesale"：工业精度 + 编辑式克制
   --------------------------------------------------------------------------
   1. 字体        2. 设计令牌     3. 基础重置     4. 排版
   5. 按钮        6. 图标        7. 表单         8. 页头/导航
   9. Hero       10. 品牌/分类   11. 商品卡      12. 库存页/筛选
   13. 详情页    14. 流程/特性   15. 分级/CTA    16. 页脚
   17. 内容页    18. 状态组件   19. 动效         20. 响应式
   ========================================================================== */

/* ---------- 1. 字体 ---------- */
@font-face {
  font-family: "Inter var";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight var";
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 中性色 —— 暖调纸感，比纯白更有印刷质感 */
  --ink: #0e1318;
  --ink-2: #1b242c;
  --ink-3: #2a3641;
  --body: #3d4b57;
  --muted: #6c7a87;
  --faint: #96a2ad;

  --line: #e5e2db;
  --line-soft: #efece6;
  --line-strong: #cfcac1;

  --white: #ffffff;
  --paper: #f7f6f2;
  --paper-2: #efece5;

  /* 信号色 —— 只用于主 CTA、激活态、极小面积强调 */
  --accent: #d9481a;
  --accent-d: #b33a0f;
  --accent-soft: rgba(217, 72, 26, 0.08);
  --ok: #0b6e4e;
  --ok-soft: rgba(11, 110, 78, 0.09);
  --warn: #8a5a05;
  --warn-soft: rgba(138, 90, 5, 0.1);
  --danger: #b3261e;
  --danger-soft: rgba(179, 38, 30, 0.08);

  /* 兼容旧变量名 */
  --navy: var(--ink);
  --navy-2: var(--ink-2);
  --navy-3: var(--ink-3);
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --line-2: var(--line-strong);

  /* 圆角 —— 克制：工业感来自直角与细线，不是圆润 */
  --r-xs: 2px;
  --r: 4px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 999px;

  /* 阴影 —— 只在浮层使用，卡片一律用 1px 描边 */
  --shadow-xs: 0 1px 2px rgba(14, 19, 24, 0.06);
  --shadow-sm: 0 2px 6px rgba(14, 19, 24, 0.06);
  --shadow: 0 2px 4px rgba(14, 19, 24, 0.04), 0 16px 32px -16px rgba(14, 19, 24, 0.22);
  --shadow-lg: 0 4px 8px rgba(14, 19, 24, 0.05), 0 32px 64px -24px rgba(14, 19, 24, 0.28);

  /* 排版 */
  --f-body: "Inter var", "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-display: "Inter Tight var", "Inter var", system-ui, -apple-system, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  /* 动效 —— 统一缓动，绝不各写各的 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;

  --max: 1240px;
  --header-h: 68px;
}

/* ---------- 3. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 注意：body 上不要写 overflow-x:hidden。
     那样 body 会变成滚动容器，而它自身高度等于内容高度，
     于是 .site-header 的 position:sticky 会跟着 body 一起滚走（实测 headerTop 变 -700）。
     横向裁切交给 html 上的 overflow-x:hidden 就够了。 */
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.pcard, .catcard, .brandwall a, .feat, .step, .gradecard, .pdp > * { min-width: 0; }

.skip {
  position: absolute !important;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ---------- 4. 排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.55em;
  color: var(--ink);
  font-family: var(--f-display);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; }
h3 { font-size: clamp(19px, 1.7vw, 25px); }
h4 { font-size: 16.5px; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

strong, b { font-weight: 600; color: var(--ink); }

a.link {
  color: var(--accent-d);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.link:hover { color: var(--accent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 880px; }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #b9c6d2; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: #93a3b2; }
.section--flush-top { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.section--dark .eyebrow { color: #ff8a5c; }
.eyebrow--plain::before { display: none; }

.lead {
  font-size: 17px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 62ch;
}

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 12px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  flex-wrap: wrap;
}
.section-head--row h2 { margin-bottom: 0; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  height: 46px;
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ico { flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover .ico--slide { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(179, 58, 15, 0.25); }
.btn--primary:hover { background: var(--accent-d); box-shadow: 0 4px 14px -4px rgba(179, 58, 15, 0.5); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }

.btn--onDark { border-color: rgba(255, 255, 255, 0.28); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn--onDark:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.5); }

.btn--quiet { color: var(--ink); background: transparent; padding: 0 10px; }
.btn--quiet:hover { background: var(--paper); }

.btn--sm { height: 38px; padding: 0 15px; font-size: 13px; gap: 7px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn--block { width: 100%; }

.btn[disabled], .btn.is-busy { opacity: 0.58; pointer-events: none; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
}
.arrow-link .ico { transition: transform var(--dur) var(--ease-out); }
.arrow-link:hover .ico { transform: translateX(3px); }
.arrow-link:hover { color: var(--accent-d); }

/* 行内加载指示 */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}
.spinner--dark { border-color: rgba(14, 19, 24, 0.18); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 6. 图标 ---------- */
.ico { flex: none; display: block; }
.ico-box {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink);
  margin-bottom: 20px;
}
.section--dark .ico-box { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ---------- 7. 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 12px 13px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #b8b2a7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14, 19, 24, 0.07);
}
.field .hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.field .err {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--danger);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .err { display: flex; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-note { font-size: 12px; color: var(--muted); line-height: 1.5; }

.form-msg {
  display: none;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.form-msg.is-ok { display: flex; background: var(--ok-soft); color: var(--ok); border-color: rgba(11, 110, 78, 0.2); }
.form-msg.is-err { display: flex; background: var(--danger-soft); color: var(--danger); border-color: rgba(179, 38, 30, 0.2); }
/* 微信号复制失败（main.js data-wx-fail） */
.us-wx.is-wx-fail .us-wx-idtip { color: var(--danger, #b32d2e); }

.rfq-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
}
.rfq-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.rfq-box h3 { margin-bottom: 8px; font-size: 22px; }
.rfq-box > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; max-width: 52ch; }
.rfq-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- 8. 页头 / 导航 ---------- */
.topbar {
  background: var(--ink);
  color: #8d9cab;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  gap: 16px;
  overflow: hidden;
}
.topbar .tb-left {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.topbar .tb-right { display: flex; gap: 20px; align-items: center; flex: none; }
.topbar .tb-right a,
.topbar .tb-right span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: #c3cfda; transition: color var(--dur-fast) var(--ease); }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 8px 24px -20px rgba(14, 19, 24, 0.5); }
.site-header .wrap { display: flex; align-items: center; gap: 34px; height: var(--header-h); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.035em;
  color: var(--ink);
  flex: none;
}
.logo-mark {
  position: relative;
  overflow: hidden;
  width: 30px;
  height: 30px;
  border-radius: var(--r-xs);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background var(--dur) var(--ease);
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 34%;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.logo:hover .logo-mark { background: var(--accent); }
.logo .dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }

/* 顶级导航项：直接子级 + 带下拉的父级，两者必须共用同一套排版 */
.nav > a,
.nav .has-sub > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--body);
  border-radius: var(--r);
  position: relative;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav > a:hover,
.nav .has-sub > a:hover { color: var(--ink); background: var(--paper); }

.nav > a.is-active,
.nav .has-sub.is-active > a,
.nav .current-menu-item > a { color: var(--ink); font-weight: 600; }
.nav > a.is-active::before,
.nav .has-sub.is-active > a::before,
.nav .current-menu-item > a::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav .has-sub,
.nav .menu-item-has-children { position: relative; display: flex; align-items: center; }

/* 下拉箭头 */
.nav .has-sub > a::after,
.nav .menu-item-has-children > a::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.4;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav .has-sub:hover > a::after,
.nav .has-sub:focus-within > a::after { opacity: 0.75; }

/* 悬停桥：补上 100% 到子菜单之间的 10px 空隙，否则鼠标下移时 :hover 丢失 */
.nav .has-sub::after,
.nav .menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 216px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 6px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.nav .has-sub:hover > .submenu,
.nav .has-sub:focus-within > .submenu,
.nav .menu-item-has-children:hover > .submenu,
.nav .menu-item-has-children:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.submenu a {
  display: block;
  padding: 8px 11px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--body);
  border-radius: var(--r-xs);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.submenu a:hover,
.submenu a:focus-visible { background: var(--paper); color: var(--ink); }
.submenu a.is-active { color: var(--accent-d, var(--accent)); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--r);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.burger:hover { border-color: var(--ink); }

/* 移动端抽屉 */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out), visibility var(--dur);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.mn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.mn-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}
.mn-body { padding: 8px 20px 24px; overflow: auto; flex: 1 1 auto; }
.mn-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.mn-body a .ico { color: var(--faint); }
.mn-body a:hover .ico { color: var(--accent); transform: translateX(2px); }
/* 抽屉读后台菜单后：子菜单项缩进为二级行，当前页高亮 */
.mn-body a.mn-link--sub {
  padding-left: 18px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.mn-body a.is-active { color: var(--accent); }
.mn-body a.is-active .ico { color: var(--accent); }
.mn-foot { padding: 20px; border-top: 1px solid var(--line); background: var(--paper); flex: none; }
.mn-foot .btn { width: 100%; }
.mn-foot p { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- 9. Hero ---------- */
.hero {
  background: var(--ink);
  color: #c4d0db;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 90% at 62% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 62% 0%, #000 15%, transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -220px;
  top: -180px;
  width: 720px;
  height: 720px;
  z-index: -1;
  background: radial-gradient(circle, rgba(217, 72, 26, 0.2), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #ff7a45; }
.hero p { font-size: 17px; line-height: 1.62; color: #9dadbd; max-width: 50ch; margin-bottom: 34px; }
.hero .eyebrow { color: #ff8a5c; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fd39a;
  box-shadow: 0 0 0 4px rgba(47, 211, 154, 0.16);
  flex: none;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}
.hero-stats > div { padding-right: 34px; margin-right: 34px; border-right: 1px solid rgba(255, 255, 255, 0.11); }
.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats strong {
  display: block;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.hero-stats span { font-size: 11.5px; color: #7f92a4; text-transform: uppercase; letter-spacing: 0.1em; }

/* 实时库存板 */
.stockboard {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;
}
.stockboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff9d6b 60%, transparent);
}
.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
}
.sb-head strong {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.sb-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}
.sb-rows { padding: 0 22px; }
.sb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.sb-row:last-child { border-bottom: 0; }
.sb-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-grade {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: var(--paper-2);
  color: var(--body);
  line-height: 1.5;
}
.sb-grade.is-a { background: var(--ok-soft); color: var(--ok); }
.sb-grade.is-b { background: var(--warn-soft); color: var(--warn); }
.sb-grade.is-c { background: rgba(90, 100, 110, 0.12); color: #55616c; }
.sb-meta {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  min-width: 52px;
}
.sb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.sb-foot a { font-weight: 600; color: var(--accent-d); display: inline-flex; align-items: center; gap: 5px; }
.sb-foot a:hover { color: var(--accent); }

/* 信任条 */
.trustbar-wrap { border-bottom: 1px solid var(--line); background: #fff; }
.trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trustbar .item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--body);
}
.trustbar .item:last-child { border-right: 0; }
.trustbar .ico { color: var(--accent-d); }
.trustbar b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.trustbar span { font-size: 12px; color: var(--muted); }

/* ---------- 10. 品牌墙 / 分类 ---------- */
.brandwall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}
.brandwall a {
  background: #fff;
  padding: 24px 10px;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: -0.015em;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.brandwall a:hover { background: var(--ink); color: #fff; }
.brandwall a:hover small { color: rgba(255, 255, 255, 0.6); }
.brandwall a small {
  display: block;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 3px;
  letter-spacing: 0;
  transition: color var(--dur-fast) var(--ease);
}

.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.catcard {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.catcard:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.catcard .ic {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--paper-2);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.catcard:hover .ic { background: var(--ink); color: #fff; }
.catcard h4 { margin-bottom: 6px; }
.catcard p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }
.catcard .arrow {
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--faint);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.catcard:hover .arrow { opacity: 1; transform: none; color: var(--accent); }

/* ---------- 11. 商品卡 ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-products--3 { grid-template-columns: repeat(3, 1fr); }
/* 带侧栏的库存页用 3 列：卡片宽度 ~290px，标题和规格才读得舒服 */
.grid-products--inv { grid-template-columns: repeat(3, 1fr); }

.pcard {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.pcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard:focus-visible { outline-offset: 3px; }

.pcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  overflow: hidden;
}
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.035); }

.pcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(14, 19, 24, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.09em;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  line-height: 1.4;
}
.pcard-badge--a { background: rgba(11, 110, 78, 0.94); }
.pcard-badge--b { background: rgba(138, 90, 5, 0.94); }
.pcard-badge--c { background: rgba(90, 100, 110, 0.94); }

.pcard-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard-brand {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 5px;
}
.pcard-title {
  font-family: var(--f-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.38;
  letter-spacing: -0.012em;
  margin-bottom: 9px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-specs { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.pcard-specs > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--body);
}
.pcard-spec {
  display: block;
  padding: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard-spec span { color: var(--faint); }
.pcard-spec b { font-weight: 500; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hover 时右上角出现"查看"箭头 */
.pcard-go {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(-3px, -3px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.pcard:hover .pcard-go { opacity: 1; transform: none; }

.pcard-foot {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.pcard-price {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.pcard-price small {
  display: block;
  font-family: var(--f-body);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0;
  margin-top: 3px;
}
.pcard-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 550;
  color: var(--ok);
  white-space: nowrap;
  padding-bottom: 2px;
}
.pcard-stock::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pcard-stock.is-low { color: var(--warn); }
.pcard-stock.is-ask { color: var(--faint); }

.ph-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(to right, rgba(14, 19, 24, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(14, 19, 24, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(140deg, #f6f4ef, #eae6dd);
  color: #b3aca0;
}

/* ---------- 12. 库存页 / 筛选 ---------- */
.archive-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 34px;
}
.archive-head h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.archive-head p { color: var(--muted); margin: 0; max-width: 72ch; font-size: 15px; }

.crumbs {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.crumbs a { transition: color var(--dur-fast) var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs .current { color: var(--body); }

.inv-layout {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 36px;
  align-items: start;
  padding: 32px 0 88px;
}

.filters {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 6px 18px 14px;
  background: #fff;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.filters-head strong {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.fclear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-d);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.fclear:hover { color: var(--accent); text-decoration: underline; }

.fgroup { border-bottom: 1px solid var(--line-soft); padding: 15px 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > h5 {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--faint);
  margin: 0 0 10px;
  font-weight: 650;
  font-family: var(--f-body);
}
.fopt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 2px;
  font-size: 13.5px;
  color: var(--body);
  cursor: pointer;
  border-radius: var(--r-xs);
  transition: color var(--dur-fast) var(--ease);
}
.fopt:hover { color: var(--ink); }
.fopt input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.fopt input:hover { border-color: var(--muted); }
.fopt input:checked { background: var(--ink); border-color: var(--ink); }
.fopt input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(42deg);
}
.fopt input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fopt .cnt { margin-left: auto; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.fopt:has(input:checked) { color: var(--ink); font-weight: 550; }

.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.price-range input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 19, 24, 0.07); }
.price-range span { color: var(--faint); font-size: 12px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  min-height: 38px;
}
.toolbar .count { font-size: 13.5px; color: var(--muted); }
.toolbar .count b { color: var(--ink); font-weight: 650; }
.toolbar form { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.toolbar label { font-size: 12.5px; color: var(--muted); }

.select {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  height: 38px;
  padding: 0 34px 0 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236c7a87' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.select:hover { border-color: #b8b2a7; }
.select:focus { outline: none; border-color: var(--ink); }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.chips:empty { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 6px 4px 11px;
  font-size: 12px;
  color: var(--body);
}
.chip a, .chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip a:hover, .chip button:hover { background: var(--ink); color: #fff; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pager .page-numbers {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--body);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pager .dots { border-color: transparent; }

/* ---------- 13. 商品详情 ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 56px;
  padding: 28px 0 72px;
  align-items: start;
}
.gallery-main {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
/* 缩略图是 button 包 img：键盘可聚焦（报告可访问性项），样式挪到 img 上 */
.gallery-thumbs button { padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; }
.gallery-thumbs button img {
  width: 82px;
  height: 62px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  opacity: 0.72;
}
.gallery-thumbs button:hover img,
.gallery-thumbs button:focus-visible img { opacity: 1; }
.gallery-thumbs button.is-active img { border-color: var(--ink); opacity: 1; }

.gallery-extra {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2px 18px;
  margin-top: 16px;
  background: #fff;
}
.gallery-extra > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.5;
}
.gallery-extra > div:last-child { border-bottom: 0; }
.gallery-extra .ico { color: var(--ok); flex: none; }

.pdp-title { font-size: clamp(25px, 2.6vw, 36px); margin-bottom: 12px; }.pdp-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.pdp-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; line-height: 1.6; }

.tag {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  background: var(--paper-2);
  color: var(--body);
  line-height: 1.5;
}
.tag--grade-a { background: var(--ok-soft); color: var(--ok); }
.tag--grade-b { background: var(--warn-soft); color: var(--warn); }
.tag--grade-c { background: rgba(90, 100, 110, 0.12); color: #55616c; }
.tag--stock { background: var(--ok-soft); color: var(--ok); }
.tag--stock.is-low { background: var(--warn-soft); color: var(--warn); }
.tag--stock.is-ask { background: var(--paper-2); color: var(--muted); }

.tiers {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.tiers table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tiers th, .tiers td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tiers th {
  background: var(--paper);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 650;
}
.tiers tbody tr:last-child td { border-bottom: 0; }
.tiers tbody tr:hover { background: #fcfbf9; }
.tiers td.price { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.tiers td.qty { font-variant-numeric: tabular-nums; color: var(--body); }

.pdp-price-big {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.pdp-price-big span { font-family: var(--f-body); font-size: 13px; font-weight: 450; color: var(--muted); letter-spacing: 0; }

.pdp-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.pdp-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.pdp-facts div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.pdp-facts div:nth-child(odd) { padding-right: 12px; }
.pdp-facts span {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}
.pdp-facts b { color: var(--ink); font-weight: 550; }
.pdp-note { font-size: 12px; color: var(--faint); margin-top: 16px; line-height: 1.6; }

.spec-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:first-child { border-top: 1px solid var(--line); }
.spec-table th { text-align: left; padding: 11px 14px; width: 38%; color: var(--muted); font-weight: 450; background: var(--paper); }
.spec-table td { padding: 11px 14px; color: var(--ink); font-weight: 450; }

.tabbar { border-bottom: 1px solid var(--line); margin-bottom: 32px; display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 30px; }
.tabs button {
  background: none;
  border: 0;
  padding: 15px 0;
  font-family: var(--f-body);
  font-weight: 550;
  font-size: 14.5px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.tabpane { display: none; animation: fadeUp var(--dur) var(--ease-out); }
.tabpane.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pdp-section { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 80px; }


/* 表单旁的联系方式块 —— 平衡左右栏高度 */
.aside-contact {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.aside-contact > a,
.aside-contact > div {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 13.5px;
}
.aside-contact > a:hover { color: var(--accent-d); }
.aside-contact .ico { color: var(--faint); margin-top: 2px; flex: none; }
.aside-contact b {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 650;
  margin-bottom: 2px;
}
.aside-contact .aside-note {
  border-bottom: 0;
  color: var(--muted);
  font-size: 12.5px;
  align-items: center;
  padding-bottom: 0;
}
.aside-contact .aside-note .ico { margin-top: 0; }

/* ---------- 14. 流程 / 特性 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { padding: 0 22px 0 0; position: relative; }
.step::before {
  counter-increment: s;
  content: "0" counter(s);
  display: block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #ff8a5c;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step h4 { font-size: 15.5px; margin-bottom: 7px; color: #fff; }
.step p { font-size: 12.5px; color: #8b9dad; margin: 0; line-height: 1.6; }

.feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}
.feat { background: #fff; padding: 26px 24px; }
.feat .n {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.feat h4 { font-size: 14.5px; margin: 0 0 7px; }
.feat p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- 15. 分级 / CTA ---------- */
.gradegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gradecard {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gradecard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.gradecard .lvl {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.gradecard .lvl small {
  font-family: var(--f-body);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.gradecard ul { font-size: 13px; color: var(--body); padding-left: 0; margin: 14px 0 0; list-style: none; }
.gradecard li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.55;
}
.gradecard li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
}
.gradecard .desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

.ctabar {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 44px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.ctabar::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(217, 72, 26, 0.22), transparent 65%);
  pointer-events: none;
}
.ctabar h3 { color: #fff; margin: 0 0 8px; }
.ctabar p { color: #93a3b2; margin: 0; font-size: 14px; max-width: 52ch; }
.ctabar .actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

/* 数据条（编辑式列表） */
.checklist { list-style: none; padding: 0; margin: 26px 0 0; font-size: 14px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist .ico { color: var(--ok); margin-top: 3px; }
.section--dark .checklist li { border-color: rgba(255, 255, 255, 0.1); }
.section--dark .checklist .ico { color: #2fd39a; }

/* ---------- 16. 页脚 ---------- */
.site-footer { background: var(--ink); color: #8b9dad; padding: 68px 0 0; font-size: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 52px;
}
.site-footer h5 {
  color: #fff;
  font-family: var(--f-body);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  font-weight: 650;
}
.site-footer a { color: #8b9dad; display: block; padding: 5px 0; font-size: 13px; transition: color var(--dur-fast) var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo-mark { background: var(--accent); }
.site-footer .logo:hover .logo-mark { background: #fff; color: var(--ink); }
.footer-about p { font-size: 13px; line-height: 1.72; color: #7d8fa0; max-width: 36ch; margin-bottom: 18px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badges span {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xs);
  padding: 4px 8px;
  color: #8b9dad;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #6d7f90;
  flex-wrap: wrap;
}
.footer-bottom a { display: inline; padding: 0; color: #6d7f90; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .pay { display: flex; gap: 12px; align-items: center; }

/* 浮动联系 */
.fab { position: fixed; right: 22px; bottom: 26px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.fab a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease-out), background var(--dur-fast) var(--ease);
}
.fab a:hover { transform: translateY(-2px) scale(1.03); }
.fab a.wa { background: #1faa54; }

/* 移动端底部操作条 */
.mobile-cta { display: none; }

/* ---------- 17. 内容页 ---------- */
.page-hero { background: var(--ink); color: #b9c6d2; padding: 68px 0; position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(100% 100% at 20% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(100% 100% at 20% 0%, #000 10%, transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: #9dadbd; max-width: 62ch; margin: 0; font-size: 16px; }
.page-hero .crumbs { color: #6d7f90; margin-bottom: 18px; }
.page-hero .crumbs .current { color: #b9c6d2; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; font-size: 27px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; font-size: 19px; }
.prose p, .prose li { font-size: 15.5px; color: var(--body); line-height: 1.72; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 13.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.prose th { background: var(--paper); font-weight: 600; color: var(--ink); }
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-size: 16px;
}
.prose img { border-radius: var(--r-lg); margin: 28px 0; }
.prose code { font-family: var(--f-mono); font-size: 0.9em; background: var(--paper-2); padding: 2px 5px; border-radius: var(--r-xs); }

/* ---------- 18. 状态组件 ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--paper-2); }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.sk-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.sk-media { aspect-ratio: 4 / 3; }
.sk-body { padding: 15px 16px 16px; }
.sk-line { height: 10px; border-radius: 2px; margin-bottom: 9px; }
.sk-line--sm { width: 40%; }
.sk-line--lg { width: 82%; }
.sk-line--price { width: 55%; height: 16px; margin-top: 16px; }

.is-loading .grid-products { opacity: 0.45; pointer-events: none; transition: opacity var(--dur) var(--ease); }

/* 顶部加载条 —— 局部刷新时替代整页骨架，避免布局跳动 */
.loadbar {
  position: relative;
  height: 2px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 18px;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.loadbar.is-on { opacity: 1; }
.loadbar i {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 32%;
  background: var(--accent);
  border-radius: 2px;
  animation: slidebar 1.05s var(--ease) infinite;
}
@keyframes slidebar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(420%); }
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 56px 24px;
  text-align: center;
  background: var(--paper);
}
.empty .ico { margin: 0 auto 16px; color: var(--faint); }
.empty h3 { margin-bottom: 8px; font-size: 19px; }
.empty p { color: var(--muted); font-size: 14px; max-width: 46ch; margin: 0 auto 20px; }
.empty .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.state-error {
  grid-column: 1 / -1;
  border: 1px solid rgba(179, 38, 30, 0.25);
  background: var(--danger-soft);
  border-radius: var(--r-lg);
  padding: 40px 24px;
  text-align: center;
}
.state-error .ico { margin: 0 auto 14px; color: var(--danger); }
.state-error h3 { color: var(--danger); font-size: 18px; margin-bottom: 6px; }
.state-error p { color: #7d3a35; font-size: 13.5px; margin: 0 0 18px; }

/* ---------- 19. 动效 ---------- */
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
.js [data-reveal] {
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1160px) {
  .hero-inner { gap: 44px; }
  .hero-stats > div { padding-right: 24px; margin-right: 24px; }
  .brandwall { grid-template-columns: repeat(4, 1fr); }
  .nav { gap: 0; }
  .nav > a, .nav .menu-item > a { padding: 8px 9px; font-size: 13.5px; }
}

@media (max-width: 1024px) {
  .grid-products,
  .grid-products--inv { grid-template-columns: repeat(3, 1fr); }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 60px; padding-bottom: 64px; }
  .hero-media { max-width: 520px; }
  .pdp { grid-template-columns: 1fr; gap: 36px; }
  .spec-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .trustbar { grid-template-columns: repeat(2, 1fr); }
  .trustbar .item:nth-child(2) { border-right: 0; }
  .trustbar .item:nth-child(1),
  .trustbar .item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section { padding: 68px 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .nav, .header-cta .btn--ghost { display: none; }
  .burger { display: flex; }
  .header-cta .btn--primary { display: none; }
  .site-header .wrap { gap: 12px; }

  .inv-layout { grid-template-columns: 1fr; gap: 20px; padding-bottom: 64px; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; animation: fadeUp var(--dur) var(--ease-out); }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .gradegrid { grid-template-columns: 1fr; }
  .ctabar { padding: 32px; }
  .fab { display: none; }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { width: 100%; height: 44px; }
  body { padding-bottom: 66px; }

  .hero-stats { flex-wrap: wrap; gap: 20px 0; }
  .hero-stats > div { padding-right: 22px; margin-right: 22px; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 52px 0; }
  .section--tight { padding: 40px 0; }
  .wrap { padding: 0 18px; }
  .section-head { margin-bottom: 32px; }

  h1 { font-size: clamp(30px, 8.4vw, 40px); }
  h2 { font-size: 25px; }

  .grid-products,
  .grid-products--inv,
  .grid-products--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-body { padding: 12px; }
  .pcard-title { font-size: 13.5px; min-height: 37px; margin-bottom: 7px; }
  .pcard-specs { font-size: 11.5px; margin-bottom: 11px; }
  .pcard-price { font-size: 17px; }
  .pcard-stock { font-size: 10.5px; }
  .pcard-foot { padding-top: 10px; gap: 6px; }
  .pcard-badge { font-size: 9px; padding: 3px 6px; }
  .pcard-floor { display: none; }
  .pcard-price small { font-size: 10px; }

  .catgrid { grid-template-columns: 1fr; gap: 10px; }
  .catcard { padding: 20px; }
  .catcard .ic { margin-bottom: 14px; }

  .brandwall { grid-template-columns: repeat(2, 1fr); }
  .brandwall a { padding: 16px 8px; font-size: 14px; }

  .trustbar { grid-template-columns: 1fr; }
  .trustbar .item { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; }
  .trustbar .item:last-child { border-bottom: 0; }

  .feats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .rfq-box { padding: 22px; }
  .rfq-box::before { display: none; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats span { font-size: 10.5px; }
  .hero p { font-size: 15.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .sb-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar { display: none; }
  .pdp-facts { grid-template-columns: 1fr; }
  .pdp-facts div:nth-child(odd) { padding-right: 0; }
  .tiers th, .tiers td { padding: 9px 10px; font-size: 12.5px; }
  .tiers th:nth-child(3), .tiers td:nth-child(3) { display: none; }
  .ctabar { padding: 26px 22px; }
  .page-hero { padding: 44px 0; }
  .tabs { gap: 22px; }
  .tabs button { font-size: 13.5px; }
  .pdp-actions .btn { flex: 1 1 auto; }
  .gallery-thumbs button img { width: 64px; height: 50px; }
  .section-head--row { align-items: flex-start; }
  .toolbar label { display: none; }
  .toolbar form { gap: 0; }
}

/* 仅移动端显示 */
.only-mobile { display: none; }
@media (max-width: 900px) {
  .only-mobile { display: inline-flex; }
}

/* ---------- 21. 布局工具 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split--aside { grid-template-columns: 1.35fr 1fr; }
.split--lead { grid-template-columns: 1.15fr 1fr; }
.stack > * + * { margin-top: 16px; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }

@media (max-width: 900px) {
  .split, .split--aside, .split--lead { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   21. 多语言：语言切换器 + 中文排版
   ========================================================================== */

.lang-switch { display: inline-flex; align-items: center; gap: 2px; }

.lang-switch a {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-switch a:hover { background: var(--paper-2); color: var(--ink); }
.lang-switch a.is-current { background: var(--ink); color: #fff; }

/* 深色顶栏内的变体 */
.topbar .lang-switch a { color: #8b9bab; }
.topbar .lang-switch a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.topbar .lang-switch a.is-current { background: rgba(255, 255, 255, .16); color: #fff; }

/* 移动端菜单底部 */
.mn-foot .lang-switch { margin-top: 14px; }
.mn-foot .lang-switch a { height: 30px; font-size: 12px; border: 1px solid var(--line); }

/* 币种切换器：与语言切换器同组呈现，用一条细竖线分隔 */
.cur-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.cur-switch a,
.cur-switch span.is-current {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.cur-switch a:hover { background: var(--paper-2); color: var(--ink); }
.cur-switch span.is-current,
.cur-switch a.is-current { background: var(--ink); color: #fff; }

.topbar .cur-switch { border-left-color: rgba(255, 255, 255, .16); }
.topbar .cur-switch a { color: #8b9bab; }
.topbar .cur-switch a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.topbar .cur-switch span.is-current,
.topbar .cur-switch a.is-current { background: rgba(255, 255, 255, .16); color: #fff; }

.mn-foot .cur-switch { margin: 8px 0 0; padding: 0; border: 0; }
.mn-foot .cur-switch a,
.mn-foot .cur-switch span.is-current { height: 30px; font-size: 12px; border: 1px solid var(--line); }

/* 折算说明：只在显示非美元币种时出现 */
.price-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.price-note--wide {
  margin: 0 0 18px;
  padding: 9px 13px;
  background: var(--paper-2);
  border-left: 2px solid var(--line);
  border-radius: 4px;
}

/* 中文：Inter 无 CJK 字形，回退到系统黑体；行高与字距单独放宽 */
html[lang^="zh"] {
  --f-body: "Inter var", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  --f-display: "Inter Tight var", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}
html[lang^="zh"] body { letter-spacing: 0; }
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] h4 { letter-spacing: 0; line-height: 1.45; }
html[lang^="zh"] p,
html[lang^="zh"] li { line-height: 1.85; }
html[lang^="zh"] .eyebrow { letter-spacing: .1em; }

@media (max-width: 720px) {
  .topbar .lang-switch--top,
  .topbar .cur-switch--top { display: none; }
}

/* =========================================================================
   22. 联系方式：微信 / 电话
   ---------------------------------------------------------------------- */

.us-wx { position: relative; display: inline-flex; align-items: center; gap: 7px; cursor: default; }
.us-wx .ico { flex: none; }
.us-wx[role="button"] { cursor: pointer; }
.us-wx-id { font-variant-numeric: tabular-nums; }

.us-wx-qr {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 150px;
  height: auto;
  max-width: none;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(10, 20, 35, .18), 0 0 0 1px rgba(10, 20, 35, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  pointer-events: none;
  z-index: 60;
}
.us-wx:hover .us-wx-qr,
.us-wx:focus .us-wx-qr,
.us-wx:focus-within .us-wx-qr { opacity: 1; visibility: visible; transform: none; }

/* 页脚联系列的纯文本行，和链接同一套行距 */
.site-footer .f-contact-line { display: block; padding: 5px 0; font-size: 13px; color: #8b9dad; transition: color var(--dur-fast) var(--ease); }
.site-footer .f-contact-line:hover { color: #fff; }
.site-footer .us-wx { max-width: 100%; }

/* 移动端菜单底部 */
.mn-contact { display: flex; flex-direction: column; margin: 12px 0 2px; }
.mn-contact a,
.mn-contact > span { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13px; color: var(--body); text-decoration: none; }
.mn-contact .ico { color: var(--faint); flex: none; }

/* 商品页按钮形态：主按钮独占一行，次要联系按钮平分下一行 */
.pdp-actions .btn--primary { flex: 1 1 100%; justify-content: center; }
.pdp-secondary { display: flex; gap: 10px; flex: 1 1 100%; flex-wrap: wrap; }
.pdp-secondary .btn { flex: 1 1 0; justify-content: center; min-width: 0; }
.pdp-actions .us-wx--btn { user-select: none; }
.pdp-actions .us-wx--btn .us-wx-qr { bottom: calc(100% + 12px); }

/* 联系页联系方式卡片 */
.contact-block {
  margin: 22px 0 34px;
  padding: 2px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
}
.cb-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.5;
  text-decoration: none;
}
.cb-row:last-child { border-bottom: 0; }
.cb-row .ico { color: var(--faint); margin-top: 2px; flex: none; }
.cb-row b {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
/* 卡片在 .prose 里，要压掉正文链接的下划线和强调色 */
.prose .contact-block a,
.prose .contact-block a:visited { color: var(--body); text-decoration: none; border-bottom: 0; box-shadow: none; }
.prose .contact-block a:hover { color: var(--accent-d); }
a.cb-row { transition: color var(--dur-fast) var(--ease); }
.cb-row .us-wx { align-items: flex-start; }

/* ---------- 22. 主题通用件（自定义 Logo / 搜索 / 评论） ---------- */

/* 字标：原来的 <span>Used<span class=dot>Seek</span></span> 现在包了一层，保持行内排版 */
.logo-text { display: inline; }
.logo-mark { flex: none; }
.logo-img { display: block; height: 30px; width: auto; max-width: 220px; object-fit: contain; }
.site-footer .logo-img { filter: none; }

/* 搜索表单 */
.search-wrap { margin-top: 22px; max-width: 460px; }
.search-form { display: flex; align-items: center; gap: 0; position: relative; }
.search-form .search-field {
  width: 100%;
  height: 44px;
  padding: 0 46px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
.search-form .search-field::placeholder { color: var(--faint); }
.search-form .search-field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 19, 24, 0.06); }
.search-form .search-submit {
  position: absolute;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.search-form .search-submit:hover { color: var(--ink); background: var(--paper-2); }

/* 页头搜索入口：桌面端图标按钮 + 下拉面板（>900）；≤900 由抽屉顶部的搜索框承接 */
.search-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--r);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease);
}
.search-toggle:hover { border-color: var(--ink); }

.header-search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(14, 19, 24, 0.12);
}
.site-header.has-search-open .header-search { display: block; }
.site-header.has-search-open .header-search .wrap { animation: fadeUp var(--dur) var(--ease-out); }
.header-search .search-wrap { margin: 18px 0; max-width: none; }

/* 抽屉顶部的搜索框 */
.mn-search { margin: 14px 0 12px; }
.mn-search .search-field { height: 44px; }

@media (min-width: 901px) {
  .search-toggle { display: flex; }
}

/* 搜索结果列表 */
.slist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.slist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease);
}
.slist-item:hover { background: var(--paper-2); padding-left: 12px; }
.slist-tag {
  flex: none;
  width: 78px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.slist-body { flex: 1 1 auto; min-width: 0; }
.slist-title { display: block; font-family: var(--f-display); font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.slist-excerpt { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slist-item .ico { flex: none; color: var(--faint); }
.slist-item:hover .ico { color: var(--accent); }

/* 评论 */
.comments { padding-top: 30px; border-top: 1px solid var(--line); }
.comments-title { font-size: 17px; margin: 0 0 18px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.comment-list .comment:last-child { border-bottom: 0; }
.comment-list .comment .children { list-style: none; margin: 14px 0 0 18px; padding: 0; border-left: 2px solid var(--line-soft); padding-left: 18px; }
.comment-author { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.comment-metadata { margin: 2px 0 8px; font-size: 11.5px; color: var(--faint); }
.comment-metadata a { color: var(--faint); text-decoration: none; }
.comment-content { font-size: 14px; line-height: 1.7; color: var(--body); }
.comment-content p { margin: 0 0 10px; }
.reply a { font-size: 12px; color: var(--accent-d); text-decoration: none; }
.comment-respond { margin-top: 26px; }
.comment-respond .comment-reply-title { font-size: 16px; margin: 0 0 6px; }
.comment-notes { font-size: 12.5px; color: var(--faint); margin: 0 0 14px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; margin-bottom: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 19, 24, 0.06); }
.comment-form .form-submit { margin-top: 4px; }
.comment-form .required { color: var(--accent); }

/* 无障碍：屏幕阅读器专用文本 */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   24. 移动端适配（按 360 / 390 / 414 宽校验）
   ---------------------------------------------------------------------- */

/* iOS Safari：表单控件字号小于 16px 时，聚焦会自动放大整个页面。
   640 以下把输入类控件统一到 16px，桌面端不受影响。 */
@media (max-width: 900px) {
  .field input,
  .field select,
  .field textarea,
  .price-range input,
  .search-form .search-field,
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea { font-size: 16px; }

  .select { height: 42px; font-size: 15px; }
}

@media (max-width: 640px) {
  /* 触控热区：文字型链接补到 44px 高，手指点得中 */
  .arrow-link { min-height: 44px; }
  .site-footer a { padding: 8px 0; }
  .footer-bottom a { display: inline-block; padding: 6px 0; }

  /* 筛选项：原来 28px 一行，手机上不好点；勾选框也放大 */
  .fopt { padding: 9px 2px; font-size: 14.5px; }
  .fopt input { width: 18px; height: 18px; }
  .fgroup { padding: 16px 0; }

  /* 正文三列表格：收紧内边距，避免每列只放得下一两个字 */
  .prose th, .prose td { padding: 9px 10px; font-size: 13px; }

  /* 商品卡上 10~11.5px 的小字抬一档，兼顾信息密度 */
  .pcard-brand { font-size: 11px; }
  .pcard-specs { font-size: 12px; }
  .pcard-stock { font-size: 11px; }
  .pcard-floor { font-size: 10.5px; }

  /* 资讯 / 博客：手机上两列会挤成一条窄缝，改一列大图 */
  .grid-posts { grid-template-columns: 1fr !important; gap: 16px; }
  .grid-posts .pcard-media { aspect-ratio: 16 / 9; }
  .grid-posts .pcard-title {
    min-height: 0;
    font-size: 16.5px;
    -webkit-line-clamp: 3;
  }
  .grid-posts .pcard-specs { font-size: 13px; margin-bottom: 8px; }
  .grid-posts .pcard-foot { padding-top: 0; }
}

/* 筛选提交后回到结果顶部时，避开吸顶的页头 */
#us-toolbar { scroll-margin-top: calc(var(--header-h) + 14px); }

/* 移动端筛选面板的关闭键（面板展开后"筛选"按钮会被推到下方，需要一个就近的出口） */
.filters-head .fclear { margin-left: auto; }
.fclose {
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.fclose:hover { color: var(--ink); border-color: var(--line-strong); }

/* 筛选面板收起时别留下空行：aside 高度为 0 但仍占一个 grid 间隙 */
@media (max-width: 900px) {
  .inv-layout { row-gap: 0; }
  .filters.is-open { margin-bottom: 20px; }
  #us-chips:empty { display: none; }
}

/* 已选筛选条件为空时容器必须真正为空（模板已去掉多余空白），:empty 才能收起 */
.chips { margin-bottom: 18px; }
.chips:empty { display: none; }

/* 触屏反馈：去掉 iOS 的灰色块，改成按下轻微下沉 */
@media (max-width: 900px) {
  a, button, label, .pcard { -webkit-tap-highlight-color: transparent; }
  .btn:active { transform: translateY(1px); }
  .pcard:active { opacity: .92; }
  .mobile-nav .mn-body { overscroll-behavior: contain; }
}

/* 商品页：底部固定条已经有 WhatsApp，页内这一栏就别再重复，只留微信 / 电话 */
@media (max-width: 640px) {
  .pdp-secondary .pdp-wa { display: none; }
}

/* =========================================================================
   25. 页头语言切换（手机端常驻）
   ----------------------------------------------------------------------
   顶部信息条在 640 以下整条隐藏、在 720 以下会藏掉里面的语言/币种切换，
   之前手机上只有拉开抽屉才能换语言。买家往往只是想先看中文，
   所以在页头常驻一个小胶囊，和顶部信息条里那个严格互斥，不会出现两份。
   胶囊位于 logo 和汉堡键之间的中间列（.header-lang 弹性占位居中），
   构成「logo | 中英 | 菜单」三段式；窄屏时字标先省略，胶囊不会被挤走。
   币种不单独放：切语言时 us_lang_switcher 会清掉 us_cur，价格自动回到该语言的默认币种。
   ========================================================================== */

.lang-switch--head,
.header-lang { display: none; }

@media (max-width: 720px) {
  /* 中间列：吃掉 logo 与汉堡键之间的全部剩余空间，胶囊在其中水平居中 */
  .header-lang {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }
  .lang-switch--head {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: none;
    height: 36px;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
  }
  .lang-switch--head a {
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--muted);
  }
  .lang-switch--head a:hover { background: var(--paper-2); color: var(--ink); }
  .lang-switch--head a.is-current,
  .lang-switch--head a.is-current:hover { background: var(--ink); color: #fff; }

  /* 站名很长时让字标自己省略，别把切换器和汉堡挤出屏幕 */
  .site-header .logo { flex: 0 1 auto; min-width: 0; }
  .site-header .logo-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-cta { flex: none; gap: 8px; }
}

/* 超窄屏：胶囊再收一点，给字标留出呼吸空间 */
@media (max-width: 340px) {
  .lang-switch--head a { padding: 0 7px; }
}

/* =========================================================================
   26. 中文站联系渠道：微信顶替 WhatsApp
   ----------------------------------------------------------------------
   国内买家普遍没有 WhatsApp。规则统一在 inc/lang.php 的 us_is_zh()：
   中文页面不出 WhatsApp，悬浮球 / 底部操作条 / 商品页按钮改用微信（点按浮出二维码），
   没配微信号就退到电话。英文站不受影响。
   ========================================================================== */

/* 悬浮球形态：和 WhatsApp 球同尺寸，微信绿 */
.fab .us-wx--ball {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), background var(--dur-fast) var(--ease);
}
.fab .us-wx--ball:hover { transform: translateY(-2px) scale(1.03); }

/* 悬浮球在屏幕右下角，二维码要往上、往左展开，别探出屏幕右边 */
.fab .us-wx--ball .us-wx-qr {
  left: auto;
  right: 0;
  bottom: calc(100% + 12px);
}

/* 移动端底部操作条：微信按钮复用 .btn--ghost 的观感 */
.mobile-cta .us-wx--btn { user-select: none; }
.mobile-cta .us-wx--btn .us-wx-qr { bottom: calc(100% + 14px); }
.mobile-cta > .btn--primary:only-child { grid-column: 1 / -1; }

/* 中文商品页：底部固定条已经有微信，页内这一栏手机上就别再重复 */
@media (max-width: 640px) {
  html[lang^="zh"] .pdp-secondary .us-wx--btn { display: none; }
}

/* 没上传二维码时，点按「微信」弹的是微信号卡片，长按或点按即复制 */
.us-wx-idtip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  padding: 9px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(10, 20, 35, .18), 0 0 0 1px rgba(10, 20, 35, .06);
  font-size: 13px;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  pointer-events: none;
  z-index: 60;
}
.us-wx-idtip b { font-weight: 650; font-variant-numeric: tabular-nums; }
.us-wx:hover .us-wx-idtip,
.us-wx:focus .us-wx-idtip,
.us-wx:focus-within .us-wx-idtip,
.us-wx.is-open .us-wx-idtip { opacity: 1; visibility: visible; transform: none; }
.us-wx.is-copied .us-wx-idtip { color: #07c160; }

/* 触屏点按开合（main.js 切换 .is-open），与 hover/focus 同一套显隐 */
.us-wx.is-open .us-wx-qr { opacity: 1; visibility: visible; transform: none; }

/* 悬浮球在右下角，号码卡片同样要往左展开 */
.fab .us-wx--ball .us-wx-idtip { left: auto; right: 0; }

/* 底部操作条：弹层从条上方探出，多留一点间距 */
.mobile-cta .us-wx--btn .us-wx-idtip { bottom: calc(100% + 14px); }

/* =========================================================================
   27. 商品页标准化检测清单（成色与分级 Tab）
   ----------------------------------------------------------------------
   拍机堂式验收报告：27 项默认全通过，后台勾了异常的标橙色。
   数据源：us_qc_checklist()（inc/product-meta.php）+ _qc_exceptions meta。
   ========================================================================== */
.qc-card {
  max-width: 860px;
  margin: 18px auto 24px;
  padding: 18px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}
.qc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.qc-title { font-weight: 600; font-size: 15px; }
.qc-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1a7f37;
}
.qc-count.has-bad { color: var(--accent); }
.qc-count.has-bad::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.qc-group { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.qc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 28px;
}
.qc-grid li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}
.qc-grid li .ico { flex: none; margin-top: 2px; }
.qc-grid li.is-ok .ico { color: #1a7f37; }
.qc-grid li.is-bad { color: var(--accent); font-weight: 600; }
.qc-grid li.is-bad .ico { color: var(--accent); }
.qc-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--faint); }

@media (max-width: 640px) {
  .qc-card { margin: 16px 0 20px; padding: 14px 16px 16px; }
  .qc-grid { grid-template-columns: 1fr; gap: 9px; }
}

/* 检测清单异常项的实拍缩略图 + 点击放大灯箱 */
.qc-thumb {
  flex: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease);
}
.qc-thumb:hover { transform: scale(1.06); }
.qc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.us-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 13, 16, 0.86);
  cursor: zoom-out;
}
.us-lightbox.is-open { display: flex; animation: fadeUp var(--dur) var(--ease-out); }
.us-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.us-lightbox-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.us-lightbox-x:hover { background: rgba(255, 255, 255, 0.26); }
