:root { --guide-soft: #f7f9fd; --guide-note: #edf4ff; --guide-note-border: #c9dcfb; --guide-warn: #fff8e9; --guide-warn-border: #eddbac; --guide-warn-text: #87611d; }
:root[data-theme="dark"] { --guide-soft: #101a29; --guide-note: #152b47; --guide-note-border: #2c527e; --guide-warn: #30271a; --guide-warn-border: #65502b; --guide-warn-text: #f0d297; }
body { overflow: auto; }
main.guide { max-width: 1220px; margin: 0 auto; padding: 26px 28px 40px; }
.guide-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.guide-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; }
.guide-brand .brand-mark { color: #fff; }
.guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.guide-actions a { display: inline-flex; align-items: center; }
.guide-intro { padding: 26px 28px; margin-bottom: 20px; }
.guide-intro h1 { font-size: 28px; margin: 6px 0 12px; }
.guide-intro p { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 8px 0; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 11px; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: 185px minmax(0,1fr); align-items: start; gap: 20px; }
.guide-toc { position: sticky; top: 20px; padding: 17px 12px; }
.guide-toc strong { display: block; padding: 0 9px 10px; font-size: 12px; }
.guide-toc a { display: block; padding: 9px; border-radius: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.guide-toc a:hover { background: var(--guide-note); color: var(--blue); }
.guide-content { min-width: 0; }
.guide-section { padding: 24px 26px; margin-bottom: 18px; scroll-margin-top: 20px; }
.guide-section h2 { font-size: 18px; white-space: normal; margin: 0 0 16px; line-height: 1.5; }
.guide-section h3 { font-size: 14px; margin: 20px 0 9px; font-weight: 650; }
.guide-section p, .guide-section li { font-size: 13px; line-height: 1.95; }
.guide-section p { margin: 9px 0; }
.guide-section ol, .guide-section ul { padding-left: 22px; }
.guide-section li { margin: 6px 0; }
.guide-step { color: var(--blue); font: 12px Consolas,monospace; margin-right: 9px; }
.guide-note, .guide-warn { padding: 12px 15px; border: 1px solid var(--guide-note-border); background: var(--guide-note); border-radius: 7px; margin: 14px 0; font-size: 12px; line-height: 1.9; }
.guide-warn { border-color: var(--guide-warn-border); color: var(--guide-warn-text); background: var(--guide-warn); }
.guide-section pre { padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--guide-soft); font: 11px/1.85 Consolas,"Microsoft YaHei",monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; }
.guide-section code, .guide-intro code { font: .93em Consolas,monospace; background: var(--guide-soft); padding: 2px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.guide-section pre code { background: none; padding: 0; }
.guide-section a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.guide-section table { border-collapse: collapse; width: 100%; font-size: 12px; line-height: 1.8; margin: 14px 0; }
.guide-section th, .guide-section td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.guide-section th { background: var(--guide-soft); font-weight: 600; }
.guide-table { overflow-x: auto; }
.guide-section summary { cursor: pointer; font-size: 12px; color: var(--blue); padding: 11px 0; line-height: 1.7; }
.guide-section details > pre { max-height: 420px; overflow: auto; }
.guide-rule { padding-left: 12px; border-left: 3px solid #43bc9b; }
.guide-foot { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); padding: 10px 0; }
@media (max-width: 800px) { main.guide { padding: 18px 14px; } .guide-top { align-items: flex-start; flex-direction: column; } .guide-layout { grid-template-columns: 1fr; gap: 14px; } .guide-toc { position: static; display: flex; flex-wrap: wrap; gap: 3px; padding: 10px; } .guide-toc strong { width: 100%; } .guide-toc a { padding: 7px 9px; } .guide-intro, .guide-section { padding: 19px 17px; } .guide-intro h1 { font-size: 23px; } .guide-section th,.guide-section td { padding: 8px; } }
@media print { :root, :root[data-theme="dark"] { color-scheme: light; color: #111; background: white; --line: #bbb; --muted: #444; --blue: #17487a; --guide-soft: #f5f5f5; --guide-note: #f3f6fa; --guide-note-border: #aabbd0; --guide-warn: #fffaf0; --guide-warn-text: #604000; --guide-warn-border: #bca578; } main.guide { max-width: none; padding: 0; } .guide-top,.guide-toc,.guide-foot,.print-hide { display: none!important; } .guide-layout { display: block; } .guide-intro,.guide-section,:root[data-theme="dark"] .card { background: white; color: #111; box-shadow: none; border-color: #bbb; } .guide-section { padding: 15px; } .guide-section h2,.guide-section h3 { break-after: avoid; } .guide-section tr,.guide-section pre { break-inside: avoid; } .guide-section pre { max-height: none!important; } .guide-section a { color: #17487a; } }
