/* ===== 文档页专用布局 ===== */
.docs-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 40px;
    gap: 30px;
}
.docs-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
.docs-nav {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}
.docs-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #3A2A1A;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139,69,19,0.3);
}
.docs-nav a {
    display: block;
    padding: 6px 10px;
    color: #4A3A2A;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.docs-nav a:hover {
    background: rgba(139,69,19,0.12);
    color: #2A1A0A;
}
.docs-nav a.nav-h2 {
    font-weight: 500;
    margin-top: 8px;
}
.docs-nav a.nav-h3 {
    padding-left: 20px;
    font-size: 13px;
    color: #5A4A3A;
}
.docs-content {
    flex: 1;
    min-width: 0;
}
.docs-section {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 30px 35px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    word-break: break-word;
}
.docs-section h1,
.docs-section h2,
.docs-section h3 {
    scroll-margin-top: 80px;
}
.docs-section h1 {
    font-size: 42px;
    font-weight: 700;
    color: #2A1A0A;
    text-shadow: 0 1px 3px rgba(255,215,150,0.3);
    margin-bottom: 20px;
    text-align: left;
}
.docs-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #3A2A1A;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(139,69,19,0.3);
    text-align: left;
}
.docs-section h2:first-of-type {
    margin-top: 0;
}
.docs-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #4A3A2A;
    margin: 20px 0 10px;
    text-align: left;
}
.docs-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #4A3A2A;
    margin: 18px 0 10px;
    text-align: left;
}
.docs-section p {
    color: #3A2A1A;
    line-height: 1.9;
    margin-bottom: 12px;
    text-align: left;
    text-indent: 2em;
}
.docs-section p.no-indent {
    text-indent: 0;
}
.docs-section ul, .docs-section ol {
    margin: 10px 0 15px 30px;
    color: #3A2A1A;
    text-align: left;
}
.docs-section li {
    margin-bottom: 6px;
    line-height: 1.8;
    color: #3A2A1A;
}
.highlight-red {
    color: #B71C1C;
    font-weight: bold;
    font-style: italic;
}
.text-muted {
    color: #7A6A5A;
    font-size: 14px;
}
.highlight-blue {
    background: rgba(107,154,196,0.12);
    border-left: 4px solid #6B9AC4;
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    margin: 15px 0;
    text-indent: 0;
}
.highlight-blue p {
    margin-bottom: 8px;
    text-indent: 0;
}
/* 统一普通链接颜色（墨绿色），迷惑链接除外 */
.docs-section a:not(.trap-link) {
    color: #6B7A5A;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.docs-section a:not(.trap-link):hover {
    color: #4A5A3A;
}
.copy-text {
    color: #6B7A5A;
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
}
.copy-text:hover {
    color: #4A5A3A;
    text-decoration: underline;
}
.cmd-list {
    list-style: none;
    margin: 10px 0 15px 20px;
}
.cmd-list li {
    font-family: 'Consolas', 'Monaco', monospace;
    padding: 4px 0;
}
.cmd-list code {
    background: rgba(139,69,19,0.1);
    padding: 2px 8px;
    border-radius: 6px;
    color: #3A2A1A;
}
.rule-list {
    list-style: none;
    margin: 10px 0 15px 0;
}
.rule-list li {
    margin-bottom: 12px;
}
.rule-list strong {
    color: #2A1A0A;
}
.divider {
    border: none;
    border-top: 1px solid rgba(139,69,19,0.2);
    margin: 25px 0;
}
.trap-link {
    color: #3A2A1A;
    text-decoration: none;
    cursor: pointer;
}
.trap-link:hover {
    color: #5A4A3A;
}
@media (max-width: 900px) {
    .docs-section h1,
    .docs-section h2,
    .docs-section h3 {
        scroll-margin-top: 100px;
    }
    .docs-wrapper {
        flex-direction: column;
        padding-top: 100px;
    }
    .docs-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }
    .docs-section {
        padding: 20px;
    }
    .docs-section h1 {
        font-size: 32px;
    }
    .docs-section h2 {
        font-size: 24px;
    }
}
