/* 字体：Mona Sans 可变字体，通过字宽轴区分标题和正文 */
@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-latin-wdth-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* 配色取自客户报价单的深海军蓝和青绿色 */
:root {
  --navy: #0F2438;
  --navy-deep: #0A1A2A;
  --teal: #2DC4B2;
  --teal-ink: #00766F;
  --paper: #F2F6F8;
  --white: #FFFFFF;
  --ink: #12293F;
  --slate: #54687A;
  --line: #D8E2E9;
  --line-strong: #B4C4D0;
  --on-dark: #FFFFFF;
  --on-dark-soft: #B7C7D4;
  --line-dark: rgba(255, 255, 255, 0.14);
  --wa-green: #25D366;
  --wa-dark: #075E54;
  --error: #B3261E;

  --bar: 76px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(64px, 8vw, 112px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--teal); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 标题层级 */
h1 {
  font-size: clamp(2.3rem, 1.1rem + 3.7vw, 4.25rem);
  font-stretch: 116%;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 1.25rem + 2vw, 3rem);
  font-stretch: 114%;
  font-weight: 560;
  letter-spacing: -0.016em;
  line-height: 1.08;
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
}

.lede {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--slate);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--small { min-height: 42px; padding: 8px 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--teal); color: var(--navy-deep); }
.btn--primary:hover { background: #4FD6C6; }

.btn--line { border-color: rgba(255, 255, 255, 0.34); background: transparent; color: var(--on-dark); }
.btn--line:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, 0.07); }

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

