/* ==========================================================================
   ClashLab design system
   高级科技编辑部 × 国际网络指南：深海军蓝/石墨 + 暖白 + 电光青
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #0b1626;          /* 深海军蓝：主文字、深色区块 */
  --ink-2: #16243a;
  --ink-3: #24344d;
  --graphite: #2a2f36;
  --paper: #faf8f4;        /* 暖白：页面背景 */
  --paper-2: #f2efe9;      /* 浅灰暖：分区背景 */
  --surface: #ffffff;      /* 卡片 */
  --line: #e3dfd7;         /* 细线 */
  --line-strong: #cfc9bd;
  --text: #1a2332;
  --muted: #5a6474;        /* 次要文字（AA 对比度） */
  --accent: #0b7480;       /* 蓝绿：链接、强调（浅底 AA） */
  --accent-strong: #075e68;
  --signal: #2ee6e0;       /* 电光青：深底上的点缀 */
  --signal-soft: rgba(46, 230, 224, .14);
  --warn-bg: #fff3d6;
  --warn-ink: #7a4e00;
  --ok-bg: #e2f4ef;
  --ok-ink: #0d5c4a;
  --bad-bg: #fbe7e4;
  --bad-ink: #8a2a1c;

  /* Type */
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --measure: 40em;   /* 中文正文舒适行宽 ≈ 36–42 字 */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 22, 38, .04), 0 8px 24px -12px rgba(11, 22, 38, .12);
  --shadow-hover: 0 2px 4px rgba(11, 22, 38, .05), 0 18px 40px -18px rgba(11, 22, 38, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--fs-base)/1.75 var(--font-sans);
  font-feature-settings: "palt" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: var(--fs-2xl); letter-spacing: -.02em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--signal-soft); color: var(--ink); }
