/* vinunwrap — Stitch 设计稿落地（2026-10-24，modern dark telemetry console）
   来源：doc/design/2026-10-24/reference/*/tokens.json + code.html
   字体自托管（jakarta-var.woff2 / jetbrains-var.woff2），禁外部字体/CDN */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/jakarta-var.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 色板（tokens.json tailwindConfig 同源） */
  --bg: #080D1A;            /* background / surface-dim */
  --surface: #0B1220;
  --surface-low: #0F172A;   /* surface-container */
  --surface-high: #1E293B;  /* surface-container-high / variant */
  --surface-lowest: #030712;
  --surface-bright: #334155;
  --footer-bg: #050914;
  --card-deep: #060B16;

  --ink: #F8FAFC;           /* on-surface */
  --ink-soft: #F1F5F9;      /* on-background */
  --muted: #94A3B8;         /* on-surface-variant */
  /* AA override（a11yOverrides.json：4.04→4.5+ on surface-bright） */
  --muted-bright: #A0AFC4;
  --outline: #475569;
  --line: rgba(148, 163, 184, .14);

  --primary: #38BDF8;       /* sky */
  --primary-deep: #0284C7;  /* primary-container */
  --blue: #2563EB;
  --blue-mid: #3B82F6;
  --cyan: #22D3EE;
  --on-dark-accent: #7BD0FF; /* primary-fixed-dim */

  --success: #34D399;
  --success-deep: #059669;
  --success-ink: #D1FAE5;
  --amber: #F59E0B;
  --amber-soft: #FFB95F;
  --error: #F87171;

  /* 字号档（typeScale） */
  --fs-headline-xl: 38px;  --lh-headline-xl: 46px;  --ls-headline-xl: -0.03em;
  --fs-headline-lg: 24px;  --lh-headline-lg: 32px;  --ls-headline-lg: -0.02em;
  --fs-headline-sm: 18px;  --lh-headline-sm: 24px;  --ls-headline-sm: -0.01em;
  --fs-body-lg: 16px;      --lh-body-lg: 25px;
  --fs-body-md: 14px;      --lh-body-md: 21px;
  --fs-body-sm: 12px;      --lh-body-sm: 17px;
  --fs-label: 11px;        --lh-label: 14px;
  --fs-mono-display: 22px; --lh-mono-display: 28px;
  --fs-mono-data: 13px;    --lh-mono-data: 18px;

  /* 组件令牌（customCssTokens） */
  --glass-card: rgba(15, 23, 42, .72);
  --glass-input: rgba(4, 9, 20, .75);
  --glass-border: rgba(255, 255, 255, .08);
  --input-line: rgba(56, 189, 248, .22);
  --radius: 8px; --radius-lg: 12px; --radius-full: 999px;

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink-soft); font-family: var(--sans);
       -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh;
       background-image:
         radial-gradient(circle at 18% 12%, rgba(59, 130, 246, .14) 0%, transparent 45%),
         radial-gradient(circle at 82% 8%, rgba(34, 211, 238, .10) 0%, transparent 42%),
         radial-gradient(circle at 50% 48%, rgba(14, 165, 233, .06) 0%, transparent 60%);
       background-attachment: fixed; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--on-dark-accent); }
