
:root { color-scheme: light; --ink:#202d38; --muted:#5b6b77; --accent:#164d70;
        --border:#d9e2e8; --surface:#f3f7fa; }
* { box-sizing:border-box; }
html { scroll-padding-top:6rem; }
body { margin:0; color:var(--ink); background:#fff; font-family:system-ui,-apple-system,
       BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;
       font-size:17px; line-height:1.75; }
a { color:var(--accent); text-underline-offset:.18em; }
a:hover { text-decoration-thickness:2px; }
a:focus-visible,summary:focus-visible,.table-scroll:focus-visible {
  outline:3px solid #a25300; outline-offset:4px; }
.skip { position:absolute; top:-6rem; left:1rem; padding:.7rem 1rem; background:#fff; z-index:5; }
.skip:focus { top:1rem; }
.site-header { position:sticky; top:0; z-index:3; background:rgba(255,255,255,.97);
               border-bottom:1px solid var(--border); }
.header-inner { max-width:1180px; margin:auto; padding:1rem 1.5rem; display:flex;
                gap:1rem; align-items:center; justify-content:space-between; }
.brand { font-weight:750; letter-spacing:-.02em; text-decoration:none; }
nav { display:flex; gap:.4rem; align-items:center; flex-wrap:wrap; font-size:.9rem; }
nav a { padding:.35rem .65rem; border-radius:5px; text-decoration:none; }
nav a[aria-current="page"] { color:#fff; background:var(--accent); }
nav .download { border:1px solid var(--border); margin-left:.35rem; }
.layout { max-width:1180px; margin:auto; padding:3.2rem 1.5rem 4rem; display:grid;
          grid-template-columns:215px minmax(0,1fr); gap:3.4rem; }
aside { align-self:start; position:sticky; top:6rem; font-size:.85rem; line-height:1.5; }
aside h2 { font-size:.8rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 .8rem; }
.toc { list-style:none; margin:0; padding:0; }
.toc li { margin:0 0 .7rem; }
.toc a { text-decoration:none; color:var(--muted); }
.toc a:hover { color:var(--accent); text-decoration:underline; }
.mobile-toc { display:none; }
article { min-width:0; }
article h1 { margin:0 0 .7rem; font-size:clamp(2rem,4vw,3.2rem); line-height:1.12;
             letter-spacing:-.035em; color:var(--accent); }
article h2 { margin:2.7rem 0 1rem; font-size:1.55rem; line-height:1.3; letter-spacing:-.02em; }
article h2.subtitle { margin:0 0 1.25rem; font-size:1.25rem; color:var(--muted); font-weight:450; }
article h3 { margin:1.8rem 0 .7rem; font-size:1.15rem; line-height:1.4; }
article p { margin:0 0 1.1rem; }
article li { margin-bottom:.45rem; }
article ul,article ol { padding-left:1.5rem; }
article blockquote { margin:1.5rem 0; padding:.8rem 1.2rem; border-left:3px solid var(--accent); background:var(--surface); }
article blockquote p:last-child { margin:0; }
code { font-family:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace; font-size:.86em; }
article p code,article li code { background:var(--surface); padding:.08em .25em; border-radius:3px; overflow-wrap:anywhere; }
pre { margin:1.25rem 0; padding:1rem 1.15rem; background:var(--surface); border:1px solid var(--border);
      border-radius:6px; line-height:1.6; overflow-x:auto; max-width:100%; }
.table-scroll { overflow-x:auto; max-width:100%; margin:1.2rem 0 1.5rem; }
table { width:100%; border-collapse:collapse; min-width:480px; font-size:.88rem; line-height:1.5; }
th,td { padding:.7rem .8rem; border-bottom:1px solid var(--border); vertical-align:top; text-align:left; }
th { background:var(--surface); font-weight:650; }
.site-footer { max-width:1180px; margin:auto; padding:1.5rem; border-top:1px solid var(--border);
               font-size:.85rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; }
html[lang="zh-CN"] article { line-height:1.9; }
@media(max-width:900px) {
  .layout { display:block; max-width:850px; padding-top:2rem; }
  aside { display:none; }
  .mobile-toc { display:block; margin:0 0 2rem; padding:.8rem 1rem; border:1px solid var(--border); border-radius:6px; }
  .mobile-toc summary { cursor:pointer; font-weight:600; }
  .mobile-toc .toc { margin-top:1rem; }
}
@media(max-width:550px) {
  html { scroll-padding-top:8rem; }
  body { font-size:16px; }
  .header-inner { align-items:flex-start; padding:.8rem 1rem; gap:.6rem; flex-direction:column; }
  nav { font-size:.85rem; }
  .layout { padding:1.5rem 1rem 2.5rem; }
  article h2 { font-size:1.35rem; }
  .site-footer { padding:1rem; }
}
@media print {
  .site-header,aside,.mobile-toc,.skip { display:none; }
  .layout { display:block; max-width:none; padding:0; }
  pre { white-space:pre-wrap; }
}
