* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 页面切换 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 首页样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: #999;
    letter-spacing: 3px;
    font-weight: 300;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.intro p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.info-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: #666;
}

.test-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.test-detail {
    text-align: center;
}

.test-detail .label {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.test-detail .value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
}

.btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 30px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    color: #667eea;
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.tips {
    background: #fff3cd;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.tips p {
    font-size: 14px;
    color: #856404;
    margin-bottom: 8px;
    line-height: 1.6;
}

.tips p:last-child {
    margin-bottom: 0;
}

.source {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.source p {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}

/* 测试页样式 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

.question-container {
    margin-bottom: 40px;
}

.question-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.option-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateX(5px);
}

.option-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.option-label {
    font-weight: 500;
}

.option-score {
    font-size: 14px;
    opacity: 0.7;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.navigation button {
    flex: 1;
}

/* 结果页样式 */
.result-title {
    font-size: 36px;
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.result-summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.result-summary .highlight {
    color: #667eea;
    font-weight: 600;
}

.chart-container {
    margin-bottom: 40px;
    text-align: center;
}

.chart-container h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

#radarChart {
    max-width: 100%;
    height: auto;
}

.scores-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.score-label {
    font-weight: 500;
    color: #333;
}

.score-value {
    font-weight: 600;
    font-size: 18px;
    color: #667eea;
}

.score-level {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.descriptions-container {
    margin-bottom: 40px;
}

.description-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.description-item h4 {
    font-size: 20px;
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-item .badge {
    font-size: 12px;
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
}

.description-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.actions button {
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    .title {
        font-size: 36px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

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

    .question-text {
        font-size: 20px;
    }

    .scores-container {
        grid-template-columns: 1fr;
    }

    .navigation {
        flex-direction: column;
    }
}
