* { box-sizing: border-box; }
:root { --paper: #f6f7f2; --ink: #15251b; --muted: #626e60; --line: #dce2d5; --lime: #cbf575; --dark: #14291e; --link: #376526; --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.75 "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p { margin: 0; }
a { color: inherit; text-decoration: none; }
button,input { color: inherit; font: inherit; }
button,summary { cursor: pointer; }
button,a,input,summary { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #558829; outline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 20; background: var(--dark); color: white; padding: 12px 20px; }
.skip:focus { top: 8px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand strong { display: block; font-size: 21px; line-height: 1.2; letter-spacing: .5px; }
.brand small { display: block; font: 8px/1.5 var(--mono); letter-spacing: 1.6px; margin-top: 6px; }
.header-actions { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.header-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.header-actions a:hover,.breadcrumbs a:hover,.site-footer a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
#language { flex-shrink: 0; width: 46px; min-height: 44px; border: 1px solid #c5cfbd; background: transparent; border-radius: 50%; font-size: 12px; font-weight: 700; }
#language:hover { background: #eaf0e2; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 24px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.kb-hero { padding-block: 42px 38px; max-width: 940px; }
.eyebrow { color: var(--muted); font: 10px/1.6 var(--mono); letter-spacing: 1.6px; }
.kb-hero h1 { font-size: clamp(34px, 4.3vw, 55px); font-weight: 650; letter-spacing: -1.7px; line-height: 1.24; margin-block: 16px 18px; overflow-wrap: anywhere; }
.lede { max-width: 700px; color: #52604c; font-size: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 20px; }
.lang-note { border: 1px solid var(--line); padding: 2px 8px; border-radius: 3px; }
.kb-search { padding: 25px 28px; margin-bottom: 30px; background: var(--dark); color: #f1f6e9; border-radius: 7px; }
#search-form { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
#search-form label { font-size: 13px; }
#search-form > label { display: grid; gap: 8px; flex: 1; min-width: 200px; }
#knowledge-search { min-width: 0; flex: 1; min-height: 48px; width: 100%; padding: 10px 14px; border: 1px solid #bbcaad; border-radius: 4px; background: #fcfdf9; color: var(--ink); }
#knowledge-search::placeholder { color: #687661; }
#search-form > input { flex-basis: 65%; }
#clear-search,#search-retry { border: 1px solid #819573; background: transparent; color: inherit; padding: 8px 15px; border-radius: 4px; }
#clear-search:hover,#search-retry:hover { border-color: var(--lime); background: #253f2b; }
#search-status { margin-top: 12px; font-size: 13px; color: #d3dec9; }
#search-status:empty { margin: 0; }
#search-retry { margin-top: 14px; }
.search-help { color: #c4d1b9; font-size: 12px; margin-top: 10px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 54px; }
.guide-card { display: flex; flex-direction: column; align-items: start; gap: 14px; padding: 28px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: white; transition: border-color .15s, background-color .15s; }
.guide-card:hover { border-color: #8ca875; background: #fbfdf7; }
.guide-number { font: 12px var(--mono); color: var(--muted); }
.guide-tag { font: 10px/1.5 var(--mono); color: var(--muted); letter-spacing: .6px; }
.guide-card h2 { font-size: 24px; line-height: 1.35; letter-spacing: -.5px; font-weight: 600; }
.guide-card p { color: #59654f; font-size: 14px; }
.guide-link { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--link); }
#browse-content { min-width: 0; }
#browse-content > .doc-content { max-width: 960px; padding-bottom: 50px; }
#search-results { margin-bottom: 54px; }
#search-list { list-style: none; padding: 0; margin: 0; }
.search-result { padding: 24px 4px; border-bottom: 1px solid var(--line); }
.search-result:first-child { padding-top: 7px; }
.result-meta { color: var(--muted); font-size: 11px; }
.search-result-title { font-size: 20px; font-weight: 600; line-height: 1.45; margin: 7px 0; overflow-wrap: anywhere; }
.search-result-title a { text-decoration: underline; text-decoration-color: #b5c5aa; text-underline-offset: 4px; }
.search-result-title a:hover { color: var(--link); }
.search-result-snippet { max-width: 960px; font-size: 14px; color: #52604c; overflow-wrap: anywhere; }
mark { color: inherit; background: #dff3b8; padding-inline: 1px; }
.search-more { margin-top: 22px; padding: 9px 22px; border: 1px solid #9baa8e; border-radius: 4px; background: white; }
.search-more:hover { background: #eaf0e2; }
.doc-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 64px; }
.doc-sidebar { position: sticky; top: 24px; min-width: 0; max-height: calc(100vh - 48px); overflow-y: auto; padding: 0 12px 12px 0; scrollbar-width: thin; }
.article-nav { display: grid; gap: 5px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-nav a { display: block; padding: 10px 12px; min-height: 44px; border-radius: 4px; font-size: 13px; line-height: 1.55; }
.article-nav a:hover { background: #eaf0e2; }
.article-nav a[aria-current="page"] { background: var(--dark); color: #f1f6e9; }
.doc-toc summary { font-size: 13px; font-weight: 600; padding: 10px 12px; min-height: 44px; }
.toc-list { list-style: none; padding: 8px 0 0; margin: 0; }
.toc-list li { margin: 0; }
.toc-list a { display: block; font-size: 12px; line-height: 1.6; padding: 7px 12px; color: #5a6752; border-left: 2px solid transparent; overflow-wrap: anywhere; }
.toc-list a:hover { color: var(--ink); background: #edf2e6; }
.toc-list a[aria-current="location"] { border-color: #638941; color: #244b1a; background: #eaf0e2; }
.toc-list .toc-sub a { padding-left: 24px; font-size: 11px; }
.doc-content { min-width: 0; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.doc-content > :first-child { margin-top: 0; }
.doc-content h2 { font-size: 26px; line-height: 1.4; font-weight: 600; letter-spacing: -.5px; margin: 50px 0 21px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.doc-content h3 { font-size: 19px; line-height: 1.5; font-weight: 600; margin: 32px 0 16px; scroll-margin-top: 28px; }
.doc-content h4 { font-size: 16px; margin-block: 26px 14px; }
.doc-content p { margin-block: 16px; }
.doc-content ul,.doc-content ol { margin-block: 17px; padding-left: 24px; }
.doc-content li + li { margin-top: 8px; }
.doc-content li > p { margin-block: 7px; }
.doc-content strong { font-weight: 650; }
.doc-content a { color: var(--link); text-decoration: underline; text-decoration-color: #b6c7a6; text-underline-offset: 3px; }
.doc-content a:hover { text-decoration-color: var(--link); }
.doc-content h2 a,.doc-content h3 a { color: inherit; }
.doc-content .heading-anchor { text-decoration: none; }
.doc-content .heading-anchor::after { content: " #"; color: #78876b; font-size: .7em; opacity: 0; }
.doc-content .heading-anchor:hover::after,.doc-content .heading-anchor:focus-visible::after { opacity: 1; }
.doc-content code { font: .86em/1.6 var(--mono); background: #e9eee1; padding: 2px 5px; border-radius: 3px; }
.doc-content pre { margin: 22px 0; padding: 18px 20px; overflow: auto; max-width: 100%; border: 1px solid var(--line); background: #e9eee1; border-radius: 5px; line-height: 1.65; }
.doc-content pre code { padding: 0; font-size: 12px; background: none; white-space: pre; overflow-wrap: normal; }
.doc-content blockquote { margin: 20px 0; padding: 4px 20px; border-left: 3px solid #83a45e; background: #edf2e5; color: #445a35; }
.doc-content hr { margin-block: 32px; border: 0; border-top: 1px solid var(--line); }
.doc-content .table-scroll { overflow-x: auto; max-width: 100%; margin: 22px 0; background: #fff; border: 1px solid var(--line); border-radius: 5px; scrollbar-width: thin; }
.doc-content table { width: 100%; min-width: 740px; border-collapse: collapse; text-align: left; table-layout: fixed; }
.doc-content thead th { color: #4e5c43; background: #edf2e6; font-size: 12px; font-weight: 600; padding: 13px 15px; line-height: 1.65; }
.doc-content td,.doc-content tbody th { font-size: 14px; line-height: 1.75; vertical-align: top; padding: 16px 15px; border-top: 1px solid #e4e9de; }
.doc-content tbody th { font-weight: 500; }
.doc-content tbody tr:hover { background: #fcfdf9; }
.doc-content tr[id] { scroll-margin-top: 28px; }
.doc-content tr:target { background: #edf7dc; }
.doc-content :is(h2,h3):target { color: #315f20; }
.doc-content table code { padding-inline: 3px; }
.doc-content table p { margin: 0; }
.doc-content .knowledge-diagram { margin: 26px 0; padding: 18px; max-width: 100%; border: 1px solid var(--line); border-radius: 5px; background: white; }
.diagram-scroll { overflow-x: auto; max-width: 100%; }
.knowledge-diagram img { display: block; max-width: none; min-width: 100%; width: auto; height: auto; }
.knowledge-diagram figcaption { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.diagram-description { margin-top: 12px; font-size: 12px; }
.diagram-description summary { min-height: 44px; display: list-item; padding-block: 10px; color: var(--link); }
.diagram-description pre { margin-block: 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1100px) { .wrap { width: calc(100% - 48px); } .doc-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 30px; } .guide-card { padding: 24px; } .guide-card h2 { font-size: 21px; } }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } .doc-sidebar { position: static; max-height: none; overflow: visible; padding: 0; } .article-nav { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 16px; margin-bottom: 12px; } .article-nav a { border: 1px solid var(--line); padding-inline: 12px; } .doc-toc { border: 1px solid var(--line); border-radius: 4px; } .doc-toc summary { padding: 12px 16px; } .toc-list { padding: 0 6px 12px; } .toc-list a { padding-block: 9px; } .guide-grid { gap: 12px; } .guide-card { padding: 20px; } }
@media (max-width: 650px) { .wrap { width: calc(100% - 36px); } .header-inner { min-height: 76px; gap: 12px; } .brand { gap: 8px; } .brand strong { font-size: 17px; } .brand small { font-size: 7px; letter-spacing: 1px; } .brand img { width: 32px; height: 32px; } .header-actions { gap: 12px; font-size: 12px; } .header-actions a { max-width: 88px; line-height: 1.5; } #language { width: 44px; } .breadcrumbs { padding-top: 18px; font-size: 11px; gap: 7px; } .kb-hero { padding-block: 28px 30px; } .kb-hero h1 { font-size: 35px; letter-spacing: -1px; } .lede { font-size: 14px; } .meta { gap: 6px 12px; font-size: 11px; } .kb-search { padding: 21px 18px; margin-bottom: 24px; } #search-form { gap: 10px; } #search-form > label { min-width: 0; flex-basis: calc(100% - 80px); } #search-form > input { flex-basis: calc(100% - 80px); } #clear-search { padding-inline: 11px; } .guide-grid { grid-template-columns: minmax(0, 1fr); margin-bottom: 36px; } .guide-card { gap: 11px; padding: 23px; } .guide-card h2 { font-size: 23px; } .guide-card p { font-size: 14px; } .guide-link { padding-top: 3px; } .doc-content { font-size: 15px; } .doc-content h2 { margin-top: 36px; padding-top: 22px; font-size: 23px; } .doc-content h3 { font-size: 18px; } .doc-content td,.doc-content tbody th { padding: 13px; } .doc-content thead th { padding: 12px 13px; } .doc-content .knowledge-diagram { padding: 12px; } .doc-layout { padding-bottom: 42px; } .article-nav a { font-size: 12px; } .search-result-title { font-size: 18px; } .search-result-snippet { font-size: 14px; } .site-footer { align-items: start; flex-direction: column; gap: 0; font-size: 11px; } }
@media (max-width: 370px) { .wrap { width: calc(100% - 28px); } .brand strong { font-size: 16px; } .brand small { font-size: 6px; } .brand img { width: 29px; height: 29px; } .header-actions { gap: 8px; } .header-actions a { max-width: 62px; font-size: 11px; } .kb-hero h1 { font-size: 31px; } .kb-search { padding: 18px 14px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .guide-card { transition: none; } }
@media print { .site-header,.doc-sidebar,.kb-search,.breadcrumbs,.site-footer { display: none; } .wrap { width: 100%; } .doc-layout { display: block; } .doc-content table { min-width: 0; font-size: 10px; } .doc-content th,.doc-content td { padding: 6px; font-size: 10px; } .doc-content .table-scroll { overflow: visible; } .knowledge-diagram img { min-width: 0; max-width: 100%; } }
