.qg-toc{margin:1.5rem 0 2rem;padding:1.1rem 1.35rem;border:1px solid #d8dee8;border-radius:12px;background:#f7f9fc}
.qg-toc-title{margin:0 0 .7rem;font-size:1.2rem}
.qg-toc ol{margin:.25rem 0;padding-left:1.35rem;columns:2;column-gap:2rem}
.qg-toc li{break-inside:avoid;margin:.22rem 0}
.qg-toc .qg-toc-sub{margin-left:1rem;font-size:.92em;list-style-type:circle}
.qg-math-source{overflow-x:auto;white-space:pre-wrap;padding:.45rem .7rem;border-left:3px solid #94a3b8;background:#f8fafc}
.qg-code-source{overflow-x:auto;padding:.8rem 1rem;border-radius:8px;background:#111827;color:#e5e7eb}
.qg-figure{margin:1.5rem auto 2rem;padding:1rem;border:1px solid #dbe3ee;border-radius:14px;background:linear-gradient(135deg,#fbfdff,#f2f6fc);overflow:hidden}
.qg-figure svg{display:block;width:100%;height:auto;max-height:440px}
.qg-figure figcaption{margin:.7rem .2rem 0;color:#526174;font-size:.92rem;line-height:1.5}
.qg-figure .label{font:600 14px system-ui,sans-serif;fill:#203047}
.qg-figure .small{font:12px system-ui,sans-serif;fill:#526174}
.qg-figure .tiny{font:11px system-ui,sans-serif;fill:#64748b}
.qg-figure .line{stroke:#94a3b8;stroke-width:1.5}
.qg-figure .axis{stroke:#526174;stroke-width:2}
.qg-figure .accent{stroke:#2563eb;stroke-width:3;fill:none}
.qg-figure .accent2{stroke:#7c3aed;stroke-width:3;fill:none}
.qg-figure .dot{fill:#2563eb;stroke:white;stroke-width:2}
.qg-figure .panel{fill:#fff;stroke:#d6deea;stroke-width:1.5}
.qg-heading{scroll-margin-top:1rem}
.qg-heading a{color:inherit;text-decoration:none}
.qg-heading a:hover{text-decoration:underline;text-decoration-color:#94a3b8}
@media(max-width:700px){.qg-toc ol{columns:1}.qg-figure{padding:.65rem}}

