:root {
  --bg: #0b0f14; --panel: #121821; --text: #e8edf3; --muted: #94a3b8; --accent: #f5d67a; --line: #1f2937;
  --max: 760px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fafaf7; --panel: #ffffff; --text: #111827; --muted: #4b5563; --accent: #b8860b; --line: #e5e7eb; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Noto Sans SC", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.site { border-bottom: 1px solid var(--line); }
header.site .inner, main, footer .inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
header.site .inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 700; letter-spacing: .02em; color: var(--text); }
nav a { margin-left: 18px; color: var(--muted); font-size: 14px; }
main { padding: 40px 20px 64px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 36px 0 10px; }
h3 { font-size: 16px; margin: 22px 0 6px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 18px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 13px; }
.lang button { background: transparent; color: var(--muted); border: 0; padding: 6px 12px; cursor: pointer; font: inherit; }
.lang button[aria-pressed="true"] { background: var(--accent); color: #000; }
[data-lang] { display: none; }
html[lang="zh-Hans"] [data-lang="zh"], html[lang="en"] [data-lang="en"] { display: block; }
footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); margin-right: 14px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--muted); margin-left: 8px; vertical-align: middle; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td, th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