.mono { font-family: var(--font-mono); font-size: .92em; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-xs)/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 40em; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.125rem; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { font: 500 .6875rem/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; margin-left: 2px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 11px; border-radius: 8px; color: var(--graphite); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; position: relative; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.header-search { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.header-search:hover { border-color: var(--line-strong); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; margin: 0; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #dbe4ef; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(to bottom, transparent, rgba(11, 22, 38, .6)); z-index: -1; }
.hero-map { position: absolute; inset: 0; z-index: -2; opacity: .9; }
.hero-map svg { width: 100%; height: 100%; }
.hero-inner { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); max-width: 760px; }
.hero .eyebrow { color: var(--signal); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 10%, var(--signal) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: var(--fs-lg); line-height: 1.6; color: #b9c6d6; margin-bottom: 32px; max-width: 34em; }
.search-box { display: flex; gap: 8px; padding: 6px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; backdrop-filter: blur(8px); transition: border-color .3s, background .3s, box-shadow .3s; }
.search-box:focus-within { border-color: var(--signal); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(46, 230, 224, .15); }
.search-box svg { flex: none; align-self: center; margin-left: 12px; color: #8ea0b6; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 1rem; padding: 12px 6px; }
.search-box input::placeholder { color: #8ea0b6; }
.search-box input:focus { outline: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; font: 600 var(--fs-sm)/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: #7ff2ee; color: var(--ink); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.quick-filters span { font-size: var(--fs-xs); color: #8ea0b6; align-self: center; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: #dbe4ef; text-decoration: none; font-size: var(--fs-sm); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--signal); color: #fff; background: rgba(46, 230, 224, .08); transform: translateY(-1px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-sm); color: #9fb0c4; }
.hero-meta strong { display: block; color: #fff; font: 600 1rem/1.4 var(--font-sans); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { box-shadow: none; }
.card:has(h3 a:focus-visible) { box-shadow: var(--focus); }
.card p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 14px; }
.card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line); }
.card-kicker { font: 600 var(--fs-xs)/1 var(--font-mono); color: var(--accent); letter-spacing: .04em; margin-bottom: 10px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--paper-2); color: var(--graphite); border: 1px solid var(--line); }
.badge--demo { background: var(--warn-bg); color: var(--warn-ink); border-color: #f0d9a2; }
.badge--ok { background: var(--ok-bg); color: var(--ok-ink); border-color: #bfe3d8; }
.badge--partial { background: #e8eef7; color: #26446e; border-color: #c9d6e9; }
.badge--bad { background: var(--bad-bg); color: var(--bad-ink); border-color: #f1c9c2; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Review card */
.review-card { padding: 0; overflow: hidden; }
.review-card__head { padding: 22px 22px 16px; display: flex; gap: 14px; align-items: flex-start; }
.review-card__logo { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--signal); font: 700 1.1rem/1 var(--font-mono); }
.review-card__head h3 { margin: 0 0 6px; }
.review-card__body { padding: 0 22px 18px; display: grid; gap: 12px; font-size: var(--fs-sm); }
.kv { display: grid; grid-template-columns: 5.5em 1fr; gap: 4px 12px; margin: 0; }
.kv dt { color: var(--muted); font-size: var(--fs-xs); padding-top: 3px; }
.kv dd { margin: 0; color: var(--text); }
.review-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; background: var(--paper); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.review-card.is-hidden { display: none; }
.review-card__head { align-items: center; }
.rank-no { flex: none; font: 700 1.5rem/1 var(--font-mono); color: var(--line-strong); letter-spacing: -.04em; min-width: 1.6em; }
.review-card:hover .rank-no { color: var(--accent); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge--rank { background: var(--ink); color: #fff; border-color: var(--ink); }
.verdict { margin: 0; color: var(--text); font-size: var(--fs-sm); line-height: 1.65; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stat-row > div { background: var(--paper); padding: 8px 10px; }
.stat-row dt { font-size: .72rem; color: var(--muted); }
.stat-row dd { margin: 0; font: 700 1rem/1.4 var(--font-mono); color: var(--ink); }
.stat-row small { font: 400 .72rem var(--font-sans); color: var(--muted); }
.card-actions, .coupon { position: relative; z-index: 1; }
.coupon { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); border: 1px dashed var(--accent); border-radius: 8px; padding: 3px 4px 3px 8px; background: var(--surface); }
.coupon__label { color: var(--muted); }
.coupon code { font: 700 .82rem var(--font-mono); color: var(--accent-strong); background: none; border: 0; padding: 0; }
.coupon__copy { font: 600 .72rem var(--font-sans); border: 0; border-radius: 6px; padding: 3px 8px; background: var(--ok-bg); color: var(--ok-ink); cursor: pointer; transition: background .2s; }
.coupon__copy:hover { background: #cdebe3; }
.coupon--none { border-style: solid; border-color: var(--line); color: var(--muted); padding: 4px 8px; }
.aff-tag { font-size: .68rem; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .16); margin-left: 2px; }
.btn--ghost .aff-tag { background: var(--warn-bg); color: var(--warn-ink); }
.buy-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.buy-box .coupon { font-size: var(--fs-sm); padding: 6px 6px 6px 12px; }
.buy-actions { display: inline-flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.buy-note { font-size: var(--fs-xs); }
@media (max-width: 640px) { .buy-actions { margin-left: 0; width: 100%; } .buy-actions .btn { flex: 1; } }
.prose--wide { max-width: 50em; }
.nowrap { white-space: nowrap; }
tr.is-best td { background: #f1faf7; }
tr.is-self td { background: #eef6f7; }
.rank-table td, .rank-table th { white-space: nowrap; }
.verdict-lg { font-size: 1.12rem; line-height: 1.7; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 16px; }
.shot { margin: 1.6em 0; }
.shot img { display: block; width: 100%; max-width: 660px; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
.shot figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.faq { margin-bottom: 10px; }
.tier-grid { display: grid; gap: 14px; margin: 1.2em 0; }
.tier { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); border-left-width: 4px; }
.tier--t1 { border-left-color: var(--accent); }
.tier--t2 { border-left-color: #6b8fbf; }
.tier--t3 { border-left-color: var(--line-strong); }
.tier__head { display: flex; align-items: baseline; gap: 10px; }
.tier__head b { font: 800 1.25rem/1 var(--font-mono); color: var(--ink); }
.tier p { margin: 4px 0 8px; font-size: var(--fs-sm); }
.tier ul { margin: 0; padding-left: 1.2em; }
.tier li small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.tier-chip { display: inline-block; font: 700 .75rem/1.6 var(--font-mono); padding: 0 8px; border-radius: 6px; background: var(--paper-2); color: var(--muted); }
.tier-chip--t1 { background: var(--ok-bg); color: var(--ok-ink); }
.tier-chip--t2 { background: #e8eef7; color: #26446e; }
.faq summary { cursor: pointer; }
.faq p { margin: 10px 0 0; }

/* ---------- Filters (catalog) ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.filters legend { font-weight: 650; font-size: var(--fs-sm); color: var(--ink); margin-bottom: 8px; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: var(--fs-sm); cursor: pointer; }
.filters input[type="checkbox"], .filters input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: var(--fs-sm); color: var(--muted); }
.select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.filters-toggle { display: none; }
.empty-state { display: none; padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty-state.is-visible { display: block; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; animation: drop .3s var(--ease); }
  .filters-toggle { display: inline-flex; }
}

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); line-height: 1.65; margin: 0 0 20px; }
.notice svg { flex: none; margin-top: 3px; }
.notice p:last-child { margin: 0; }
.notice--warn { background: var(--warn-bg); border-color: #f0d9a2; color: var(--warn-ink); }
.notice--info { background: #eaf4f5; border-color: #c4e1e4; color: #0d4b52; }
.notice--demo { background: repeating-linear-gradient(-45deg, var(--warn-bg), var(--warn-bg) 12px, #fff7e3 12px, #fff7e3 24px); border-color: #ecd193; color: var(--warn-ink); }
.notice strong { color: inherit; }

/* ---------- Page header & breadcrumb ---------- */
.page-head { padding: 40px 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, var(--paper-2), var(--paper)); }
.page-head h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); max-width: 22em; view-transition-name: page-title; }
.page-head .lede { font-size: var(--fs-lg); color: var(--muted); max-width: 38em; margin: 0; line-height: 1.6; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.byline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: var(--fs-sm); color: var(--muted); }
.byline b { color: var(--ink); font-weight: 600; }

/* ---------- Article layout ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.article-layout > aside { order: 2; }
.article-layout > article, .catalog > div { min-width: 0; }
.toc { position: sticky; top: 92px; font-size: var(--fs-sm); }
.toc h2 { font-size: var(--fs-xs); letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.5; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.toc .toc-sub a { padding-left: 26px; font-size: var(--fs-xs); }
.toc-mobile { display: none; }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .article-layout > aside { display: none; }
  .toc-mobile { display: block; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .toc-mobile summary { padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: var(--fs-sm); list-style: none; display: flex; justify-content: space-between; }
  .toc-mobile summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
  .toc-mobile[open] summary::after { content: "–"; }
  .toc-mobile .toc { position: static; padding: 0 16px 14px; }
  .toc-mobile .toc h2 { display: none; }
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .7em; padding-top: .4em; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.65rem); }
.prose h3 { margin: 1.8em 0 .6em; font-size: 1.2rem; }
.prose p, .prose li { color: #222c3b; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--paper-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: var(--ink); color: #dbe4ef; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: .875rem; line-height: 1.65; margin: 0 0 1.4em; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose .callout { padding: 16px 20px; border-radius: 12px; margin: 1.5em 0; border: 1px solid; font-size: .975rem; }
.prose .callout > :last-child { margin-bottom: 0; }
.prose .callout--note { background: #eaf4f5; border-color: #c4e1e4; }
.prose .callout--warn { background: var(--warn-bg); border-color: #f0d9a2; }
.prose .callout--warn p, .prose .callout--warn li { color: #5b3b00; }
.prose .callout-title { display: block; font-weight: 700; margin-bottom: 4px; font-size: var(--fs-sm); }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.prose .table-wrap { max-width: none; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--paper-2); color: var(--ink); font-weight: 650; white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfbf8; }
td.na { color: var(--muted); font-style: italic; }

.article-foot { margin-top: 48px; display: grid; gap: 16px; max-width: var(--measure); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px 22px; }
.panel h2, .panel h3 { font-size: 1rem; margin-bottom: 10px; }
.panel ol, .panel ul { margin: 0; padding-left: 1.3em; font-size: var(--fs-sm); }
.panel li { margin: 4px 0; }
.panel p { font-size: var(--fs-sm); margin-bottom: 8px; }
.panel p:last-child { margin: 0; }

/* ---------- Review detail ---------- */
.review-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.review-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin-top: 28px; }
.review-facts div { padding: 14px 18px; border-right: 1px solid var(--line); }
.review-facts div:last-child { border-right: 0; }
.review-facts dt { font-size: var(--fs-xs); color: var(--muted); }
.review-facts dd { margin: 2px 0 0; font-weight: 650; color: var(--ink); font-size: var(--fs-sm); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.6em; }
.fit { border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); }
.fit h3 { font-size: .95rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.fit ul { margin: 0; padding-left: 1.2em; font-size: var(--fs-sm); }
.fit--yes h3 { color: var(--ok-ink); }
.fit--no h3 { color: var(--bad-ink); }
@media (max-width: 640px) { .fit-grid { grid-template-columns: 1fr; } .review-hero { grid-template-columns: 1fr; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.sponsored-label { font-size: var(--fs-xs); color: var(--warn-ink); }
.score-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.score-list li { display: grid; grid-template-columns: 11em 1fr auto; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.score-bar { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.score-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--signal)); border-radius: inherit; transform-origin: left; }
@media (max-width: 560px) { .score-list li { grid-template-columns: 1fr auto; } .score-bar { grid-column: 1 / -1; } }

/* ---------- Methodology strip ---------- */
.method { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.method ol { list-style: none; counter-reset: m; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.method li { counter-increment: m; background: var(--surface); padding: 16px 18px 16px 58px; position: relative; font-size: var(--fs-sm); }
.method li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font: 600 var(--fs-xs)/1.6 var(--font-mono); color: var(--accent); }
.method li b { display: block; color: var(--ink); font-size: var(--fs-base); }
.method li span { color: var(--muted); }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Topic list ---------- */
.topic-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.topic-list li { border-bottom: 1px solid var(--line); }
.topic-list a { display: grid; grid-template-columns: 3em 1fr auto; gap: 16px; align-items: baseline; padding: 18px 4px; text-decoration: none; color: var(--ink); transition: background .25s, padding .3s var(--ease); }
.topic-list a:hover { background: var(--surface); padding-left: 14px; }
.topic-list .n { font: 600 var(--fs-xs)/1 var(--font-mono); color: var(--accent); }
.topic-list .t { font-weight: 600; }
.topic-list .t small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.topic-list .d { font: var(--fs-xs)/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .topic-list a { grid-template-columns: 2.2em 1fr; } .topic-list .d { display: none; } }

/* ---------- Subscribe ---------- */
.subscribe { background: var(--ink); color: #c5d1df; border-radius: 20px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.subscribe::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(46, 230, 224, .22), transparent 65%); pointer-events: none; }
.subscribe h2 { color: #fff; }
.subscribe form { display: grid; gap: 10px; position: relative; }
.subscribe input[type="email"] { font: inherit; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; }
.subscribe input[type="email"]::placeholder { color: #8ea0b6; }
.subscribe label.consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); color: #9fb0c4; }
.subscribe .consent input { margin-top: 4px; accent-color: var(--signal); }
.subscribe a { color: var(--signal); }
.subscribe .form-note { font-size: var(--fs-xs); color: #8ea0b6; margin: 0; }
@media (max-width: 820px) { .subscribe { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: var(--ink); color: #9fb0c4; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 36px; }
.site-footer h2 { color: #fff; font-size: var(--fs-sm); margin-bottom: 12px; font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #c5d1df; text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: #7f90a6; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Search page ---------- */
.search-page .search-box { background: var(--surface); border-color: var(--line-strong); }
.search-page .search-box input { color: var(--ink); }
.search-page .search-box svg { color: var(--muted); }
.search-results { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.search-results li a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .2s, transform .25s var(--ease); }
.search-results li a:hover { border-color: var(--accent); transform: translateX(3px); }
.search-results b { color: var(--ink); display: block; }
.search-results small { color: var(--muted); }
.search-results mark { background: var(--signal-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- Motion ---------- */
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes dash { to { stroke-dashoffset: -400; } }
@keyframes pulse { 0%, 100% { opacity: .35; r: 2.5; } 50% { opacity: 1; r: 4; } }
/* 渐显：内容默认始终可见；只在即将进入视口时播放一次入场动画，
   不会让截图、打印或渲染型爬虫看到空白区块。 */
@keyframes reveal-in { from { opacity: 0; transform: translateY(14px); } }
.reveal.is-in { animation: reveal-in .7s var(--ease) both; }
.hero-map .route { stroke-dasharray: 3 7; animation: dash 30s linear infinite; }
.hero-map .node { animation: pulse 3.2s ease-in-out infinite; }
.hero-map .node:nth-of-type(3n) { animation-delay: -1.1s; }
.hero-map .node:nth-of-type(3n+1) { animation-delay: -2.2s; }
.flip-anim { transition: transform .45s var(--ease), opacity .3s; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal.is-in { animation: none; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .site-footer, .toc, .subscribe, .hero-map, .cta-row { display: none !important; }
  body { background: #fff; }
}
