/* UnitRatio —「精密仪器」工程感主题（v1 设计稿复刻）
   自托管 Inter，零第三方字体/脚本。Design tokens 见 HANDOFF.md 第一节。 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-800-normal.woff2') format('woff2');
}

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink2: #44403C;
  --muted: #78716C;
  --border: #E7E5E4;
  --dark: #134E4A;
  --dark2: #0C3833;
  --accent: #0D9488;
  --accentInk: #0F766E;
  --accentSoft: #CCFBF1;
  --good: #059669;
  --warn: #D97706;
  --radius-card: 16px;
  --radius-input: 10px;
  --radius-tile: 12px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── 顶栏：64px 白底 + 底部分隔线 ─────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-weight: 800;
  font-size: 21px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.logo .logo-ratio { color: var(--accentInk); }
.logo-dots {
  position: relative;
  width: 14px;
  height: 18px;
  display: inline-block;
  margin-left: 3px;
}
.logo-dots i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: var(--accent);
}
.logo-dots i:first-child { top: 0; right: 4px; }
.logo-dots i:last-child { bottom: 0; right: 0; }

.nav-right { display: flex; align-items: center; gap: 28px; }
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  text-decoration: none;
  letter-spacing: .04em;
}
.lang-pill:hover { border-color: var(--accent); color: var(--accentInk); }
.lang-pill svg { display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--ink2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accentInk); }

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 64px 64px;
}

h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 10px 0 14px;
}
h2 { font-size: 24px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 16px 0 8px; }
p { margin: 8px 0; }
code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

a { color: var(--accentInk); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.breadcrumbs { font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accentInk); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumb-sep { margin: 0 6px; color: var(--muted); }

.fact { font-size: 17px; color: var(--ink2); max-width: 780px; }
.page-sub { color: var(--muted); font-size: 16px; max-width: 720px; margin: 0 0 18px; }

/* ── 徽章 ───────────────────────────────────────────────── */
.badge-row { display: flex; gap: 10px; margin: 14px 0 22px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-accent { background: var(--accentSoft); color: var(--accentInk); }
.badge-outline { background: var(--surface); color: var(--ink2); border: 1px solid var(--border); }
.badge-dark { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── 计算器卡 ───────────────────────────────────────────── */
.converter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin: 16px 0;
}
.converter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 10px;
}
.calc-in {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-in input {
  font: inherit;
  font-size: 28px;
  font-weight: 700;
  padding: 14px 64px 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.calc-in input:focus { border-color: var(--accent); }
.calc-in .suffix-select {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  border: none;
  background: transparent;
  padding: 0 14px 0 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.unit-suffix {
  position: absolute;
  right: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}
.swap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 10px auto;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.swap:hover { background: var(--accentInk); }

.result-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--accentSoft);
  border-radius: var(--radius-input);
  padding: 14px 64px 12px 16px;
}
.result-panel input {
  font: inherit;
  font-size: 30px;
  font-weight: 800;
  border: none;
  background: transparent;
  color: var(--accentInk);
  width: 100%;
  padding: 0;
  font-variant-numeric: tabular-nums;
}
.result-panel input:focus { outline: none; }
.result-panel .unit-suffix { color: var(--accentInk); opacity: .75; font-weight: 700; }
.result-panel .echo {
  font-size: 13px;
  color: var(--ink2);
  margin: 4px 0 0;
  min-height: 1.2em;
}
.result-panel .steps {
  background: transparent;
  padding: 0;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
}

.coef-chip {
  margin-top: 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accentInk);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}
.coef-chip:hover { background: var(--accentSoft); }
.coef-chip[aria-expanded="true"] { background: var(--accentSoft); }
.calc-detail { margin-top: 10px; }
.steps {
  font-size: 15px;
  font-weight: 600;
  color: var(--accentInk);
  background: var(--accentSoft);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
  overflow-x: auto;
}
.error {
  color: #B42318;
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  border-radius: var(--radius-input);
  padding: 8px 12px;
  margin: 10px 0 0;
  font-size: 14px;
}
.coef-note { font-size: 13px; color: var(--muted); }

/* 精度胶囊 */
.precision {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
}
.precision-label { color: var(--muted); font-weight: 500; }
.precision-pills { display: inline-flex; gap: 8px; }
.precision-pill {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-width: 38px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  cursor: pointer;
}
.precision-pill:hover { border-color: var(--accent); }
.precision-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.calc-hint { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* ── 换算表（双列并排，数值右对齐） ───────────────────────── */
.table-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  align-items: start;
  margin: 12px 0 6px;
}
.conv-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.conv-table th, .conv-table td {
  padding: 9px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.conv-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}
