/* ==========================================================================
   服务器文档独立页
   ========================================================================== */

:root {
    --docs-cyan: #06b6d4;
    --docs-teal: #14b8a6;
    --docs-blue: #007AFF;
    --docs-bg: #f8fafc;
    --docs-border: #e5e7eb;
    --docs-text: #1f2937;
    --docs-text-soft: #4b5563;
    --docs-text-muted: #6b7280;
    --docs-sidebar-w: 240px;
    --docs-header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--docs-bg);
    color: var(--docs-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--docs-blue); text-decoration: none; }

/* ====== 顶部导航栏 ====== */
.docs-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--docs-header-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--docs-border);
}

.docs-header-inner {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.docs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--docs-text-soft);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.docs-back:hover {
    background: #f1f5f9;
    color: var(--docs-cyan);
    transform: translateX(-2px);
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--docs-text);
}

.docs-brand-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.docs-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-header-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--docs-text-muted);
}

.docs-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--docs-text-soft);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.docs-theme-toggle:hover {
    background: #e2e8f0;
    color: var(--docs-cyan);
    transform: scale(1.05);
}

/* ====== 主体布局 ====== */
.docs-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    display: grid;
    grid-template-columns: var(--docs-sidebar-w) 1fr;
    gap: 40px;
    align-items: start;
}

/* ====== 侧边目录 ====== */
.docs-sidebar {
    position: sticky;
    top: calc(var(--docs-header-h) + 32px);
    max-height: calc(100vh - var(--docs-header-h) - 64px);
    overflow-y: auto;
    padding: 16px 0;
}

.docs-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--docs-text-muted);
    padding: 0 16px 12px;
}

.docs-toc { display: flex; flex-direction: column; gap: 2px; }

.docs-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-left: 2px solid transparent;
    color: var(--docs-text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0 6px 6px 0;
    transition: all 0.18s ease;
    cursor: pointer;
}

.docs-toc a i { width: 18px; text-align: center; color: var(--docs-text-muted); transition: color 0.18s; }

.docs-toc a:hover {
    background: #f1f5f9;
    color: var(--docs-cyan);
}
.docs-toc a:hover i { color: var(--docs-cyan); }

.docs-toc a.active {
    border-left-color: var(--docs-cyan);
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.08), transparent);
    color: var(--docs-cyan);
    font-weight: 600;
}
.docs-toc a.active i { color: var(--docs-cyan); }

.docs-sidebar::-webkit-scrollbar { width: 5px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ====== 文档分区 ====== */
.docs-main { min-width: 0; }

.docs-section {
    background: #fff;
    border: 1px solid var(--docs-border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 28px;
    scroll-margin-top: 90px;
}

.docs-section-head {
    padding: 32px 56px 24px;
    border-bottom: 1px solid var(--docs-border);
    background:
        radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.06), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(20, 184, 166, 0.05), transparent 50%);
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.docs-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--docs-text);
    margin: 0 0 6px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.docs-section-sub {
    font-size: 0.95rem;
    color: var(--docs-text-muted);
    margin: 0;
}

/* ====== 申诉下载按钮 ====== */
.docs-appeal-dl {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.docs-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    background: #fff;
    color: #f97316;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.docs-dl-btn:hover {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.docs-dl-btn i { font-size: 0.9rem; }

/* 下拉按钮 */
.docs-dl-group {
    position: relative;
    display: inline-flex;
}

.docs-dl-btn-hash {
    position: relative;
    padding-right: 40px;
}

.docs-dl-arrow {
    font-size: 0.7rem;
    margin-left: 2px;
    transition: transform 0.25s ease;
}

.docs-dl-btn-hash[aria-expanded="true"] .docs-dl-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.docs-dl-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 20;
    overflow: hidden;
}

.docs-dl-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.docs-dl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--docs-text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.docs-dl-item:hover {
    background: rgba(249, 115, 22, 0.08);
    color: #f97316;
}

.docs-dl-item i {
    width: 18px;
    text-align: center;
    color: var(--docs-text-muted);
    transition: color 0.15s;
}