.btn--dark { background: var(--navy); color: var(--on-dark); }
.btn--dark:hover { background: #1A3752; }

.btn--plain { background: transparent; color: var(--ink); }
.btn--plain:hover { background: var(--paper); }

/* 白字放在 WhatsApp 亮绿上对比度不足，文字按钮改用品牌的深青绿 */
.btn--wa { background: var(--wa-dark); color: var(--white); }
.btn--wa:hover { background: #0A7266; }

.wa-glyph { width: 20px; height: 20px; flex: none; fill: currentColor; }
.wa-glyph--green { fill: var(--wa-green); }

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 36, 56, 0.94);
  color: var(--on-dark);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--bar);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.0625rem;
  font-stretch: 112%;
  font-weight: 620;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { flex: none; width: auto; height: 60px; padding: 3px 6px; border-radius: 8px; background: #FEFEFE; }
.topnav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
}
.topnav a {
  color: var(--on-dark-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.topnav a:hover { color: var(--on-dark); }

/* 首屏 */
.hero {
  background: var(--navy);
  color: var(--on-dark);
  padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5vw, 64px);
}
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.hero-lede { color: var(--on-dark-soft); font-size: 1.125rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.instrument {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* 孔板：外壳由脚本按尺寸绘制，保留真实微孔板 A1 位的切角 */
.plate {
  position: relative;
  padding: 16px 24px 24px 14px;
}
.plate-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 28px 48px rgba(3, 12, 22, 0.5));
}
.plate-grid {
  position: relative;
  display: grid;
  grid-template-columns: 22px repeat(var(--cols, 12), minmax(0, 1fr));
  gap: clamp(4px, 0.7vw, 9px);
}
.plate-label {
  align-self: center;
  justify-self: center;
  color: rgba(183, 199, 212, 0.72);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-block: 4px;
}

.well {
  --mix: calc(var(--i) * 100%);
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%,
      color-mix(in oklab, var(--c) var(--mix), var(--navy-deep)) 0%,
      color-mix(in oklab, var(--c) calc(var(--i) * 94%), var(--navy-deep)) 62%,
      color-mix(in oklab, var(--c) calc(var(--i) * 42%), #060F19) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 3px 6px rgba(0, 0, 0, 0.4),
    0 0 calc(var(--i) * var(--i) * 24px) color-mix(in oklab, var(--c) calc(var(--i) * 50%), transparent);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.625rem, 0.45rem + 0.42vw, 0.8125rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: opacity 0.15s ease;
}
.well--bright { color: #06121D; }
.well--empty {
  background: #0B1C2C;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 3px 6px rgba(0, 0, 0, 0.4);
}
.well[data-i]:hover { outline: 1px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.well[aria-current="true"] { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.well:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.well.is-dim { opacity: 0.22; }

/* 首屏唯一的动效：读板器从左到右扫过一次 */
.plate-scan { display: none; }
.plate.is-reading .well {
  animation: well-read 0.5s ease-out both;
  animation-delay: calc(var(--col) * var(--step, 70ms) + 200ms);
}
.plate.is-reading .plate-scan {
  display: block;
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 40px;
  width: 2px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.85) 18%, rgba(255, 255, 255, 0.85) 82%, transparent);
  box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.35);
  animation: plate-scan var(--sweep, 840ms) linear 200ms both;
}
@keyframes well-read {
  from { filter: brightness(0.16) saturate(0.1); }
  55% { filter: brightness(1.45) saturate(1.1); }
  to { filter: none; }
}
@keyframes plate-scan {
  from { left: 40px; opacity: 1; }
  92% { opacity: 1; }
  to { left: calc(100% - 24px); opacity: 0; }
}

.plate-figure figcaption {
  margin-top: 16px;
  max-width: 68ch;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* 读数面板 */
.readout { padding-top: 4px; min-height: 320px; }
.readout-coord {
  color: var(--on-dark-soft);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.readout-name {
  margin-top: 6px;
  font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2.25rem);
  font-stretch: 112%;
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.1;
}
.readout-note { margin-top: 6px; color: var(--on-dark-soft); font-size: 0.9375rem; }
.readout-class {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
}
.readout .skus { margin-top: 18px; }
.readout-more {
  display: inline-block;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.readout-more:hover { color: var(--teal); }

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}

/* 图例 */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
  text-align: left;
  transition: color 0.15s ease;
}
.legend-btn:hover { color: var(--on-dark); }

/* 规格选择按钮 */
.skus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sku {
  position: relative;
  display: inline-grid;
  gap: 1px;
  min-width: 78px;
  min-height: 52px;
  padding: 7px 26px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: left;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.sku:hover { border-color: var(--teal-ink); }
.sku-no {
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}
.sku-spec {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}
.sku-price {
  color: var(--teal-ink);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}
.sku-price:empty { display: none; }
.sku-price.is-request { color: var(--slate); font-weight: 500; }
.sku::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
}
.sku[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); }
.sku[aria-pressed="true"] .sku-no { color: var(--on-dark-soft); }
.sku[aria-pressed="true"] .sku-spec { color: var(--on-dark); }
.sku[aria-pressed="true"] .sku-price { color: var(--teal); }
.sku[aria-pressed="true"] .sku-price.is-request { color: var(--on-dark-soft); }
.sku[aria-pressed="true"]::after {
  border-color: var(--teal);
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.2l2.4 2.4 4.8-5' fill='none' stroke='%230A1A2A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* 深色背景上的规格按钮 */
.on-dark .sku { border-color: var(--line-dark); background: rgba(255, 255, 255, 0.05); }
.on-dark .sku:hover { border-color: var(--teal); }
.on-dark .sku-no { color: var(--on-dark-soft); }
.on-dark .sku-spec { color: var(--on-dark); }
.on-dark .sku-price { color: var(--teal); }
.on-dark .sku-price.is-request { color: var(--on-dark-soft); }
.on-dark .sku::after { border-color: rgba(255, 255, 255, 0.34); }
.on-dark .sku[aria-pressed="true"] { border-color: var(--teal); background: rgba(45, 196, 178, 0.16); }
.on-dark .sku[aria-pressed="true"]::after { border-color: var(--teal); }

/* 通用分区 */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--on-dark); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.req-lists {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.line-list { margin-top: 14px; border-top: 1px solid var(--line-strong); }
.line-list li { padding-block: 12px; border-bottom: 1px solid var(--line); line-height: 1.4; }

/* 目录 */
.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(16px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.catalog-head .lede { margin-top: 0; max-width: 56ch; }

/* 价格访问码：没有码时只显示输入框，输入正确后价格和总价才出现 */
.access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-block: 14px;
  border-block: 1px solid var(--line-strong);
}
.access-text { flex: 1 1 320px; max-width: 62ch; color: var(--slate); font-size: 0.9375rem; line-height: 1.45; }
.access-form { display: flex; flex: 0 1 400px; gap: 8px; }
.access-form .input { min-height: 42px; }
.access-error { flex-basis: 100%; color: var(--error); font-size: 0.875rem; line-height: 1.4; }

.catalog-layout {
  display: grid;
  grid-template-columns: 324px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
/* 侧栏高度受限时只滚动分类列表，询价区始终可见 */
.rail {
  position: sticky;
  top: calc(var(--bar) + 20px);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--bar) - 40px);
}
.rail-search { flex: none; }

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}
.field-optional { color: var(--slate); font-weight: 400; }

.input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  font-size: 1rem;
  line-height: 1.4;
}
.input:hover { border-color: var(--slate); }
.input:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 0; border-color: var(--teal-ink); }
.input[aria-invalid="true"] { border-color: var(--error); }
textarea.input { resize: vertical; }
.input::placeholder { color: var(--slate); }

