/* =========================================================
   clashhub 设计系统
   方向：高级科技编辑部 + 国际网络指南 —— 简洁、冷静、可信
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #0b1526;          /* 主色：深海军蓝 */
  --graphite: #1b2230;      /* 石墨黑 */
  --ink: #0f1a2b;           /* 正文标题 */
  --text: #263142;          /* 正文 */
  --muted: #5b6577;         /* 次要文字（对比度 ≥ 4.5:1） */
  --paper: #faf8f4;         /* 暖白背景 */
  --paper-2: #f2f0ea;       /* 浅灰分区 */
  --card: #ffffff;
  --line: #e5e1d8;
  --line-strong: #d3cec2;
  --accent: #14b8a6;        /* 强调色：蓝绿（装饰用） */
  --accent-ink: #0b6f66;    /* 强调色：文字/链接用（对比度 ≥ 5:1） */
  --accent-soft: #e2f4f1;
  --cyan: #45e0f0;          /* 电光青（深色底上使用） */
  --warn-ink: #8a4b00; --warn-soft: #fff3df; --warn-line: #f1d3a3;
  --demo-ink: #5a3fc0; --demo-soft: #f1edff; --demo-line: #d8cdfb;
  --ok-ink: #17663a; --ok-soft: #e4f4ea;
  --note-soft: #eaf1fb; --note-line: #c9d9f0; --note-ink: #1f4b85;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --fs-xs: .8125rem; --fs-sm: .9rem; --fs-base: 1.0625rem; --fs-lg: 1.2rem;
  --fs-h3: 1.15rem; --fs-h2: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); --fs-h1: clamp(1.85rem, 1.3rem + 2.4vw, 3.1rem);

  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 21, 38, .04), 0 10px 30px -18px rgba(11, 21, 38, .25);
  --shadow-hover: 0 1px 2px rgba(11, 21, 38, .05), 0 22px 44px -22px rgba(11, 21, 38, .35);
  --max: 1180px; --measure: 40rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #070d18; --graphite: #0d1421;
    --ink: #eef2f8; --text: #cfd6e2; --muted: #9aa4b5;
    --paper: #0b111c; --paper-2: #101826; --card: #111a29;
    --line: #1f2a3c; --line-strong: #2b3850;
    --accent-ink: #5eead4; --accent-soft: #0f2c2b;
    --warn-ink: #f5c27a; --warn-soft: #2a1f0e; --warn-line: #57401b;
    --demo-ink: #c4b5fd; --demo-soft: #1e1838; --demo-line: #3d3270;
    --ok-ink: #86efac; --ok-soft: #0f2a1a;
    --note-soft: #0f1d33; --note-line: #23395c; --note-ink: #9cc3f5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -18px rgba(0, 0, 0, .6);
    --shadow-hover: 0 1px 2px rgba(0, 0, 0, .3), 0 22px 44px -22px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.8;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; letter-spacing: -.01em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
h2, h3, .lede { text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
img, svg { max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--navy); color: #dbe4f0; padding: 1rem 1.2rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.center { text-align: center; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- 3. Header / Footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; view-transition-name: site-header;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 750; letter-spacing: -.02em; font-size: 1.15rem; flex: none; }
.brand-name { font-family: var(--font); }
.main-nav { flex: 1; min-width: 0; }
.main-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .4rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; white-space: nowrap; position: relative; transition: background .2s, color .2s; }
.main-nav a:hover { background: var(--paper-2); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--card); border-color: var(--line-strong); }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: .6rem; gap: .4rem 1rem; }
  .brand { order: 1; }
  .icon-btn { order: 2; margin-left: auto; width: 38px; height: 38px; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); margin-inline: -8px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { padding: 0 8px .45rem; }
  .main-nav a { padding: .35rem .6rem; font-size: .92rem; }
}

