/* AIX 观测站 · 站点样式。令牌从官网主色 #45c7ff 的色相(oklch 231)派生浅底档;暗色随系统。 */
:root {
  color-scheme: light dark;
  --paper: #f7fbfc;
  --paper-2: #f0f4f7;
  --card: #ffffff;
  --ink: #121b26;
  --ink-2: #4b5763;
  --ink-3: #78818c;
  --line: #d9dfe2;
  --line-2: #c3ccd1;
  --accent: #0073a1;
  --accent-ink: #005a80;
  --tint: #e5f5fd;
  --bar: #63b6de;
  --bar-track: #deeef6;
  --p1: #0073a1;   /* 豆包 */
  --p2: #b45309;   /* 腾讯元宝 */
  --p3: #6d28d9;   /* 通义千问 */
  --shadow: 0 1px 2px rgba(18, 27, 38, 0.04), 0 8px 24px -12px rgba(18, 27, 38, 0.12);
  --sans: system-ui, -apple-system, "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --w: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1119;
    --paper-2: #101923;
    --card: #131e2a;
    --ink: #e9eef3;
    --ink-2: #aab5c1;
    --ink-3: #7f8b98;
    --line: #223040;
    --line-2: #2f3f51;
    --accent: #44b2e2;
    --accent-ink: #7fcbee;
    --tint: #10283a;
    --bar: #3e93bd;
    --bar-track: #1a2a38;
    --p1: #44b2e2;
    --p2: #e39a4d;
    --p3: #a48ef0;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; text-wrap: pretty; }
p { margin: 0; }
img, svg { max-width: 100%; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.shell { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .shell { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .sub { font-weight: 400; font-size: 13px; color: var(--ink-2); padding-left: 10px; border-left: 1px solid var(--line-2); }
.nav { display: flex; gap: 22px; font-size: 14px; margin-left: 8px; }
.nav a { color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.search { margin-left: auto; position: relative; }
.search input { width: 220px; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; }
.search input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.search svg { position: absolute; left: 11px; top: 10px; }
.search-panel { position: absolute; right: 0; top: 44px; width: 380px; max-height: 60vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: none; }
.search-panel[data-open="1"] { display: block; }
.search-panel a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.search-panel a:hover { background: var(--paper-2); text-decoration: none; }
.search-panel .k { display: block; font-size: 12px; color: var(--ink-3); }
.menu-btn { display: none; }

/* 通用块 */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: color-mix(in srgb, var(--accent) 50%, transparent); }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.head h2 { font-size: 30px; margin-top: 10px; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.strip > div { background: var(--card); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.strip .k { font-size: 12px; color: var(--ink-3); }
.strip .v { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.strip .v.s { font-size: 15px; line-height: 1.45; }
.strip .u { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.strip-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-3); }
.note { color: var(--ink-3); font-size: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; font-weight: 600; background: var(--card); }
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { color: #fff; filter: brightness(0.92); }

/* 首页主视觉 */
.hero { padding: 72px 0 56px; }
.hero .shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
.hero h1 { font-size: 46px; letter-spacing: -0.02em; line-height: 1.12; margin: 16px 0 18px; }
.hero .lead { font-size: 18px; }
.hero .cta { display: flex; gap: 12px; margin-top: 26px; }
.board { padding: 22px 24px; }
.board .t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.board .t b { font-size: 15px; }
.board .t span { font-size: 12px; color: var(--ink-3); }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 46px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row .r { color: var(--ink-3); font-size: 12px; }
.row .b { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.row .b a { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; background: var(--bar-track); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--bar); border-radius: 3px; }
.bar i.p1 { background: var(--p1); } .bar i.p2 { background: var(--p2); } .bar i.p3 { background: var(--p3); }
.row .v { text-align: right; font-weight: 600; font-size: 14px; }

/* 榜单卡片 */
.rank-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.rank-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.rank-card .tag { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); }
.rank-card h3 { font-size: 17px; line-height: 1.4; }
.rank-card h3 a { color: var(--ink); }
.rank-card .top { display: flex; flex-direction: column; gap: 6px; position: static; border: 0; background: none; backdrop-filter: none; }
.rank-card .top div { display: grid; grid-template-columns: 18px 64px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 13px; }
.rank-card .top .r { color: var(--ink-3); }
.rank-card .top .v { text-align: right; font-weight: 600; }

/* 数据表 */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; padding: 0 10px 10px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .r { color: var(--ink-3); width: 44px; }
.table .n { text-align: right; width: 92px; }
.table .rate { width: 300px; }
.table .rate div { display: flex; align-items: center; gap: 12px; }
.table .rate .bar { flex: 1; height: 8px; border-radius: 4px; }
.table .rate b { width: 44px; text-align: right; }
.table .pl { white-space: nowrap; }
.table .pl span { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.p1 { background: var(--p1); } .dot.p2 { background: var(--p2); } .dot.p3 { background: var(--p3); }
.table-wrap { overflow-x: auto; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* 图表 */
.chart { padding: 20px 22px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { font-family: var(--sans); fill: var(--ink-2); font-size: 13px; }
.chart .v { font-family: var(--mono); fill: var(--ink); font-weight: 600; }
.chart .grid line { stroke: var(--line); }
.chart .lbl { fill: var(--ink); }
.chart rect { fill: var(--bar); }
.chart rect.p1 { fill: var(--p1); } .chart rect.p2 { fill: var(--p2); } .chart rect.p3 { fill: var(--p3); }

/* 文章型页面 */
.article { max-width: 800px; }
.article h1 { font-size: 40px; line-height: 1.15; margin: 12px 0 16px; }
.article h2 { font-size: 22px; margin: 44px 0 12px; }
.article p { margin: 0 0 14px; }
.article .lead { margin-bottom: 26px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 20px; font-size: 15px; }
.kv .k { color: var(--ink-3); }
.def { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.def b { font-weight: 600; }
.two { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.toc a { color: var(--ink-2); }
.related { display: flex; flex-direction: column; gap: 10px; }
.related a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; color: var(--ink); }
.related a:hover { text-decoration: none; border-color: var(--accent); }
.related .k { font-size: 12px; color: var(--ink-3); }

/* 品牌页 */
.brand-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.brand-head h1 { font-size: 40px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .k { font-size: 12px; color: var(--ink-3); }
.stat .v { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.stats { display: flex; gap: 40px; }

/* 页脚 */
.foot { border-top: 1px solid var(--line); margin-top: 72px; background: var(--paper-2); }
.foot .shell { padding: 40px 24px 28px; display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.6fr)); gap: 32px; font-size: 13px; color: var(--ink-2); }
.foot h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot .about { display: flex; flex-direction: column; gap: 8px; max-width: 440px; }
.foot .about b { color: var(--ink); }
.foot .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* 入场动画:纯 CSS,只动位移不动透明度 —— 动画哪怕不跑,内容也在原位可见;尊重减少动态偏好 */
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
.reveal { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
.grid > .reveal:nth-child(2) { animation-delay: .06s; } .grid > .reveal:nth-child(3) { animation-delay: .12s; } .grid > .reveal:nth-child(4) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* 响应式 */
@media (max-width: 1024px) {
  .hero .shell { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .foot .shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .top .shell { gap: 12px; }
  .brand .sub { display: none; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); margin-left: auto; }
  .search { margin-left: 0; }
  .search input { width: 44px; padding-left: 34px; color: transparent; }
  .search input:focus { width: 200px; color: var(--ink); }
  .search-panel { width: min(92vw, 380px); }
  .menu { display: none; border-top: 1px solid var(--line); background: var(--paper); }
  .menu[data-open="1"] { display: block; }
  .menu a { display: block; padding: 12px 24px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .section { padding: 40px 0; }
  .head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .head h2 { font-size: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article h1 { font-size: 28px; }
  .table { font-size: 14px; }
  .table .rate { width: 160px; }
  .table .pl { display: none; }
  .th-pl { display: none; }
  .def, .kv { grid-template-columns: 1fr; gap: 4px; }
  .brand-head { flex-direction: column; align-items: flex-start; }
  .brand-head h1 { font-size: 30px; }
  .stats { gap: 24px; flex-wrap: wrap; }
  .foot .shell { grid-template-columns: 1fr; }
  .foot .legal { flex-direction: column; }
}
@media (min-width: 721px) { .menu { display: none !important; } }
@media print { .top, .foot .legal, .search, .cta { display: none; } body { background: #fff; color: #000; } }

/* ── 引用与取用区块(每个可引用页尾;学 OWID 的 How to cite / Download)── */
.cite { padding: 22px 26px; }
.cite-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cite-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.cite-k { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.cite-v { font-size: 14px; line-height: 1.75; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; word-break: break-all; }
.cite-side { display: flex; flex-direction: column; gap: 8px; }
.cite-side .btn { justify-content: flex-start; }

/* 表格下方的取数入口 */
.under-table { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }

/* 内联三问(替代跳转到方法页) */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--mono); color: var(--accent); font-weight: 400; }
.faq details[open] summary::before { content: "−"; }
.faq details p { margin-top: 10px; padding-left: 22px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.faq .eyebrow { margin-bottom: 6px; }

@media (max-width: 720px) {
  .cite-body { grid-template-columns: 1fr; gap: 18px; }
  .cite-v { font-size: 13px; }
}
