/* ==========================================================================
   卡谱 Kapu — 视觉基线
   暗色精密仪表：发丝边、等宽数字、铜金点缀；日间为「浅色纸感」而非反色
   ========================================================================== */

/* ---------- 令牌 ---------- */
:root {
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --w-max: 1180px;
  --pad: 28px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .22s;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0B0D;
  --bg-elev: #0E1013;
  --surface: #12141A;
  --surface-2: #171A21;
  --line: #23262E;
  --line-soft: #1A1D24;
  --text: #EDEAE3;
  --text-2: #B9B6AE;
  --muted: #8A8882;
  --faint: #5C5A55;
  --accent: #C99055;
  --accent-ink: #0A0B0D;
  --accent-soft: rgba(201, 144, 85, .12);
  --accent-line: rgba(201, 144, 85, .34);
  --ok: #6FA97F;
  --warn: #C9A05A;
  --bad: #B4675F;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -28px rgba(0, 0, 0, .9);
  --grid: rgba(255, 255, 255, .035);
  /* 卡面插画与卡内 logo 的配色，跟主题一起切换 */
  --card-face: #14161B;
  --logo-gold: #C99055;
  --logo-edge: #9A6A2E;
  --logo-groove: #14161A;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F1EB;
  --bg-elev: #F8F6F1;
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --line: #E0DCD2;
  --line-soft: #EAE6DC;
  --text: #1A1B1D;
  --text-2: #43443F;
  --muted: #6F6D66;
  --faint: #9B978E;
  --accent: #A2662F;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(162, 102, 47, .10);
  --accent-line: rgba(162, 102, 47, .30);
  --ok: #4C8359;
  --warn: #96702B;
  --bad: #A15049;
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 16px 34px -30px rgba(60, 50, 35, .5);
  --grid: rgba(26, 27, 29, .045);
  --card-face: #FFFFFF;
  --logo-gold: #C08636;
  --logo-edge: #8A5216;
  --logo-groove: #FFFFFF;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent-soft); color: var(--text); }

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

.wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- 通用小字 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   顶栏
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-in {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

/* 卡片是横版的，容器不再锁成正方形：高度定死、宽度跟着比例走。 */
.brand-mark { height: 29px; flex: 0 0 auto; display: flex; }
.brand-mark svg { height: 100%; width: auto; display: block; }

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .09em;
  padding-left: 1px;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
  padding-left: 1px;
}

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

.nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}

.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.icon-btn:hover { color: var(--text); border-color: var(--accent-line); }
.icon-btn svg { width: 16px; height: 16px; }

.theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .sun { display: block; }
html[data-theme="light"] .theme-toggle .moon { display: none; }

.menu-btn { display: none; }

/* ==========================================================================
   首屏
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 18% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 18% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 372px);
  grid-template-areas:
    "copy visual"
    "stats visual";
  column-gap: 52px;
  row-gap: 26px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 46px;
}

.hero-copy { grid-area: copy; }
.hero-visual { grid-area: visual; display: flex; justify-content: flex-end; }
.hero-stats { grid-area: stats; }
.hero-art { width: 100%; max-width: 352px; height: auto; color: var(--text); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.22;
  letter-spacing: -.01em;
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 20em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lede {
  font-size: 15.5px;
  color: var(--text-2);
  max-width: 44em;
  margin: 0;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
  width: fit-content;
}

.stat {
  padding: 13px 22px 12px;
  border-right: 1px solid var(--line-soft);
  min-width: 128px;
}

.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--text);
}

.stat span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
  margin-top: 3px;
}

/* ==========================================================================
   工具栏（吸顶）
   ========================================================================== */
.toolbar {
  position: sticky;
  top: 62px;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.toolbar-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.search {
  position: relative;
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 360px;
}

.search svg {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--faint);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color var(--dur) var(--ease);
}

.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--accent-line); }

.select-wrap { position: relative; }

.select-wrap select {
  height: 36px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}

.select-wrap select:focus { outline: none; border-color: var(--accent-line); }

.select-wrap::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.4px solid var(--muted);
  border-bottom: 1.4px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.chip-toggle {
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.chip-toggle:hover { color: var(--text); border-color: var(--accent-line); }

.chip-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.chip-toggle .tick {
  width: 13px; height: 13px;
  border: 1px solid currentColor;
  border-radius: 3px;
  display: grid;
  place-items: center;
  opacity: .55;
}

.chip-toggle[aria-pressed="true"] .tick { opacity: 1; }
.chip-toggle[aria-pressed="true"] .tick::after {
  content: "";
  width: 7px; height: 4px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg) translate(0.5px, -1px);
}

.result-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  white-space: nowrap;
}

.result-count b { color: var(--accent); font-weight: 500; }

/* ==========================================================================
   卡片网格
   ========================================================================== */
.catalog { padding: 26px 0 72px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 17px 17px 14px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.005em;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.region-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 2px;
  background: var(--surface-2);
}

.region-tag .code { color: var(--accent); }

