.document-hero { padding: 2.8rem 0 2.4rem; border-bottom: 1px solid var(--line); }
.document-hero h1 { margin: 1.1rem 0 .65rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.25; letter-spacing: -.025em; }
.document-subtitle { margin: 0; color: var(--muted); font-size: 1.05rem; }
.document-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1.1rem 0; color: var(--muted); font-size: .83rem; }
.document-meta .version { padding: .15rem .55rem; background: var(--forest); color: var(--white); font-family: var(--mono); }
.document-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.document-actions a, .document-actions button, .section-copy { appearance: none; border: 1px solid var(--line); padding: .5rem .8rem; background: var(--white); color: var(--forest); font: inherit; font-size: .83rem; text-decoration: none; cursor: pointer; }
.document-actions a:hover, .document-actions button:hover, .section-copy:hover { background: #eaf1e6; border-color: var(--forest); }
.document-section { padding: 2.5rem 0 4rem; background: var(--white); }
.document-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 2.7rem; align-items: start; }
.document-sidebar { position: sticky; top: 6.2rem; border: 1px solid var(--line); padding: 1rem; max-height: calc(100vh - 8rem); overflow-y: auto; scrollbar-width: thin; }
.document-sidebar strong { display: block; margin-bottom: .5rem; font-size: .86rem; }
.document-sidebar nav a { display: block; padding: .4rem .1rem; color: var(--muted); text-decoration: none; font-size: .81rem; line-height: 1.55; border-bottom: 1px solid #e8eee7; }
.document-sidebar nav a:hover, .document-sidebar nav a[aria-current="location"] { color: var(--forest); background: #eff5e8; }
.document-sidebar .sidebar-index { margin-top: .75rem; font-size: .79rem; }
.document-body { min-width: 0; font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.document-body > :first-child { margin-top: 0; }
.document-body h2 { margin: 3.2rem 0 1.1rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: 1.65rem; line-height: 1.45; letter-spacing: -.015em; }
.document-body h3 { margin: 1.9rem 0 .6rem; font-size: 1.15rem; line-height: 1.6; }
.document-body h4 { margin: 1.3rem 0 .5rem; font-size: 1rem; }
.document-body h2, .document-body h3, .document-body h4, .document-body [id] { scroll-margin-top: 6.5rem; }
.document-body p { margin: .75rem 0 1rem; }
.document-body ul, .document-body ol { padding-left: 1.7rem; }
.document-body li { margin: .35rem 0; }
.document-body a { color: #145e51; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.document-body a:hover { color: #486d00; }
.document-body blockquote { margin: .8rem 0; padding: .25rem 1rem; border-left: 3px solid #b1c994; color: var(--muted); }
.document-body pre { overflow-x: auto; padding: 1rem; background: #eef3ec; border: 1px solid var(--line); font: .84rem/1.7 var(--mono); }
.document-body code { font: .87em var(--mono); }
.document-body table { display: block; max-width: 100%; overflow-x: auto; margin: 1.2rem 0 1.5rem; border-collapse: collapse; font-size: .88rem; line-height: 1.7; }
.document-body th, .document-body td { padding: .8rem .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 145px; }
.document-body th { background: #eaf1e6; color: var(--forest); font-weight: 700; }
.document-body td p { margin: 0 0 .5rem; }
.document-body td p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 1.2rem 0 1.5rem; scrollbar-width: thin; }
.table-scroll table { display: table; width: 100%; margin: 0; }
.document-body .resource-table { table-layout: fixed; }
.resource-table th:first-child, .resource-table td:first-child { width: 40%; }
.resource-table td:first-child { color: var(--muted); }
.resource-table td:first-child strong { color: var(--forest); }
.section-copy { margin-left: .7rem; vertical-align: middle; white-space: nowrap; font-weight: 400; }
.copy-status { min-height: 1.5rem; font-size: .83rem; color: var(--muted); }
.js-only { display: none; }
html.js .js-only { display: inline-block; }
.docs-hub { padding: 2.6rem 0 4rem; background: var(--white); }
.docs-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.docs-hub-card { padding: 1.7rem; border: 1px solid var(--line); background: #f6f8f1; }
.docs-hub-card .card-number { color: #58735f; font: .75rem var(--mono); }
.docs-hub-card h2 { margin: 1rem 0 .7rem; font-size: 1.6rem; line-height: 1.4; }
.docs-hub-card p { color: var(--muted); }
.docs-hub-card .read-link { display: inline-block; margin: .8rem 0; color: var(--forest); font-weight: 700; text-underline-offset: .2em; }
.docs-shortcuts { display: flex; flex-wrap: wrap; gap: .65rem; margin: 2rem 0; }
.docs-shortcuts a { border: 1px solid var(--line); padding: .55rem .8rem; text-decoration: none; font-size: .88rem; }
.docs-methods { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.docs-methods h2 { font-size: 1.2rem; }
.docs-methods p { color: var(--muted); }
@media (max-width: 1000px) {
  .document-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 760px) {
  .document-layout { grid-template-columns: 1fr; }
  .document-sidebar { position: static; max-height: 18rem; }
  .document-hero { padding-top: 2rem; }
  .docs-hub-grid { grid-template-columns: 1fr; }
  .document-body h2 { font-size: 1.4rem; }
  .document-body th, .document-body td { min-width: 145px; }
  .resource-table, .resource-table tbody, .resource-table tr, .resource-table td { display: block !important; width: 100% !important; min-width: 0 !important; }
  .resource-table thead { display: none; }
  .resource-table tr { margin-bottom: 1rem; border: 1px solid var(--line); }
  .resource-table td { border: 0; }
  .resource-table td:first-child { background: #f1f5eb; border-bottom: 1px solid var(--line); }
  .resource-table td:last-child::before { content: "用途与起步建议"; display: block; margin-bottom: .35rem; color: var(--muted); font-size: .75rem; }
  .section-copy { display: block; margin: .5rem 0 0; }
}
@media print {
  .site-header, .site-footer, .document-sidebar, .document-actions, .copy-status, .section-copy, .breadcrumb { display: none !important; }
  body { background: white; color: black; font-size: 10pt; }
  .wrap { width: 100%; }
  .document-hero { padding: 0 0 1rem; }
  .document-hero h1 { font-size: 23pt; }
  .document-layout { display: block; }
  .document-section { padding: 0; }
  .document-body { line-height: 1.65; font-size: 10pt; }
  .document-body h2 { margin-top: 1.8rem; font-size: 15pt; break-after: avoid; }
  .document-body h3, .document-body h4 { break-after: avoid; }
  .table-scroll { overflow: visible; }
  .document-body table { display: table; overflow: visible; font-size: 8pt; }
  .document-body th, .document-body td { padding: .4rem; min-width: 0; }
  .document-body tr { break-inside: avoid; }
}
