/* 性价比机场 — 全站样式（无外部字体、无框架，首屏轻量） */
:root {
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #ccfbf1;
  --accent: #d97706;
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #f0f3f2;
  --text: #17201e;
  --muted: #5b6764;
  --line: #dfe5e3;
  --yes: #15803d;
  --part: #b45309;
  --no: #9ca3af;
  --warn-bg: #fff7ed;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 22, .05), 0 6px 20px rgba(16, 24, 22, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2dd4bf; --brand-strong: #5eead4; --brand-soft: #134e4a; --accent: #fbbf24;
    --bg: #0d1312; --surface: #141c1b; --surface-2: #1b2524; --text: #e6eeec; --muted: #9aa8a5; --line: #263331;
    --yes: #4ade80; --part: #fbbf24; --no: #6b7280; --warn-bg: #2a1f10; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #2dd4bf; --brand-strong: #5eead4; --brand-soft: #134e4a; --accent: #fbbf24;
  --bg: #0d1312; --surface: #141c1b; --surface-2: #1b2524; --text: #e6eeec; --muted: #9aa8a5; --line: #263331;
  --yes: #4ade80; --part: #fbbf24; --no: #6b7280; --warn-bg: #2a1f10; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.75 var(--font); color: var(--text); background: var(--bg); overflow-wrap: anywhere; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.65rem); margin: 2em 0 .7em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.draft-banner { background: #b45309; color: #fff; text-align: center; padding: 6px 12px; font-size: .9rem; }

/* 顶栏 */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.theme-toggle, .nav-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -5px; } .nav-toggle span::after { position: absolute; top: 5px; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; inset: 60px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a { padding: 10px 12px; }
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }

/* 首页 Hero */
.hero { background: radial-gradient(1200px 400px at 10% -10%, var(--brand-soft), transparent 70%), var(--surface); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.kicker { color: var(--brand); font-weight: 700; font-size: .9rem; margin: 0; letter-spacing: .02em; }
.kicker a { text-decoration: none; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin: 0 0 1em; }
.trust { list-style: none; padding: 0; margin: 20px 0 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 760px; }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .85rem; color: var(--muted); }
.trust b { display: block; color: var(--text); font-size: 1rem; }
@media (max-width: 640px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-meta { font-size: .88rem; color: var(--muted); margin: 0; }
.section-desc { color: var(--muted); margin-top: -.3em; }

/* 要点速览（GEO：便于搜索与 AI 摘取） */
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 16px 20px; margin: 28px 0; }
.tldr-h { font-weight: 800; margin: 0 0 6px; color: var(--brand); }
.tldr ul { margin: 0; padding-left: 1.2em; }
.tldr li { margin: 4px 0; }

/* 分类推荐 */
.picks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.picks li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.pick-label { font-size: .8rem; color: var(--accent); font-weight: 700; }
.picks a { font-weight: 700; text-decoration: none; color: var(--text); }
.picks small { color: var(--muted); }

