/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 变量定义 */
:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #0ea5e9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background-light: #f8fafc;
    --background-dark: #1e293b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

/* 基础样式 */
html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    background-color: var(--background-light);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.app {
    min-height: 100vh;
    overflow-x: hidden;
}

/* 主要内容区样式 */
.main-content {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 章节样式 */
.section {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

/* 英雄区域样式 */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hero-image {
    position: relative;
    width: 100%;
}

.image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.2), rgba(14, 165, 233, 0.2));
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    width: auto;
    min-width: 120px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 章节标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* 测试卡片样式 */
.test-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.test-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.features i {
    color: var(--success-color);
    flex-shrink: 0;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* 维度卡片样式 */
.dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.dimension-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.dimension-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dimension-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dimension-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.dimension-types {
    display: grid;
    gap: 1rem;
}

.type {
    background: var(--background-light);
    padding: 1.25rem;
    border-radius: var(--radius);
}

.type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.type-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.type-icon {
    font-size: 1.25rem;
    color: var(--primary-light);
}

.type p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 优势卡片样式 */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-item {
        min-width: 80px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        margin-bottom: 2rem;
    }

    .test-cards,
    .dimensions,
    .benefits {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }

    .section {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 0.5rem;
    }

    .card-header,
    .card-content,
    .card-footer {
        padding: 1rem;
    }

    .dimension-card,
    .benefit-card {
        padding: 1rem;
    }

    .type {
        padding: 1rem;
    }
} 