/* ==========================================================================
   测评类页面公共样式（quiz.css）
   适用页面：evaluation/t01.html、t02.html …… 等所有量表/测评页
   加载顺序：bootstrap → icons/fonts → common.css → quiz.css → theme-green.css
   ========================================================================== */

/* ---- 页面主区 ---- */
.quiz-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f4fbf8 0%, #ffffff 40%);
}

.quiz-shell {
    width: 100%;
}

.quiz-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(23, 135, 106, 0.10);
    padding: clamp(24px, 4vw, 44px);
}

.quiz-card h2 {
    color: #14302a;
}

/* ---- 提示框：薄荷绿（规则）/ 暖黄（免责） ---- */
.rule-box {
    background: var(--wb-green-tint, #eef8f5);
    border: 1px solid rgba(34, 177, 140, 0.35);
    border-radius: 12px;
    padding: 18px 20px;
}

.rule-box h6 {
    color: var(--wb-green-dark, #17876a);
    margin-bottom: 8px;
}

.warn-box {
    background: #fff8e8;
    border: 1px solid #f0d9a8;
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 0.95rem;
}

.warn-box h6 {
    color: #9a6b16;
    margin-bottom: 8px;
}

/* ---- 评分说明卡 ---- */
.score-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.score-legend li {
    flex: 1 1 120px;
    border: 1px solid #e1ece8;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    font-size: 0.9rem;
}

.score-legend li b {
    display: block;
    font-size: 1.25rem;
    color: var(--wb-green-dark, #17876a);
}

/* ---- 进度条 ---- */
.quiz-progress {
    margin-bottom: 28px;
}

.quiz-progress .progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.progress-track {
    height: 8px;
    background: #e6f2ee;
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--wb-green-light, #4ccfa8), var(--wb-green, #22b18c));
    border-radius: 99px;
    transition: width 0.3s ease;
}

/* ---- 题目区 ---- */
.dim-pill {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--wb-green-dark, #17876a);
    background: var(--wb-green-tint, #eef8f5);
    border: 1px solid rgba(34, 177, 140, 0.35);
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
}

.question-text {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 600;
    color: #14302a;
    line-height: 1.6;
}

.question-note {
    color: #7a8a85;
    font-size: 0.92rem;
    margin-top: 10px;
}

/* ---- 选项 ---- */
.opt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 26px 0 24px;
}

.opt-btn {
    border: 2px solid #e1ece8;
    background: #fff;
    border-radius: 14px;
    padding: 18px 10px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    text-align: center;
}

.opt-btn:hover {
    border-color: var(--wb-green-mint, #7ee0c4);
    background: #f6fcfa;
}

.opt-btn:active {
    transform: scale(0.97);
}

.opt-btn.selected {
    border-color: var(--wb-green, #22b18c);
    background: var(--wb-green-tint, #eef8f5);
    box-shadow: 0 4px 14px rgba(34, 177, 140, 0.18);
}

.opt-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef4f2;
    color: #4a635c;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.opt-btn.selected .opt-num {
    background: var(--wb-green, #22b18c);
    color: #fff;
}

.opt-label {
    display: block;
    font-size: 0.92rem;
    color: #334842;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* ---- 结果页 ---- */
.result-banner {
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 24px;
    text-align: center;
    background: var(--wb-green-tint, #eef8f5);
    border: 1px solid rgba(34, 177, 140, 0.35);
}

.result-banner h3 {
    color: var(--wb-green-dark, #17876a);
    margin-bottom: 6px;
}

.stat-card {
    border: 1px solid #e1ece8;
    border-radius: 14px;
    padding: 22px;
    height: 100%;
}

.stat-card h5 {
    font-size: 1rem;
    color: #334842;
}

.stat-values {
    display: flex;
    gap: 22px;
    margin: 12px 0;
}

.stat-values .v b {
    display: block;
    font-size: 1.9rem;
    line-height: 1.1;
    color: var(--wb-green-dark, #17876a);
}

.stat-values .v span {
    font-size: 0.82rem;
    color: #84938d;
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 99px;
}

.tag-ok {
    background: #e6f7f0;
    color: #17876a;
}

.tag-flag {
    background: #fdeede;
    color: #b35a10;
}

/* 轻 / 中度行为倾向：琥珀黄（介于绿色与橙色警示之间） */
.tag-mid {
    background: #fff5d6;
    color: #946f00;
}

.tag-sev {
    background: #eef2f1;
    color: #4a635c;
}

/* ---- 响应式 ---- */
@media (max-width: 576px) {
    .opt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