.conv-table td.t-in, .conv-table th.t-in { text-align: right; font-weight: 600; color: var(--ink); width: 42%; }
.conv-table td.t-out, .conv-table th.t-out { text-align: right; font-weight: 700; color: var(--accentInk); }
.table-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* ── 公式卡（深色 mono 条 + SOURCE 徽章） ────────────────── */
.formula-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin: 20px 0;
}
.formula-bar {
  background: var(--dark);
  border-radius: var(--radius-input);
  padding: 16px 20px;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  color: #fff;
  margin: 12px 0;
  overflow-x: auto;
  font-variant-numeric: tabular-nums;
}
.source-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 6px;
}

/* ── 单位定义卡 ─────────────────────────────────────────── */
.defs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin: 20px 0;
}
.defs-card dl { margin: 8px 0 0; }
.defs-card dt { font-weight: 700; color: var(--accentInk); margin-top: 12px; }
.defs-card dd { margin: 4px 0 0; color: var(--ink2); }
.defs-card .def-src { color: var(--muted); font-size: 13px; font-style: normal; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list details {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 4px;
  margin: 0;
  background: transparent;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-list details p { color: var(--ink2); margin: 8px 0 2px; max-width: 720px; }

/* ── 深色旗舰推广带 ─────────────────────────────────────── */
.cta-band {
  background: var(--dark);
  border-radius: var(--radius-card);
  padding: 32px 36px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.cta-band p { color: rgba(204, 251, 241, .85); margin: 0; max-width: 520px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--accentInk); border-color: var(--accentInk); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accentInk); background: var(--surface); }
.btn svg { display: block; }

/* ── 词对页布局：主列 848 + 侧列 424 ────────────────────── */
.pair-layout {
  display: grid;
  grid-template-columns: 848px 424px;
  gap: 40px;
  align-items: start;
}
.pair-main { min-width: 0; }
.pair-side { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
}
.side-card h2 { font-size: 16px; margin: 0 0 6px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-top: 1px solid var(--border); }
.side-list li:first-child { border-top: none; }
.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.side-list a:hover { color: var(--accentInk); }
.side-list .side-arrow { color: var(--accent); flex: none; }

/* ── 广告位：虚线框占位，零网络请求 ─────────────────────── */
.ad-slot {
  border: 1.5px dashed #D6D3D1;
  border-radius: var(--radius-card);
  background: transparent;
  min-height: 110px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── 首页 Hero ─────────────────────────────────────────── */
.hero-dark {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 80px),
    var(--dark);
  margin: 0 -64px;
  padding: 44px 64px 48px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 32px 64px;
  align-items: center;
}
.hero-copy .hero-badge {
  display: inline-block;
  background: var(--accentSoft);
  color: var(--accentInk);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-copy h1 {
  color: #fff;
  font-size: 56px;
  line-height: 1.08;
  margin: 0 0 18px;
}
.hero-copy .hero-sub {
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  max-width: 460px;
  margin: 0;
}
.hero-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.hero-card .converter {
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.trust-bar {
  grid-column: 1 / -1;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-weight: 600;
}
.trust-bar svg { color: var(--accentSoft); flex: none; }

/* ── 首页场景卡 ─────────────────────────────────────────── */
.home-section { margin-top: 72px; }
.home-section > .section-sub { color: var(--muted); margin: 0 0 28px; }
.scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
}
.scenario-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.scenario-card .sc-icon { color: var(--accent); margin-bottom: 10px; }
.scenario-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.scenario-card > p { font-size: 14px; color: var(--ink2); margin: 0 0 14px; }
.scenario-card .converter {
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: var(--radius-tile);
  padding: 14px;
  margin: 0;
}
.scenario-card .converter-label { display: none; }
.scenario-card .calc-in input { font-size: 20px; padding: 10px 52px 10px 12px; }
.scenario-card .result-panel { padding: 10px 52px 8px 12px; }
.scenario-card .result-panel input { font-size: 22px; }
.scenario-card .swap { width: 32px; height: 32px; margin: 8px auto; }
.scenario-card .coef-chip, .scenario-card .precision { display: none; }
.scenario-card .table-note { margin: 12px 0 0; }
.hero-card .converter { padding-bottom: 4px; }
.hero-more { font-size: 13px; font-weight: 600; text-decoration: none; display: inline-block; margin-top: 12px; }

/* ── All converters 8 tile ─────────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: 18px 20px;
  min-height: 108px;
  text-decoration: none;
  transition: border-color .12s ease;
}
.tile:hover { border-color: var(--accent); }
.tile-name { font-weight: 700; font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.tile-name svg { color: var(--accent); flex: none; }
.tile-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ── 首页货币带 ─────────────────────────────────────────── */
.currency-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}
.currency-band h3 { font-size: 22px; font-weight: 800; margin: 10px 0 6px; }
.currency-band .band-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; max-width: 460px; }
.band-link { font-weight: 600; font-size: 14px; text-decoration: none; }
.band-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.band-rate { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.band-rate .br-label { color: var(--muted); }
.band-rate .br-value { font-weight: 700; color: var(--accentInk); }

/* ── 可审计三列 ─────────────────────────────────────────── */
.trust-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust-col .tc-icon { color: var(--accent); margin-bottom: 10px; }
.trust-col h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.trust-col p { font-size: 14px; color: var(--ink2); margin: 0; }

/* ── 旗舰页 ────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.tab {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 7px 18px;
  background: transparent;
  color: var(--ink2);
  cursor: pointer;
}
.tab.active { background: var(--accent); color: #fff; }
.uc-grid { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 16px; align-items: end; }
.uc-grid .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.field select, textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.field select:focus, textarea:focus { border-color: var(--accent); }
.uc-swap {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.uc-swap:hover { background: var(--accentSoft); }
.exact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accentInk);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
}
.flag-layout { display: grid; grid-template-columns: 848px 424px; gap: 40px; align-items: start; }
.batch-panel textarea { min-height: 130px; font-variant-numeric: tabular-nums; margin: 10px 0; }
.batch-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.batch-results {
  margin-top: 14px;
  font-size: 15px;
  color: var(--accentInk);
  font-weight: 600;
  background: var(--accentSoft);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  flex: 1 1 320px;
}
.batch-results ul { margin: 0; padding: 0; list-style: none; }
.batch-results li { display: inline; }
.batch-results li + li::before { content: ' · '; color: var(--muted); }
.batch-error { color: #B42318; }
.cat-rows { display: flex; flex-direction: column; }
.cat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.cat-row:first-child { border-top: none; }
.cat-row .cat-name { font-weight: 700; color: var(--accentInk); }
.cat-row .cat-units { color: var(--muted); font-size: 13px; }

/* ── 货币页 ────────────────────────────────────────────── */
.cur-layout { display: grid; grid-template-columns: 848px 424px; gap: 40px; align-items: start; }
.cur-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  margin: 16px 0 20px;
}
.cur-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cur-result {
  background: var(--accentSoft);
  border-radius: var(--radius-input);
  padding: 18px 20px;
  margin: 18px 0 0;
}
.cur-result .cur-value { font-size: 32px; font-weight: 800; color: var(--accentInk); }
.cur-result .cur-unit { font-size: 16px; font-weight: 700; color: var(--accentInk); margin-left: 6px; }
.cur-result .cur-formula { font-size: 13px; color: var(--ink2); margin: 4px 0 0; }
.cur-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0 14px; }
.cur-updated { display: flex; align-items: center; gap: 8px; color: var(--good); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.cur-source { font-size: 13px; color: var(--muted); margin: 0; }
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 12px; }
.rate-cell { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.rate-cell .rc-code { color: var(--ink2); font-weight: 600; }
.rate-cell .rc-val { font-weight: 700; color: var(--accentInk); }
.asof-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.rates-table .rt-row {
  display: grid;
  grid-template-columns: 1.2fr 80px 1fr 90px;
  gap: 16px;
  align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border);
}
.rates-table .rt-head {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 4px;
}
.rt-name { font-weight: 600; }
.rt-code { color: var(--muted); font-size: 13px; }
.rt-rate { text-align: right; font-weight: 700; color: var(--accentInk); }
.rt-rate .rt-asof { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.rt-delta { text-align: right; font-weight: 700; font-size: 14px; }
.rt-delta.up { color: var(--good); }
.rt-delta.down { color: var(--warn); }
.rt-delta.flat { color: var(--muted); }

/* ── 页脚：4 列 ────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 56px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 64px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo { font-size: 21px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 280px; margin: 12px 0; }
.footer-brand a { color: var(--accentInk); font-size: 14px; text-decoration: none; font-weight: 600; }
.footer-col h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 4px 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--accentInk); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 64px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* ── 响应式 ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pair-layout, .flag-layout, .cur-layout { grid-template-columns: 1fr; }
  .hero-dark { grid-template-columns: 1fr; min-height: 0; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios, .trust-cols { grid-template-columns: 1fr; }
  .currency-band { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav { padding: 0 20px; gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  main { padding: 20px 20px 48px; }
  .hero-dark { margin: 0 -20px; padding: 48px 20px 56px; }
  .hero-copy h1 { font-size: 38px; }
  h1 { font-size: 30px; }
  .uc-grid { grid-template-columns: 1fr; }
  .table-pair { grid-template-columns: 1fr; }
  .cur-fields { grid-template-columns: 1fr; }
  .footer-inner, .footer-bottom { padding-left: 20px; padding-right: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-band { padding: 24px; }
}
