/* 文档页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.doc-container {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

/* 侧边栏样式 */
.doc-sidebar {
    width: 260px;
    background: #2c3e50;
    border-right: 1px solid #34495e;
    padding: 30px 20px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.doc-nav-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.doc-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-nav-list li {
    margin-bottom: 5px;
}

.doc-nav-link {
    display: block;
    padding: 12px 15px;
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.doc-nav-link:hover {
    background: #34495e;
    color: #3498db;
    padding-left: 20px;
}

.doc-nav-link.active {
    background: #3498db;
    color: #fff;
    padding-left: 20px;
}

/* 内容区域样式 */
.doc-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px 60px;
    overflow-y: auto;
    background: #fff;
}

.doc-article {
    max-width: 800px;
}

.doc-section {
    margin-bottom: 40px;
}

.doc-section h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.doc-section h3 {
    font-size: 22px;
    color: #444;
    margin-top: 25px;
    margin-bottom: 15px;
}

.doc-section h4 {
    font-size: 18px;
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

.doc-section h5 {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.doc-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.doc-section ul,
.doc-section ol {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    padding-left: 25px;
}

.doc-section li {
    margin-bottom: 8px;
}

/* 功能特性网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.feature-item h4 {
    margin-top: 0;
    color: #3498db;
}

/* API文档样式 */
.api-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.api-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #3498db;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.api-item .api-desc {
    color: #777;
    margin-bottom: 25px;
    font-style: italic;
}

.api-item pre {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
}

.api-item code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
}

/* FAQ样式 */
.faq-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.faq-item h4 {
    margin-top: 0;
    color: #3498db;
    font-size: 16px;
}

.faq-item p {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .doc-sidebar {
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid #34495e;
        padding: 20px;
    }

    .doc-content {
        margin-left: 0;
        padding: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .doc-nav-link:hover,
    .doc-nav-link.active {
        padding-left: 15px;
    }
}

/* 滚动平滑 */
html {
    scroll-behavior: smooth;
}
