/*机场在线design system — see docs/02-design-system.md */
:root {
  --ink: #0d1b2a;
  --ink-2: #16283b;
  --graphite: #1f2733;
  --paper: #faf8f4;
  --paper-2: #f2f1ed;
  --white: #ffffff;
  --line: #e2e0d9;
  --line-strong: #cfccc3;
  --muted: #566070;
  --accent: #14b8a6;
  --accent-ink: #0f766e;
  --signal: #5eead4;
  --warn: #9a3412;
  --warn-bg: #fff4ec;
  --demo: #6b4fa0;
  --demo-bg: #f5f1fb;
  --ok: #166534;
  --ok-bg: #effaf3;

  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(13 27 42 / .04), 0 2px 8px rgb(13 27 42 / .03);
  --shadow-hover: 0 8px 28px rgb(13 27 42 / .09);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  --container: 1200px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--ink);
  background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  text-spacing-trim: trim-start;
}
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgb(20 184 166 / .25); }
.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: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.unverified { color: var(--warn); font-weight: 500; }
.fine { font-size: .875rem; color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(250 248 244 / .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgb(13 27 42 / .02); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; color: var(--ink); flex: none; }
.brand-name { font-size: 1.3125rem; font-weight: 800; letter-spacing: -.03em; }
.brand-sub { font-size: .75rem; font-weight: 500; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 11px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9375rem; position: relative; transition: background-color .18s; }
.site-nav a:hover { background: var(--paper-2); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
/* 机场排行榜 dropdown: top 5 */
.nav-has-drop { position: relative; }
.nav-has-drop > a { padding-right: 24px; }
.nav-has-drop > a::before { content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); opacity: .6; transition: transform .2s var(--ease); }
.nav-drop { position: absolute; top: 100%; left: 50%; width: 330px; padding-top: 10px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none; z-index: 60; }
.nav-has-drop:hover > .nav-drop, .nav-has-drop:focus-within > .nav-drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.nav-has-drop:hover > a::before, .nav-has-drop:focus-within > a::before { transform: translateY(-30%) rotate(-135deg); }
.nav-drop-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgb(13 27 42 / .25); padding: 10px; }
.nav-drop-head { margin: 4px 8px 6px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.nav-drop-list { list-style: none; margin: 0; padding: 0; display: block !important; }
.site-nav .nav-drop a { color: var(--ink); }
.site-nav .nav-drop a::after { display: none; }
.site-nav .nav-drop-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.site-nav .nav-drop-item:hover { background: var(--paper-2); }
.nav-drop-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--paper-2); font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-drop-list li:first-child .nav-drop-n { background: var(--ink); color: #fff; }
.nav-drop-main { display: grid; gap: 1px; min-width: 0; }
.nav-drop-name { font-weight: 600; font-size: .9375rem; display: flex; align-items: center; gap: 6px; }
.nav-drop-name .pin-badge { font-size: .6875rem; }
.nav-drop-meta { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-drop-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 8px 2px; border-top: 1px solid var(--line); font-size: .8125rem; }
.nav-drop-foot span { display: flex; gap: 10px; }
.site-nav .nav-drop-foot a { display: inline; padding: 0; border: 0; border-radius: 0; font-size: .8125rem; background: none; }
.site-nav .nav-drop-foot > a { font-weight: 600; color: var(--accent-ink); }
.site-nav .nav-drop-foot a:hover { text-decoration: underline; background: none; }
.header-actions { display: flex; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn { display: none; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; } .menu-lines::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  /* backdrop-filter would make the header the containing block of the fixed nav drawer */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(250 248 244 / .97); }
  .menu-btn { display: inline-grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; background: var(--paper);
    padding: 16px 20px 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  body.nav-open { overflow: hidden; }
  /* In the drawer the top 5 sits open under its link */
  .nav-has-drop > a { padding-right: 4px; }
  .nav-has-drop > a::before { display: none; }
  .nav-drop { position: static; width: auto; padding: 4px 0 8px; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none; }
  .nav-has-drop:hover > .nav-drop, .nav-has-drop:focus-within > .nav-drop { transform: none; }
  .nav-drop-card { border: 0; box-shadow: none; padding: 0; background: transparent; }
  .nav-drop-head { margin: 6px 0 2px; }
  .site-nav .nav-drop-item { padding: 7px 0; border-bottom: 0; border-radius: 0; font-size: 1rem; }
  .nav-drop-foot { padding: 8px 0 4px; border-top: 0; }
}
@media (max-width: 520px) { .brand-sub { display: none; } }

/* ---------- breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 18px 0 0; margin: 0; font-size: .8125rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s, background-color .18s, border-color .18s, color .18s; }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #99f6e4; color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { border-color: rgb(255 255 255 / .3); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-disabled { background: var(--paper-2); color: var(--muted); cursor: not-allowed; }
.link-btn { border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; padding: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.8; border: 1px solid var(--line-strong); color: var(--muted); background: var(--white); white-space: nowrap; }
.chip-ok { color: var(--ok); background: var(--ok-bg); border-color: #bfe5cc; }
.chip-demo { color: var(--demo); background: var(--demo-bg); border-color: #ddd0f0; }
.chip-aff { color: var(--warn); background: var(--warn-bg); border-color: #f5d0b5; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #e6edf3; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px); isolation: isolate; }
.home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.is-scrolled) .brand, .home .site-header:not(.is-scrolled) .logo-mark, .home .site-header:not(.is-scrolled) .icon-btn { color: #fff; }
.home .site-header:not(.is-scrolled) .brand-sub { color: #9fb0c2; border-color: rgb(255 255 255 / .2); }
@media (min-width: 1121px) {
  .home .site-header:not(.is-scrolled) .site-nav a { color: #dbe5ee; }
  .home .site-header:not(.is-scrolled) .site-nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
  .home .site-header:not(.is-scrolled) .site-nav .nav-drop a { color: var(--ink); }
  .home .site-header:not(.is-scrolled) .site-nav .nav-drop-item:hover { background: var(--paper-2); }
  .home .site-header:not(.is-scrolled) .site-nav .nav-drop-foot > a { color: var(--accent-ink); }
}
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-map .grid-lines line { stroke: rgb(255 255 255 / .045); stroke-width: 1; }
.hero-map .routes path { fill: none; stroke: var(--signal); stroke-width: 1.2; stroke-opacity: .45; stroke-dasharray: 3 9; }
.hero-map .nodes circle { fill: var(--signal); filter: drop-shadow(0 0 6px rgb(94 234 212 / .6)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-map .routes path { animation: route-flow 40s linear infinite; }
  .hero-map .routes path:nth-child(2n) { animation-duration: 55s; animation-direction: reverse; }
  .hero-map .nodes circle { animation: node-pulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .hero-map .nodes circle:nth-child(2n) { animation-delay: -2s; }
}
@keyframes route-flow { to { stroke-dashoffset: -480; } }
@keyframes node-pulse { 50% { opacity: .45; transform: scale(.8); } }
.hero-inner { max-width: 860px; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--signal); margin-bottom: 14px; }
.eyebrow-ink { color: var(--accent-ink); }
.eyebrow a { color: inherit; text-decoration: none; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -.025em; margin-bottom: 16px; }
.hero-sub { font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); color: #b4c2d0; margin-bottom: 32px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: rgb(255 255 255 / .97); border-radius: 14px; padding: 6px 6px 6px 16px; max-width: 680px; box-shadow: 0 20px 60px rgb(0 0 0 / .25); transition: box-shadow .2s; }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgb(94 234 212 / .5), 0 20px 60px rgb(0 0 0 / .25); }
.hero-search svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 0; }
.hero-search input:focus { outline: none; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.quick-filters a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .18); color: #dbe5ee; font-size: .875rem; text-decoration: none; transition: border-color .18s, background-color .18s, color .18s; }
.quick-filters a:hover { border-color: var(--signal); color: #fff; background: rgb(94 234 212 / .08); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: 8px 0 72px; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: .9375rem; }
.more { font-weight: 600; margin-left: 8px; text-decoration: none; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: rgb(20 184 166 / .55); }
.card-kicker { font-size: .8125rem; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card-kicker a { color: var(--accent-ink); font-weight: 600; text-decoration: none; position: relative; z-index: 1; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.card-title { font-size: 1.0625rem; line-height: 1.45; margin-bottom: 8px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-desc { font-size: .9375rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: .8125rem; color: var(--muted); margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sep { margin: 0 6px; color: var(--line-strong); }
.review-card-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.review-card-head .card-title { font-size: 1.1875rem; margin: 0; }
.review-card .chips { position: relative; z-index: 1; }
.review-facts { margin: 0; display: grid; gap: 10px; flex: 1; }
.review-facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; font-size: .9rem; }
.review-facts dt { color: var(--muted); font-weight: 600; font-size: .8125rem; padding-top: .1em; }
.review-facts dd { margin: 0; }
.pick-reason { font-size: .8125rem; background: var(--paper-2); border-radius: 8px; padding: 8px 10px; margin: 12px 0 0; }

/* ---------- ranking cards ---------- */
.rank-card .review-card-head { flex-direction: row; align-items: flex-start; gap: 14px; }
.rank-no { flex-shrink: 0; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--accent-ink); padding-top: 4px; letter-spacing: -.04em; }
.rank-card .card-title { margin-bottom: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 4px 0 14px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.kpis div { background: var(--paper); padding: 8px 10px; }
.kpis dt { font-size: .6875rem; color: var(--muted); font-weight: 600; }
.kpis dd { margin: 2px 0 0; font-family: var(--mono); font-weight: 700; font-size: .9375rem; white-space: nowrap; }
.kpis small { font-weight: 500; color: var(--muted); font-size: .75rem; }
@media (max-width: 480px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.card-actions { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.promo { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border: 1px dashed var(--accent); border-radius: 8px; background: rgb(20 184 166 / .06); font: inherit; font-size: .8125rem; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s; }
.promo:hover { background: rgb(20 184 166 / .12); }
.promo code { font-family: var(--mono); font-weight: 700; font-size: .875rem; background: none; border: 0; padding: 0; }
.promo-k { color: var(--muted); }
.promo-a { font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #fff; transition: background-color .2s; }
.promo.is-copied .promo-a { background: var(--accent-ink); }
.promo-none { cursor: default; border-style: solid; border-color: var(--line); background: var(--paper); color: var(--muted); padding: 5px 10px; }
.chip-rank { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ---------- review detail extras ---------- */
.offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--ink); color: #dbe5ee; position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 140% at 100% 0%, rgb(94 234 212 / .18), transparent 55%); pointer-events: none; }
.offer-k { margin: 0; font-size: .8125rem; color: var(--signal); font-weight: 600; }
.offer-v { margin: 2px 0 0; font-size: 1.125rem; font-weight: 700; color: #fff; }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: relative; }
.offer .promo { border-color: rgb(94 234 212 / .6); background: rgb(94 234 212 / .08); color: #fff; }
.offer .promo-k { color: #9fb0c2; }
.offer .promo-a { background: var(--signal); color: var(--ink); }
.offer .promo-none { color: #9fb0c2; border-color: rgb(255 255 255 / .2); background: transparent; }
.offer .btn-ink { background: var(--signal); color: var(--ink); }
.offer .btn-ink:hover { background: #99f6e4; color: var(--ink); }
.offer .copy-status { color: var(--signal); }
.verdict { list-style: none; padding: 0 !important; }
.verdict li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); margin: 0; }
.verdict li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 12px; height: 2px; background: var(--accent); }
.callout-note { border-left-color: var(--ink); }
.bars-fig { margin: 1.5em 0; }
.bars { list-style: none; padding: 0 !important; margin: 0 0 8px; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: minmax(7em, 34%) 1fr auto; align-items: center; gap: 12px; margin: 0; font-size: .875rem; }
.bar-label { line-height: 1.3; }
.bar-label small { display: block; color: var(--muted); font-size: .75rem; }
.bar-track { height: 10px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent-ink), var(--accent)); transform-origin: left; }
.is-once .bar-fill { background: linear-gradient(90deg, #c2410c, #fb923c); }
.bar-val { font-family: var(--mono); font-size: .8125rem; min-width: 5.5em; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .js .bars-fig .bar-fill { transform: scaleX(0); transition: transform .9s var(--ease); }
  .js .bars-fig.is-in .bar-fill { transform: scaleX(1); }
}
.bars-fig figcaption, .shot figcaption { font-size: .8125rem; color: var(--muted); }
.shot { margin: 1.5em 0; }
.shot img { display: block; width: 100%; max-width: 660px; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.shot figcaption { margin-top: 8px; max-width: 660px; }
.is-best { color: var(--accent-ink); font-weight: 700; }
td.is-best { background: rgb(20 184 166 / .1); }
.best-mark { padding: 0 6px; border-radius: 4px; background: rgb(20 184 166 / .14); color: var(--accent-ink); font-weight: 600; }
.ok-mark { color: var(--ok); font-weight: 600; }
.compare small { color: var(--muted); font-size: .75rem; }
.tier-table { min-width: 640px; }
.fine-list { font-size: .875rem; color: var(--muted); }

/* ---------- method band / topics / lists ---------- */
.method-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .method-band { grid-template-columns: 1fr; gap: 28px; } }
.method-copy p { color: var(--muted); }
.dims { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.dims li { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-weight: 600; }
.dim-n { font-family: var(--mono); font-size: .8125rem; color: var(--accent-ink); }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topic { display: flex; flex-direction: column; gap: 6px; background: var(--white); padding: 22px; text-decoration: none; color: var(--ink); transition: background-color .2s; }
.topic:hover { background: var(--paper); color: var(--ink); }
.topic-name { font-weight: 700; font-size: 1.0625rem; }
.topic-name::after { content: " →"; color: var(--accent-ink); opacity: 0; transition: opacity .2s, margin .2s; }
.topic:hover .topic-name::after { opacity: 1; margin-left: 4px; }
.topic-desc { font-size: .875rem; color: var(--muted); }
.topic-count { font-size: .75rem; font-family: var(--mono); color: var(--accent-ink); margin-top: auto; }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.link-list a { font-weight: 600; color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); justify-self: start; }
.link-list a:hover { background-size: 100% 1px; }
.link-list span { font-size: .875rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- subscribe ---------- */
.subscribe { background: var(--graphite); color: #d6dee6; }
.subscribe h2 { color: #fff; }
.subscribe-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.subscribe-inner p { margin: 0; color: #aab6c3; max-width: 560px; }
.subscribe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-status { font-size: .875rem; color: var(--signal); min-width: 4em; }

/* ---------- page head ---------- */
.page-head { padding: 28px 0 32px; max-width: 880px; margin-left: max(20px, calc((100% - var(--container)) / 2)); }
.page-head.container { margin-inline: auto; max-width: var(--container); }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 46em; }
.notfound { min-height: 50vh; }

/* ---------- callouts ---------- */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--white); border-radius: var(--radius-sm); padding: 14px 18px; margin: 1.25em 0; }
.callout p { margin: 0 0 .4em; font-size: .9375rem; }
.callout p:last-child { margin: 0; }
.callout-title { font-weight: 700; font-size: .875rem !important; }
.callout-warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout-warn .callout-title { color: var(--warn); }
.callout-demo { border-left-color: var(--demo); background: var(--demo-bg); }
.callout-demo .callout-title { color: var(--demo); }
.empty-state, .empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 32px; text-align: center; background: var(--white); color: var(--muted); }
.empty-state strong, .empty strong { color: var(--ink); }
.criteria { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.criteria ul { margin: 0; padding-left: 1.2em; color: var(--muted); }

/* ---------- reviews directory ---------- */
.reviews-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; padding-bottom: 32px; }
@media (max-width: 900px) { .reviews-layout { grid-template-columns: minmax(0, 1fr); } }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
@media (max-width: 900px) { .filters { position: static; max-height: none; } .filter-opts { flex-direction: row !important; flex-wrap: wrap; } }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h2 { font-size: 1rem; margin: 0; }
.filter-group { border: 0; padding: 12px 0; margin: 0; border-top: 1px solid var(--line); }
.filter-group legend { font-size: .8125rem; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 8px; }
.filter-opts { display: flex; flex-direction: column; gap: 4px; }
.filter-opt { display: inline-flex; cursor: pointer; }
.filter-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; font-size: .875rem; border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.filter-opt span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 4px; transition: background-color .15s, border-color .15s; flex-shrink: 0; }
.filter-opt:hover span { background: var(--paper); }
.filter-opt input:checked + span { border-color: rgb(20 184 166 / .4); background: rgb(20 184 166 / .07); font-weight: 600; }
.filter-opt input:checked + span::before { background: var(--accent-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--accent-ink); }
.filter-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
select { font: inherit; font-size: .875rem; padding: 8px 32px 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23566070' stroke-width='1.6'/%3E%3C/svg%3E") right 8px center/14px no-repeat; appearance: none; color: var(--ink); width: 100%; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.result-count { margin: 0; font-size: .9375rem; color: var(--muted); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.sort select { width: auto; }
.card.is-hidden { display: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-review-list] .card { animation: card-in .35s var(--ease) both; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.25em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  background-image: linear-gradient(to right, var(--white), var(--white)), linear-gradient(to right, var(--white), var(--white)), linear-gradient(to right, rgb(13 27 42 / .1), transparent), linear-gradient(to left, rgb(13 27 42 / .1), transparent);
  background-position: left center, right center, left center, right center; background-repeat: no-repeat; background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%; background-attachment: local, local, scroll, scroll; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.6; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); font-size: .8125rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgb(242 241 237 / .45); }
tbody th { font-weight: 600; min-width: 7em; }
.compare { min-width: 980px; }

/* ---------- article ---------- */
.article-head { max-width: 860px; padding: 24px 0 8px; }
.article-head h1 { margin-bottom: 14px; }
.article-head .chips { margin-bottom: 14px; }
.meta-strip { display: flex; flex-wrap: wrap; gap: 0; margin: 20px 0 8px; padding: 0; border-block: 1px solid var(--line); }
.meta-strip div { padding: 10px 20px 10px 0; margin-right: 20px; position: relative; }
.meta-strip div:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.meta-strip dt { font-size: .75rem; color: var(--muted); }
.meta-strip dd { margin: 0; font-size: .875rem; font-weight: 600; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; padding-bottom: 48px; }
@media (max-width: 1024px) { .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc-wrap { order: -1; } }

.prose { max-width: 40em; font-size: 1.0625rem; line-height: 1.85; }
.prose > * + h2 { margin-top: 2.2em; }
.prose h2 { padding-top: .2em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent-ink); }
.prose a { text-decoration: underline; text-decoration-color: rgb(15 118 110 / .4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.ext::after { content: "↗"; font-size: .75em; margin-left: 2px; text-decoration: none; display: inline-block; }
.prose code { font-family: var(--mono); font-size: .875em; background: var(--paper-2); padding: .1em .4em; border-radius: 5px; border: 1px solid var(--line); }
.prose pre.code { background: var(--ink); color: #dce6ef; padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { font-size: .9rem; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin: 8px 0; }
.check-box { width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 5px; flex-shrink: 0; margin-top: .35em; }
.status-line { background: var(--paper-2); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9375rem; }
.disclosure { margin: 2.5em 0 1.5em; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--paper-2); font-size: .9rem; }
.disclosure p { margin: 0 0 .5em; } .disclosure p:last-child { margin: 0; }
.sources { font-size: .9375rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .8125rem; padding: 3px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted) !important; text-decoration: none !important; }
.tag:hover { border-color: var(--accent); color: var(--ink) !important; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2em; }
.prev-next a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none !important; color: var(--ink); font-size: .9375rem; font-weight: 600; background: var(--white); transition: border-color .2s; }
.prev-next a:hover { border-color: var(--accent); }
.prev-next a[rel="next"] { text-align: right; }
.prev-next span { font-size: .75rem; color: var(--muted); font-weight: 500; }
.related { border-top: 1px solid var(--line); padding: 40px 0 64px; }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1em 0; }
@media (max-width: 640px) { .fit-grid { grid-template-columns: 1fr; } }
.fit { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; background: var(--white); }
.fit h3 { margin: 0 0 6px; font-size: .9375rem; }
.fit ul { margin: 0; font-size: .9375rem; }
.fit-yes { border-top: 3px solid var(--accent); } .fit-no { border-top: 3px solid var(--line-strong); }
.dim-list { margin: 1em 0; border-top: 1px solid var(--line); }
.dim-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dim-list dt { font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9375rem; }
.dim-list dd { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 2em 0; }
.changelog { font-size: .9rem; color: var(--muted); }
.changelog li + li { margin-top: 6px; }

/* editor's pick label (pinned first in every ranking) */
.pin-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.compare td.num small { font-weight: 400; white-space: nowrap; }

/* swipe hint for wide tables (class set by main.js) */
.table-wrap.is-scrollable { position: relative; }
.table-wrap.has-more { box-shadow: inset -18px 0 14px -14px rgb(13 27 42 / .28); }
.table-wrap.is-scrollable::before { content: "← 左右滑动查看全部列 →"; position: sticky; left: 0; display: block; padding: 6px 12px; font-size: .75rem; color: var(--muted); background: var(--paper-2); border-bottom: 1px solid var(--line); }

/* ---------- ranking / landing tables ---------- */
.compare td.num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); text-align: center; }
.top10 td:nth-child(3) { min-width: 280px; width: 55%; font-size: .9rem; }
.top10 td:nth-child(n+4), .top10 th[scope="row"] { white-space: nowrap; }
.mini-rank { margin: 0; padding-left: 1.2em; font-size: .9rem; }
.mini-rank li + li { margin-top: 6px; }
.usage-table td { min-width: 220px; vertical-align: top; }
.needs th[scope="row"] { white-space: nowrap; }
.hero-h1-sub { display: block; font-size: .46em; font-weight: 600; letter-spacing: 0; margin-top: 10px; opacity: .88; }

/* ---------- toc ---------- */
.toc-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
.toc { font-size: .875rem; }
.toc summary { font-weight: 700; font-size: .8125rem; color: var(--muted); letter-spacing: .04em; cursor: pointer; padding: 6px 0; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; border-left: 1px solid var(--line); max-height: calc(100vh - 200px); overflow-y: auto; }
.toc li 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 .15s, border-color .2s; }
.toc li.toc-l3 a { padding-left: 26px; font-size: .8125rem; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
@media (max-width: 1024px) {
  .toc-wrap { position: static; margin: 8px 0 24px; }
  .toc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 4px 16px; }
  .toc summary { padding: 10px 0; }
  .toc summary::after { content: " ▾"; }
  .toc[open] summary::after { content: " ▴"; }
  .toc ol { max-height: none; margin-bottom: 12px; }
}

