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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.nav {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav a:hover {
    background: #f0f0f0;
}

.section {
    background: white;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    background: #667eea;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.section-content {
    padding: 2rem;
}

.endpoint {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1rem;
    margin-bottom: 1rem;
}

.method {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.method-get { background: #2ecc71; color: white; }
.method-post { background: #3498db; color: white; }
.method-put { background: #f39c12; color: white; }
.method-delete { background: #e74c3c; color: white; }

.url {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c3e50;
}

.description {
    margin-top: 0.5rem;
    color: #666;
}

.parameters {
    margin-top: 1rem;
}

.parameters h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.param {
    background: white;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.param-name {
    font-weight: bold;
    color: #667eea;
}

.param-type {
    color: #666;
    font-style: italic;
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.toc {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.toc h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #667eea;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 1rem;
    }
}