p { color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ===== 顶部遥测条 ===== */
.telemetry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px; padding: 6px 24px; font-family: var(--mono); font-size: var(--fs-label);
  line-height: var(--lh-label); letter-spacing: .05em; color: var(--muted);
  background: rgba(5, 9, 20, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.telemetry .grp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.telemetry .ok { color: var(--success); font-weight: 600; }
.telemetry .ok::before { content: ""; display: inline-block; width: 6px; height: 6px;
  margin-right: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 8px #34D399; animation: pulse 2.4s infinite; }
.telemetry .dim { color: #475569; }
.telemetry .accent-c { color: var(--cyan); font-weight: 600; letter-spacing: .02em; }
.telemetry .accent-a { color: var(--amber); }
@keyframes pulse { 50% { opacity: .45; } }
@media (max-width: 640px) { .telemetry .hide-sm { display: none; } }

/* ===== 页眉 ===== */
.site-header { position: sticky; top: 0; z-index: 50;
  background: rgba(8, 13, 26, .82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); }
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 40px; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; gap: 16px; }
.wordmark { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm);
  font-weight: 800; letter-spacing: var(--ls-headline-sm); color: #ffffff; }
.wordmark em { font-style: normal; color: var(--primary); }
.wordmark-code { font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  padding: 2px 8px; margin-left: 8px; border-radius: 4px;
  background: var(--surface-low); border: 1px solid var(--line); color: var(--primary); }
.site-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { padding: 8px 12px; border-radius: var(--radius); font-size: var(--fs-body-md);
  line-height: var(--lh-body-md); color: var(--muted); white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--primary); background: rgba(56, 189, 248, .08); }

/* ===== 主体布局 ===== */
main.wrap { padding-top: 40px; padding-bottom: 56px; display: block; }
main.wrap > section, main.wrap > article { margin-bottom: 40px; }
main.wrap > :last-child { margin-bottom: 0; }

/* ===== 信任 chip ===== */
.trust-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 4px 12px; margin-bottom: 12px; border-radius: var(--radius-full);
  background: rgba(15, 23, 42, .9); border: 1px solid rgba(34, 211, 238, .3);
  font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  color: #E2E8F0; box-shadow: 0 0 20px rgba(34, 211, 238, .08); }
.trust-chip .sep { color: #334155; }
.trust-chip .hl-g { color: var(--success); font-weight: 700; }
.trust-chip .hl-c { color: var(--cyan); font-weight: 700; letter-spacing: .04em; }
.trust-chip svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }

/* ===== 标题层级 ===== */
h1 { font-size: var(--fs-headline-xl); line-height: var(--lh-headline-xl);
  letter-spacing: var(--ls-headline-xl); font-weight: 800; color: #ffffff;
  margin: 0 0 12px; max-width: 56rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
h2 { font-size: var(--fs-headline-lg); line-height: var(--lh-headline-lg);
  letter-spacing: var(--ls-headline-lg); font-weight: 700; color: #ffffff; margin: 0 0 10px; }
h3 { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm);
  letter-spacing: var(--ls-headline-sm); font-weight: 600; color: #ffffff; margin: 0 0 6px; }
.lede { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: #CBD5E1;
  max-width: 48rem; margin: 0 0 24px; }
.kicker { display: block; font-family: var(--mono); font-size: var(--fs-label);
  line-height: var(--lh-label); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }

/* ===== 玻璃卡 ===== */
.glass-card { background: var(--glass-card); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); }

/* ===== VIN 解码台 ===== */
.console { position: relative; overflow: hidden; padding: 16px;
  border: 1px solid rgba(56, 189, 248, .2);
  box-shadow: 0 12px 50px rgba(0, 0, 0, .65), 0 0 30px rgba(34, 211, 238, .06); }
@media (min-width: 768px) { .console { padding: 24px; } }
.console::before { content: ""; position: absolute; top: -96px; left: 33%;
  width: 320px; height: 128px; background: rgba(34, 211, 238, .1);
  filter: blur(48px); border-radius: 50%; pointer-events: none; }
.console::after { content: ""; position: absolute; bottom: -96px; right: 25%;
  width: 320px; height: 128px; background: rgba(37, 99, 235, .1);
  filter: blur(48px); border-radius: 50%; pointer-events: none; }
.console-head { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: var(--fs-label);
  line-height: var(--lh-label); margin-bottom: 16px; position: relative; z-index: 1; }
.console-head .title { color: var(--ink-soft); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.console-head .title svg { width: 15px; height: 15px; color: var(--primary); }
.console-tools { display: flex; align-items: center; gap: 8px; }
.vin-counter { padding: 4px 10px; border-radius: 4px; background: var(--surface-low);
  border: 1px solid var(--line); color: var(--on-dark-accent);
  font-size: var(--fs-body-sm); letter-spacing: .04em; font-weight: 600; transition: all .2s; }
.vin-counter.full { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4);
  color: var(--success); box-shadow: 0 0 12px rgba(52, 211, 153, .2); }
.iso-badge { display: none; padding: 4px 10px; border-radius: 4px;
  background: rgba(52, 211, 153, .1); color: var(--success);
  border: 1px solid rgba(52, 211, 153, .3); font-weight: 600; text-transform: uppercase; }
@media (min-width: 640px) { .iso-badge { display: inline-block; } }

.vin-form { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; margin: 0; }
@media (min-width: 768px) { .vin-form { flex-direction: row; align-items: stretch; } }
.vin-input-wrap { position: relative; flex: 1; display: flex; }
.vin-input-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--primary); pointer-events: none; }
input.vin-input { width: 100%; height: 56px; padding: 0 92px 0 44px;
  border-radius: var(--radius); background: var(--glass-input);
  backdrop-filter: blur(12px); border: 1px solid var(--input-line);
  color: #ffffff; font-family: var(--mono); font-size: var(--fs-mono-display);
  line-height: var(--lh-mono-display); letter-spacing: .08em; text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s; }
input.vin-input::placeholder { color: #475569; }
input.vin-input:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .4), 0 0 24px rgba(56, 189, 248, .15); }
.input-tools { position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 6px; }
.input-tools button { min-width: 44px; min-height: 44px; border: 1px solid var(--line);
  border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--mono); font-size: var(--fs-body-sm); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s; }