.docs-dl-item:hover i { color: #f97316; }

.docs-dl-item + .docs-dl-item {
    border-top: 1px solid var(--docs-border);
}

.docs-section-body {
    padding: 28px 56px 8px;
    font-size: 0.975rem;
    color: var(--docs-text-soft);
}

.docs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 50px 0;
    color: var(--docs-text-muted);
}

/* ====== 空状态 ====== */
.docs-empty {
    text-align: center;
    padding: 36px 16px;
    color: var(--docs-text-muted);
}
.docs-empty i { font-size: 2.6rem; color: #cbd5e1; margin-bottom: 12px; }
.docs-empty h3 { font-size: 1.15rem; color: var(--docs-text-soft); margin: 0 0 6px; }
.docs-empty p { margin: 0; font-size: 0.9rem; }

/* ====== 帮助：指令网格 ====== */
.docs-help-block { margin-bottom: 1.8rem; }
.docs-help-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--docs-text);
    margin: 0 0 0.9rem;
    padding-left: 0.6rem;
    border-left: 3px solid var(--docs-cyan);
}
.docs-cmd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.docs-cmd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--docs-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--docs-text-soft);
    cursor: pointer;
    transition: all 0.15s ease;
}
.docs-cmd:hover {
    border-color: var(--docs-cyan);
    color: var(--docs-cyan);
    background: rgba(6,182,212,0.05);
    transform: translateY(-1px);
}
.docs-cmd code {
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    color: #db2777;
    font-weight: 600;
}
.docs-cmd-desc { color: var(--docs-text-muted); }

@media (max-width: 640px) { .docs-cmd-grid { grid-template-columns: 1fr; } }

/* ====== Markdown 正文排版 ====== */
.docs-markdown h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--docs-text);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--docs-border);
}
.docs-markdown h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--docs-text);
    margin: 1.8rem 0 0.9rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--docs-cyan);
}
.docs-markdown h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 1.4rem 0 0.6rem;
}
.docs-markdown p { margin: 0 0 0.9rem; line-height: 1.85; }
.docs-markdown strong { color: var(--docs-text); font-weight: 700; }
.docs-markdown em { font-style: italic; }

.docs-markdown ul, .docs-markdown ol { margin: 0.6rem 0 1.2rem; padding-left: 1.5rem; }
.docs-markdown ul li, .docs-markdown ol li {
    margin-bottom: 0.5rem; line-height: 1.8; padding-left: 0.25rem;
}
.docs-markdown ul li::marker { color: var(--docs-cyan); }
.docs-markdown ol li::marker { color: var(--docs-cyan); font-weight: 600; }

.docs-markdown hr { border: none; border-top: 1px solid var(--docs-border); margin: 2rem 0; }

.docs-markdown code {
    background: #f1f5f9; color: #db2777;
    padding: 0.15rem 0.45rem; border-radius: 5px;
    font-size: 0.875em;
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
}

.docs-markdown blockquote {
    background: #f0fdfa;
    border-left: 4px solid var(--docs-cyan);
    padding: 0.9rem 1.1rem;
    margin: 1.2rem 0;
    border-radius: 0 10px 10px 0;
    color: #374151;
    font-style: italic;
}
.docs-markdown .warning-tip {
    background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; font-style: normal;
}
.docs-markdown .info-tip {
    background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; font-style: normal;
}
.docs-markdown a { color: var(--docs-cyan); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.docs-markdown a:hover { border-bottom-color: var(--docs-cyan); }

/* ====== 同意栏 ====== */
.docs-agree-bar {
    margin: 20px 56px 8px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(20, 184, 166, 0.06));
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.docs-agree-check-wrap {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    font-size: 0.95rem; color: var(--docs-text); font-weight: 500; user-select: none;
}
.docs-agree-check-wrap input { width: 20px; height: 20px; accent-color: var(--docs-cyan); cursor: pointer; }

.docs-agree-confirm-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 28px; border: none; border-radius: 10px;
    font-size: 0.95rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--docs-cyan), var(--docs-teal));
    cursor: pointer; transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}
