/* IQ测试样式 */

/* 测试介绍 */
.test-intro {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.intro-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.intro-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.test-types {
    margin: 25px 0;
}

.test-types h3 {
    margin-bottom: 15px;
    color: #333;
}

.test-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.test-type-btn {
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.test-type-btn:hover {
    background-color: #e0e0e0;
}

.test-type-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.primary-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #45a049;
}

.secondary-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background-color: #e0e0e0;
}

.secondary-btn:disabled {
    background-color: #f9f9f9;
    color: #aaa;
    cursor: not-allowed;
}

/* 测试区域 */
.test-area {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.test-progress {
    flex: 1;
    margin-right: 20px;
}

.progress-text {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    width: 5%;
    transition: width 0.3s;
}

.test-timer {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.question-container {
    margin-bottom: 30px;
}

.question {
    margin-bottom: 20px;
}

.question-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.question-image {
    margin-bottom: 20px;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

.options-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.option-item {
    margin-bottom: 10px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-label:hover {
    background-color: #f0f0f0;
}

.option-input {
    margin-right: 10px;
}

.option-text {
    color: #333;
}

.test-actions {
    display: flex;
    justify-content: space-between;
}

/* 结果区域 */
.result-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.result-header {
    margin-bottom: 30px;
}

.result-header h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.result-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-label {
    font-size: 16px;
    color: #555;
}

.result-details {
    flex: 1;
    min-width: 250px;
}

.detail-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.detail-label {
    font-weight: bold;
    color: #333;
    width: 100px;
}

.detail-value {
    color: #555;
}

.result-analysis {
    margin-bottom: 30px;
}

.result-analysis h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.ability-charts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ability-chart {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-label {
    width: 80px;
    color: #333;
    font-weight: 500;
}

.chart-bar {
    flex: 1;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 10px;
}

.chart-value {
    width: 50px;
    text-align: right;
    color: #333;
    font-weight: 500;
}

.result-interpretation {
    margin-bottom: 30px;
}

.result-interpretation h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.result-interpretation p {
    color: #555;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* 答案解析区域 */
.answers-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.answers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.answers-header h2 {
    margin: 0;
    color: #333;
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.answer-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.answer-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.answer-question {
    margin-bottom: 15px;
}

.answer-question-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.answer-options {
    margin-bottom: 15px;
}

.answer-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 4px;
}

.answer-option.correct {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.answer-option.incorrect {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.answer-option.selected {
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.answer-option-text {
    color: #333;
}

.answer-explanation {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.answer-explanation-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.answer-explanation-text {
    color: #555;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .test-intro,
    .test-area,
    .result-section,
    .answers-section {
        padding: 20px;
    }
    
    .result-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .result-score {
        align-items: flex-start;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        font-size: 30px;
    }
    
    .test-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .test-actions button {
        width: 100%;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions button {
        width: 100%;
    }
}