.site-footer { margin-top: 6rem; background: var(--navy); color: #b9c3d3; padding: 3.5rem 0 1.5rem; font-size: var(--fs-sm); }
.site-footer a { color: #dce4ef; text-decoration-color: rgba(255, 255, 255, .25); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer h2 { color: #fff; font-size: .95rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer ul a { text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.footer-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-tags h2 { margin: 0; font-size: .85rem; color: #8c98ab; font-weight: 600; }
.site-footer .footer-tags ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-footer .footer-tags a { padding: .25rem .7rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; font-size: .85rem; transition: border-color .2s, background .2s; }
.site-footer .footer-tags a:hover { border-color: var(--accent); background: rgba(20, 184, 166, .12); }
.footer-tags + .footer-bottom { margin-top: 1.4rem; }
.faq details > ul { color: var(--text); padding-bottom: .6rem; }
.faq details[id] { scroll-margin-top: 90px; }
@media (min-width: 1001px) { .faq details[id] { scroll-margin-top: 220px; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); color: #8c98ab; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 4. Buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--graphite); border-color: var(--graphite); }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--accent); color: #04221f; border-color: var(--accent); } .btn-primary:hover { background: #2dd4bf; border-color: #2dd4bf; } }
.btn .aff { font-size: .7rem; font-weight: 600; padding: .1rem .4rem; border-radius: 5px; background: rgba(255, 255, 255, .16); letter-spacing: .02em; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: .9rem; text-decoration: none; transition: border-color .2s, background .2s, transform .25s var(--ease); }
.chip:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 .55rem; border-radius: 6px; font-size: .75rem; font-weight: 600; background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.badge-demo { background: var(--demo-soft); color: var(--demo-ink); border-color: var(--demo-line); }
.badge-pick { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.tag-unverified { display: inline-block; font-size: .8em; font-weight: 600; color: var(--warn-ink); background: var(--warn-soft); border: 1px solid var(--warn-line); padding: 0 .4em; border-radius: 5px; }
.tag-ok { display: inline-block; font-size: .8em; font-weight: 600; color: var(--ok-ink); background: var(--ok-soft); padding: 0 .4em; border-radius: 5px; }
.tag-warn { color: var(--warn-ink); font-weight: 600; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); margin-bottom: .45em; }
.hero h1 .hl { display: inline-block; position: relative; color: var(--ink); }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .28em; z-index: -1; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent), color-mix(in srgb, var(--cyan) 30%, transparent)); transform-origin: left; animation: underline 1s .3s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero .lede { font-size: var(--fs-lg); color: var(--muted); margin-bottom: 1.6rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: .9rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.search-box { position: relative; display: flex; align-items: center; max-width: 620px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 5px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .3s var(--ease); margin-bottom: 1.1rem; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-hover); }
.search-ico { display: grid; place-items: center; padding: 0 .4rem 0 .7rem; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: .65rem .3rem; }
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--muted); opacity: .85; }
.search-box button { flex: none; min-height: 44px; padding: 0 1.2rem; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s; }
.search-box button:hover { background: var(--graphite); }
@media (prefers-color-scheme: dark) { .search-box button { background: var(--accent); color: #04221f; } }

.hero-art { position: relative; aspect-ratio: 56 / 44; }
.route-map { width: 100%; height: 100%; overflow: visible; }
.route-map .grid-dot { fill: var(--line-strong); }
.route-map .globe { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 6; }
.route-map .route { stroke: url(#fade); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 8; animation: flow 3.5s linear infinite; }
.route-map .route.faint { stroke: var(--line-strong); stroke-dasharray: 2 6; animation-duration: 9s; }
.route-map .r2 { animation-duration: 4.2s; } .route-map .r3 { animation-duration: 3s; } .route-map .r4 { animation-duration: 4.8s; } .route-map .r5 { animation-duration: 3.8s; }
@keyframes flow { to { stroke-dashoffset: -140; } }
.route-map .hub { fill: var(--navy); stroke: var(--accent); stroke-width: 3; }
.route-map .ring { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-origin: 280px 220px; animation: ring 3s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.route-map .node { fill: var(--card); stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: node-in .7s var(--ease) both; }
.route-map .n1 { animation-delay: .2s; } .route-map .n2 { animation-delay: .35s; } .route-map .n3 { animation-delay: .5s; } .route-map .n4 { animation-delay: .65s; } .route-map .n5 { animation-delay: .8s; }
@keyframes node-in { from { transform: scale(0); } }
.route-map .labels text { fill: var(--muted); font-family: var(--font); }
@media (prefers-color-scheme: dark) { .route-map .hub { fill: var(--accent); stroke: var(--navy); } }

.trust-strip { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip li { padding: 1.1rem 1.2rem 1.1rem 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.trust-strip li + li { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.trust-strip strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .15rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: -1rem auto -1.5rem; width: 100%; opacity: .9; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip li:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- 6. Sections & cards ---------- */
.band { padding-top: clamp(3rem, 6vw, 5rem); }
.band.dark { margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(3rem, 6vw, 5rem) 0; background: var(--navy); color: #c3cddb; position: relative; overflow: hidden; }
.band.dark::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark .eyebrow { color: var(--cyan); }
.band.dark a { color: var(--cyan); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head h2 { margin-bottom: .2em; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.section-head.on-dark p { color: #a9b5c7; }
.more { font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.more span { display: inline-block; transition: transform .25s var(--ease); }
.more:hover span { transform: translateX(4px); }

.grid { display: grid; gap: 1.2rem; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.split.wide-left { grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }

.card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card:focus-within { border-color: var(--accent); }
.card-title { margin: 0; font-size: 1.15rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-top { display: flex; flex-wrap: wrap; gap: .4rem; }
.card-kicker { margin: 0; font-size: var(--fs-xs); font-weight: 650; color: var(--accent-ink); letter-spacing: .06em; }
.card-desc { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.card-meta { margin: auto 0 0; font-size: var(--fs-xs); color: var(--muted); }
.card-facts { margin: 0; display: grid; gap: .55rem; font-size: .92rem; line-height: 1.6; }
.card-facts dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.card-facts dd { margin: 0; color: var(--text); }
.pick-reason dd { color: var(--accent-ink); }
.card-foot { margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.verified { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); font-weight: 600; }
.verified .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.demo-note { margin-top: 1rem; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel .section-head { margin-bottom: .6rem; }
.panel h2 { font-size: 1.25rem; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; text-decoration: none; color: var(--ink); }
.link-list .ll-title { font-weight: 550; transition: color .2s, transform .3s var(--ease); }
.link-list a:hover .ll-title { color: var(--accent-ink); transform: translateX(3px); }
.link-list .ll-meta { flex: none; font-size: var(--fs-xs); color: var(--muted); }

.dims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); overflow: hidden; position: relative; }
.dims li { background: var(--navy); padding: 1.6rem 1.5rem; transition: background .3s; }
.dims li:hover { background: #0f1d33; }
.dims h3 { font-size: 1.05rem; margin: .5rem 0 .4rem; }
.dims p { margin: 0; font-size: .92rem; line-height: 1.7; color: #a9b5c7; }
.dim-no { font-family: var(--mono); font-size: .8rem; color: var(--cyan); }
@media (max-width: 860px) { .dims { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dims { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: .6rem; bottom: .6rem; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.8rem; display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: baseline; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline time { font-size: var(--fs-xs); color: var(--muted); font-family: var(--mono); }
.timeline .kind { font-size: var(--fs-xs); color: var(--accent-ink); font-weight: 600; }
.timeline a { grid-column: 1 / -1; color: var(--ink); text-decoration: none; font-weight: 550; }
.timeline a:hover { color: var(--accent-ink); }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.topic { border-top: 2px solid var(--ink); padding-top: .9rem; }
.topic h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.topic p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: .5rem; }
.topic ul { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); display: grid; gap: .35rem; line-height: 1.55; }
@media (max-width: 560px) { .topics { grid-template-columns: 1fr; } }

.subscribe { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: calc(var(--radius) + 4px); background: linear-gradient(120deg, var(--accent-soft), var(--paper-2)); border: 1px solid var(--line); }
.subscribe h2 { margin-bottom: .2em; }
.subscribe p { margin: 0; color: var(--muted); max-width: 48ch; }
.sub-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- 7. Page head, crumbs, filters ---------- */
.crumbs { padding-top: 1.2rem; font-size: var(--fs-xs); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 .45rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs [aria-current] { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head { padding-top: 1.6rem; padding-bottom: 1.4rem; }
.page-head h1 { max-width: 24ch; }
.page-head .lede { font-size: var(--fs-lg); color: var(--muted); max-width: 46rem; }
.page-head.narrow { max-width: 820px; }
.page-head.center h1, .page-head.center .lede { margin-inline: auto; }
.byline { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: var(--fs-sm); color: var(--muted); margin: 0 0 1rem; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 1.2rem 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; }
.meta-grid > div { padding: .75rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.meta-grid dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.meta-grid dd { margin: 0; color: var(--ink); font-weight: 550; font-size: .95rem; }

.filters { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; padding: 1rem; margin: 1.2rem 0 .6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 72px; z-index: 5; }
.filters label { display: grid; gap: .25rem; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.filters select { width: 100%; min-height: 42px; padding: .4rem 2rem .4rem .7rem; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6577' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .7rem center; appearance: none; font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.filters select:hover { border-color: var(--ink); }
.filters .noscript-only { display: none; }
html:not(.js) .filters .noscript-only { display: inline-flex; }
.filter-status { font-size: var(--fs-sm); color: var(--muted); margin: .8rem 0; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.budget-note { margin-top: 1.4rem; }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(3, 1fr); position: static; } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr 1fr; padding: .8rem; } }

/* ---------- 8. Callouts ---------- */
.callout { border: 1px solid var(--note-line); background: var(--note-soft); color: var(--text); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 1rem 0 1.4rem; font-size: .95rem; line-height: 1.7; border-left-width: 4px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.callout-note { border-color: var(--note-line); border-left-color: var(--note-ink); }
.callout-tip { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); border-left-color: var(--accent); }
.callout-warning { background: var(--warn-soft); border-color: var(--warn-line); border-left-color: var(--warn-ink); }
.callout-demo { background: var(--demo-soft); border-color: var(--demo-line); border-left-color: var(--demo-ink); }

/* ---------- 9. Reading layout ---------- */
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, var(--measure)); gap: clamp(2rem, 5vw, 4.5rem); justify-content: start; align-items: start; margin-top: 1rem; }
.toc { position: sticky; top: 88px; font-size: var(--fs-sm); max-height: calc(100vh - 110px); overflow: auto; }
.toc summary { font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; margin-bottom: .6rem; font-size: var(--fs-xs); letter-spacing: .08em; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 .1rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .32rem 0 .32rem .9rem; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; line-height: 1.5; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
@media (max-width: 960px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; }
  .toc summary { margin: 0; font-size: .9rem; letter-spacing: 0; }
  .toc details[open] summary { margin-bottom: .6rem; }
  .toc summary::after { content: "展开"; float: right; color: var(--muted); font-weight: 400; }
  .toc details[open] summary::after { content: "收起"; }
}

.prose { min-width: 0; }
.prose > * + h2, .prose section + section { margin-top: 2.6rem; }
.prose h2 { padding-top: .4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent-ink); }
.prose blockquote { margin: 1.4rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--line-strong); color: var(--muted); }
.prose ul.plain { list-style: none; padding: 0; }
.prose .statement { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); font-weight: 550; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px dashed var(--line); margin: 0 !important; }
.check { flex: none; width: 18px; height: 18px; margin-top: .35em; border: 2px solid var(--line-strong); border-radius: 5px; background: var(--card); }
.check.done { background: var(--accent); border-color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.6; min-width: 560px; }
table:not(:has(th:nth-child(4))) { min-width: 0; }
#plans + .table-wrap table, section .table-wrap table:has(th:nth-child(6)) { min-width: 760px; }
th, td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--paper-2); color: var(--ink); font-size: var(--fs-xs); letter-spacing: .03em; font-weight: 650; white-space: nowrap; position: sticky; top: 0; }
tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td small { color: var(--muted); }

.fit-grid, .verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.verdict-grid { grid-template-columns: repeat(3, 1fr); }
.fit, .verdict-grid > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem .3rem; background: var(--card); }
.fit h3, .verdict-grid h3 { margin-top: 0; font-size: 1rem; }
.fit.yes { border-top: 3px solid var(--accent); }
.fit.no { border-top: 3px solid var(--line-strong); }
.fit ul, .verdict-grid ul { font-size: .94rem; padding-left: 1.1rem; }
@media (max-width: 720px) { .fit-grid, .verdict-grid { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .3rem; top: 1.45rem; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq details p { color: var(--text); padding-bottom: .6rem; }
.faq details[open] p { animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }

.sources { font-size: .93rem; line-height: 1.7; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.4rem 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-box h2 { font-size: 1.2rem; margin-bottom: .2em; }
.cta-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.correction { margin-top: 2.6rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); font-size: .94rem; }
.correction h2 { font-size: 1.02rem; margin-bottom: .3rem; }
.correction p { margin: 0; color: var(--muted); }
.disclosure-line { margin-top: 2rem; }
.related { margin-top: 4rem; }
.related h2 { font-size: 1.3rem; }
.planned { margin-top: 3rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.planned h2 { font-size: 1.1rem; }
.planned ul { margin: 0 0 .8rem; padding-left: 1.2rem; }

.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; max-width: 820px; }
.search-results li { padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); animation: drop .3s var(--ease) both; }
.search-results .k { font-size: var(--fs-xs); color: var(--accent-ink); font-weight: 650; }
.search-results a { display: block; font-weight: 650; font-size: 1.05rem; color: var(--ink); text-decoration: none; margin: .1rem 0 .2rem; }
.search-results a:hover { color: var(--accent-ink); }
.search-results p { margin: 0; color: var(--muted); font-size: .93rem; }
.search-results mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }

/* 阅读进度条：CSS 滚动驱动动画（不支持的浏览器自动忽略） */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- 10. Motion ---------- */
/* 跨页面过渡（View Transitions API，渐进增强） */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* 滚动渐显：仅在 JS 可用时启用，内容在 HTML 中始终存在 */
/* 渐显：内容默认始终可见；进入视口前一刻才播放一次淡入动画。
   不滚动的截图工具与搜索引擎渲染器看到的是完整内容，不会出现空白。 */
.js .reveal.in { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 12. 推荐榜单与评测页组件 ---------- */
.svc-logo { flex: none; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); object-fit: cover; }
.svc-logo.mono { display: inline-grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: var(--accent-ink); background: var(--accent-soft); }
.review-card { gap: .9rem; }
.rc-head { display: flex; align-items: center; gap: .75rem; }
.rc-name { min-width: 0; }
.rc-sub { margin: .1rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
.rank { flex: none; font-variant-numeric: tabular-nums; font-weight: 750; font-size: .95rem; letter-spacing: .02em; color: var(--accent-ink); width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.rc-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.rc-stats > div { padding: .55rem .65rem; border-right: 1px solid var(--line); }
.rc-stats > div:last-child { border-right: 0; }
.rc-stats dt { font-size: .72rem; color: var(--muted); font-weight: 600; }
.rc-stats dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-stats small { font-weight: 500; color: var(--muted); font-size: .75em; }
.card-foot .tested { color: var(--ok-ink); font-weight: 600; }
.filters.filters-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .filters.filters-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .filters.filters-5 { grid-template-columns: 1fr 1fr; } }
.band-sm { margin-top: 3rem; }
.table-wrap.wide table { min-width: 760px; }

.rv-head { display: flex; align-items: center; gap: 1rem; }
.rv-head h1 { margin-bottom: 0; }
@media (max-width: 560px) { .rv-head { align-items: flex-start; } .rv-head .svc-logo { width: 48px; height: 48px; } }
.rv-actions { display: flex; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; margin-top: 1.1rem; }
.coupon-wrap { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.coupon { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .25rem .2rem .6rem; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 9px; background: var(--accent-soft); }
.coupon code { background: none; padding: 0; font-weight: 700; color: var(--accent-ink); letter-spacing: .03em; }
.coupon-note { font-size: var(--fs-xs); color: var(--muted); }
.copy-btn { font: inherit; font-size: var(--fs-xs); font-weight: 600; padding: .2rem .55rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.done { background: var(--accent); border-color: var(--accent); color: #fff; }
html:not(.js) .copy-btn { display: none; }

.tiles { list-style: none; margin: 0 0 1.4rem !important; padding: 0 !important; display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.tiles li { margin: 0 !important; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); display: grid; gap: .1rem; }
.tile-k { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.tile-v { font-size: 1.3rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.3; }
.tile-s { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr 1fr; } }
.findings { padding-left: 1.3rem; }
.findings li strong { display: block; color: var(--ink); }

.bars { list-style: none; margin: 1rem 0 .6rem !important; padding: 0 !important; display: grid; gap: .45rem; }
.bars li { margin: 0 !important; display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr 4.2rem; align-items: center; gap: .8rem; font-size: .9rem; }
.bar-label { color: var(--ink); line-height: 1.35; }
.bar-label small { display: block; color: var(--muted); font-size: .75rem; }
.bar-track { height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: left; animation: grow .9s var(--ease) both; }
.bars li.once .bar { background: repeating-linear-gradient(45deg, var(--warn-line), var(--warn-line) 6px, var(--warn-soft) 6px, var(--warn-soft) 12px); }
.bar-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
@keyframes grow { from { transform: scaleX(0); } }
@media (max-width: 520px) { .bars li { grid-template-columns: 1fr 4rem; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }

.tag-ok, .tag-unverified { white-space: nowrap; }
tr.is-self > * { background: var(--accent-soft); }
tr.is-self th { color: var(--accent-ink); }
.hl-swatch { display: inline-block; width: .9em; height: .9em; border-radius: 3px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); vertical-align: -.1em; margin-right: .25em; }

.shot { margin: 1.4rem 0; }
.shot a { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s var(--ease); }
.shot a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.shot img { display: block; width: 100%; max-width: 660px; height: auto; margin-inline: auto; }
.shot figcaption { margin-top: .6rem; font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }

.rv-pager { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2rem; }
.rv-pager a { display: grid; gap: .15rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); text-decoration: none; color: var(--ink); font-weight: 650; transition: border-color .2s, transform .2s var(--ease); }
.rv-pager a:hover { border-color: var(--accent); transform: translateY(-2px); }
.rv-pager a span { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.rv-pager .next { text-align: right; }

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

@media print {
  .site-header, .site-footer, .toc, .filters, .read-progress, .cta-box { display: none !important; }
  body { background: #fff; color: #000; }
}