.docs-agree-confirm-btn:hover:not(:disabled) {
    transform: translateY(-1px); box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4);
}
.docs-agree-confirm-btn:disabled {
    background: #cbd5e1; cursor: not-allowed; box-shadow: none; opacity: 0.7;
}

/* ====== 页脚 ====== */
.docs-footer {
    padding: 28px 56px 40px;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--docs-border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
    color: var(--docs-text-muted);
    line-height: 1.9;
}
.docs-footer strong { color: var(--docs-text-soft); }
.docs-footer-copy {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px dashed var(--docs-border);
    font-size: 0.8rem; text-align: center;
}

/* ====== 返回顶部 ====== */
.docs-to-top {
    position: fixed; right: 28px; bottom: 28px;
    width: 44px; height: 44px; border: none; border-radius: 50%;
    background: #fff; color: var(--docs-cyan); font-size: 1rem; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.25s ease; z-index: 40;
}
.docs-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.docs-to-top:hover { background: var(--docs-cyan); color: #fff; transform: translateY(-2px); }

/* ====== 移动端目录切换按钮 ====== */
.docs-toc-toggle {
    display: none;
    position: fixed; left: 20px; bottom: 20px;
    width: 46px; height: 46px; border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--docs-cyan), var(--docs-teal));
    color: #fff; font-size: 1.05rem; cursor: pointer;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4); z-index: 45;
}

/* ====== 响应式 ====== */
@media (max-width: 900px) {
    .docs-layout { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px 80px; }
    .docs-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 270px; max-height: none; background: #fff;
        padding: 24px 12px; box-shadow: 2px 0 24px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%); transition: transform 0.3s ease; z-index: 60;
    }
    .docs-sidebar.open { transform: translateX(0); }
    .docs-toc-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .docs-section-head, .docs-section-body, .docs-agree-bar, .docs-footer { padding-left: 24px; padding-right: 24px; }
    .docs-agree-bar { margin-left: 24px; margin-right: 24px; }
    .docs-section-title { font-size: 1.4rem; }
    .docs-section-body { font-size: 0.925rem; }
    .docs-header-meta { display: none; }
}

@media (max-width: 480px) {
    .docs-header-inner { padding: 0 14px; }
    .docs-brand span { display: none; }
    .docs-section-head { padding: 24px 18px 18px; }
    .docs-section-body { padding: 22px 18px 8px; }
    .docs-agree-bar, .docs-footer { padding-left: 18px; padding-right: 18px; }
    .docs-agree-bar { margin: 18px 18px 8px; flex-direction: column; align-items: stretch; }
    .docs-agree-confirm-btn { justify-content: center; }
}

/* ====== 遮罩 ====== */
.docs-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.4); z-index: 55;
}
.docs-overlay.show { display: block; }

/* ====== 轻提示 Toast ====== */
.docs-toast {
    position: fixed; left: 50%; bottom: 40px;
    transform: translate(-50%, 20px);
    background: #1f2937; color: #fff;
    padding: 12px 24px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0; transition: all 0.3s ease; z-index: 80; pointer-events: none;
}
.docs-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ====== 语言下拉菜单 ====== */
.lang-dropdown { position: relative; display: inline-flex; }
.docs-lang-dropdown .lang-current {
    border: 1px solid var(--docs-border);
    background: #f8fafc;
    color: var(--docs-text-soft);
    white-space: nowrap;
}
.docs-lang-dropdown .lang-current:hover {
    background: #e2e8f0;
    color: var(--docs-cyan);
}
.lang-dropdown-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 170px; background: #fff;
    border: 1px solid var(--docs-border); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all 0.2s ease; z-index: 100; overflow: hidden;
    max-height: 360px; overflow-y: auto;
}
.lang-dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px; color: var(--docs-text-soft);
    font-size: 0.85rem; text-decoration: none;
    transition: all 0.15s ease; cursor: pointer;
}
.lang-dropdown-item:hover { background: rgba(6,182,212,0.08); color: var(--docs-cyan); }
.lang-dropdown-item.active { background: rgba(6,182,212,0.12); color: var(--docs-cyan); font-weight: 600; }
.lang-dropdown-item + .lang-dropdown-item { border-top: 1px solid var(--docs-border); }

