:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --panel-2: #f1f4f8;
  --line: #e2e7ee;
  --text: #1c2430;
  --muted: #5d6b7e;
  --brand: #0e7490;
  --brand-2: #4f46e5;
  --brand-soft: #e0f2f7;
  --accent: #c2410c;
  --ok: #047857;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Cascadia Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a;
    --panel: #161c24;
    --panel-2: #1c2430;
    --line: #2a3441;
    --text: #e6eaf0;
    --muted: #9aa6b5;
    --brand: #38bdf8;
    --brand-2: #818cf8;
    --brand-soft: #0c2a36;
    --accent: #fb923c;
    --ok: #34d399;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; }
pre { background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--panel); padding: 6px 10px; }

/* 顶栏 */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.08rem; color: var(--text); text-decoration: none; margin: 0; }
.logo:hover { color: var(--text); }
.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(--text); text-decoration: none; font-size: 0.94rem; }
.site-nav a:hover { background: var(--panel-2); }
.site-nav a[aria-current] { color: var(--brand); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 0.9rem; cursor: pointer; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 14px; }
  .site-nav a { padding: 11px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* 文章 */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; padding-top: 24px; padding-bottom: 56px; }
.article-layout.no-toc { grid-template-columns: minmax(0, 820px); justify-content: center; }
.article { min-width: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 12px; font-size: 0.86rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.article-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.15rem); line-height: 1.3; margin: 0 0 10px; letter-spacing: -0.01em; }
.meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 20px; }
.meta a { color: var(--muted); }

.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.42rem; line-height: 1.4; margin: 2.2em 0 0.7em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.14rem; margin: 1.7em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose > p:first-child { font-size: 1.06rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td a { white-space: nowrap; }
@media (max-width: 640px) {
  .table-wrap table { min-width: 620px; }
  th, td { padding: 8px 10px; }
  td:first-child { min-width: 7em; }
}

.toc-side { position: sticky; top: 84px; align-self: start; font-size: 0.9rem; border-left: 1px solid var(--line); padding-left: 16px; max-height: calc(100vh - 110px); overflow: auto; }
.toc-title { font-weight: 600; margin: 0 0 6px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 6px 0; line-height: 1.45; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--brand); }
.toc-inline { display: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 20px; }
.toc-inline summary { cursor: pointer; font-weight: 600; }
.toc-inline ol { margin-top: 8px; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc-side { display: none; }
  .toc-inline { display: block; }
}

.disclosure, .note { font-size: 0.88rem; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 1.5em 0; }
.stat { font-size: 0.95rem; color: var(--muted); }
.related { margin-top: 36px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.related h2 { font-size: 1.1rem; margin: 0 0 8px; border: 0; padding: 0; }
.related ul { margin: 0; padding-left: 1.2em; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 600; line-height: 1.4; cursor: pointer; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #0b1220; } }
.coupon { font: inherit; font-size: 0.86rem; background: transparent; border: 1px dashed var(--accent); color: var(--accent); border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.coupon.copied { border-style: solid; }

/* 机场卡片 */
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 1em 0 1.6em; }
.ap-grid.one { grid-template-columns: minmax(0, 520px); }
.ap-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ap-card-head { display: flex; align-items: center; gap: 10px; }
.ap-card h3 { margin: 0; font-size: 1.16rem; }
.ap-card h3 a { color: var(--text); text-decoration: none; }
.rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.9rem; flex: none; }
.ap-sum { color: var(--muted); font-size: 0.9rem; margin: 8px 0 10px; }
.ap-facts { margin: 0 0 10px; display: grid; gap: 4px; font-size: 0.9rem; }
.ap-facts div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.ap-facts dt { color: var(--muted); }
.ap-facts dd { margin: 0; font-weight: 600; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tags span { font-size: 0.78rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; color: var(--muted); }
.ap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* 测评页速览 */
.quick { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 1.2em 0 1.6em; box-shadow: var(--shadow); }
.quick-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.quick-facts div { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.quick-facts span { display: block; font-size: 0.8rem; color: var(--muted); }
.quick-facts b { font-size: 0.98rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 首页 */
.home { padding-bottom: 48px; }
.home > * { max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.home > .hero { max-width: none; padding: 44px 16px 34px; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hero-inner { max-width: 1160px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.75rem, 4.4vw, 2.6rem); line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.015em; }
.hero p { color: var(--muted); max-width: 720px; font-size: 1.04rem; margin: 0 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home h2 { font-size: 1.5rem; margin: 40px auto 10px; }
.home h2 + p { color: var(--muted); }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 14px auto 8px; }
.entry-grid a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.entry-grid a:hover { border-color: var(--brand); }
.entry-grid b { display: block; margin-bottom: 4px; color: var(--brand); }
.entry-grid span { font-size: 0.9rem; color: var(--muted); }
.home .table-wrap { margin-top: 10px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); padding: 36px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-about p { color: var(--muted); margin: 0 0 10px; }
.footer-about .logo { color: var(--text); margin-bottom: 10px; }
.small { font-size: 0.82rem; }
.footer-title { font-weight: 600; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
