/* =========================================================
   TiziCloud 设计系统 —— 令牌 · 基础 · 组件 · 动效
   ========================================================= */
:root {
  --ink: #0B1220;
  --navy: #0F1F3D;
  --navy-2: #13284D;
  --paper: #FAF8F4;
  --surface: #FFFFFF;
  --mist: #F0EFEB;
  --line: #E2DFD8;
  --line-2: #D2CEC4;
  --text-2: #4A5263;
  --text-3: #6B7383;
  --accent: #14B8A6;
  --accent-ink: #0B6E66;
  --accent-soft: rgba(20, 184, 166, .12);
  --warn: #92400E;
  --warn-bg: #FEF3C7;
  --warn-line: #F2C66B;
  --ok: #166534;
  --no: #9F1239;

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

  --r-sm: 6px; --r: 14px; --r-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px -12px rgba(11, 18, 32, .12);
  --shadow-hi: 0 2px 4px rgba(11, 18, 32, .05), 0 18px 40px -16px rgba(11, 18, 32, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8ECF2; --navy: #0B1424; --navy-2: #111D33; --paper: #0A0F1A; --surface: #111827; --mist: #121B2C;
    --line: #243049; --line-2: #31405F; --text-2: #A9B3C4; --text-3: #8792A6;
    --accent: #2DD4BF; --accent-ink: #5EEAD4; --accent-soft: rgba(45, 212, 191, .12);
    --warn: #FCD34D; --warn-bg: #2A1F05; --warn-line: #6B4E10; --ok: #86EFAC; --no: #FDA4AF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-hi: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font);
  font-size: 1rem; line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.01em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
main { display: block; min-height: 60vh; }
main:focus { outline: none; }

/* ---------- 按钮 / 标签 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: .9375rem; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--navy-2); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 31, 61, .6); }
.btn--accent { background: var(--accent); color: #04211E; }
.btn--accent:hover { filter: brightness(1.06); box-shadow: 0 8px 24px -10px var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }

.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm);
  font-size: .75rem; font-weight: 600; line-height: 1; white-space: nowrap; vertical-align: middle;
}
.badge--demo { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.badge--warn { background: var(--warn-bg); color: var(--warn); font-weight: 500; }
.badge--draft { background: var(--mist); color: var(--text-2); border: 1px solid var(--line); }
.badge--pick { background: var(--accent-soft); color: var(--accent-ink); }

.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .875rem;
  text-decoration: none; cursor: pointer; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #E6ECF5; }
.chip--dark:hover { background: rgba(255, 255, 255, .12); border-color: var(--accent); color: #fff; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 82%, 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-color .3s;
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.is-home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .site-header:not(.is-scrolled) .brand, .is-home .site-header:not(.is-scrolled) .site-nav a { color: #E6ECF5; }
.is-home .site-header:not(.is-scrolled) .nav-toggle span:not(.sr-only) { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.0625rem; letter-spacing: .01em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  color: var(--text-2); text-decoration: none; font-size: .9375rem; border-radius: 999px; transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-search { border: 1px solid var(--line-2); margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 0 10px;
  }
  .nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hi);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { height: 48px; font-size: 1rem; border-radius: 10px; }
  .is-home .site-header:not(.is-scrolled) .site-nav a { color: var(--text-2); }
  .site-nav a[aria-current="page"]::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .nav-search { margin: 8px 0 0; justify-content: center; }
  html:not(.js) .site-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 32px;
  background:
    radial-gradient(800px 420px at 85% 20%, rgba(20, 184, 166, .16), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(56, 97, 180, .25), transparent 60%),
    var(--navy);
  color: #E6ECF5; overflow: hidden; isolation: isolate;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; letter-spacing: .04em; color: #A9B8CF; margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(20, 184, 166, .2); animation: blink 2.4s ease-in-out infinite; }
.hero-title { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.18; color: #fff; letter-spacing: -.02em; text-wrap: balance; }
.hero-title .hl { background: linear-gradient(100deg, #fff 10%, #7FF0E0 55%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); color: #B8C4D6; max-width: 34em; }
.hero-visual { color: #9FB3D1; }
.hero-art { width: 100%; height: auto; display: block; }
.hero-art .route { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 10; stroke-opacity: .85; animation: flow 3.2s linear infinite; }
.hero-art .r2 { stroke: #7DA2E8; animation-duration: 4.4s; }
.hero-art .r3 { stroke: #A5B4FC; stroke-opacity: .6; animation-duration: 5.2s; }
.hero-art .r4 { stroke-opacity: .5; }
.hero-art .node { fill: #fff; }
.hero-art .pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
.hero-art .p2 { animation-delay: 1.4s; }
.hero-art .globe { transform-origin: 330px 215px; animation: spin 90s linear infinite; }

.search {
  position: relative; display: flex; align-items: center; gap: 8px; margin-top: 28px; padding: 6px 6px 6px 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; max-width: 620px;
  transition: box-shadow .25s, border-color .25s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search > svg { color: var(--text-3); flex: none; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--text-3); }
.search--hero { background: rgba(255, 255, 255, .96); border-color: transparent; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.search--hero input { color: #0B1220; }
.search--hero input::placeholder { color: #6B7383; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: clamp(32px, 6vw, 64px) 0 0; padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; color: #A9B8CF;
}
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { color: var(--accent); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { position: absolute; inset: 40px -30% auto auto; width: 90%; opacity: .28; z-index: -1; pointer-events: none; }
  .search--hero .btn { padding: 0 16px; }
}

/* ---------- 区块 ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: 40px 0 88px; }
.section--mist { background: var(--mist); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2, .section-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
.section-title { margin-bottom: 24px; }
.kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.link-more svg { transition: transform .25s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }
.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%, 320px), 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.stack { display: grid; gap: 12px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.demo-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 16px; border-radius: 10px;
  background: var(--warn-bg); color: var(--warn); font-size: .875rem; border: 1px solid var(--warn-line);
}
.demo-note svg { flex: none; margin-top: 3px; }

/* ---------- 评测卡片 ---------- */
.rcard {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.rcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rcard:focus-within { border-color: var(--accent); }
.rcard__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rcard__name { font-size: 1.1875rem; margin-right: auto; }
.rcard__name a { color: var(--ink); text-decoration: none; }
.rcard__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rcard__label { display: block; font-size: .75rem; font-weight: 600; color: var(--text-3); margin-bottom: 2px; letter-spacing: .02em; }
.rcard__fit { color: var(--ink); font-size: .9375rem; }
.rcard__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-block: 1px solid var(--line); }
.rcard__facts div { padding: 10px 8px 10px 0; min-width: 0; }
.rcard__facts div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.rcard__facts dt { font-size: .75rem; color: var(--text-3); }
.rcard__facts dd { margin: 2px 0 0; font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }
.rcard__limit { font-size: .875rem; color: var(--text-2); padding-left: 12px; border-left: 2px solid var(--warn-line); }
.rcard__foot { margin-top: auto; }
.verify { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: .75rem; color: var(--text-3); }
.verify svg { color: var(--accent-ink); }
.verify__sep { opacity: .5; }

/* ---------- 榜单 ---------- */
.rank-no {
  flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px;
  font-family: var(--mono); font-size: .8125rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft);
}
.rcard__head .rank-no { margin-right: 4px; }
.ranklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: none; }
.ranklist__row {
  position: relative; display: grid; grid-template-columns: 44px minmax(140px, 1.4fr) repeat(3, minmax(0, 1fr)) 84px 24px;
  align-items: center; gap: 12px; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 12px;
  transition: background-color .25s, transform .3s var(--ease);
}
.ranklist__row:hover { background: var(--surface); transform: translateX(4px); }
.ranklist__row:nth-child(-n+3) .rank-no { background: var(--ink); color: var(--paper); }
.ranklist__name { font-weight: 700; font-size: 1.0625rem; color: var(--ink); text-decoration: none; }
.ranklist__name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ranklist__cell { font-size: .9rem; font-variant-numeric: tabular-nums; }
.ranklist__k { display: block; font-size: .72rem; color: var(--text-3); }
.ranklist__go { color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.ranklist__row:hover .ranklist__go { transform: translateX(4px); color: var(--accent-ink); }
.rank-note { margin-top: 16px; font-size: .8125rem; color: var(--text-2); }
@media (max-width: 760px) {
  .ranklist__row { grid-template-columns: 40px 1fr 1fr 1fr; gap: 6px 10px; padding: 14px 4px; }
  .ranklist__name { grid-column: 2 / -1; }
  .ranklist__row .rank-no { grid-row: 1 / 3; align-self: start; }
  .ranklist__cell:nth-of-type(4) { display: none; }
  .ranklist__go { display: none; }
}

/* 购买条 / 优惠码 */
.buybar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.buybar__price { display: grid; line-height: 1.3; margin-right: 8px; }
.buybar__k { font-size: .72rem; color: var(--text-3); }
.buybar__price strong { font-size: 1.125rem; }
.promo {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px dashed var(--accent); background: var(--accent-soft); color: var(--ink); font: inherit; font-size: .875rem; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.promo:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.promo:active { transform: scale(.97); }
.promo code { font-family: var(--mono); font-weight: 700; font-size: .9375rem; letter-spacing: .04em; }
.promo__k { font-size: .75rem; color: var(--text-2); }
.promo__s { font-size: .75rem; color: var(--accent-ink); }
.promo.is-copied { border-style: solid; }
.promo--none { cursor: default; border-color: var(--line-2); background: transparent; color: var(--text-2); }
.rank-kicker { margin: 14px 0 0; }

/* 核心结论 */
.prose ul.verdict { list-style: none; padding: 0; display: grid; gap: 10px; }
.verdict li { margin: 0 !important; padding: 12px 16px 12px 44px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.verdict li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }

/* 单价条形图 */
.bars { margin: 1.4em 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 72px; align-items: center; gap: 12px; font-size: .875rem; }
.bar__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__t { height: 10px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.bar__f { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #3B82F6)); transform-origin: 0 50%; }
.bar--o .bar__f { background: linear-gradient(90deg, #F59E0B, #D97706); }
.bar__v { font-family: var(--mono); font-size: .8125rem; text-align: right; }
.bars figcaption { font-size: .8125rem; color: var(--text-3); margin-top: 4px; }
.js .bars.is-in .bar__f, .js .bars .bar__f { animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
@media (max-width: 560px) { .bar { grid-template-columns: 1fr 64px; } .bar__t { grid-column: 1 / -1; grid-row: 2; } }

/* 排名徽标 / 表格补充 */
.rankpill { display: inline-block; min-width: 52px; padding: 2px 8px; border-radius: 99px; text-align: center; font-family: var(--mono); font-size: .8rem; background: var(--mist); }
.rankpill.is-top { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.rankpill.is-low { background: var(--warn-bg); color: var(--warn); }
.cell-note { display: block; font-size: .75rem; font-weight: 400; color: var(--text-3); line-height: 1.45; margin-top: 2px; font-family: var(--font); }
td.is-best { color: var(--accent-ink); font-weight: 700; }
td.is-best::before, .best-dot { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
table.tiers td, table.tiers th { white-space: nowrap; }

/* 测速截图 */
.shot { margin: 1.6em 0 0; }
.shot a { display: block; max-width: 520px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s var(--ease); }
.shot a:hover { box-shadow: var(--shadow-hi); transform: translateY(-2px); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { max-width: 520px; margin: 10px auto 0; font-size: .8125rem; color: var(--text-3); text-align: center; }

/* 上下篇 */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2.4em !important; }
.pager__a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .3s var(--ease); }
.pager__a:hover { border-color: var(--ink); }
.pager__a--next { text-align: right; }

/* ---------- 文章卡片 ---------- */
.acard {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.acard:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.acard__kicker { font-size: .75rem; color: var(--accent-ink); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.acard__title { font-size: 1.0625rem; line-height: 1.45; }
.acard__title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.acard:hover .acard__title a { background-size: 100% 1px; }
.acard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.acard__desc { font-size: .9rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard__meta { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-family: var(--mono); font-size: .75rem; color: var(--text-3); }

/* ---------- 评测方法区 ---------- */
.method { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.method__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.method__intro h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); margin-bottom: 16px; }
.method__intro p { color: var(--text-2); margin-bottom: 24px; }
.dims { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dim { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dim__n { font-family: var(--mono); font-size: .875rem; color: var(--accent-ink); padding-top: 3px; }
.dim h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.dim p { color: var(--text-2); font-size: .9375rem; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } .method__intro { position: static; } }

.topics-h { font-size: 1.25rem; margin: 56px 0 16px; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.topic {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 18px 20px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: all .3s var(--ease);
}
.topic__t { font-weight: 700; }
.topic__d { grid-column: 1; font-size: .8125rem; color: var(--text-3); }
.topic svg { grid-row: 1 / 3; grid-column: 2; color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.topic:hover { border-color: var(--ink); }
.topic:hover svg { transform: translateX(4px); color: var(--accent-ink); }

.subscribe {
  display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px; align-items: center; padding: clamp(28px, 5vw, 48px);
  border-radius: var(--r-lg); background: var(--navy); color: #E6ECF5; position: relative; overflow: hidden;
}
.subscribe::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; background: radial-gradient(circle, rgba(20, 184, 166, .25), transparent 65%); pointer-events: none; }
.subscribe h2 { color: #fff; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); margin-bottom: 8px; }
.subscribe p { color: #B8C4D6; }
.subscribe .kicker { color: var(--accent); }
.subscribe__form { display: grid; gap: 10px; position: relative; }
.subscribe__form input[type="email"] { height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.subscribe__form .muted { color: #8FA0BA; font-size: .875rem; }
.consent { display: flex; gap: 8px; font-size: .8125rem; color: #B8C4D6; }
.consent a { color: #7FF0E0; }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; } }

/* ---------- 页面头部 / 面包屑 ---------- */
.page-head { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--mist), var(--paper)); }
.page-head h1 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); margin: 12px 0 12px; }
.page-head--center { text-align: center; border: 0; background: none; padding-top: 96px; }
.page-head--center .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); color: var(--text-2); max-width: 44em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: .8125rem; color: var(--text-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; opacity: .5; }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text-3); }

/* ---------- 评测目录 ---------- */
.reviews-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 96px; }
.filters { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.fgroup { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.fgroup legend { font-size: .8125rem; font-weight: 700; color: var(--text-2); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fgroup .chip { height: 32px; padding: 0 12px; font-size: .8125rem; flex: none; white-space: nowrap; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.toolbar__count { font-size: 1rem; font-weight: 600; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text-2); }
.sort select { height: 36px; padding: 0 32px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
.sort-note { font-size: .8125rem; color: var(--text-2); margin-bottom: 16px; padding: 10px 14px; background: var(--accent-soft); border-radius: 10px; }
.review-grid .demo-note { margin-top: 0; }
.empty { padding: 48px 0; text-align: center; color: var(--text-3); }
html:not(.js) .filters, html:not(.js) .sort { display: none; }
@media (max-width: 900px) {
  .reviews-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .fgroup { margin-bottom: 14px; }
  .fgroup .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
}

/* ---------- 文章页 ---------- */
.article-head { padding: clamp(28px, 5vw, 52px) 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--mist), var(--paper)); }
.article-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin: 14px 0 14px; max-width: 26em; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 20px; font-size: .8125rem; color: var(--text-3); }
.meta-row > span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row a { color: var(--text-2); }
.disc-inline svg { color: var(--accent-ink); }
.banner { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-size: .875rem; max-width: 860px; }
.banner svg { flex: none; margin-top: 3px; }
.banner--demo { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.banner--draft { background: var(--mist); color: var(--text-2); border: 1px dashed var(--line-2); }
.banner--change { background: var(--surface); color: var(--text-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); }

.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; font-size: .8125rem; }
.toc summary { font-weight: 700; color: var(--text-2); cursor: pointer; list-style: none; margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-3); text-decoration: none; line-height: 1.45; 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--l3 a { padding-left: 26px; }
@media (max-width: 1023px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
  .toc summary { margin: 0; }
  .toc details[open] summary { margin-bottom: 10px; }
}

/* 长文排版 */
.prose { font-size: 1.0625rem; line-height: 1.85; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4em; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.1875rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.4em; }
.prose > h2:first-child, .prose > aside:first-child + h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.prose .anchor { float: left; margin-left: -1em; width: 1em; color: var(--text-3); text-decoration: none; opacity: 0; transition: opacity .2s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent-ink); }
.prose strong { font-weight: 700; }
.prose code { font-family: var(--mono); font-size: .875em; background: var(--mist); border: 1px solid var(--line); padding: .1em .4em; border-radius: 5px; }
.prose pre.code { background: var(--navy); color: #D6E2F5; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.prose pre.code code { background: none; border: 0; padding: 0; color: inherit; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .ext { font-size: .75em; margin-left: 2px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--mist); font-size: .8125rem; color: var(--text-2); font-weight: 700; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
td.num { font-family: var(--mono); white-space: nowrap; }
tr.is-self { background: var(--accent-soft); }
@media (max-width: 640px) {
  th, td { padding: 10px 12px; } table { font-size: .84rem; }
  .table-wrap table:has(thead) { min-width: 600px; } /* 多列表格在表格容器内横向滚动，而不是挤压列宽 */
  .table-wrap tbody th { white-space: nowrap; }
}

.callout { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: .96rem; }
.callout > * + * { margin-top: .6em; }
.callout__title { font-weight: 700; font-size: .9375rem; }
.callout--info { border-left: 3px solid var(--accent); }
.callout--warn, .callout--demo { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.callout--warn a, .callout--demo a { color: inherit; }
.callout--todo { border-style: dashed; border-color: var(--line-2); background: var(--mist); color: var(--text-2); }
.callout ul { padding-left: 1.2em; }

.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding: 10px 12px 10px 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.checklist li + li { margin-top: 8px; }
.checklist .check { position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 4px; }

.fitgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fit { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.fit h3 { font-size: .9375rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.fit h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.fit--yes h3::before { background: var(--accent); }
.fit--no h3::before { background: var(--warn-line); }
.fit ul { margin: 0; padding-left: 1.2em; font-size: .9375rem; }
@media (max-width: 640px) { .fitgrid { grid-template-columns: 1fr; } }

.compat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.compat h3 { font-size: .875rem; color: var(--text-2); margin: 0 0 8px; }
.taglist { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.taglist li { margin: 0 !important; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: .875rem; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .compat { grid-template-columns: 1fr; } }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--mono); color: var(--accent-ink); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item > div { padding: 0 0 16px; color: var(--text-2); }

.sources { padding-left: 1.4em; font-size: .9375rem; }
.disclosure { padding: 16px 18px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line); font-size: .9375rem; }
.disclosure > * + * { margin-top: .4em; }
.disclosure__h { font-weight: 700; }
.cta-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); margin-top: 2em !important; }
.cta-box__h { font-weight: 700; font-size: 1.0625rem; }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.aff-label { flex-basis: 100%; font-size: .75rem; color: var(--text-3); }
.correction { margin-top: 3em !important; padding: 22px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.correction__h { font-size: 1.0625rem !important; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; }
.correction p { color: var(--text-2); font-size: .9375rem; margin-bottom: 14px; }

/* 搜索结果 */
.results { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.results li a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.results li a:hover { border-color: var(--ink); transform: translateX(3px); }
.results .r-k { font-size: .75rem; color: var(--accent-ink); font-weight: 600; }
.results .r-t { display: block; font-weight: 700; margin: 2px 0 4px; }
.results .r-d { font-size: .875rem; color: var(--text-2); }
.results mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.page-head .search { margin-top: 20px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #A9B8CF; padding: 64px 0 28px; font-size: .875rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.brand--light { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 30em; }
.footer-note { margin-top: 14px; font-size: .8125rem; color: #8193B0; line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-h { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #C3CEDF; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: .8125rem; color: #8193B0; }
.footer-bottom a { display: inline; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-dir { display: grid; gap: 20px; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-dir ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-dir .footer-h { margin-bottom: 10px; }
.footer-dir .footer-h a { color: #fff; font-weight: 700; }

/* ---------- 首页长文与分类推荐 ---------- */
.home-guide { border-top: 1px solid var(--line); }
.prose .row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .9375rem; }
.prose .row-links .btn { margin-left: auto; }
.prose .topics { padding-left: 0; }
.prose .topics li + li { margin-top: 0; }
.prose .topic { text-decoration: none; }
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin: 0; }
.terms > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.terms dt { font-weight: 700; }
.terms dd { margin: 4px 0 0; font-size: .9375rem; color: var(--text-2); line-height: 1.7; }
@media (max-width: 640px) { .prose .row-links .btn { margin-left: 0; } }

/* =========================================================
   动效
   ========================================================= */
@keyframes flow { to { stroke-dashoffset: -140; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5.5); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 首屏入场 */
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-visual { animation: rise 1.2s .1s var(--ease) both; }
/* 标题和导语是最大内容绘制（LCP）元素：只做位移，不从透明开始，避免推迟 LCP */
.hero-copy > .hero-title, .hero-copy > .hero-sub { animation-name: lift; }
@keyframes lift { from { transform: translateY(14px); } to { transform: none; } }

/* 滚动渐显（仅在 JS 可用时隐藏初始状态） */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 跨文档页面过渡（支持的浏览器自动启用） */
@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; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* 阅读进度条 */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

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