:root {
    --bg: #ffffff;
    --fg: #1d1f24;
    --muted: #5f6470;
    --line: #e3e5ea;
    --soft: #f5f6f8;
    --accent: #2f5bd8;
    --accent-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121418;
        --fg: #e7e9ee;
        --muted: #9aa0ac;
        --line: #2a2e36;
        --soft: #1b1e24;
        --accent: #7aa2ff;
        --accent-fg: #0d1020;
    }
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
}
header.site, main, footer.site { max-width: 780px; margin: 0 auto; padding: 0 16px; }
header.site {
    display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
    padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
header.site .brand { font-weight: 700; color: var(--fg); text-decoration: none; }
header.site nav a { margin-left: 14px; font-size: 15px; }
main { padding-top: 12px; padding-bottom: 40px; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding-top: 12px; padding-bottom: 32px; }
a { color: var(--accent); }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.4em 0 0.2em; }
h2 { font-size: 1.35rem; margin-top: 1.8em; }
h3 { font-size: 1.08rem; margin-top: 1.4em; }
.crumbs, .meta { color: var(--muted); font-size: 14px; margin: 0; }
.meta { margin-bottom: 1.2em; }
pre {
    background: var(--soft); border: 1px solid var(--line); border-radius: 8px;
    padding: 12px 14px; overflow-x: auto; font-size: 14px; line-height: 1.5;
}
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; margin: 1em 0; }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--soft); }
blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.cta { margin-top: 2.2em; padding: 4px 20px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.cta h2 { margin-top: 0.8em; }
.button {
    display: inline-block; background: var(--accent); color: var(--accent-fg); text-decoration: none;
    padding: 8px 16px; border-radius: 8px; font-weight: 600;
}
ul.guides { padding-left: 0; list-style: none; }
ul.guides li { padding: 12px 0; border-bottom: 1px solid var(--line); }