/* 卡片标题与地区标签之间的数字锚点：保号年成本，最影响决策的一个数 */
.keep-anchor {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
}

.keep-anchor b { font-weight: 500; color: var(--text-2); }
.keep-anchor i { font-style: normal; font-size: 10px; opacity: .72; }
.keep-anchor.none {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--muted);
  opacity: .85;
  border-bottom: 1px dotted var(--line);
  cursor: help;
}

.card-summary {
  font-size: 13.2px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-2);
  letter-spacing: .02em;
}

.tag.solid { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.tag.ghost { background: transparent; }

.card-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.card-foot .keep {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.foot-label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  flex: 0 0 auto;
}

.stars { margin-left: auto; position: relative; z-index: 2; }

/* 详情页头部：收藏按钮跟在按钮组后面就好，别被 auto 推到半空 */
.btn-star { margin-left: 2px; }

.star-btn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.star-btn:hover { color: var(--accent); border-color: var(--line); }
.star-btn svg { width: 15px; height: 15px; }
.star-btn[aria-pressed="true"] { color: var(--accent); }
.star-btn[aria-pressed="true"] svg { fill: var(--accent); }

/* 可申请状态 */
.st { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.st::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}
.st-yes { color: var(--ok); }
.st-cond { color: var(--warn); }
.st-no { color: var(--bad); }

/* 空状态 */
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-elev);
}

.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.empty span { font-size: 13px; }
.empty button {
  margin-top: 16px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
}
.empty button:hover { border-color: var(--accent-line); color: var(--accent); }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-elev);
  padding: 40px 0 34px;
  margin-top: 40px;
}

.footer-in {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand { flex: 1 1 260px; min-width: 240px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  max-width: 30em;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin: 0 0 10px;
  font-family: var(--font-mono);
}

.footer-col a, .footer-col span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  padding: 3px 0;
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11.5px;
  color: var(--faint);
}

.byline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--muted);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.byline a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.byline a:hover { border-bottom-color: var(--accent-line); }

/* ==========================================================================
   详情页
   ========================================================================== */
.page-head {
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(90% 120% at 12% 0%, var(--accent-soft) 0%, transparent 62%),
    var(--bg);
}

.crumbs {
  font-size: 12px;
  color: var(--faint);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }

.head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 44px;
  align-items: start;
}

.head-main { min-width: 0; }

.head-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 6px;
}

.prod-art { width: 100%; max-width: 300px; height: auto; color: var(--text); }

.page-head h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.24;
  letter-spacing: -.012em;
  font-weight: 600;
  margin: 0 0 12px;
}

.head-sub {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}

.head-summary {
  font-size: 15px;
  color: var(--text-2);
  margin: 16px 0 0;
  max-width: 40em;
  line-height: 1.75;
}

.head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  height: 36px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.btn:hover { border-color: var(--accent-line); color: var(--text); }
.btn svg { width: 14px; height: 14px; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}

.btn-primary:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.06); }

/* 快速判断 */
.verdict {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  margin: 0 0 30px;
}

.vcell {
  padding: 14px 16px;
  border-right: 1px solid var(--line-soft);
}

.vcell:last-child { border-right: 0; }

.vcell .k {
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--faint);
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.vcell .v { font-size: 13.5px; font-weight: 500; }
.vcell .v.yes { color: var(--ok); }
.vcell .v.cond { color: var(--warn); }
.vcell .v.no { color: var(--bad); }

/* 正文分栏 */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  /* 只设上下内边距：左右必须留给同元素上的 .wrap（--pad），
     否则窄屏下正文会顶到屏幕边缘、章节编号被切掉一截。 */
  padding-top: 34px;
  padding-bottom: 70px;
  align-items: start;
}

.doc { min-width: 0; max-width: 64ch; }

.section { margin-bottom: 36px; scroll-margin-top: 90px; }

.section > h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section > h2 .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .06em;
  font-weight: 400;
}

.section p { margin: 0 0 12px; color: var(--text-2); font-size: 14.4px; max-width: 62ch; }
.section p:last-child { margin-bottom: 0; }

/* 定义列表 */
.dl { border-top: 1px solid var(--line-soft); }

.dl-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.dl-row dt {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .02em;
}

.dl-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.dl-row dd .mono { color: var(--text); }

/* 侧栏 */
.side {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 16px;
}

.side-card h3 {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  font-family: var(--font-mono);
  font-weight: 500;
  margin: 0 0 12px;
}

.toc a {
  display: flex;
  gap: 9px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.toc a:hover { color: var(--accent); }

.toc .n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  padding-top: 2px;
  min-width: 14px;
}

.side-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex: 0 0 auto; white-space: nowrap; }
.kv b {
  font-weight: 500; color: var(--text-2); font-family: var(--font-mono);
  font-size: 11.5px; text-align: right; line-height: 1.5;
  margin-left: auto; overflow-wrap: anywhere;
}

/* 教程入口 */
.guide-cards { display: grid; gap: 10px; }

.guide-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 16px;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.guide-card:hover { border-color: var(--accent-line); background: var(--surface-2); }

