/* ==========================================================================
   健康评估专属高大上样式 (Premium Quiz Styles)
   ========================================================================== */
   .quiz-page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background-color: #050d18; /* 深邃科技蓝底色 */
    overflow: hidden;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.quiz-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, #1a56db 0%, transparent 50%), 
                radial-gradient(circle at 100% 100%, #00d2ff 0%, transparent 40%);
    opacity: 0.15;
    z-index: 0;
}
.relative-z { position: relative; z-index: 10; width: 100%; }

/* 主容器卡片 - 玻璃拟物感 */
.quiz-app-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    max-width: 750px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    min-height: 500px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* 屏幕切换逻辑 */
.quiz-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    padding: 60px 50px;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(40px);
    overflow-y: auto;
}
.quiz-screen.active {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(0); position: relative;
}
.quiz-screen.slide-out {
    transform: translateX(-40px); opacity: 0;
}

/* --- Start Screen --- */
#quiz-start-screen { align-items: center; text-align: center; justify-content: center; }
.quiz-icon-badge {
    width: 80px; height: 80px; background: #f0f5ff; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 30px;
    color: #1a56db; box-shadow: 0 15px 30px rgba(26,86,219,0.15);
}
.quiz-icon-badge svg { width: 40px; height: 40px; }
.quiz-main-title { font-size: 36px; color: #0b192c; font-weight: 800; margin: 0 0 20px; }
.quiz-sub-title { font-size: 16px; color: #666; line-height: 1.8; max-width: 500px; margin-bottom: 30px; }
.quiz-features { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.quiz-features span { background: #f9fbfd; padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: bold; color: #444; border: 1px solid #e0eafc;}
.quiz-features .check { color: #27ae60; margin-right: 5px; }

.btn-glow-large {
    background: linear-gradient(135deg, #1a56db 0%, #00d2ff 100%);
    color: #fff; padding: 18px 40px; border-radius: 40px; font-weight: 800; font-size: 18px;
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.3); border: none; cursor: pointer;
    display: flex; align-items: center; gap: 10px; transition: all 0.3s;
}
.btn-glow-large:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 210, 255, 0.5); }
.btn-glow-large svg { width: 20px; height: 20px; }

/* --- Question Screen --- */
.quiz-header { margin-bottom: 40px; }
.progress-wrapper { width: 100%; }
.progress-text { font-size: 14px; color: #888; font-weight: bold; margin-bottom: 10px; text-align: right; }
.progress-text span { color: #1a56db; font-size: 18px;}
.progress-bar-bg { width: 100%; height: 6px; background: #e0eafc; border-radius: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #1a56db, #00d2ff); border-radius: 10px; width: 0%; transition: width 0.4s ease; }

.question-text { font-size: 26px; color: #0b192c; line-height: 1.5; margin-bottom: 40px; font-weight: 700; }
.options-grid { display: flex; flex-direction: column; gap: 15px; }
.option-btn {
    background: #fff; border: 2px solid #e0eafc; padding: 20px 25px; border-radius: 12px;
    font-size: 16px; color: #444; font-weight: 600; text-align: left; cursor: pointer;
    transition: all 0.2s; position: relative; overflow: hidden;
}
.option-btn:hover { border-color: #1a56db; background: #f9fbfd; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(26,86,219,0.05); }
.option-btn.selected { border-color: #1a56db; background: #1a56db; color: #fff; }

/* --- Result Screen --- */
#quiz-result-screen { text-align: center; }
.result-header { margin-bottom: 30px; }
.result-title { font-size: 32px; color: #0b192c; font-weight: 800; margin: 0 0 10px; }
.result-sub { color: #666; font-size: 15px; margin: 0; }

.result-score-box { display: flex; align-items: center; justify-content: center; gap: 40px; margin-bottom: 40px; padding: 30px; background: #f9fbfd; border-radius: 20px; border: 1px solid #f0f5ff;}
.circular-chart { width: 120px; height: 120px; }
.circle-bg { fill: none; stroke: #eee; stroke-width: 2.5; }
.circle { fill: none; stroke-width: 2.5; stroke-linecap: round; transition: stroke-dasharray 1s ease-out; }
.percentage { fill: #0b192c; font-family: Arial, sans-serif; font-size: 10px; font-weight: bold; text-anchor: middle; }
.score-label { fill: #888; font-size: 4px; text-anchor: middle; }

/* 动态风险颜色 */
.risk-low .circle { stroke: #27ae60; }
.risk-medium .circle { stroke: #f39c12; }
.risk-high .circle { stroke: #e74c3c; }

.risk-level-display { text-align: left; max-width: 300px; }
.risk-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-bottom: 10px; color: #fff; }
.risk-low .risk-badge { background: #27ae60; }
.risk-medium .risk-badge { background: #f39c12; }
.risk-high .risk-badge { background: #e74c3c; }

.risk-title { font-size: 24px; margin: 0 0 10px; color: #0b192c; }
.risk-desc { font-size: 14px; color: #555; line-height: 1.6; margin: 0; }

.conversion-box {
    background: linear-gradient(135deg, #122b5e 0%, #1a56db 100%);
    border-radius: 20px; padding: 30px; display: flex; align-items: center; justify-content: space-between;
    color: #fff; text-align: left; gap: 20px; box-shadow: 0 20px 40px rgba(26,86,219,0.3);
}
.conversion-content h3 { font-size: 20px; margin: 0 0 10px; color: #00d2ff; }
.conversion-content p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; color: #d0d7e6; }
.conversion-content .highlight { font-weight: bold; color: #fff; margin: 0; }
.conversion-qr { background: #fff; padding: 10px; border-radius: 12px; text-align: center; flex-shrink: 0;}
.conversion-qr img { width: 80px; height: 80px; border-radius: 6px; margin-bottom: 5px; }
.conversion-qr span { display: block; font-size: 11px; color: #333; font-weight: bold; }

.btn-outline-dark { background: transparent; color: #888; border: 1px solid #ddd; padding: 10px 20px; border-radius: 30px; font-size: 14px; font-weight: bold; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline-dark:hover { background: #f4f7f6; color: #333; border-color: #ccc; }

@media (max-width: 768px) {
    .quiz-screen { padding: 40px 25px; }
    .quiz-main-title { font-size: 28px; }
    .result-score-box { flex-direction: column; text-align: center; gap: 20px; padding: 20px;}
    .risk-level-display { text-align: center; }
    .conversion-box { flex-direction: column; text-align: center; padding: 25px 20px;}
}