﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", system-ui;
}

body {
    background-color: #f7f8fa;
    color: #333;
    padding-top: 96px; /* 给固定顶部导航留出高度 36+60 */
}
/* 顶部导航上层 - 固定 */
.nav-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: #222834;
    color: #fff;
    height: 36px;
    line-height: 36px;
    padding: 0 24px;
    font-size: 13px;
}

    .nav-top-bar a {
        color: #cbd5e1;
        text-decoration: none;
        margin-right: 18px;
    }

        .nav-top-bar a:hover {
            color: #4096ff;
        }
/* 顶部导航下层文档标题栏 - 固定 */
.nav-doc-bar {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    z-index: 98;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    height: 60px;
    line-height: 60px;
    padding: 0 24px;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}
/* 主体容器 */
.main-wrap {
    display: flex;
    width: 100%;
}
/* 左侧菜单固定 */
.left-menu {
    position: fixed;
    top: 96px;
    left: 0;
    width: 260px;
    height: calc(100vh - 96px);
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 0;
    overflow-y: auto;
}

.menu-item {
    padding: 10px 24px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    display: block;
    text-decoration: auto;
}

    .menu-item:hover {
        background-color: #f3f4f6;
        color: #2563eb;
    }

    .menu-item.active {
        background-color: #eff6ff;
        color: #2563eb;
        font-weight: 500;
    }
/* 右侧内容区域，独立滚动 */
.right-content {
    margin-left: 260px;
    flex: 1;
    min-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 30px 40px;
}

.doc-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.doc-desc {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.7;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

table.param-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    margin-bottom: 16px;
}

    table.param-table th, table.param-table td {
        border: 1px solid #e5e7eb;
        padding: 10px 12px;
        text-align: left;
    }

    table.param-table th {
        background: #f3f4f6;
    }
/* 黑背景代码块 */
pre {
    background-color: #111827;
    color: #d1d5db;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: Consolas;
    font-size: 13px;
    line-height: 1.6;
}

.tip {
    background-color: #fffbeb;
    border-left: 4px solid #fbbf24;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
}