.guide-card .g-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 2px 6px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.guide-card b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.guide-card span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* 提示块 */
.notice {
  border: 1px solid var(--accent-line);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
}

.notice b { color: var(--text); }

.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }

.tips li {
  position: relative;
  padding-left: 20px;
  font-size: 13.6px;
  color: var(--text-2);
  line-height: 1.7;
}

.tips li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .65;
}

/* ==========================================================================
   教程页
   ========================================================================== */
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 22px;
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 30px;
  bottom: -2px;
  width: 1px;
  background: var(--line);
}

.step:last-child::before { display: none; }

.step .dot {
  counter-increment: step;
  width: 33px; height: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  position: relative;
  z-index: 1;
}

.step .dot::after { content: counter(step, decimal-leading-zero); }

.step-body { padding-top: 4px; }

.step-body h3 {
  font-size: 14.6px;
  font-weight: 600;
  margin: 0 0 5px;
  letter-spacing: -.003em;
}

.step-body p {
  margin: 0;
  font-size: 13.8px;
  color: var(--text-2);
  line-height: 1.72;
}

.module-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.module-head h2 { font-size: 18px; font-weight: 600; margin: 0; }

.module-intro {
  font-size: 13.6px;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 40em;
}

.module { margin-bottom: 40px; scroll-margin-top: 92px; }

/* ==========================================================================
   地区页 / 关于页
   ========================================================================== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 30px 0 60px;
}

.region-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 16px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.region-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }

.region-card .rc-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.region-card b { font-size: 15px; font-weight: 600; }
.region-card .rc-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.region-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
}

.region-card .rc-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .04em;
}

.prose { max-width: 44em; }

.prose h2 {
  font-size: 17px;
  margin: 34px 0 12px;
  font-weight: 600;
}

.prose h2:first-child { margin-top: 0; }

.prose p { font-size: 14.4px; color: var(--text-2); margin: 0 0 12px; }

.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { font-size: 14px; color: var(--text-2); margin-bottom: 7px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; margin-top: 8px; }
  .verdict { grid-template-columns: repeat(2, 1fr); }
  .vcell:nth-child(2) { border-right: 0; }
  .vcell:nth-child(1), .vcell:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 860px) {
  :root { --pad: 18px; }

  .nav {
    position: fixed;
    inset: 62px 0 auto;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 14px;
    gap: 2px;
    display: none;
    box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .8);
  }

  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 14px; }
  .brand-sub { display: none; }
  .menu-btn { display: grid; }
  .header-in { gap: 10px; height: 56px; }
  .toolbar { top: 56px; }
  .nav { inset: 56px 0 auto; }

  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "visual"
      "stats";
    gap: 22px;
    padding-top: 38px;
    padding-bottom: 30px;
  }
  .hero-visual { justify-content: center; }
  /* 三卡图在窄屏上要给足尺寸：卡面上的国家名与运营商名是按 viewBox 等比缩的，
     图太小就整片糊成一团色块，不如不放。 */
  .hero-art { max-width: 286px; }
  .hero h1 { font-size: 30px; }
  .hero p.lede { font-size: 14.2px; }
  .hero-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .stat { min-width: 0; padding: 11px 14px 10px; border-right: 1px solid var(--line-soft); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .stat b { font-size: 19px; }
  .stat span { font-size: 10.5px; }

  .head-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .head-visual { justify-content: flex-start; order: -1; padding-top: 0; }
  .prod-art { max-width: 240px; }

  .toolbar-in { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .search { flex: 1 1 100%; max-width: none; }
  .result-count { margin-left: 0; order: 9; }

  .grid { grid-template-columns: 1fr; gap: 12px; }
  .catalog { padding: 18px 0 56px; }

  .page-head { padding: 22px 0 20px; }
  .head-actions { margin-top: 16px; }
  .verdict { grid-template-columns: 1fr 1fr; }
  .vcell { padding: 12px 13px; }
  .dl-row { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .dl-row dd { font-size: 13.4px; }
  .footer-in { gap: 28px; }
  .footer-links { gap: 32px; }
  .byline { margin-left: 0; width: 100%; }
}

@media (max-width: 420px) {
  .browse-chips { gap: 6px; }
  .stat span { letter-spacing: 0; }
  .head-sub { font-size: 12px; gap: 6px 10px; }
}

/* ==========================================================================
   地区筛选条
   ========================================================================== */
.browse-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
}

.browse-chips a {
  font-size: 12.5px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.browse-chips a:hover { color: var(--text); border-color: var(--accent-line); }
.browse-chips a .n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  margin-left: 5px;
}

/* 提示：数据核验日 */
.verified-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .04em;
}

.verified-line::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 14%, transparent);
}

/* ==========================================================================
   资料新鲜度 / 维护分层 / 反馈入口
   ========================================================================== */
.tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-2);
  vertical-align: 1px;
}

.tier-badge.core {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.fb-link svg { width: 12px; height: 12px; opacity: .8; }
.fb-link:hover { border-bottom-color: var(--accent-line); }
