/* 文档页面样式 */

.docs-main {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: calc(100vh - 200px);
}

/* 侧边栏 */
.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding-right: 24px;
    border-right: 1px solid var(--border-color);
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 8px;
}

.sidebar-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: block;
    padding: 4px 0;
}

.sidebar-section a:hover,
.sidebar-section a.active {
    color: var(--accent-cyan);
}

/* 文档内容 */
.docs-content {
    max-width: 900px;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.docs-section {
    margin-bottom: 64px;
    scroll-margin-top: 100px;
}

.docs-section h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.docs-section h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--accent-cyan);
}

.docs-section h4 {
    font-size: 1rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.docs-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.docs-section ul,
.docs-section ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.docs-section code {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

/* 参数表格 */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.params-table th,
.params-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.params-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

.params-table td {
    color: var(--text-secondary);
}

.params-table td:first-child {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
}

.params-table tr:hover td {
    background: rgba(0, 212, 255, 0.05);
}

/* 导航链接激活状态 */
.nav-links a.active {
    color: var(--accent-cyan);
}

/* 响应式 */
@media (max-width: 900px) {
    .docs-main {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    
    .sidebar-section {
        display: inline-block;
        margin-right: 32px;
        margin-bottom: 16px;
    }
    
    .docs-content h1 {
        font-size: 2rem;
    }
}

/* NEW 标签 */
.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #ec4899 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}