/* 榜单卡片 */
.rank-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.rank-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.rank-card:first-child { border-color: var(--brand); }
.rank-no { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; background: var(--surface-2); color: var(--muted); }
.rank-card:first-child .rank-no { background: var(--brand); color: #fff; }
.rank-name { margin: 0 0 2px; font-size: 1.2rem; }
.rank-name a { color: var(--text); text-decoration: none; }
.rank-name a:hover { color: var(--brand); }
.rank-best { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.rank-specs { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 4px 22px; margin: 0 0 10px; }
.rank-specs div { min-width: 0; }
.rank-specs dt { font-size: .78rem; color: var(--muted); }
.rank-specs dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-side { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 132px; text-align: center; }
@media (max-width: 720px) {
  .rank-card { grid-template-columns: 40px 1fr; padding: 16px; }
  .rank-no { width: 36px; height: 36px; font-size: 1rem; }
  .rank-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rank-side .btn { flex: 1; }
  .rank-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.score { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; font-variant-numeric: tabular-nums; color: var(--brand); }
.score b { font-size: 1.4rem; }
.score small { color: var(--muted); }
.score-lg b { font-size: 2rem; }
.score-xl b { font-size: 3rem; line-height: 1; }

.price-badge { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; color: var(--brand); font-variant-numeric: tabular-nums; }
.price-badge b { font-size: 1.7rem; }
.price-badge small { color: var(--muted); font-size: .78rem; }
.price-xl b { font-size: 2.6rem; }
.rank-pos { margin: 2px 0; font-size: .9rem; }
.rank-pos b { color: var(--accent); font-size: 1.1rem; }
.muted-note { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
.tag { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.coupon-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.coupon { font: 700 .85rem var(--mono); color: var(--accent); background: var(--warn-bg); border: 1px dashed var(--accent); border-radius: 6px; padding: 2px 10px; cursor: pointer; }
.coupon.copied::after { content: " ✓ 已复制"; font-family: var(--font); font-weight: 400; }
.coupon-wrap small { font-size: .78rem; }
.review-box > *, .article-grid > *, .rank-card > * { min-width: 0; }
.plan-table { grid-column: 1 / -1; }
.plan-table tbody th { min-width: 9em; }
.plan-table .table-wrap { margin: 0; }
.plan-table th small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.plan-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-table td:last-child { white-space: normal; color: var(--muted); font-size: .85rem; min-width: 10em; }
tr.hl th, tr.hl td { background: var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .76rem; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.chip-yes { color: var(--yes); border-color: color-mix(in srgb, var(--yes) 40%, transparent); }
.chip-yes::before { content: "✓ "; }
.chip-part { color: var(--part); border-color: color-mix(in srgb, var(--part) 40%, transparent); }
.chip-part::before { content: "◐ "; }
.chip-no { text-decoration: line-through; opacity: .7; }
.tag { font-size: .72rem; padding: 1px 8px; border-radius: 6px; vertical-align: middle; }
.tag-draft { background: var(--warn-bg); color: var(--part); }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 4px; padding: 9px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; border: 1px solid var(--brand); font-size: .95rem; cursor: pointer; }
.btn:hover { background: var(--brand-strong); color: #fff; }
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .btn:hover { color: #042f2e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn, :root:not([data-theme="light"]) .btn:hover { color: #042f2e; } }
.btn-ghost, .btn-ghost:hover { background: transparent !important; color: var(--brand) !important; }

.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); }
.empty-state strong { color: var(--text); font-size: 1.1rem; }

/* 表格 */
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
caption { caption-side: top; text-align: left; padding: 10px 14px; color: var(--muted); font-size: .85rem; }
.compare td { font-variant-numeric: tabular-nums; white-space: nowrap; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: " ↕"; color: var(--muted); font-weight: 400; }
th[aria-sort="ascending"]::after { content: " ↑"; color: var(--brand); }
th[aria-sort="descending"]::after { content: " ↓"; color: var(--brand); }

/* 文章 */
.page-head { padding-top: 24px; }
.article-head { padding: 18px 0 8px; max-width: 820px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .88rem; margin: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: start; }
.article-aside { position: sticky; top: 80px; display: grid; gap: 16px; }
@media (max-width: 980px) { .article-grid { grid-template-columns: 1fr; } .article-aside { position: static; order: -1; } .aside-cta { display: none; } }
.prose { max-width: 780px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 5px; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--line); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); }
.prose blockquote p { margin: .3em 0; }
.callout-key { border-left-color: var(--brand) !important; color: var(--text) !important; }
.callout-tip { border-left-color: #2563eb !important; color: var(--text) !important; }
.callout-warn { border-left-color: var(--accent) !important; background: var(--warn-bg) !important; color: var(--text) !important; }
.prose h2 { padding-top: .4em; border-top: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.home-prose { max-width: 820px; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .9rem; }
.toc summary { font-weight: 800; cursor: pointer; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a.active, .toc a:hover { color: var(--brand); }
.aside-cta { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.aside-cta p { margin: 0; font-weight: 700; }

.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 36px 0 0; }
.author-box p { margin: 0 0 4px; font-size: .92rem; color: var(--muted); }
.avatar { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }

.cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--brand-soft); border-radius: var(--radius); padding: 16px 20px; margin: 2em 0; }
.cta p { margin: 0; color: var(--text); }
@media (max-width: 640px) { .cta { flex-direction: column; align-items: stretch; } }

/* 卡片 */
.card-grid { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: var(--brand); }
.card a { text-decoration: none; color: var(--text); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; flex: 1; }
.card-meta { font-size: .8rem; color: var(--muted); }
.related h2 { border-top: 0; }

/* 测评数据卡 */
.review-box { display: grid; grid-template-columns: 240px 1fr; gap: 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 10px 0 30px; box-shadow: var(--shadow); }
.review-score { text-align: center; }
.review-score > p { margin: 4px 0 12px; color: var(--muted); font-size: .85rem; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; text-align: left; font-size: .85rem; }
.bars li { display: grid; grid-template-columns: 48px 1fr 30px; gap: 8px; align-items: center; }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bars b { font-variant-numeric: tabular-nums; text-align: right; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-grid div { padding: 8px 12px; box-shadow: 1px 1px 0 var(--line); }
.spec-grid dt { font-size: .78rem; color: var(--muted); }
.spec-grid dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.proscons { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proscons > div { border-radius: 12px; padding: 12px 16px; background: var(--surface-2); }
.proscons p { margin: 0 0 4px; font-weight: 800; }
.pros p { color: var(--yes); } .cons p { color: var(--part); }
.proscons ul { margin: 0; padding-left: 1.2em; }
.verdict { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.verdict p { margin: 0; }
@media (max-width: 760px) { .review-box { grid-template-columns: 1fr; } .proscons { grid-template-columns: 1fr; } .verdict { flex-direction: column; align-items: stretch; } }

/* 计算器 */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 10px 0 30px; box-shadow: var(--shadow); }
.calc-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .calc-plans { grid-template-columns: 1fr; } }
.calc fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; min-width: 0; }
.calc legend { font-weight: 800; padding: 0 6px; }
.calc label { display: block; font-size: .85rem; color: var(--muted); margin: 8px 0 2px; }
.calc input, .calc select { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.calc-out { display: block; margin-top: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: .9rem; }
.calc-out b { font-size: 1.35rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.calc-out.best { outline: 2px solid var(--brand); }
.calc-note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }

/* 页脚 */
.site-footer { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 20px; font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-brand { font-weight: 800; color: var(--text); font-size: 1.05rem; margin: 0 0 6px; }
.footer-h { font-weight: 700; color: var(--text); margin: 0 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-legal { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; font-size: .82rem; }
.link-list { line-height: 2; }