.class-filter {
  flex: 0 1 auto;
  display: grid;
  gap: 1px;
  min-height: 80px;
  margin-top: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.class-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: left;
}
.class-btn:hover { background: var(--paper); }
.class-btn[aria-pressed="true"] { background: var(--paper); font-weight: 650; }
.class-btn-count {
  margin-left: auto;
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.class-btn .dot { background: var(--c, transparent); box-shadow: inset 0 0 0 1px rgba(10, 26, 42, 0.16); }

.inquiry {
  flex: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.inquiry-title { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.inquiry-count { color: var(--slate); font-weight: 400; font-variant-numeric: tabular-nums; }
.inquiry-empty { margin-top: 6px; color: var(--slate); font-size: 0.9375rem; line-height: 1.4; }
.inquiry-list { margin-top: 8px; max-height: 216px; overflow-y: auto; scrollbar-width: thin; }
.inquiry-total { margin-top: 10px; font-size: 0.9375rem; font-weight: 620; font-variant-numeric: tabular-nums; }
.inquiry-money {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.inquiry-money strong { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.inquiry-note { margin-top: 4px; color: var(--slate); font-size: 0.8125rem; line-height: 1.4; }

/* 侧栏询价清单和询价弹窗共用的一行 */
.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name remove" "qty sum";
  align-items: center;
  gap: 6px 8px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.line-name { grid-area: name; align-self: start; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.line-unit { display: block; margin-top: 2px; color: var(--slate); font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.line-sum { grid-area: sum; justify-self: end; font-size: 0.9375rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-remove {
  grid-area: remove;
  align-self: start;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--slate);
}
.line-remove:hover { background: var(--paper); color: var(--ink); }
.line .qty { grid-area: qty; }

/* 盒数加减：圆形按钮加数字框 */
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.125rem;
  line-height: 1;
}
.qty-btn:hover:not(:disabled) { border-color: var(--ink); }
.qty-btn:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty-input {
  width: 56px;
  height: 34px;
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.qty-input:hover { border-color: var(--slate); }
.qty-unit { width: 2.9em; color: var(--slate); font-size: 0.875rem; }
.inquiry-limit { margin-top: 8px; color: var(--error); font-size: 0.875rem; line-height: 1.4; }
.inquiry .btn { margin-top: 14px; }

.catalog-group + .catalog-group { margin-top: 40px; }
.group-head {
  position: sticky;
  top: var(--bar);
  z-index: 5;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px 10px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
}
.group-title { font-size: 1.125rem; font-stretch: 108%; font-weight: 620; letter-spacing: -0.005em; }
.group-count { color: var(--slate); font-size: 0.875rem; white-space: nowrap; }

.row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 12px 24px;
  align-items: start;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.row-name { display: flex; align-items: baseline; gap: 10px; padding-top: 4px; }
.row-name .dot { transform: translateY(1px); }
.row-title { font-size: 1.0625rem; font-weight: 620; line-height: 1.25; }
.row-title:focus { outline: none; }
.row-note { margin-top: 3px; color: var(--slate); font-size: 0.875rem; line-height: 1.35; }
.row.is-flash { animation: row-flash 1.6s ease-out; }
@keyframes row-flash {
  from { background: rgba(45, 196, 178, 0.28); }
  to { background: transparent; }
}

.catalog-empty { padding-block: 40px; color: var(--slate); }
.catalog-empty-title { color: var(--ink); font-size: 1.25rem; font-weight: 620; }
.catalog-empty .btn { margin-top: 16px; }

/* 询价流程 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-block: clamp(32px, 4vw, 52px);
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 2.25rem;
  font-stretch: 112%;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.step h3 { font-size: 1.1875rem; }
.step p { margin-top: 8px; max-width: 38ch; color: var(--on-dark-soft); }

/* 文件和资质 */
.doc-list { border-top: 1px solid var(--line-strong); }
.doc-list > div {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 4px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.doc-list dt { font-weight: 620; }
.doc-list dd { color: var(--slate); }

.credentials { margin-top: 28px; }
.credentials table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.credentials th { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line-strong); font-weight: 600; text-align: left; }
.credentials td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.credentials-pending {
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--slate);
  font-size: 0.9375rem;
}

/* 常见问题 */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 620;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 14px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.15s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq p { padding-bottom: 18px; max-width: 62ch; color: var(--slate); }

/* 页脚 */
.footer {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--navy-deep);
  color: var(--on-dark);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 72px);
}
.footer-name { font-stretch: 112%; font-weight: 620; }
.footer-contact { margin-top: 6px; color: var(--on-dark-soft); font-size: 0.9375rem; }
.footer-contact a { color: inherit; }
.footer-note { max-width: 66ch; color: var(--on-dark-soft); font-size: 0.875rem; line-height: 1.6; }

/* 悬浮 WhatsApp 按钮 */
.wa-fab {
  position: fixed;
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 40;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 15px;
  border: 0;
  border-radius: 30px;
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(3, 12, 22, 0.3);
  transition: bottom 0.2s ease;
}
.wa-fab .wa-glyph { width: 30px; height: 30px; }
.wa-fab-label {
  max-width: 0;
  overflow: hidden;
  color: #06241A;
  font-size: 1rem;
  font-weight: 650;
  white-space: nowrap;
  transition: max-width 0.22s ease, margin 0.22s ease;
}
.wa-fab:hover .wa-fab-label,
.wa-fab:focus-visible .wa-fab-label {
  max-width: 180px;
  margin-inline: 10px 4px;
}
.wa-fab:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* 移动端询价条 */
.inquiry-bar { display: none; }
.bar-money { display: block; color: var(--on-dark-soft); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* 询价表单 */
.quote {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(3, 12, 22, 0.45);
  overflow: hidden;
}
.quote[open] { display: flex; flex-direction: column; }
.quote::backdrop { background: rgba(10, 26, 42, 0.68); backdrop-filter: blur(3px); }
.quote-form, .quote-sent { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
}
.quote-head h2 { font-size: 1.625rem; }
.quote-head h2:focus { outline: none; }
.quote-close {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: none;
}
.quote-close:hover { background: var(--paper); }
.quote-body { flex: 1 1 auto; min-height: 0; padding: 0 24px 16px; overflow-y: auto; }
.quote-intro { max-width: 60ch; color: var(--slate); line-height: 1.45; }
.quote-items {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.9375rem;
}
.quote-items-title { font-weight: 620; }
.quote-items .lines { margin-top: 4px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; }
.quote-items .line:last-child { border-bottom: 0; }
.quote-items > p:not(.quote-items-title):not(.quote-items-sum) { color: var(--slate); }
.quote-items-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-strong);
}
.quote-items-sum strong { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-items-sum small { flex-basis: 100%; color: var(--slate); font-size: 0.8125rem; }

/* 弹窗够宽时，名称、盒数、小计、删除排成一行 */
@media (min-width: 640px) {
  .quote-items .line {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "name qty sum remove";
  }
  .quote-items .line-name, .quote-items .line-remove { align-self: center; }
  .has-prices .quote-items .line-sum { min-width: 6rem; text-align: right; }
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 16px;
}
.field--wide { grid-column: 1 / -1; }
.field-error { margin-top: 5px; color: var(--error); font-size: 0.875rem; line-height: 1.35; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); }
.quote-preview {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--teal-ink);
  background: var(--paper);
  font-size: 0.875rem;
  line-height: 1.4;
}
.quote-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
}

/* 平板和移动端 */
@media (max-width: 1080px) {
  .topnav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero-head, .instrument { grid-template-columns: minmax(0, 1fr); }
  .readout { min-height: 0; }
  .split, .catalog-head, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; display: block; max-height: none; }
  .class-filter {
    display: flex;
    gap: 8px;
    min-height: 0;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .class-btn {
    flex: none;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
  }
  .class-btn-count { margin-left: 2px; }
  .inquiry { display: none; }
  .inquiry-bar:not([hidden]) {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gutter);
    background: var(--navy);
    color: var(--on-dark);
    font-weight: 600;
    box-shadow: 0 -8px 24px rgba(3, 12, 22, 0.25);
  }
  .has-inquiry-bar .wa-fab { bottom: 84px; }
  .has-inquiry-bar .footer { padding-bottom: 96px; }
  .group-head { top: var(--bar); }
  .qty-btn { width: 44px; height: 44px; }
  .qty-input { height: 44px; }
}

