/* ============================================================
   API 文档页专用样式
   ============================================================ */
.doc-sidebar { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.doc-sidebar::-webkit-scrollbar { width: 3px; }
.doc-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.doc-nav-link { display: block; padding: 6px 12px; font-size: 13px; color: #64748b; border-left: 2px solid transparent; transition: all .2s; text-decoration: none; }
.doc-nav-link:hover { color: #0066FF; border-left-color: #bae6fd; background: #f0f8ff; }
.doc-nav-link.active { color: #0066FF; border-left-color: #0066FF; font-weight: 600; background: #f0f8ff; }
.doc-nav-group { margin-bottom: 4px; }
.doc-nav-group-title { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px 4px; }
.doc-section { margin-bottom: 3rem; }
.doc-h2 { font-size: 1.5rem; font-weight: 800; color: #1e293b; padding-bottom: .75rem; border-bottom: 2px solid #E5F0FF; margin-bottom: 1.5rem; }
.doc-h3 { font-size: 1.15rem; font-weight: 700; color: #334155; margin-bottom: 1rem; margin-top: 2rem; display: flex; align-items: center; gap: .5rem; }
.doc-h3::before { content: ''; display: inline-block; width: 4px; height: 1.15rem; background: linear-gradient(135deg, #0066FF, #00D2FF); border-radius: 2px; }
.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; border: 1px solid #E5F0FF; border-radius: .5rem; overflow: hidden; margin: 1rem 0; }
.doc-table th { background: #f0f8ff; color: #334155; font-weight: 600; padding: .625rem .75rem; text-align: left; border-bottom: 1px solid #E5F0FF; }
.doc-table td { padding: .625rem .75rem; border-bottom: 1px solid #f1f5f9; color: #475569; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:hover td { background: #fafcff; }
.doc-code { background: #1e293b; color: #e2e8f0; padding: 1rem 1.25rem; border-radius: .5rem; font-size: .8125rem; line-height: 1.7; overflow-x: auto; margin: .75rem 0; font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace; }
.doc-code .key { color: #7dd3fc; }
.doc-code .str { color: #86efac; }
.doc-code .comment { color: #64748b; }
.doc-inline-code { background: #f0f8ff; color: #0066FF; padding: 2px 6px; border-radius: 4px; font-size: .8125rem; font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace; border: 1px solid #E5F0FF; }
.doc-method-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 4px; font-size: .75rem; font-weight: 700; font-family: monospace; letter-spacing: .03em; }
.doc-method-get { background: #dcfce7; color: #166534; }
.doc-method-post { background: #dbeafe; color: #1e40af; }
.doc-method-patch { background: #fef3c7; color: #92400e; }
.doc-alert { padding: .875rem 1rem; border-radius: .5rem; font-size: .875rem; margin: 1rem 0; display: flex; gap: .5rem; align-items: flex-start; }
.doc-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.doc-alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.doc-alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.doc-path { background: #f8fafc; border: 1px solid #E5F0FF; border-radius: .375rem; padding: .375rem .75rem; font-family: monospace; font-size: .875rem; color: #334155; display: inline-block; margin: .25rem 0; }
@media (max-width: 1023px) { .doc-sidebar { display: none; } }

/* 页面头部内边距 */
.doc-header-inner { padding-top: 120px; }

/* 表格列宽 */
.doc-th-w-label { width: 140px; }
.doc-th-w-code { width: 80px; }
