/* ===== API 文档页 ===== */
.apidoc-layout { display: flex; gap: 16px; align-items: flex-start; }
.apidoc-sidebar { width: 236px; flex-shrink: 0; position: sticky; top: 16px; max-height: calc(100vh - 130px); overflow-y: auto; background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 14px 12px; }
.apidoc-main { flex: 1; min-width: 0; background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 26px 30px; }
.apidoc-side-title { font-size: 15px; font-weight: 700; color: #e2e8f0; padding: 2px 10px 10px; }
.apidoc-side-group { font-size: 12px; color: #64748b; padding: 12px 10px 4px; letter-spacing: .5px; }
.apidoc-side-item { display: flex; align-items: center; gap: 8px; width: 100%; background: transparent; border: none; color: #94a3b8; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; text-align: left; }
.apidoc-side-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apidoc-side-item:hover { background: #1e293b; color: #e2e8f0; }
.apidoc-side-item.active { background: rgba(8,145,178,.16); color: #22d3ee; }
.apidoc-method { display: inline-block; flex-shrink: 0; font-family: Consolas, Monaco, monospace; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; line-height: 1.5; }
.apidoc-method-lg { font-size: 13px; padding: 4px 12px; vertical-align: middle; margin-right: 6px; }
.method-get { background: rgba(5,150,105,.18); color: #34d399; }
.method-post { background: rgba(217,119,6,.18); color: #fbbf24; }
.method-put { background: rgba(37,99,235,.18); color: #60a5fa; }
.method-delete { background: rgba(220,38,38,.18); color: #f87171; }
.method-intro { background: rgba(100,116,139,.2); color: #94a3b8; }
.apidoc-h2 { font-size: 21px; color: #e2e8f0; margin: 0 0 14px; }
.apidoc-h3 { font-size: 16px; color: #e2e8f0; margin: 26px 0 10px; }
.apidoc-p { font-size: 15px; color: #94a3b8; line-height: 1.8; margin: 0 0 8px; }
.apidoc-update { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.apidoc-path { margin: 0 0 16px; font-size: 15px; }
.apidoc-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.apidoc-chip { font-size: 13px; padding: 5px 14px; border-radius: 999px; border: 1px solid #1e293b; }
.chip-public { background: rgba(5,150,105,.12); color: #34d399; border-color: rgba(5,150,105,.35); }
.chip-auth { background: rgba(217,119,6,.12); color: #fbbf24; border-color: rgba(217,119,6,.35); }
.chip-rate { background: #1e293b; color: #94a3b8; }
.apidoc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.apidoc-table th { color: #64748b; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid #1e293b; white-space: nowrap; }
.apidoc-table td { padding: 10px 12px; border-bottom: 1px solid rgba(30,41,59,.6); color: #cbd5e1; vertical-align: top; line-height: 1.6; }
.apidoc-table code, .apidoc-p code { font-family: Consolas, Monaco, monospace; background: #0b1220; color: #67e8f9; padding: 2px 7px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.apidoc-code { position: relative; background: #0b1220; border: 1px solid #1e293b; border-radius: 10px; padding: 14px 16px; color: #cbd5e1; font-family: Consolas, Monaco, monospace; font-size: 13px; line-height: 1.7; overflow-x: auto; margin: 8px 0; white-space: pre; }
.apidoc-copy { position: absolute; top: 8px; right: 8px; background: #1e293b; color: #94a3b8; border: none; border-radius: 6px; padding: 3px 12px; cursor: pointer; font-size: 12px; }
.apidoc-copy:hover { color: #e2e8f0; background: #334155; }
.apidoc-example-title { font-size: 13px; color: #64748b; margin: 12px 0 2px; }
body.light .apidoc-sidebar, body.light .apidoc-main { background: #fff; border-color: #dbe4f0; }
body.light .apidoc-side-title, body.light .apidoc-h2, body.light .apidoc-h3 { color: #0f172a; }
body.light .apidoc-side-group, body.light .apidoc-update, body.light .apidoc-example-title { color: #94a3b8; }
body.light .apidoc-side-item { color: #475569; }
body.light .apidoc-side-item:hover { background: #f1f5f9; color: #0f172a; }
body.light .apidoc-side-item.active { background: rgba(2,132,199,.1); color: #0284c7; }
body.light .apidoc-p { color: #475569; }
body.light .apidoc-chip { border-color: #e2e8f0; }
body.light .chip-rate { background: #f1f5f9; color: #475569; }
body.light .apidoc-table th { border-color: #e2e8f0; color: #64748b; }
body.light .apidoc-table td { border-color: #eef2f7; color: #334155; }
body.light .apidoc-table code, body.light .apidoc-p code { background: #f1f5f9; color: #0369a1; }