@media (max-width: 720px) {
  :root { --bar: 60px; }
  body { font-size: 1rem; }
  .brand { min-width: 0; font-size: 1rem; gap: 10px; }
  .brand-mark { height: 46px; padding: 3px 5px; }
  .brand [data-brand] { overflow: hidden; text-overflow: ellipsis; }
  .topbar-inner { gap: 16px; }
  .topbar-cta { flex: none; width: 42px; padding: 0; }
  .topbar-cta-text { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .plate { padding: 12px 14px 16px 8px; }
  .plate-grid { grid-template-columns: 16px repeat(var(--cols, 8), minmax(0, 1fr)); gap: 5px; }
  .plate.is-reading .plate-scan { left: 26px; }
  .well { font-size: 0.6875rem; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .req-lists { grid-template-columns: minmax(0, 1fr); }
  .doc-list > div { grid-template-columns: minmax(0, 1fr); }
  .credentials { overflow-x: auto; }
  .quote-items .lines { max-height: none; }
  .access-form { flex: 1 1 100%; }

  .quote {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .quote-head { padding: 14px 16px 8px; }
  .quote-body { padding: 0 16px 16px; }
  .quote-foot { padding: 12px 16px 14px; }
  .quote-foot .btn { flex: 1 1 auto; padding-inline: 12px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .wa-fab { height: 56px; padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .plate-scan { display: none !important; }
}
