:root {
  color-scheme: light;
  --bg: #f5f6f9; --paper: #ffffff; --ink: #202b40; --muted: #5d6a7d;
  --line: #e6eaf0; --orange: #ed743a; --accent: #a84417; --nav: #182238;
  --soft: #fff2e8; --code: #f4f6f9; --danger: #b03333;
  --scroll-thumb: #a6b0c0; --scroll-track: #f5f6f9; --scroll-hover: #7a8496; --scroll-active: #5d6a7d;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: Consolas, "SFMono-Regular", monospace;
  --radius: 8px;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin;
  scrollbar-gutter: stable;
}
* { box-sizing: border-box; scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: var(--scroll-track); }
*::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid var(--scroll-track); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
*::-webkit-scrollbar-thumb:active { background: var(--scroll-active); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 var(--font-body); }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
button:active:not(:disabled) { transform: translateY(1px); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; padding: 12px 18px; background: var(--paper); border: 2px solid var(--accent); }
.skip-link:focus { top: 8px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand strong { font-size: 21px; letter-spacing: -.6px; }
.brand-symbol { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; font: italic 700 29px Georgia, serif; background: var(--orange); color: var(--paper); }
.brand-divider { width: 1px; height: 20px; margin: 0 5px; background: var(--line); }
.brand>span:last-child { color: var(--muted); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.back-link { color: var(--muted); font-size: 13px; }
.sidebar { position: fixed; top: 72px; bottom: 0; width: 272px; padding: 26px 20px; border-right: 1px solid var(--line); background: var(--bg); overflow-y: auto; }
.search-wrap { display: flex; align-items: center; border: 1px solid #cbd2de; border-radius: var(--radius); padding-left: 12px; background: var(--paper); min-height: 42px; }
.search-wrap>span { font-size: 24px; color: var(--muted); }
.search-wrap:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
#search { border: 0; outline: 0; min-width: 0; width: 100%; padding: 9px 8px; background: transparent; font-size: 12px; color: var(--ink); }
#search::-webkit-search-cancel-button { display: none; }
#clear-search { flex-shrink: 0; background: none; border: 0; color: var(--muted); font-size: 21px; width: 32px; height: 38px; }
#clear-search:hover { color: var(--accent); }
.search-status { margin: 8px 0 21px; min-height: 20px; font-size: 11px; color: var(--muted); }
.nav-group { margin: 22px 10px 7px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.doc-link { display: block; border-radius: 6px; padding: 10px 12px; color: var(--ink); margin: 3px 0; border-left: 3px solid transparent; line-height: 1.6; }
.doc-link:hover { background: var(--paper); text-decoration: none; }
.doc-link[aria-current="page"] { color: var(--accent); background: var(--soft); border-left-color: var(--orange); font-weight: 600; }
.doc-link small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 5px; overflow-wrap: anywhere; }
.sidebar-note { margin: 34px 10px 0; padding-top: 19px; border-top: 1px solid #d9dfe8; color: var(--muted); font-size: 11px; }
.sidebar-note strong { font-weight: 600; color: var(--ink); }
.sidebar-note p { margin: 7px 0; line-height: 1.9; }
.overview-link { display: block; margin: 8px 0 20px; padding: 10px 14px; border-radius: 6px; color: var(--ink); font-weight: 600; }
.overview-link:hover { background: var(--paper); text-decoration: none; }
.overview-link[aria-current="page"] { color: var(--accent); background: var(--soft); box-shadow: inset 3px 0 var(--orange); }
.overview-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 1px solid var(--line); }
.overview-heading>.button { margin-top: 39px; flex-shrink: 0; }
.overview-summary { margin: 23px 0 5px; font-weight: 600; }
.overview-download-note { margin: 0 0 28px; font-size: 12px; color: var(--muted); }
.overview-group { font-size: 12px; color: var(--muted); margin: 28px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.overview-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.overview-info { min-width: 0; }
.overview-info h3 { font-size: 17px; margin: 0 0 6px; }
.overview-info h3 a { color: var(--ink); }
.overview-info p { margin: 0 0 11px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.overview-metadata { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--muted); }
.overview-version { font-family: var(--font-mono); color: var(--ink); background: var(--bg); padding: 2px 7px; border-radius: 4px; }
.overview-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 1050px) { .overview-heading { flex-direction: column; gap: 0; padding-bottom: 24px; } .overview-heading>.button { margin-top: 0; } .overview-row { align-items: flex-start; flex-direction: column; gap: 14px; } }
.main { margin-left: 272px; padding: 38px 48px 40px; max-width: 1530px; min-height: calc(100vh - 72px); scroll-margin-top: 90px; }
.document-header { border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.dot-divider { color: #b8c1ce; }
h1 { font-size: 32px; line-height: 1.35; letter-spacing: -.6px; margin: 17px 0 12px; font-weight: 650; }
.doc-summary { color: var(--muted); margin: 0 0 25px; }
.document-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.version-control { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.version-control label { color: var(--muted); font-size: 12px; }
#version { padding: 5px 9px; border: 1px solid #cbd2de; border-radius: 5px; color: var(--ink); background: var(--paper); max-width: 190px; font: 12px/1.6 var(--font-body); }
.updated-at { font-size: 12px; color: var(--muted); }
.document-actions { display: flex; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid #cbd2de; padding: 8px 13px; border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 12px; min-height: 36px; }
.button:hover { background: var(--bg); text-decoration: none; }
.button.primary { color: var(--paper); background: var(--nav); border-color: var(--nav); }
.button.primary:hover { background: #303e56; }
.view-tabs { display: flex; gap: 28px; margin-top: 25px; }
.view-tabs a { color: var(--muted); padding: 12px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; }
.view-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); font-weight: 600; }
#version-count { background: var(--bg); color: var(--muted); padding: 1px 5px; font-size: 10px; border-radius: 4px; margin-left: 4px; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 184px; gap: 38px; padding-top: 27px; }
.reading-column { min-width: 0; }
.toc-panel { align-self: start; position: sticky; top: 100px; max-height: calc(100vh - 125px); overflow-y: auto; border-left: 1px solid var(--line); padding-left: 18px; font-size: 12px; }
.toc-panel>p { font-weight: 600; margin: 0 0 12px; }
.toc-panel a { display: block; color: var(--muted); padding: 5px 0; overflow-wrap: anywhere; line-height: 1.6; }
.toc-panel a.toc-sub { padding-left: 12px; font-size: 11px; }
.toc-panel a[aria-current="location"] { color: var(--accent); font-weight: 600; }
.markdown { font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.markdown>h1:first-child { display: none; }
.markdown h1 { font-size: 27px; }
.markdown h2 { font-size: 21px; line-height: 1.5; margin: 36px 0 15px; padding-top: 9px; }
.markdown h3 { font-size: 17px; margin: 27px 0 12px; }
.markdown h4 { font-size: 15px; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { scroll-margin-top: 92px; }
.markdown>h2:first-child { margin-top: 0; }
.markdown p { margin: 13px 0; }
.markdown li { margin: 5px 0; }
.markdown ul, .markdown ol { padding-left: 24px; }
.markdown strong { font-weight: 650; }
.markdown a { text-decoration: underline; text-underline-offset: 3px; }
.markdown blockquote { margin: 20px 0; padding: 1px 18px; border-left: 3px solid var(--orange); background: var(--soft); }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.markdown code { font: 12px/1.7 var(--font-mono); background: var(--code); padding: 3px 5px; border-radius: 3px; color: #8e3e1c; }
.code-block { border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; overflow: hidden; background: var(--code); }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 5px 12px; border-bottom: 1px solid var(--line); font: 11px/1.5 var(--font-mono); color: var(--muted); background: #edf0f5; }
.copy-code { border: 0; background: transparent; color: var(--muted); font: 11px var(--font-body); padding: 5px 8px; min-width: 55px; }
.copy-code:hover { color: var(--accent); background: var(--paper); border-radius: 4px; }
.markdown pre { padding: 16px; margin: 0; overflow: auto; line-height: 1.7; }
.markdown pre code { background: none; padding: 0; color: var(--ink); border-radius: 0; white-space: pre; overflow-wrap: normal; }
.table-scroll { overflow: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 6px; }
.markdown table { border-collapse: collapse; width: 100%; font-size: 12px; line-height: 1.8; }
.markdown th { background: #edf0f5; text-align: left; font-weight: 600; white-space: nowrap; }
.markdown th, .markdown td { padding: 11px 13px; border-bottom: 1px solid var(--line); min-width: 100px; }
.markdown tr:last-child td { border-bottom: 0; }
.markdown tbody tr:nth-child(even) { background: #fafbfc; }
.diagram { overflow: auto; padding: 16px 8px; border: 1px solid var(--line); border-radius: var(--radius); min-height: 180px; margin: 18px 0; }
.diagram svg { display: block; min-width: 580px; margin: auto; }
.diagram-error { color: var(--danger); font-size: 12px; padding: 12px; }
.version-notice { font-size: 12px; border-left: 3px solid var(--orange); background: var(--soft); padding: 10px 15px; }
.version-notice a { text-decoration: underline; margin-left: 8px; }
.history-intro { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.revision { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.revision-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.revision h2 { margin: 0; font-size: 19px; font-family: var(--font-mono); }
.revision time { margin-left: auto; font-size: 12px; color: var(--muted); }
.revision .badge { background: var(--soft); color: var(--accent); font-size: 11px; padding: 1px 7px; border-radius: 4px; }
.revision h3 { font-size: 12px; margin: 21px 0 5px; }
.revision ul { font-size: 13px; padding-left: 20px; margin: 4px 0; line-height: 1.9; }
.revision-actions { display: flex; gap: 10px; margin-top: 20px; }
.document-footer { margin-top: 50px; padding: 20px 0; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.page-state { min-height: 380px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; color: var(--muted); }
.page-state h1 { font-size: 24px; color: var(--ink); }
.spinner { width: 25px; height: 25px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.feedback { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--nav); color: var(--paper); padding: 11px 20px; border-radius: 7px; z-index: 30; font-size: 13px; max-width: calc(100vw - 32px); text-align: center; }
.noscript { margin: 100px 30px; text-align: center; }
.mobile-only { display: none; }
@media (min-width: 1600px) { .main { margin-left: max(272px, calc((100vw - 1530px) / 2 + 272px)); } }
@media (max-width: 1200px) { .main { padding: 30px; } .reading-layout { grid-template-columns: minmax(0, 1fr); } .toc-panel { position: static; grid-row: 1; max-height: 200px; padding: 12px 16px; background: var(--bg); border-left: 2px solid var(--line); } #toc { columns: 2; column-gap: 20px; } .toc-panel a { break-inside: avoid; } }
@media (max-width: 800px) { .topbar { padding: 0 16px; height: 64px; gap: 8px; } .brand { gap: 8px; } .brand strong { font-size: 18px; } .brand-divider, .brand>span:last-child, .back-link { display: none; } .mobile-only { display: inline-flex; } .sidebar { display: none; position: static; width: auto; max-height: 65vh; padding: 20px; border-bottom: 1px solid var(--line); } .sidebar.is-open { display: block; } .sidebar-note { display: none; } .main { margin: 0; padding: 26px 20px; } h1 { font-size: 27px; } .document-controls { align-items: flex-start; } .document-actions { width: 100%; } .document-actions .button { flex: 1; min-height: 42px; } .reading-layout { gap: 25px; } #toc { columns: 1; } .markdown { font-size: 14px; } .revision { padding: 17px; } .revision-actions { flex-wrap: wrap; } .updated-at { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { * { scrollbar-color: auto; } .doc-link[aria-current], .view-tabs a[aria-current] { outline: 1px solid Highlight; } }
@media print { .topbar, .sidebar, .toc-panel, .document-actions, .view-tabs, .feedback { display: none; } .main { margin: 0; padding: 0; } .reading-layout { display: block; } .code-block, .table-scroll, .diagram { overflow: visible; } }