.input-tools button:hover { color: var(--primary); background: var(--surface-high); }
.input-tools button svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .input-tools button.paste { display: none; } }

button.decode-btn { height: 56px; padding: 0 32px; border: 0; border-radius: var(--radius);
  cursor: pointer; flex-shrink: 0;
  background: linear-gradient(135deg, #38BDF8 0%, #3B82F6 50%, #2563EB 100%);
  color: #020617; font-family: var(--sans); font-size: 16px;
  line-height: var(--lh-headline-sm); font-weight: 800; letter-spacing: var(--ls-headline-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 0 24px -2px rgba(56, 189, 248, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: all .2s; }
button.decode-btn:hover { background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #2563EB 100%);
  box-shadow: 0 0 32px 0 rgba(56, 189, 248, .6), inset 0 1px 0 rgba(255, 255, 255, .45); }
button.decode-btn:active { transform: scale(.98); }
button.decode-btn svg { width: 22px; height: 22px; }
button.decode-btn[disabled] { opacity: .7; cursor: wait; }

.console-hint { display: flex; flex-direction: column; gap: 6px; justify-content: space-between;
  padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  color: var(--muted); position: relative; z-index: 1; }
@media (min-width: 640px) { .console-hint { flex-direction: row; align-items: center; } }
.console-hint .api { color: var(--success); display: inline-flex; align-items: center; gap: 6px;
  word-break: break-all; }
.console-hint kbd { padding: 1px 6px; border-radius: 4px; background: var(--surface-low);
  border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--mono);
  font-size: var(--fs-label); }

/* ===== 结果卡 ===== */
.result-card { scroll-margin-top: 90px; }
.result-shell { border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: rgba(11, 18, 32, .9); backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.result-head { display: flex; flex-direction: column; gap: 12px; justify-content: space-between;
  padding: 16px; background: linear-gradient(90deg, rgba(15, 23, 42, .9), rgba(15, 23, 42, .8), rgba(15, 23, 42, .9));
  border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .result-head { flex-direction: row; align-items: center; } }
.result-id { display: flex; align-items: center; gap: 12px; }
.result-badge { width: 44px; height: 44px; border-radius: var(--radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(37, 99, 235, .1));
  border: 1px solid rgba(34, 211, 238, .4); box-shadow: 0 0 15px rgba(34, 211, 238, .25); }
.result-badge svg { width: 22px; height: 22px; }
.result-title { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm);
  font-weight: 800; letter-spacing: var(--ls-headline-sm); color: #ffffff; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  color: var(--muted); margin-top: 4px; }
.result-meta .vin { color: var(--primary); font-size: var(--fs-mono-data); font-weight: 600;
  letter-spacing: .04em; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { padding: 9px 14px; min-height: 44px; border-radius: var(--radius);
  background: rgba(30, 41, 59, .9); border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip-btn:hover { border-color: rgba(56, 189, 248, .5); color: var(--on-dark-accent);
  background: rgba(51, 65, 85, .8); }
.chip-btn svg { width: 15px; height: 15px; }

.spec-sheet-head { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 16px; background: var(--card-deep);
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.spec-sheet-head .caps { font-family: var(--mono); font-size: var(--fs-label);
  line-height: var(--lh-label); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #CBD5E1; }
.spec-sheet-head .match { font-family: var(--mono); font-size: var(--fs-label); color: var(--success);
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.spec-sheet-head .match::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 6px #34D399; }

.spec-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .spec-grid { grid-template-columns: 1fr 1fr 1fr; } }
.spec-grid > div { border-bottom: 1px solid var(--line); }
.spec-grid > div:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .spec-grid > div { border-bottom: 0; border-right: 1px solid var(--line); }
  .spec-grid > div:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1024px) {
  .spec-grid > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .spec-grid > div:nth-child(3n) { border-right: 0; }
}
.spec-cell { padding: 16px; transition: background .15s; }
.spec-cell:hover { background: rgba(30, 41, 59, .4); }
.spec-cell .k { display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.spec-cell .v { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-top: 6px; }
.spec-cell .v .main { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm);
  font-weight: 700; letter-spacing: var(--ls-headline-sm); color: #ffffff; }
.spec-cell .v .sub { font-family: var(--mono); font-size: var(--fs-label);
  line-height: var(--lh-label); color: #CBD5E1; text-align: right; }
.spec-cell .v .mono { font-family: var(--mono); font-size: var(--fs-mono-data);
  line-height: var(--lh-mono-data); font-weight: 600; color: var(--on-dark-accent);
  letter-spacing: .02em; }
.spec-cell .v .mono.amber { color: var(--amber-soft); }
.spec-cell .v .mono.green { color: var(--success); }

.result-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; padding: 16px; background: var(--footer-bg); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--muted); }
.result-foot .ok-line { color: var(--success); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; }
.result-foot svg { width: 15px; height: 15px; }

.struct { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface-low); border: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--fs-body-sm); line-height: 1.7;
  color: var(--muted-bright); overflow-x: auto; }
.struct b { color: var(--cyan); font-weight: 600; }
.struct .warn { color: var(--amber-soft); }

/* 错误/加载态 */
.decode-error { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(147, 0, 10, .35); border: 1px solid rgba(248, 113, 113, .45);
  color: #FECACA; font-size: var(--fs-body-md); line-height: var(--lh-body-md); }
.decode-error[hidden] { display: none; }
.decode-loading { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(2, 132, 199, .15); border: 1px solid rgba(56, 189, 248, .4);
  color: var(--on-dark-accent); font-family: var(--mono); font-size: var(--fs-body-sm);
  display: flex; align-items: center; gap: 8px; }
.decode-loading[hidden] { display: none; }
.decode-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, .3); border-top-color: var(--primary);
  animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 区块头 ===== */
.section-head { display: flex; flex-direction: column; gap: 6px; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .section-head { flex-direction: row; align-items: flex-end; } }
.section-head .count { font-family: var(--mono); font-size: var(--fs-label);
  line-height: var(--lh-label); color: var(--muted); font-weight: 600; }

/* ===== 矩阵 / 品牌卡 ===== */
.brand-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .brand-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .brand-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
a.brand-card, .glass-link-card { display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; border-radius: var(--radius-lg); transition: all .2s; color: inherit; }
a.brand-card:hover, .glass-link-card:hover { border-color: rgba(56, 189, 248, .5);
  box-shadow: 0 8px 24px rgba(34, 211, 238, .12); color: inherit; }
a.brand-card:hover h3, .glass-link-card:hover h3 { color: var(--on-dark-accent); }
.brand-card h3 { font-size: 16px; line-height: 24px; font-weight: 700; }
.brand-card .top { display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  color: var(--muted); margin-bottom: 6px; }
.brand-card .top .arrow { color: var(--primary); font-size: var(--fs-mono-data); transition: transform .2s; }
.brand-card:hover .top .arrow { transform: translateX(3px); }
.brand-card p, .glass-link-card p { font-size: 16px; line-height: 24px;
  color: #CBD5E1; margin: 4px 0 0; }
.brand-card .foot { display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.brand-card .foot .live { color: var(--success); font-weight: 600; }
.brand-card.amber-accent .top .arrow { color: var(--amber-soft); }
.brand-card.amber-accent:hover { border-color: rgba(245, 158, 11, .5);
  box-shadow: 0 8px 24px rgba(245, 158, 11, .12); }
.brand-card.amber-accent:hover h3 { color: var(--amber-soft); }

/* ===== 注意条 ===== */
.crosscheck-notice, .warn-callout { display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 158, 11, .4);
  background: linear-gradient(90deg, rgba(245, 158, 11, .1), rgba(15, 23, 42, .9), rgba(15, 23, 42, .9));
  box-shadow: 0 8px 30px rgba(245, 158, 11, .08); }
.notice-icon { width: 44px; height: 44px; border-radius: var(--radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--amber);
  background: rgba(245, 158, 11, .15); border: 1px solid rgba(245, 158, 11, .4);
  box-shadow: 0 0 16px rgba(245, 158, 11, .2); }
.notice-icon svg { width: 24px; height: 24px; }
.notice-body { flex: 1; }
.notice-tag { display: inline-block; padding: 2px 8px; margin-right: 8px; border-radius: 4px;
  background: var(--amber); color: #0F172A; font-family: var(--mono);
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; }
.notice-title { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm);
  font-weight: 700; color: var(--amber-soft); }
.crosscheck-notice p, .warn-callout p { font-size: var(--fs-body-md); line-height: var(--lh-body-md);
  color: #CBD5E1; margin: 8px 0 0; }
.notice-cta { flex-shrink: 0; align-self: center; }
.text-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  min-height: 44px; border-radius: var(--radius); background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .5); color: var(--amber-soft);
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 600; transition: all .15s; }
.text-cta:hover { background: rgba(245, 158, 11, .2); border-color: var(--amber); color: #FCD34D; }

/* ===== 表格 ===== */
.table-shell { border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: rgba(11, 18, 32, .9); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.table-scroll { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-body-md); }
table.spec caption { text-align: left; padding: 12px 16px; background: var(--card-deep);
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: var(--fs-label);
  line-height: var(--lh-label); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #CBD5E1; caption-side: top; }
table.spec th { text-align: left; padding: 10px 16px; background: var(--surface-low);
  font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
  border-bottom: 1px solid var(--line); white-space: nowrap; }
table.spec td { padding: 10px 16px; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); vertical-align: top; }
table.spec tbody tr:nth-child(even) { background: rgba(30, 41, 59, .25); }
table.spec tbody tr:hover { background: rgba(30, 41, 59, .5); }
table.spec td.mono, table.spec th.mono { font-family: var(--mono); font-size: var(--fs-mono-data);
  line-height: var(--lh-mono-data); letter-spacing: .02em; }
table.spec td .sub { display: block; font-family: var(--mono); font-size: var(--fs-label);
  color: var(--muted); margin-top: 2px; }
table.spec td code, .prose code, td code { font-family: var(--mono); font-size: var(--fs-body-sm);
  color: var(--on-dark-accent); background: var(--surface-low);
  padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }
/* 年份表首列强调（对齐 vin-year-chart 稿：青色等宽大数字） */
table.spec td.mono-accent { font-family: var(--mono); font-size: 16px; line-height: 24px;
  color: var(--cyan); font-weight: 600; letter-spacing: .04em; }

/* ===== 数据清单 ===== */
.data-list { list-style: none; margin: 0; padding: 0; }
.data-list li { padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-body-md); line-height: var(--lh-body-md); color: var(--ink-soft);
  display: flex; gap: 10px; align-items: baseline; }
.data-list li:last-child { border-bottom: 0; }
.data-list .n { font-family: var(--mono); font-size: var(--fs-mono-data); color: var(--primary);
  font-weight: 700; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .faq-grid { grid-template-columns: 1fr 1fr; } }
details.faq-item { padding: 24px; border-radius: var(--radius-lg); transition: border-color .2s; }
details.faq-item:hover { border-color: var(--outline); }
details.faq-item summary { list-style: none; cursor: pointer; display: flex; gap: 10px;
  align-items: flex-start; padding: 0; min-height: 0; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .qn { flex-shrink: 0; padding: 2px 8px; border-radius: 4px;
  font-family: var(--mono); font-size: var(--fs-mono-data); line-height: var(--lh-mono-data);
  font-weight: 700; color: var(--primary); background: rgba(2, 132, 199, .35);
  border: 1px solid rgba(56, 189, 248, .3); }
details.faq-item:nth-child(even) summary .qn { color: var(--amber-soft);
  background: rgba(120, 53, 15, .45); border-color: rgba(245, 158, 11, .3); }
details.faq-item summary h3 { flex: 1; }
details.faq-item summary::after { content: "+"; margin-left: auto; color: var(--primary);
  font-weight: 700; font-size: 18px; line-height: 1; }
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .faq-a { font-size: var(--fs-body-md); line-height: var(--lh-body-md);
  color: #CBD5E1; margin: 10px 0 0; padding-left: 42px; }
details.faq-item .faq-a strong { color: #ffffff; }

/* ===== 正文排版 ===== */
.prose { font-size: var(--fs-body-md); line-height: var(--lh-body-md); color: var(--ink-soft); max-width: 52rem; }
.prose p { margin: 0 0 14px; color: #CBD5E1; }
.prose p strong, .prose strong { color: #ffffff; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; color: #CBD5E1; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 16px 0; padding: 14px 18px; border-left: 3px solid var(--primary);
  background: rgba(15, 23, 42, .6); border-radius: 0 var(--radius) var(--radius) 0;
  color: #CBD5E1; }
.prose blockquote p { margin: 0; }
.footnotes { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--muted);
  border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }

/* 面包屑 */
.breadcrumb { font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  color: var(--muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #334155; }

/* ===== 页脚 ===== */
.site-footer { background: var(--footer-bg); border-top: 1px solid rgba(30, 41, 59, .9); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(12, 1fr); } }
.footer-brand { grid-column: span 2; }
@media (min-width: 1024px) { .footer-brand { grid-column: span 4; } }
@media (min-width: 768px) { .footer-col { grid-column: span 1; } }
@media (min-width: 1024px) { .footer-col { grid-column: span 2; } }
.site-footer h4 { font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffffff;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.site-footer p { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: #CBD5E1;
  max-width: 24rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm);
  color: #CBD5E1; display: inline-flex; align-items: center; min-height: 32px; }
.site-footer li a:hover { color: var(--primary); }
.footer-policy { margin-top: 16px; padding: 16px; border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, .6); border: 1px solid var(--line); }
.footer-policy .tag { display: flex; align-items: center; gap: 6px; color: var(--amber);
  font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.footer-policy .tag svg { width: 15px; height: 15px; }
.footer-policy p { margin: 0; }
.colophon, .copyright { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: var(--fs-label); line-height: var(--lh-label);
  color: var(--muted-bright); }
.colophon a, .copyright a { color: var(--muted); }
.colophon a:hover, .copyright a:hover { color: var(--primary); }

/* CTA 行（内容页结尾） */
.cta-line { margin: 20px 0 0; padding: 16px 20px; border-radius: var(--radius-lg);
  background: rgba(2, 132, 199, .12); border: 1px solid rgba(56, 189, 248, .35);
  font-size: var(--fs-body-md); line-height: var(--lh-body-md); color: #E2E8F0; }
.cta-line a { font-weight: 700; }

/* ===== 打印 ===== */
@media print {
  body { background: #ffffff !important; color: #000000 !important; }
  .telemetry, .site-header, .site-footer, .console-hint, .input-tools,
  .decode-btn, .result-actions, .notice-cta { display: none !important; }
  .glass-card, .console, .result-shell, .table-shell { background: #ffffff !important;
    border: 1px solid #cccccc !important; box-shadow: none !important; backdrop-filter: none !important; }
  .console::before, .console::after { display: none !important; }
  h1, h2, h3, .result-title, .spec-cell .v .main, .notice-title { color: #000000 !important;
    text-shadow: none !important; }
  p, .prose p, .spec-cell .v .sub, table.spec td, .brand-card p { color: #222222 !important; }
  a { color: #000000 !important; text-decoration: underline !important; }
  a[href^="/"]::after { content: " (vinunwrap.com" attr(href) ")"; font-size: 10px; color: #555555; }
  details.faq-item { border: 1px solid #cccccc !important; }
  details.faq-item .faq-a { display: block !important; }
}

/* 动效克制 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 博客板块（2026-10-24 家族标配） */
.byline { color: var(--muted); font-size: .92rem; margin: -.5rem 0 1.5rem; }
.byline a { color: var(--primary); }
.post-list { display: grid; gap: 1rem; margin: 1.75rem 0; }
a.post-card { display: block; padding: 1.25rem 1.4rem; text-decoration: none; }
a.post-card .date { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
a.post-card h2 { margin: .4rem 0 .5rem; font-size: 1.2rem; color: var(--ink); }
a.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
a.post-card:hover h2 { color: var(--primary); }
.post-foot { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