/* ---------- pagination, search, sitemap ---------- */
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 40px 0 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--white); }
.pagination a:hover { border-color: var(--accent); }
.pagination [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-search { display: flex; gap: 10px; margin: 16px 0; }
.page-search input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); }
.page-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(20 184 166 / .2); }
.search-results { list-style: none; padding: 0; margin: 16px 0; }
.search-results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-weight: 700; font-size: 1.0625rem; }
.search-results p { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; }
.search-results .s-sec { font-size: .75rem; color: var(--accent-ink); font-weight: 600; display: block; margin-bottom: 2px; }
.search-results mark { background: rgb(94 234 212 / .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.sitemap-grid h2 { font-size: 1.0625rem; }
.sitemap-grid ul { padding-left: 1.1em; font-size: .9375rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b4c2d0; padding: 56px 0 24px; font-size: .9rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer-stats { margin: 0; font-size: .875rem; color: #8798aa; }
.footer-stats strong { color: #fff; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; }
.site-footer .footer-more a { color: var(--signal); }
@media (max-width: 1120px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
.site-footer h2 { font-size: .8125rem; color: #fff; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b4c2d0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand-light, .brand-light:hover, .brand-light .logo-mark { color: #fff !important; text-decoration: none !important; }
.footer-brand p { margin: 14px 0 0; max-width: 360px; }
.footer-note { font-size: .8125rem; color: #8798aa; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .8125rem; color: #8798aa; }
.footer-bottom p { margin: 0; }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); box-shadow: 0 8px 24px rgb(13 27 42 / .14); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease), background-color .2s; }
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .to-top { width: 44px; height: 44px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); } }

/* ---------- motion: reveal + view transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 1; transform: none; }
  .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: .42s; animation-timing-function: var(--ease); }
}
@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: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .to-top, .toc-wrap, .hero-map, .filters { display: none !important; }
  body { background: #fff; }
  .prose a.ext::after { content: " (" attr(href) ")"; }
}

/* ---------- 本站推荐 box (top of content pages) ---------- */
.feat-wrap { margin-top: 14px; margin-bottom: 4px; }
.feat-box { position: relative; padding: 18px 22px 16px; border: 1px solid #f0d9c4; border-left: 4px solid #d08a52; border-radius: 14px; background: linear-gradient(180deg, #fff8f1, #fffdfa); box-shadow: 0 8px 24px -18px rgb(13 27 42 / .35); }
.feat-tags { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.feat-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #c47a43; color: #fff; font-size: .75rem; font-weight: 700; }
.feat-ad { font-size: .72rem; color: var(--warn); border: 1px solid #f5d0b5; background: var(--warn-bg); padding: 1px 8px; border-radius: 999px; }
.feat-title { margin: 0 0 4px; font-size: 1.125rem; font-weight: 700; line-height: 1.45; }
.feat-title a { color: var(--ink); text-decoration: none; }
.feat-title a:hover { text-decoration: underline; }
.feat-facts { margin: 0 0 10px; font-size: .8125rem; color: var(--muted); }
.feat-plans { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.feat-plans li { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: .8125rem; white-space: nowrap; }
.feat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.feat-actions .btn { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.feat-promo { display: inline-flex; align-items: center; gap: 6px; }
.feat-note { margin: 12px 0 0; font-size: .75rem; color: var(--muted); }
@media (max-width: 640px) {
  .feat-box { padding: 14px 14px 12px; }
  .feat-title { font-size: 1rem; }
  .feat-actions .btn { flex: 1 1 auto; }
  .feat-plans li { white-space: normal; }
}
.feat-home { margin-top: 28px; }

/* ---------- 教程与知识 mega menu ---------- */
.nav-mega-btn { display: block; padding: 8px 26px 8px 11px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .9375rem; color: var(--ink); cursor: pointer; position: relative; transition: background-color .18s; }
.nav-mega-btn:hover { background: var(--paper-2); }
.nav-mega-btn::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); opacity: .6; transition: transform .2s var(--ease); }
.nav-mega-btn.is-active { font-weight: 600; }
.nav-mega-btn.is-active::before { content: ""; position: absolute; left: 11px; right: 26px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-mega:hover > .nav-mega-btn::after, .nav-mega:focus-within > .nav-mega-btn::after, .nav-mega.is-open > .nav-mega-btn::after { transform: translateY(-30%) rotate(-135deg); }
.nav-mega > .nav-drop { left: auto; right: -40px; width: min(680px, calc(100vw - 32px)); transform: translateY(6px); }
.nav-mega:hover > .nav-drop, .nav-mega:focus-within > .nav-drop, .nav-mega.is-open > .nav-drop { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.mega-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; padding: 16px; border-top: 3px solid var(--accent); }
.mega-h { margin: 0 8px 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-strong); font-size: .8125rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.site-nav .mega-col ul { display: block; }
.site-nav .mega-item { display: grid; gap: 3px; padding: 10px; border-radius: 10px; }
.site-nav .mega-item:hover, .site-nav .mega-item[data-current] { background: var(--paper-2); }
.mega-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; }
.mega-count { font-size: .6875rem; font-weight: 600; color: var(--accent-ink); background: rgb(20 184 166 / .1); padding: 0 6px; border-radius: 999px; }
.mega-desc { font-size: .78rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 1121px) {
  .home .site-header:not(.is-scrolled) .nav-mega-btn { color: #dbe5ee; }
  .home .site-header:not(.is-scrolled) .nav-mega-btn:hover { background: rgb(255 255 255 / .08); color: #fff; }
}
@media (max-width: 1120px) {
  .nav-mega-btn { width: 100%; text-align: left; padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; cursor: default; }
  .nav-mega-btn::after, .nav-mega-btn.is-active::before { display: none; }
  .nav-mega > .nav-drop { width: auto; }
  .mega-card { grid-template-columns: 1fr; gap: 4px; padding: 0; border-top: 0; }
  .mega-h { margin: 10px 0 2px; padding-bottom: 4px; }
  .site-nav .mega-item { padding: 8px 0; border-bottom: 0; border-radius: 0; }
  .site-nav .mega-item:hover, .site-nav .mega-item[data-current] { background: none; }
}
