body { background:#f6f7f9; }
.sidebar { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
@media (max-width: 991.98px) { .sidebar { position: static; max-height: none; overflow: visible; } }
/* PC 端目录自适应宽度：随视口缩放，限制在 250px ~ 340px 之间 */
@media (min-width: 992px) {
  .sidebar-col { flex: 0 0 clamp(250px, 21vw, 340px); width: clamp(250px, 21vw, 340px); }
  .content-col { flex: 1 1 0 !important; width: auto !important; min-width: 0; }
}
.sidebar .nav-link { border-radius: .4rem; padding: .35rem .6rem; font-size: .9rem; }
.sidebar .nav-link:hover { background: #eef3ff; }
.doc-link.active { background: #0d6efd; color:#fff !important; }
.doc-link.active i { color:#fff !important; }
.doc-body img { max-width: 100%; border:1px solid #e9ecef; border-radius:.5rem; margin:.5rem 0; }
.doc-body pre { background:#f8f9fa; border:1px solid #e9ecef; border-radius:.5rem; padding:1rem; }
.doc-body pre code { background: transparent; padding: 0; color:#c7254e; }
.doc-body h1 { font-size:1.5rem; font-weight:700; margin:1.25rem 0 .75rem; padding-bottom:.4rem; border-bottom:1px solid #e9ecef; }
.doc-body h1:first-child { margin-top:0; }
.doc-body h2 { font-size:1.35rem; font-weight:700; margin:1.25rem 0 .75rem; }
.doc-body h3 { font-size:1.2rem; font-weight:700; margin:1rem 0 .75rem; }
.doc-body h4, .doc-body h5, .doc-body h6 { font-size:1.05rem; font-weight:600; margin:.9rem 0 .6rem; }
.doc-body a.reference-link, .doc-body .header-link { display:none; }
.doc-body h1:first-of-type, .doc-body h3:first-of-type { margin-top:0; }
.doc-body ul, .doc-body ol { padding-left:1.4rem; }
.doc-body blockquote { border-left:4px solid #0d6efd; background:#f8f9fa; padding:.5rem 1rem; margin:.75rem 0; color:#495057; }
.doc-body code { background:#eef1f4; padding:.1rem .35rem; border-radius:.25rem; font-size:.9em; }
.doc-body table { border-collapse: collapse; width: 100%; margin: .75rem 0; }
.doc-body th, .doc-body td { border: 1px solid #dee2e6; padding: .4rem .6rem; }
