/* Test Page Styles */
.test-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 难度选择器 (与练习页面共用) */
.level-selector {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.level-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.level-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.level-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.test-progress {
    text-align: center;
    margin-bottom: 30px;
}

.progress-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

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

.test-question {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.question-audio {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
}

.audio-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.audio-icon:hover {
    transform: scale(1.1);
}

.audio-icon:active {
    transform: scale(0.95);
}

.audio-text {
    font-size: 20px;
    color: #666;
}

.question-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    aspect-ratio: 1.5;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #333;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    border: 3px solid transparent;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.option-card:active {
    transform: scale(0.98);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

.option-card.correct {
    border-color: var(--success-color);
    background: rgba(76, 217, 100, 0.2);
    animation: correctAnswer 0.6s ease;
}

.option-card.wrong {
    border-color: var(--error-color);
    background: rgba(255, 107, 157, 0.2);
    animation: shake 0.5s ease;
}

.option-card.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.feedback-message {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-message.correct {
    color: var(--success-color);
    background: rgba(76, 217, 100, 0.1);
}

.feedback-message.wrong {
    color: var(--error-color);
    background: rgba(255, 107, 157, 0.1);
}

.feedback-message.hidden {
    visibility: hidden;
}

/* Test Result */
.test-result {
    text-align: center;
    padding: 40px 20px;
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.result-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

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

.result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

.result-message {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
}

.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .question-options {
        gap: 15px;
    }
    
    .option-card {
        font-size: 36px;
    }
    
    .audio-icon {
        font-size: 48px;
    }
    
    .feedback-message {
        font-size: 20px;
    }
    
    .result-score {
        font-size: 40px;
    }
    
    .result-stats {
        gap: 30px;
    }
    
    .result-actions {
        flex-direction: column;
    }
}