/* ==========================================================================
   暗色模式 — 文档页适配
   与 index.html 共享 data-theme="dark" 属性 + localStorage('4u4n_theme')
   ========================================================================== */
[data-theme="dark"] body {
    background: #0f172a;
    color: #e2e8f0;
}

/* 顶栏 */
[data-theme="dark"] .docs-header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(6, 182, 212, 0.3);
}
[data-theme="dark"] .docs-back { color: #cbd5e1; }
[data-theme="dark"] .docs-back:hover { background: rgba(255,255,255,0.06); color: #06b6d4; }
[data-theme="dark"] .docs-brand { color: #f1f5f9; }
[data-theme="dark"] .docs-header-meta { color: #64748b; }

/* 主题切换按钮 */
[data-theme="dark"] .docs-theme-toggle {
    background: rgba(255,255,255,0.08);
    color: #fbbf24;
}
[data-theme="dark"] .docs-theme-toggle:hover {
    background: rgba(255,255,255,0.14);
    color: #fbbf24;
}

/* 语言切换按钮暗色 */
[data-theme="dark"] .lang-toggle-btn.docs-theme-toggle {
    color: #22d3ee;
}
[data-theme="dark"] .lang-toggle-btn.docs-theme-toggle:hover {
    color: #67e8f9;
    background: rgba(255,255,255,0.14);
}

/* 侧边栏 */
[data-theme="dark"] .docs-sidebar {
    background: transparent;
}
[data-theme="dark"] .docs-sidebar-title { color: #64748b; }
[data-theme="dark"] .docs-toc a { color: #94a3b8; }
[data-theme="dark"] .docs-toc a i { color: #64748b; }
[data-theme="dark"] .docs-toc a:hover { background: rgba(255,255,255,0.04); color: #06b6d4; }
[data-theme="dark"] .docs-toc a:hover i { color: #06b6d4; }
[data-theme="dark"] .docs-toc a.active { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
[data-theme="dark"] .docs-toc a.active i { color: #06b6d4; }

/* 分区卡片 */
[data-theme="dark"] .docs-section {
    background: #1e293b;
    border-color: rgba(6, 182, 212, 0.3);
}
[data-theme="dark"] .docs-section-head {
    border-bottom-color: #334155;
    background:
        radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.04), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(20, 184, 166, 0.03), transparent 50%);
}
[data-theme="dark"] .docs-section-title { color: #f1f5f9; }
[data-theme="dark"] .docs-section-sub { color: #64748b; }
[data-theme="dark"] .docs-section-body { color: #94a3b8; }

/* 空状态 */
[data-theme="dark"] .docs-empty i { color: #334155; }
[data-theme="dark"] .docs-empty h3 { color: #cbd5e1; }
[data-theme="dark"] .docs-empty p { color: #64748b; }

/* 帮助指令网格 */
[data-theme="dark"] .docs-help-block h3 { color: #06b6d4; }
[data-theme="dark"] .docs-cmd {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .docs-cmd:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    color: #06b6d4;
}
[data-theme="dark"] .docs-cmd code { color: #f472b6; }
[data-theme="dark"] .docs-cmd-desc { color: #64748b; }

/* Markdown 排版暗色 */
[data-theme="dark"] .docs-markdown h1 { color: #f1f5f9; border-bottom-color: #334155; }
[data-theme="dark"] .docs-markdown h2 { color: #e2e8f0; border-left-color: #06b6d4; }
[data-theme="dark"] .docs-markdown h3 { color: #cbd5e1; }
[data-theme="dark"] .docs-markdown p { color: #94a3b8; }
[data-theme="dark"] .docs-markdown strong { color: #e2e8f0; }
[data-theme="dark"] .docs-markdown hr { border-color: #334155; }
[data-theme="dark"] .docs-markdown code { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] .docs-markdown blockquote {
    background: rgba(6, 182, 212, 0.08);
    color: #cbd5e1;
}
[data-theme="dark"] .docs-markdown .warning-tip {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #fca5a5;
}
[data-theme="dark"] .docs-markdown .info-tip {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    color: #93c5fd;
}
[data-theme="dark"] .docs-markdown a { color: #22d3ee; }
[data-theme="dark"] .docs-markdown a:hover { border-bottom-color: #22d3ee; }

/* 下载按钮暗色 */
[data-theme="dark"] .docs-dl-btn {
    background: #1e293b;
    border-color: rgba(249, 115, 22, 0.3);
    color: #fb923c;
}
[data-theme="dark"] .docs-dl-btn:hover {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}
[data-theme="dark"] .docs-dl-dropdown {
    background: #1e293b;
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .docs-dl-item {
    color: #cbd5e1;
}
[data-theme="dark"] .docs-dl-item:hover {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
}
[data-theme="dark"] .docs-dl-item i {
    color: #64748b;
}
[data-theme="dark"] .docs-dl-item:hover i {
    color: #fb923c;
}
[data-theme="dark"] .docs-dl-item + .docs-dl-item {
    border-top-color: #334155;
}
[data-theme="dark"] .docs-markdown ul li,
[data-theme="dark"] .docs-markdown ol li { color: #94a3b8; }

/* 同意栏 */
[data-theme="dark"] .docs-agree-bar {
    background: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.2);
}
[data-theme="dark"] .docs-agree-check-wrap { color: #e2e8f0; }
[data-theme="dark"] .docs-agree-confirm-btn:disabled {
    background: #334155;
}

/* 页脚 */
[data-theme="dark"] .docs-footer {
    background: #1e293b;
    border-color: rgba(6, 182, 212, 0.3);
    color: #64748b;
}
[data-theme="dark"] .docs-footer strong { color: #cbd5e1; }
[data-theme="dark"] .docs-footer a { color: #22d3ee; }
[data-theme="dark"] .docs-footer-copy { border-top-color: #334155; }

/* 返回顶部 */
[data-theme="dark"] .docs-to-top {
    background: #1e293b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .docs-to-top:hover { background: #06b6d4; color: #fff; }

/* Toast */
[data-theme="dark"] .docs-toast { background: #334155; }

/* 语言下拉暗色 */
[data-theme="dark"] .lang-current { color: #e2e8f0; }
[data-theme="dark"] .lang-current:hover { color: #22d3ee; }
[data-theme="dark"] .docs-lang-dropdown .lang-current {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .docs-lang-dropdown .lang-current:hover {
    background: #334155;
    color: #22d3ee;
}
[data-theme="dark"] .lang-dropdown-menu {
    background: #1e293b;
    border-color: rgba(6,182,212,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
[data-theme="dark"] .lang-dropdown-item { color: #cbd5e1; }
[data-theme="dark"] .lang-dropdown-item:hover { background: rgba(6,182,212,0.1); color: #22d3ee; }
[data-theme="dark"] .lang-dropdown-item.active { background: rgba(6,182,212,0.15); color: #22d3ee; }
[data-theme="dark"] .lang-dropdown-item + .lang-dropdown-item { border-top-color: #334155; }

/* 遮罩 */
[data-theme="dark"] .docs-overlay { background: rgba(0, 0, 0, 0.6); }

/* 移动端侧边栏 */
[data-theme="dark"] .docs-sidebar {
    background: #1e293b;
}

/* 滚动条 */
[data-theme="dark"] .docs-section-body::-webkit-scrollbar { width: 6px; }
[data-theme="dark"] .docs-section-body::-webkit-scrollbar-track { background: #0f172a; border-radius: 3px; }
[data-theme="dark"] .docs-section-body::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #06b6d4, #3b82f6); border-radius: 3px; }

[data-theme="dark"] .docs-sidebar::-webkit-scrollbar-thumb { background: #334155; }
