/* ============================================================
   VACTIRO v2 — Dual-path prototype
   ============================================================ */

:root {
  --bg: #F5F0E8;
  --surface: #FFFFFF;
  --surface-2: #F4EFE7;
  --dark: #1A1A1A;
  --mid: #2A2A2A;
  --text: #1A1A1A;
  --muted: #5A554F;
  --line: rgba(26,26,26,0.12);
  --line-2: rgba(26,26,26,0.20);

  --consumer: #E8621A;      /* orange — B2C path */
  --consumer-soft: rgba(232,98,26,0.10);
  --consumer-deep: #C2410C;  /* 深橙 — 按钮背景，白字对比度 ≥5:1（WCAG AA 达标）；--consumer 亮橙仅用于强调/大字 */
  --trade: #1A1A1A;         /* near-black — B2B path (按钮/小元素仍用) */
  --trade-soft: rgba(26,26,26,0.06);
  --trade-bg: #1A1A1A;      /* 大面积深色背景 — 真近黑，去棕灰土黄感 */
  --trade-bg-ink: #D9D2C5;  /* trade-bg 上的次级文字 */

  --ok: #2F7A4F;
  --ok-soft: rgba(47,122,79,0.10);
  --warn: #B07A1F;
  --warn-soft: rgba(176,122,31,0.12);
  --bad: #9A2D2D;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;

  --shadow-sm: 0 1px 2px rgba(26,26,26,0.06), 0 1px 1px rgba(26,26,26,0.04);
  --shadow-md: 0 4px 14px rgba(26,26,26,0.08), 0 2px 4px rgba(26,26,26,0.04);
  --shadow-lg: 0 18px 48px rgba(26,26,26,0.14), 0 4px 12px rgba(26,26,26,0.06);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* 入场 / scroll-reveal / 大段动画 */
  --ease-hover: cubic-bezier(0.2, 1, 0.2, 1);    /* hover / 微交互 / focus */

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pad: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --hdr: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* Explicit focus targets — outline is the source of truth, never replaced by hover shadow */
.btn:focus-visible,
.vh-nav a:focus-visible,
.vh-mobile a:focus-visible,
.search-tab:focus-visible,
.cat-toggle button:focus-visible,
.pd-tablist button:focus-visible,
.pg-num:focus-visible,
.pg-step:focus-visible,
.product-card:focus-visible,
.line-card:focus-visible,
.chip-x:focus-visible,
.btn-link:focus-visible,
.vh-burger:focus-visible,
.uploader:focus-within,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.i12 { width: 12px; height: 12px; }
.i16 { width: 16px; height: 16px; }
.i20 { width: 20px; height: 20px; }
.i24 { width: 24px; height: 24px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.section-lead { color: var(--muted); max-width: 56ch; margin-top: 0.6rem; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: background 140ms var(--ease-hover), color 140ms var(--ease-hover), border-color 140ms var(--ease-hover), transform 180ms var(--ease-hover), box-shadow 180ms var(--ease-hover);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 14px; height: 14px; }
.btn-sm, .btn-dark-sm, .btn-ghost-sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; border-radius: var(--r-md); }
.btn-dark, .btn-dark-sm {
  background: var(--trade-bg);
  color: var(--bg);
  border-color: var(--dark);
}
.btn-dark:hover, .btn-dark-sm:hover { background: #333333; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-consumer {
  background: var(--consumer);
  color: #1A1A1A;
  border-color: var(--consumer);
  font-weight: 600;
}
.btn-consumer:hover { background: var(--consumer); transform: translateY(-1px); box-shadow: var(--shadow-md); filter: saturate(1.12); }
.btn-ghost, .btn-ghost-sm {
  background: transparent;
  color: var(--dark);
  border-color: var(--line-2);
}
.btn-ghost:hover, .btn-ghost-sm:hover { border-color: var(--dark); }
.btn-link {
  background: transparent; border: 0; padding: 0;
  color: var(--dark); text-decoration: underline; text-underline-offset: 4px;
  font-weight: 600; font-size: 0.875rem;
}
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
============================================================ */
.vh {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--hdr);
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.vh-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.vh-brand { display: flex; align-items: center; gap: 0.6rem; }
.vh-mark { height: 30px; width: auto; }
.vh-logo { height: 22px; width: auto; }
.vh-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.vh-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 0.3rem 0;
}
.vh-nav a.is-active { color: var(--consumer); }
.vh-nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--consumer);
}
.vh-cta { display: flex; gap: 0.5rem; }
.vh-burger { display: none; padding: 0.4rem; }
.vh-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem var(--pad) 1.5rem;
  gap: 0.4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.vh-mobile a {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.vh-mobile a.btn { border-bottom: 0; margin-top: 0.6rem; justify-content: center; }

@media (max-width: 880px) {
  .vh-nav, .vh-cta { display: none; }
  .vh-burger { display: inline-flex; margin-left: auto; }
  .vh-mobile.is-open { display: flex; }
}

/* ============================================================
   PROTOTYPE STRIP (review-only)
============================================================ */
.proto-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem var(--pad);
  background: var(--trade-bg);
  color: #f5f0e8aa;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #000;
}
.proto-strip .proto-lab { color: var(--consumer); margin-right: 0.8rem; }
.proto-strip a { padding: 0.25rem 0.55rem; border-radius: 4px; border: 1px solid #ffffff14; color: #f5f0e8cc; }
.proto-strip a:hover { background: #ffffff14; color: var(--bg); }
.proto-strip a.is-active { background: var(--consumer); border-color: var(--consumer); color: #fff; }

/* ============================================================
   FOOTER
============================================================ */
.vf {
  margin-top: 6rem;
  background: var(--trade-bg);
  color: #d0c9bd;
  padding: 3rem var(--pad) 1.5rem;
}
.vf-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.vf-brand strong { color: var(--bg); font-size: 1rem; letter-spacing: 0.12em; display: block; margin: 0.6rem 0 0.5rem; }
.vf-brand p { font-size: 0.85rem; line-height: 1.55; max-width: 32ch; }
.vf-col h5 { color: var(--bg); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.9rem; font-weight: 600; }
.vf-col a { display: block; padding: 0.3rem 0; font-size: 0.85rem; color: #d0c9bd; }
.vf-col a:hover { color: var(--bg); }
.vf-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid #ffffff18;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.78rem;
  color: #ada69a;
}
.vf-honest { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; }
@media (max-width: 880px) {
  .vf-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .vf-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   VIEW CONTAINER
============================================================ */
main#view { min-height: 70vh; }
.route { animation: fadeIn 200ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ============================================================
   SCROLL REVEAL + METRICS（克制精致动画）
   渐进增强：仅当 JS 加上 html.anim 才隐藏初态；
   无 JS / 不支持 IntersectionObserver / prefers-reduced-motion → 元素正常显示（降级安全）。
   ============================================================ */
html.anim [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
html.anim [data-reveal].in { opacity: 1; transform: none; }

/* 诚实 metrics 卡（真实数据，数字滚动入场）*/
.metrics { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.metric { display: flex; flex-direction: column; gap: 0.35rem; text-align: center; }
.metric-num {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
  font-weight: 600;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.metric-label { font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .metrics-grid .metric:last-child { grid-column: 1 / -1; }
}

/* ============================================================
   HOMEPAGE
============================================================ */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(100deg, var(--bg) 0%, var(--bg) 34%, rgba(245,240,232,0.85) 48%, rgba(245,240,232,0.25) 74%, rgba(245,240,232,0) 100%),
    url('assets/brand/hero-bg.webp') right center / cover no-repeat,
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-top: 1rem;
  max-width: 15ch;
}
.hero h1 .hl { color: var(--consumer); }
.hero p.lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--muted);
  margin-top: 1.2rem;
  max-width: 48ch;
}
.lede-punch { color: var(--consumer-deep); font-weight: 600; }
.vf-slogan { color: var(--bg); font-weight: 600; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; margin: 0.4rem 0 0.2rem; }
.hero-paths {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Hero 元素错峰入场（仅 html.anim 时；reduced-motion / 无 JS 不播，元素正常显示）*/
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.anim .hero .eyebrow { animation: heroRise 0.65s var(--ease-out) both; }
html.anim .hero h1       { animation: heroRise 0.65s var(--ease-out) 0.08s both; }
html.anim .hero p.lede   { animation: heroRise 0.65s var(--ease-out) 0.16s both; }
html.anim .hero-paths    { animation: heroRise 0.65s var(--ease-out) 0.24s both; }
html.anim .search-card   { animation: heroRise 0.65s var(--ease-out) 0.32s both; }

/* Big dual-mode search module */
.search-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}
.search-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg);
  padding: 0.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.search-tab {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.search-tab svg { width: 16px; height: 16px; }
.search-tab.is-active {
  background: var(--trade-bg);
  color: var(--bg);
}
.search-fields {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}
.search-fields.mode-vehicle { grid-template-columns: repeat(4, 1fr); }
.search-fields.mode-ref { grid-template-columns: 1fr; }
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.field label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--consumer);
  box-shadow: 0 0 0 3px var(--consumer-soft);
  outline: none;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.search-submit {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}
.search-hint {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 1.4rem 0;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
}
.trust-cell {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.4;
}
.trust-cell svg { width: 18px; height: 18px; color: var(--consumer); flex-shrink: 0; margin-top: 2px; }
.trust-cell strong { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.1rem; }
.trust-cell span { color: var(--muted); font-size: 0.78rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .search-fields.mode-vehicle { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .trust-row { grid-template-columns: 1fr; }
}

/* Dual-path band */
.paths {
  padding: 4rem 0;
}
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.path-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease-hover), box-shadow 180ms var(--ease-hover);
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.path-card .path-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.path-card.consumer { border-color: var(--consumer); }
.path-card.consumer .path-label { color: var(--consumer); }
.path-card.trade { background: var(--trade-bg); color: var(--bg); border-color: var(--trade-bg); }
.path-card.trade .path-label { color: #ffffff80; }
.path-card.trade .path-desc { color: var(--trade-bg-ink); }
.path-card h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.path-card ul { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.2rem; }
.path-card li { display: flex; gap: 0.55rem; font-size: 0.88rem; align-items: flex-start; }
.path-card li svg { width: 14px; height: 14px; color: var(--consumer); flex-shrink: 0; margin-top: 5px; }
.path-card.trade li svg { color: var(--bg); }
.path-card .path-cta { margin-top: auto; padding-top: 1rem; }
@media (max-width: 720px) { .paths-grid { grid-template-columns: 1fr; } }

/* Product lines on home */
.lines {
  padding: 1rem 0 4rem;
}
.lines-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.line-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms var(--ease-hover), transform 180ms var(--ease-hover), box-shadow 180ms var(--ease-hover);
}
.line-card:hover { border-color: var(--dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.line-card .line-glyph {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0e0e0e;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.line-card .line-glyph img { width: 100%; height: 100%; object-fit: contain; }
.line-card h4 { font-size: 1.1rem; font-weight: 600; }
.line-card p { font-size: 0.85rem; color: var(--muted); }
.line-card .line-count {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}
.line-card.placeholder { background: var(--surface); border-style: dashed; }
.line-card.placeholder h4 { color: var(--muted); }
.line-card.placeholder .pill { background: var(--warn-soft); color: var(--warn); }
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--dark);
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.consumer { background: var(--consumer-soft); color: var(--consumer); }
.pill.trade { background: var(--trade-bg); color: var(--bg); }

@media (max-width: 880px) { .lines-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .lines-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CATALOG / FIND PARTS PAGE
============================================================ */
.cat-hero {
  padding: 2.4rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.crumb {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem;
}
.crumb .sep { margin: 0 0.4rem; color: var(--line-2); }
.cat-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.01em; }
.cat-hero p { color: var(--muted); margin-top: 0.5rem; max-width: 60ch; }

.cat-search {
  margin-top: 1.5rem;
}
.cat-toggle {
  display: inline-flex;
  background: var(--surface);
  padding: 0.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.cat-toggle button {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.cat-toggle button.is-active { background: var(--trade-bg); color: var(--bg); }
.cat-toggle button svg { width: 14px; height: 14px; }

.cat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}
.cat-filters {
  border-right: 1px solid var(--line);
  padding-right: 1.4rem;
}
.filter-group { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.filter-row { display: flex; flex-direction: column; gap: 0.4rem; }
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  cursor: pointer;
}
.check input { width: 14px; height: 14px; accent-color: var(--consumer); }
.check .count { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; }

.cat-results .results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.results-head strong { color: var(--dark); }

.result-group {
  margin-bottom: 2rem;
}
.result-group-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 0.9rem;
}
.result-group-head .rg-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--ok);
}
.result-group.needs .rg-dot { background: var(--warn); }
.result-group.none .rg-dot { background: var(--muted); }
.result-group-head h3 { font-size: 0.95rem; font-weight: 600; }
.result-group-head .rg-count { margin-left: auto; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms var(--ease-hover), transform 180ms var(--ease-hover), box-shadow 180ms var(--ease-hover);
}
.product-card:hover { border-color: var(--dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pc-photo {
  aspect-ratio: 4/3;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.pc-photo img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.pc-photo.pending {
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.pc-pending-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pc-photo .pc-status { display: none; }
.pc-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.pc-line {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pc-title { font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.pc-meta { color: var(--muted); font-size: 0.78rem; }
.pc-chips { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.3rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.45rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface);
  color: var(--dark);
}
.chip.oe { background: var(--surface); color: var(--dark); border-color: var(--line-2); }
.chip.cardone { background: var(--trade-soft); color: var(--dark); border-color: transparent; }
.pc-actions {
  margin-top: auto;
  padding-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}
.pc-actions .btn { padding: 0.5rem 0.7rem; font-size: 0.78rem; }

@media (max-width: 880px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-filters { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 1.2rem; }
}

/* ============================================================
   PRODUCT DETAIL
============================================================ */
.pd {
  padding: 2rem 0 4rem;
}
.pd-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.pd-back:hover { color: var(--dark); }
.pd-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.pd-gallery .pd-main {
  aspect-ratio: 4/3;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.pd-gallery .pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.pd-thumbs button {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1.5px solid transparent;
  background: var(--surface);
}
.pd-thumbs button.is-active { border-color: var(--dark); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .pd-line { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--consumer); }
.pd-info h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.1; margin: 0.4rem 0 0.5rem; letter-spacing: -0.01em; }
.pd-info .pd-sku { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.pd-chip-block { margin: 1rem 0; }
.pd-chip-block h6 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.pd-chip-block .pd-chips { display: flex; gap: 0.3rem; flex-wrap: wrap; }

.fitchecker {
  margin: 1.4rem 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.1rem;
  background: var(--surface);
}
.fitchecker h6 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.fitchecker-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.fitchecker-form .btn { grid-column: 1 / -1; }
.fitchecker-state {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.85rem;
}
.fitchecker-state.ok { background: var(--ok-soft); color: var(--ok); }
.fitchecker-state.likely { background: var(--warn-soft); color: var(--warn); }
.fitchecker-state.none { background: var(--surface-2); color: var(--muted); }
.fitchecker-state.idle { background: var(--surface); color: var(--muted); }
.fitchecker-state.verify { background: var(--surface-2); color: var(--text); }
.fitchecker-state.idle strong,
.fitchecker-state.verify strong { color: var(--text); }
.fitchecker-state svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

.pd-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

/* Tabs */
.pd-tabs {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pd-tablist {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pd-tablist button {
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.pd-tablist button.is-active { color: var(--dark); border-bottom-color: var(--consumer); }
.pd-panel { padding: 1.6rem 0; display: none; }
.pd-panel.is-active { display: block; }

.fitment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.fitment-table th, .fitment-table td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.fitment-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--surface);
}
.fitment-table tr:hover td { background: var(--surface); }

.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ref-col h6 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.ref-col .ref-list { display: flex; flex-direction: column; gap: 0.3rem; }
.ref-list code {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--surface);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  display: inline-block;
}

.honest-box {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.honest-box svg { width: 18px; height: 18px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.honest-box strong { display: block; font-weight: 600; margin-bottom: 0.2rem; color: var(--dark); }
.honest-box span { color: var(--mid); }

@media (max-width: 880px) {
  .pd-top { grid-template-columns: 1fr; }
  .fitchecker-form { grid-template-columns: 1fr 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FORMS: B2C REQUEST / B2B RFQ / CONTACT
============================================================ */
.formpage {
  padding: 2.4rem 0 4rem;
}
.formpage-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.formpage h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.01em; }
.formpage .lede { color: var(--muted); margin-top: 0.5rem; max-width: 56ch; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  margin-top: 1.6rem;
}
.form-card .field { margin-bottom: 1rem; }
.form-card .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-card .field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-card .req { color: var(--consumer); }
.form-card .helper { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; letter-spacing: 0.02em; }
.form-card .form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.form-card .form-submit .privacy { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; }

.uploader {
  border: 2px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 1.4rem;
  text-align: center;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.uploader svg { width: 28px; height: 28px; color: var(--muted); }
.uploader strong { font-size: 0.9rem; font-weight: 600; }
.uploader span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }

.what-happens {
  position: sticky;
  top: calc(var(--hdr) + 1rem);
  background: var(--trade-bg);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.what-happens h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff80;
  margin-bottom: 1rem;
}
.what-happens ol { list-style: none; counter-reset: wh; display: flex; flex-direction: column; gap: 1rem; }
.what-happens li { counter-increment: wh; position: relative; padding-left: 2.2rem; font-size: 0.9rem; line-height: 1.45; }
.what-happens li::before {
  content: counter(wh, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--consumer);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.what-happens li strong { display: block; font-weight: 600; margin-bottom: 0.1rem; color: var(--bg); }
.what-happens li span { color: #d0c9bd; font-size: 0.82rem; }

.success-card {
  background: var(--trade-bg);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 2rem;
  margin-top: 1.6rem;
}
.success-card .ok-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--consumer);
  border-radius: 50%;
  color: #fff;
  margin-bottom: 0.8rem;
}
.success-card .ok-dot svg { width: 20px; height: 20px; }
.success-card h2 { font-size: 1.3rem; font-weight: 600; }
.success-card p { color: #d0c9bd; margin-top: 0.5rem; max-width: 52ch; font-size: 0.9rem; }
.success-card .next-steps { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #ffffff20; }
.success-card .next-steps strong { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: #ffffff80; margin-bottom: 0.5rem; }
.success-card .ref-id { font-family: var(--mono); font-size: 0.85rem; color: var(--consumer); }

@media (max-width: 880px) {
  .formpage-grid { grid-template-columns: 1fr; }
  .what-happens { position: static; }
  .form-card .field-row, .form-card .field-row.three { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;   /* 两列各自从顶端对齐，不再被默认 stretch 拉到等高 */
}
.contact-grid > .form-card { margin-top: 0; }  /* 覆盖 .form-card 的默认 1.6rem 顶距，让 contact 两栏顶端对齐 */
.contact-block {
  padding: 1.6rem;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.contact-block h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.contact-block .row {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-block .row:last-child { border-bottom: 0; }
.contact-block .row svg { width: 18px; height: 18px; color: var(--consumer); margin-top: 2px; flex-shrink: 0; }
.contact-block .row strong { font-size: 0.85rem; font-weight: 600; display: block; }
.contact-block .row span { font-size: 0.82rem; color: var(--muted); }
.contact-block a { color: var(--dark); border-bottom: 1px solid var(--consumer); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   RATIONALE PAGE
============================================================ */
.rationale {
  padding: 2.4rem 0 5rem;
  max-width: 760px;
  margin: 0 auto;
}
.rationale h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.01em; }
.rationale h2 { font-size: 1.1rem; font-weight: 600; margin: 2.2rem 0 0.4rem; }
.rationale p { color: var(--mid); margin: 0.5rem 0; font-size: 0.95rem; line-height: 1.6; }
.rationale ul { margin: 0.4rem 0 0.4rem 1.4rem; }
.rationale li { color: var(--mid); margin: 0.25rem 0; font-size: 0.92rem; }
.rationale .lede { font-size: 1.05rem; color: var(--muted); margin-top: 0.5rem; }
.rationale code {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

/* ============================================================
   CATALOG — PAGINATION, CHIPS, EMPTY STATE, SORT
   (appended for icon-free, paginated v2)
============================================================ */

/* Re-tighten buttons now that icons are gone — keep balanced padding */
.btn { padding: 0.7rem 1.1rem; line-height: 1; }
.btn-sm, .btn-dark-sm, .btn-ghost-sm { padding: 0.5rem 0.85rem; line-height: 1; }

/* Line-glyph as text marker (replaces the icon discs) */
.line-glyph {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--dark);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.line-card.placeholder .line-glyph { border-style: dashed; color: var(--muted); }

.vf-brand strong { margin-top: 0; }

/* Burger button styled as text */
.vh-burger {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--dark);
  background: var(--bg);
}
.vh-burger:hover { border-color: var(--dark); }

/* Catalog mode buttons — remove icon-related left padding */
.cat-toggle button { padding: 0.55rem 1rem; }
.search-tab { padding: 0.65rem 0.9rem; }

/* Results head: 2-row layout (chips/count + sort/empty-toggle) */
.results-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  margin-bottom: 1rem;
}
.results-head-left { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.results-count {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.results-count strong { color: var(--dark); }
.results-chips {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
}
.results-head-right {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end;
}
.sort-control {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sort-control select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--dark);
}

.chip.removable {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-right: 0.25rem;
}
.chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(26,26,26,0.08);
  color: var(--dark);
  font-size: 0.78rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.chip-x:hover { background: var(--trade-bg); color: var(--bg); }
.chips-clear {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--consumer);
  border: 0;
  background: transparent;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
}
.chips-clear:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Pagination */
.pager-shell { margin-bottom: 1rem; }
.pager {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.4rem 0;
}
.pg-nums { display: flex; gap: 0.25rem; }
.pg-num, .pg-step {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--dark);
  min-width: 36px;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.pg-num:hover, .pg-step:not(:disabled):hover {
  border-color: var(--dark);
  background: var(--surface);
}
.pg-num.is-active {
  background: var(--trade-bg);
  color: var(--bg);
  border-color: var(--dark);
}
.pg-step:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pg-ellipsis {
  display: inline-flex; align-items: center;
  padding: 0 0.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* Bottom controls block */
.results-foot {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.load-more-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.lm-hint {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.results-foot-ask {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  color: var(--muted);
}
.results-foot-ask .btn-link { font-size: 0.88rem; color: var(--consumer); border-bottom: 1px solid var(--consumer); padding-bottom: 1px; text-decoration: none; }

/* Empty state */
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.empty-state-head {
  text-align: left;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.empty-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
}
.empty-state-head h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.3rem;
}
.empty-state-head p {
  color: var(--muted);
  margin-top: 0.4rem;
  max-width: 60ch;
  font-size: 0.92rem;
}
.empty-state .form-card {
  background: var(--surface);
  margin-top: 0;
}

/* Responsive: stack head rows on narrow */
@media (max-width: 720px) {
  .results-head { grid-template-columns: 1fr; }
  .results-head-right { justify-content: flex-start; }
}

/* ============================================================
   FINAL POLISH — hero photo, single-column forms, contact
============================================================ */

/* Hero image — same angle/crop/radius as product detail */
.hero-photo {
  margin: 2.4rem auto 0;
  max-width: 1080px;
  aspect-ratio: 16 / 7;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-photo.pending::after {
  content: 'Photo pending';
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-photo-cap {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: 0.35rem 0.6rem;
  background: rgba(26,26,26,0.78);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* Product detail main — match hero radius */
.pd-gallery .pd-main {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
}

/* Product card photo — same radius corner story */
.pc-photo { aspect-ratio: 4 / 3; }

/* Single-column form layout */
.form-card.single-col .field-row {
  display: grid; gap: 0.8rem;
}
.form-card .field-row { grid-template-columns: 1fr 1fr; }
.form-card .field-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) {
  .form-card .field-row,
  .form-card .field-row.three { grid-template-columns: 1fr; }
}

.field-section {
  margin: 0.4rem 0 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.field-section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-or {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0.4rem 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-or::before,
.field-or::after {
  content: '';
  flex: 1; height: 1px; background: var(--line);
}

.opt {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 0.4rem;
}

/* Contact block — rows without left icons */
.contact-block .row {
  gap: 0; align-items: flex-start; flex-direction: column;
  padding: 0.85rem 0;
}
.contact-block .row strong { margin-bottom: 0.15rem; }
.honest-box {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--mid);
  display: block;
}
.honest-box strong { color: var(--dark); margin-bottom: 0.25rem; }
.honest-box span { color: var(--muted); display: block; }

/* Uploader without icon — tighten */
.uploader { padding: 1.2rem; gap: 0.3rem; }
.uploader strong { font-size: 0.88rem; }

/* Eyebrow / mono link colors stay restrained */
.btn-link { color: var(--dark); }

/* ============================================================
   BUTTON CENTERING — flex center across all button-like surfaces
============================================================ */
.btn,
.btn-sm, .btn-dark-sm, .btn-ghost-sm,
a.btn, span.btn,
.search-tab,
.cat-toggle button,
.pd-tablist button,
.pg-num, .pg-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  gap: 0;
}
/* .vh-burger 单独处理：桌面隐藏（.vh-burger 第 185 行 display:none），
   手机的 @media (max-width: 880px) 内会改成 inline-flex 并加上 flex 居中 */
.vh-burger {
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  gap: 0;
}
/* Pager number / step buttons keep their min-width; text auto-centers via flex */
.pg-num, .pg-step { min-width: 36px; }
/* Block buttons stay full-width and centered */
.btn-block { width: 100%; }
/* Product card action buttons centered within their grid cells */
.pc-actions .btn { width: auto; }

/* ============================================================
   MOTION POLISH — 120ms button/tab transitions, fades, reduced-motion
============================================================ */

/* Reset any older 140ms transitions to a unified 120ms surface */
.btn,
.pg-num, .pg-step,
.search-tab,
.cat-toggle button,
.pd-tablist button,
.product-card,
.line-card,
.chip-x,
.vh-nav a,
.proto-strip a {
  transition:
    background-color 120ms var(--ease-hover),
    color 120ms var(--ease-hover),
    border-color 120ms var(--ease-hover),
    box-shadow 180ms var(--ease-hover),
    transform 180ms var(--ease-hover);
}
.btn:active { transform: translateY(1px); }

/* Route fade-in — already exists; soften */
.route { animation: fadeIn 220ms cubic-bezier(0.4, 0, 0.2, 1); }

/* Product detail gallery crossfade */
.pd-main { position: relative; }
.pd-main img {
  transition: opacity 260ms ease;
  opacity: 1;
}
.pd-main img.is-fading { opacity: 0; }

/* Catalog: newly-loaded cards fade in */
.product-card.is-just-added {
  animation: cardIn 260ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Tab underline transition */
.pd-tablist button { border-bottom: 2px solid transparent; }
.search-tab, .cat-toggle button { transition: background-color 120ms ease, color 120ms ease; }

/* Honor prefers-reduced-motion globally */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .route { animation: none !important; }
  .pd-main img { transition: none !important; }
  .product-card.is-just-added { animation: none !important; }
}

/* ============================================================
   COMBOBOX — typeahead Year/Make/Model/Engine fields
   ============================================================ */
.field.combo { position: relative; }
.field.combo input[data-combo-input] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}
.field.combo input[data-combo-input]::placeholder { color: var(--muted); }
.field.combo input[data-combo-input]:focus { border-color: var(--dark); outline: 0; }

/* Locked 状态：model / engine 在 year+make 选定前不可用 */
.field.combo.is-locked label { opacity: 0.55; }
.field.combo.is-locked input[data-combo-input] {
  cursor: not-allowed;
  opacity: 0.55;
  background: var(--surface-2);
  border-style: dashed;
}
.field.combo.is-locked input[data-combo-input]::placeholder { color: var(--muted); font-style: italic; }

.combo-pop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.combo-pop[hidden] { display: none; }

.combo-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.3;
  /* allow long model strings to wrap rather than be truncated */
  white-space: normal;
  word-break: break-word;
  cursor: pointer;
  transition: background 120ms ease;
}
.combo-opt:hover     { background: var(--surface); }
.combo-opt.is-active { background: var(--surface-2); }
.combo-opt.is-current { font-weight: 600; }
.combo-opt.combo-any {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding-bottom: 0.45rem;
  margin-bottom: 0.25rem;
}
.combo-opt.combo-any.is-current { color: var(--text); }
.combo-empty {
  padding: 0.6rem 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* 移植自 Atlas combo highlight — typed keyword 在下拉里高亮 */
.combo-opt mark {
  background: var(--consumer-soft);
  color: inherit;
  font-weight: 700;
  border-radius: 2px;
  padding: 0 1px;
}

/* Year-hint 卡片（Atlas year_hint 视觉） */
.cat-year-hint {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem 0;
  color: var(--text);
}
.cat-year-hint .cyh-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.cat-year-hint .cyh-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--warn);
  color: var(--bg);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
}
.cat-year-hint .cyh-body {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}
.cat-year-hint .cyh-body strong { color: var(--text); }
   Applied only to product cells with a real photo. Pending = no watermark.
============================================================ */
.pc-photo { position: relative; overflow: hidden; }
.pd-main  { position: relative; overflow: hidden; }
.pd-thumbs button { position: relative; overflow: hidden; }

/* Clean PHOTO PENDING placeholder for the product-detail hero */
.pd-pending-label {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: var(--surface);
}

.pc-photo:not(.pending)::after,
.pd-main:not(.pending)::after,
.pd-thumbs button:not(.pending)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    /* Single diagonal VACTIRO wordmark, centered */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='200' viewBox='0 0 320 200' preserveAspectRatio='xMidYMid meet'><g transform='translate(160 100) rotate(-26)'><text x='0' y='0' fill='%23ffffff' font-family='Inter,Helvetica,Arial,sans-serif' font-size='36' font-weight='700' letter-spacing='10' text-anchor='middle' dominant-baseline='central'>VACTIRO</text></g></svg>"),
    /* Diagonal stripes */
    repeating-linear-gradient(-26deg, transparent 0 16px, rgba(255,255,255,0.7) 16px 17px);
  background-size: 100% 100%, auto;
  background-position: center, 0 0;
  background-repeat: no-repeat, repeat;
  opacity: 0.10;
  z-index: 1;
}
/* Thumbnails: shrink the wordmark + denser stripes for the smaller surface */
.pd-thumbs button:not(.pending)::after {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g transform='translate(40 40) rotate(-26)'><text x='0' y='0' fill='%23ffffff' font-family='Inter,Helvetica,Arial,sans-serif' font-size='10' font-weight='700' letter-spacing='2' text-anchor='middle' dominant-baseline='central'>VACTIRO</text></g></svg>"),
    repeating-linear-gradient(-26deg, transparent 0 8px, rgba(255,255,255,0.55) 8px 9px);
  opacity: 0.14;
}

/* Filter-note: small explanation under photo / refType groups */
.filter-note {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   CONVERSION WAVE 1 — catalog / RFQ / detail / forms
   纯文字 UI，无 icon；动画 120–180ms 且尊重 prefers-reduced-motion。
============================================================ */

/* Header RFQ indicator (Part 4) */
.vh-rfq {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--consumer);
  border: 1.5px solid var(--consumer);
  border-radius: var(--r-md);
  transition: background 140ms, color 140ms;
}
.vh-rfq:hover { background: var(--consumer-soft); }
.vh-rfq[hidden] { display: none; }   /* class 选择器会盖过 [hidden] 的 UA display:none，需显式恢复 */
.vh-rfq-count {
  font-family: var(--mono); font-size: 0.72rem;
  min-width: 1.4em; text-align: center;
  padding: 0.05rem 0.35rem;
  background: var(--consumer); color: #fff;
  border-radius: 999px;
}

/* Product card — title link / details link / no empty gap (Part 3) */
.pc-title { color: var(--text); transition: color 140ms; }
a.pc-title:hover { color: var(--consumer); }
.pc-chips:empty { display: none; }
.pc-details-link {
  margin-top: 0.5rem; align-self: flex-start;
  font-size: 0.78rem; color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  transition: color 140ms, border-color 140ms;
}
.pc-details-link:hover { color: var(--consumer); border-color: var(--consumer); }
.product-card .btn.is-in-rfq,
.pd-actions .btn.is-in-rfq {
  background: var(--ok-soft); color: var(--ok); border-color: var(--ok);
}

/* Product detail — Notes + What VACTIRO verifies (Part 10) */
.pd-notes {
  margin: 0.6rem 0 0; padding: 0.7rem 0.9rem;
  background: var(--warn-soft); border-radius: var(--r-md);
}
.pd-notes h6 {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--warn); margin-bottom: 0.3rem;
}
.pd-notes ul { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.pd-notes li { font-size: 0.9rem; font-weight: 500; }
.verify-block {
  margin: 1.2rem 0; padding: 1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.verify-block h6 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem;
}
.verify-block ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.verify-block li { position: relative; padding-left: 1rem; font-size: 0.9rem; color: var(--text); }
.verify-block li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

/* Request context (Part 6) */
.req-context {
  margin-bottom: 1rem; padding: 0.9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--consumer); border-radius: var(--r-md);
}
.req-context h5 {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.req-context-row { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.3rem; }
.req-context-row strong { font-size: 0.95rem; }
.req-context-row .mono { color: var(--muted); }
.req-context-ref { font-size: 0.78rem; color: var(--consumer); margin-bottom: 0.4rem; }

/* Inline form error + returning buyer (Part 6/8) */
.form-error {
  margin: -0.2rem 0 0.4rem; padding: 0.5rem 0.7rem;
  font-size: 0.82rem; color: var(--bad);
  background: rgba(154,45,45,0.08); border-radius: var(--r-sm);
}
.returning-buyer {
  margin-top: 0.4rem; padding-top: 0.9rem;
  border-top: 1px dashed var(--line-2);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.returning-buyer label { font-size: 0.85rem; font-weight: 500; }
.returning-buyer input {
  padding: 0.6rem 0.7rem; border: 1px solid var(--line-2);
  border-radius: var(--r-md); background: var(--surface);
}
.returning-ack { color: var(--ok); font-size: 0.78rem; }

/* RFQ selection on the Trade page (Part 7) */
.rfq-selected {
  margin-bottom: 0.4rem; padding: 0.9rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.rfq-selected.is-empty { color: var(--muted); }
.rfq-selected.is-empty .mono { font-size: 0.78rem; }
.rfq-selected-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
.rfq-selected-head h5 { font-size: 0.9rem; font-weight: 600; }
.rfq-selected-count { color: var(--muted); }
.rfq-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.rfq-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.55rem 0.7rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.rfq-item-main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.rfq-item-main strong { font-size: 0.88rem; }
.rfq-item-main .mono { font-size: 0.72rem; color: var(--muted); }
.rfq-remove {
  flex-shrink: 0; font-size: 0.78rem; color: var(--bad);
  border-bottom: 1px solid transparent; transition: border-color 140ms;
}
.rfq-remove:hover { border-color: var(--bad); }

/* Home catalog proof + photo preview (Part 9) */
.home-proof { padding: 2rem 0 3rem; }
.home-proof-line { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 1.2rem; }
.home-preview {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem; margin-bottom: 1rem;
}
.home-preview-card { display: flex; flex-direction: column; gap: 0.25rem; transition: transform 140ms; }
.home-preview-card.is-hidden { display: none; }
.home-preview-card:hover { transform: translateY(-2px); }
.hpc-photo {
  display: block; aspect-ratio: 4/3; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.hpc-photo img { width: 100%; height: 100%; object-fit: cover; }
.hpc-line { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hpc-title { font-size: 0.82rem; font-weight: 500; line-height: 1.3; }
.home-proof-cta { margin-top: 0.4rem; }

@media (max-width: 880px) {
  .home-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .vh-rfq, .pc-title, .pc-details-link, .home-preview-card, .rfq-remove { transition: none; }
  .home-preview-card:hover { transform: none; }
}

/* ============================================================
   LEAD CAPTURE (Wave 5) — fallback actions + local receipts
============================================================ */
.fallback-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.fallback-actions .btn { flex: 0 0 auto; }
.success-card .btn-ghost { color: var(--bg); border-color: rgba(255,255,255,0.35); }
.success-card .btn-ghost:hover { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.08); }
.fallback-to { margin-top: 0.8rem; color: #d0c9bd; font-size: 0.78rem; }
.fallback-status { margin-top: 0.6rem; color: #bfe3cd; font-size: 0.82rem; }
.fallback-warn { margin-top: 0.8rem; padding: 0.5rem 0.7rem; background: rgba(176,122,31,0.22); border-radius: var(--r-sm); color: #f0d9a8; font-size: 0.8rem; }
.fallback-warn strong { color: #fff; }

.recent-requests {
  margin-top: 1.2rem; padding: 0.9rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.recent-requests .rr-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; }
.recent-requests h5 { font-size: 0.9rem; font-weight: 600; }
.recent-clear { font-size: 0.74rem; color: var(--bad); border-bottom: 1px solid transparent; transition: border-color 140ms; }
.recent-clear:hover { border-color: var(--bad); }
.recent-requests ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.recent-requests li { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.8rem; flex-wrap: wrap; }
.recent-requests .rr-id { color: var(--consumer); flex: 0 0 auto; }
.recent-requests .rr-sum { color: var(--text); flex: 1 1 auto; min-width: 0; }
.recent-requests .rr-status { color: var(--muted); font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; flex: 0 0 auto; }
.rr-note { margin-top: 0.5rem; color: var(--muted); font-size: 0.66rem; }
@media (prefers-reduced-motion: reduce) { .recent-clear { transition: none; } }


