/* API文档页面专用样式 */

.api-docs-container {
    display: flex;
    min-height: calc(100vh - 70px);
    margin-top: 70px;
}

.api-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-content {
    padding: 30px 20px;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-item {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.nav-item:hover,
.nav-item.active {
    background: #667eea;
    color: white;
    text-decoration: none;
}

.api-main {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
}

.api-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-intro {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-box,
.warning-box {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.info-box h3,
.warning-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.method {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 60px;
    text-align: center;
}

.method.get {
    background: #d4edda;
    color: #155724;
}

.url {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1rem;
    color: #333;
}

.params-table {
    margin: 20px 0;
    overflow-x: auto;
}

.params-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.params-table th,
.params-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.params-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.code-example {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.code-header {
    background: #2d2d2d;
    color: white;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-content {
    background: #1e1e1e;
    padding: 20px;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #f8f8f2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .api-docs-container {
        flex-direction: column;
    }
    
    .api-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .api-main {
        margin-left: 0;
        padding: 20px;
    }
}