/* 检测页面专用样式 */
.quiz-page {
    padding-top: 70px;
    min-height: 100vh;
}

.quiz-intro {
    padding: 60px 0;
}

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

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

.intro-header h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.intro-header p {
    color: var(--text-light);
    font-size: 18px;
}

.source-info {
    background: #f0f7ff;
    border-left: 4px solid #4a90d9;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.source-badge {
    font-size: 14px;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 12px;
}

.source-info p {
    font-size: 14px;
    color: #5a7aa0;
    line-height: 1.8;
    margin-bottom: 8px;
}

.source-info strong {
    color: #2c5aa0;
}

.quiz-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.quiz-info .info-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.quiz-info .info-icon {
    font-size: 28px;
}

.quiz-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.quiz-tip {
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 32px;
}

/* 答题区域 */
.quiz-container {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: #e8e0d8;
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

.quiz-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-counter {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.question-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.option-btn {
    background: var(--white);
    border: 2px solid transparent;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    box-shadow: var(--shadow);
}

.option-btn:hover {
    border-color: var(--primary);
    background: #fdf8f3;
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--bg-light);
    font-weight: 600;
}

.encourage-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 32px;
    font-style: italic;
}

/* 结果页 */
.result-container {
    padding: 40px 0;
}

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

.result-greeting {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.result-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.result-header p {
    color: var(--text-light);
}

.radar-chart {
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
}

.radar-svg {
    width: 100%;
    height: 100%;
}

.result-summary {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.result-summary h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.result-summary p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 12px;
}

.highlight {
    display: inline-block;
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
}

.suggestions {
    margin-bottom: 32px;
}

.suggestion-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}

.suggestion-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.suggestion-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.suggestion-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.recipe-recommend {
    margin-bottom: 32px;
}

.recipe-recommend h3 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.recipe-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.recipe-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.recipe-img {
    height: 160px;
    background: linear-gradient(135deg, #e8d5c0, #d4c4a8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.recipe-info {
    padding: 20px;
}

.recipe-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    color: var(--secondary);
}

.recipe-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 24px 16px;
    }

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

    .option-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .suggestion-card {
        flex-direction: column;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .result-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}
