:root {
  --bg: #ffffff;
  --fg: #1b1f24;
  --muted: #5b6672;
  --line: #e3e8ee;
  --soft: #f6f8fa;
  --accent: #1f6feb;
  --code-bg: #f2f4f7;
  --table-stripe: #fafbfc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #9aa7b4;
    --line: #232b36;
    --soft: #161b22;
    --accent: #6cb0ff;
    --code-bg: #161b22;
    --table-stripe: #12171e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 72px; }
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 2px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--fg); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.site-nav .brand { font-weight: 600; color: var(--fg); font-size: 15px; margin-right: 4px; }
header.page-head { padding: 40px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
header.page-head .wrap { padding-bottom: 0; }
header.page-head h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.3; letter-spacing: -0.01em; }
header.page-head p { margin: 0; color: var(--muted); font-size: 14px; }
main { padding-bottom: 40px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 1.9em 0 0.7em; letter-spacing: -0.01em; }
h1 { font-size: 30px; }
h2 { font-size: 23px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
h3 { font-size: 18px; }
h4 { font-size: 16px; color: var(--muted); }
p { margin: 0 0 1.05em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 1.05em; padding-left: 1.4em; }
li { margin: 0.3em 0; }
code { background: var(--code-bg); padding: 0.12em 0.36em; border-radius: 4px; font-size: 0.88em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
blockquote {
  margin: 1.2em 0; padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 15px;
}
blockquote p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); font-weight: 600; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--table-stripe); }
tbody tr:last-child td { border-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 1.4em 0 2em; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--soft); }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.4em 0 2em; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 1.4em 0; font-size: 14px; color: var(--muted); }
.notice strong { color: var(--fg); }
footer.site-foot { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 13px; }
footer.site-foot p { margin: 0 0 6px; }
@media (max-width: 640px) {
  body { font-size: 15px; }
  header.page-head h1 { font-size: 24px; }
  table { font-size: 13px; }
  th, td { padding: 6px 9px; }
}
