* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.header {
    text-align: center;
    margin-bottom: 48px;
}

.header h1 {
    font-size: 36px;
    color: #10b981;
    margin-bottom: 8px;
}

.header p {
    font-size: 18px;
    color: #666;
}

.content {
    display: grid;
    gap: 40px;
}

/* API测试工具 */
.api-tester {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.api-tester h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #333;
}

.test-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #10b981;
    color: #ffffff;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: #e5e7eb;
    color: #333;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.result-area {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    min-height: 100px;
    display: none;
}

.result-area.show {
    display: block;
}

.result-area pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.result-area.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.result-area.success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

/* API文档 */
.api-docs {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.api-docs h2 {
    font-size: 24px;
    margin-bottom: 32px;
    color: #333;
}

.api-item {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.api-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.api-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.api-method {
    display: inline-block;
    padding: 6px 12px;
    background: #10b981;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.api-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.api-request,
.api-response {
    margin-bottom: 24px;
}

.api-request h4,
.api-response h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.api-request pre,
.api-response pre {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.api-request code,
.api-response code {
    color: #333;
    font-family: 'Courier New', monospace;
}

.platform-list {
    list-style: none;
    padding: 0;
}

.platform-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.code-example {
    margin-bottom: 24px;
}

.code-example h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.code-example pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.code-example code {
    font-family: 'Courier New', monospace;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .api-tester,
    .api-docs {
        padding: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

