/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: url('https://ps.ssl.qhimg.com/t02906637da23a078da.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    text-align: center;
    margin-bottom: 30px;
}

.site-title {
    color: #6c5ce7;
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.site-subtitle {
    color: #636e72;
    font-size: 1.2rem;
    margin: 0;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding-bottom: 30px;
}

.api-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* 卡片通用样式 */
.stats-card,
.usage-card,
.endpoints-card,
.quick-test {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover,
.usage-card:hover,
.endpoints-card:hover,
.quick-test:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stats-card h2,
.usage-card h2,
.endpoints-card h2,
.quick-test h2 {
    color: #6c5ce7;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.stats-card h2 i,
.usage-card h2 i,
.endpoints-card h2 i,
.quick-test h2 i {
    margin-right: 10px;
}

/* 统计卡片 */
.highlight {
    color: #e84393;
    font-weight: bold;
}

.stats-card p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 使用说明卡片 */
.note-section p {
    background: #f8f9fa;
    padding: 12px 15px;
    border-left: 4px solid #6c5ce7;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

.note-section i {
    color: #6c5ce7;
    margin-right: 8px;
}

/* 端点卡片 */
.endpoint {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

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

.endpoint h3 {
    color: #2d3436;
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #6c5ce7;
}

.endpoint h4 {
    color: #636e72;
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 8px;
}

.endpoint p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

pre {
    background: #2d3436;
    color: #dfe6e9;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 10px 0;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

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

.json-example {
    background: #2d3436;
}

.json-example code {
    color: #fd79a8;
}

/* 快速测试区域 */
.quick-test {
    margin-top: 30px;
}

.test-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.test-buttons .btn {
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.test-buttons .btn i {
    margin-right: 8px;
}

.test-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (min-width: 768px) {
    .api-info {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "stats usage"
            "endpoints endpoints";
    }
    
    .stats-card { grid-area: stats; }
    .usage-card { grid-area: usage; }
    .endpoints-card { grid-area: endpoints; }
    
    .test-buttons {
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .api-info {
        grid-template-columns: 280px 1fr;
        grid-template-areas:
            "stats  endpoints"
            "usage  endpoints";
    }
    
    .endpoints-card {
        min-height: 100%;
    }
}

@media (min-width: 1600px) {
    .api-info {
        grid-template-columns: 320px 1fr;
        gap: 30px;
    }
    
    .card-padding {
        padding: 35px;
    }
}

@media (max-width: 767px) {
    .test-buttons {
        flex-direction: column;
    }
    
    .test-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

