/* 答题页样式（由 quiz.wxss 的 rpx 换算为 rem） */
.page-quiz {
    padding-bottom: 1rem;
}

.progress-track {
    height: 0.12rem;
    margin: 0.24rem 0.32rem 0;
    border-radius: 999px;
    background: #CBE3FA;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5EA3FF, #2E7BF6);
    transition: width 0.3s ease;
}

/* ---------- 关卡列表 ---------- */
.lv-intro {
    margin: 0.4rem 0.4rem 0.08rem;
}

.lv-intro-main {
    display: block;
    color: #16283C;
    font-size: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.01rem;
}

.lv-intro-sub {
    display: block;
    margin-top: 0.12rem;
    color: #7C8EA3;
    font-size: 0.26rem;
}

.lv-list {
    margin-top: 0.32rem;
    padding: 0 0.32rem;
}

.lv-card {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.24rem;
    padding: 0.3rem 0.28rem;
    border: 2px solid transparent;
    border-radius: 0.32rem;
    background: #FFFFFF;
    box-shadow: 0 0.14rem 0.36rem rgba(46, 123, 246, 0.09);
    text-align: left;
    transition: transform 0.12s ease;
}

.lv-card:active {
    transform: scale(0.985);
}

.lv-card.lv-done {
    border-color: #CDEFE0;
}

.lv-card.lv-locked {
    background: #F4F8FD;
    box-shadow: none;
    opacity: 0.72;
}

.lv-no {
    display: flex;
    flex-shrink: 0;
    width: 0.72rem;
    height: 0.72rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.24rem;
    font-size: 0.3rem;
    font-weight: 700;
}

.lv-no-done {
    background: linear-gradient(135deg, #5BCF9F, #35A87C);
    color: #FFFFFF;
}

.lv-no-open {
    background: linear-gradient(135deg, #4D97FF, #2E7BF6);
    box-shadow: 0 0.08rem 0.2rem rgba(46, 123, 246, 0.28);
    color: #FFFFFF;
}

.lv-no-lock {
    background: #E4EDF8;
    color: #A6B8CC;
}

.lv-main {
    flex: 1;
    min-width: 0;
    margin-left: 0.24rem;
}

.lv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lv-name {
    overflow: hidden;
    color: #16283C;
    font-size: 0.32rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lv-chip {
    flex-shrink: 0;
    margin-left: 0.16rem;
    padding: 0.06rem 0.18rem;
    border-radius: 999px;
    font-size: 0.22rem;
    font-weight: 600;
}

.chip-done {
    background: #E6F7EF;
    color: #2F9E74;
}

.chip-open {
    background: #EAF3FF;
    color: #2E7BF6;
}

.chip-lock {
    background: #ECF1F8;
    color: #9AAEC4;
}

.lv-desc {
    display: block;
    margin-top: 0.12rem;
    overflow: hidden;
    color: #8496AA;
    font-size: 0.23rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 本关进度圆点 ---------- */
.dots {
    display: flex;
    margin: 0.26rem 0.4rem 0;
}

.dot {
    width: 0.56rem;
    height: 0.1rem;
    margin-right: 0.12rem;
    border-radius: 999px;
    background: #D2E4F8;
    transition: background-color 0.2s ease;
}

.dot-ok {
    background: linear-gradient(90deg, #5EA3FF, #2E7BF6);
}

.dot-bad {
    background: #FFB4AB;
}

/* ---------- 题目卡片 ---------- */
.quiz-card {
    margin: 0.28rem 0.32rem 0;
    padding: 0.44rem 0.36rem 0.4rem;
    border-radius: 0.36rem;
    background: #FFFFFF;
    box-shadow: 0 0.18rem 0.6rem rgba(46, 123, 246, 0.1);
}

.q-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.q-tag {
    padding: 0.08rem 0.22rem;
    border-radius: 999px;
    background: #EAF3FF;
    color: #2E7BF6;
    font-size: 0.24rem;
    font-weight: 600;
}

.q-index {
    color: #8FA3BC;
    font-size: 0.26rem;
}

.q-text {
    margin: 0.26rem 0 0;
    color: #16283C;
    font-size: 0.4rem;
    font-weight: 600;
    line-height: 1.6;
}

/* ---------- 选项 ---------- */
.option {
    display: flex;
    width: 100%;
    align-items: center;
    margin-top: 0.24rem;
    padding: 0.3rem 0.32rem;
    border: 2px solid #E1ECFA;
    border-radius: 0.28rem;
    background: #FFFFFF;
    box-shadow: 0 0.06rem 0.2rem rgba(46, 123, 246, 0.06);
    text-align: left;
    transition: border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.option:active {
    transform: scale(0.98);
}

.option-key {
    display: flex;
    flex-shrink: 0;
    width: 0.56rem;
    height: 0.56rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EAF3FF;
    color: #2E7BF6;
    font-size: 0.26rem;
    font-weight: 700;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.option-text {
    margin-left: 0.24rem;
    color: #16283C;
    font-size: 0.32rem;
    line-height: 1.5;
}

.option.is-correct {
    border-color: #2E7BF6;
    background: #F0F7FF;
    box-shadow: 0 0.1rem 0.28rem rgba(46, 123, 246, 0.16);
}

.option.is-correct .option-key {
    background: #2E7BF6;
    color: #FFFFFF;
}

.option.is-wrong {
    border-color: #FFB4AB;
    background: #FFF6F4;
}

.option.is-wrong .option-key {
    background: #FF8A7A;
    color: #FFFFFF;
}

.option.is-dim {
    opacity: 0.55;
}

/* ---------- 弹窗内答题反馈 ---------- */
.modal-caption {
    display: block;
    margin-top: 0.12rem;
    color: #66798F;
    font-size: 0.28rem;
    line-height: 1.6;
    text-align: center;
}

.modal-title-wrong {
    color: #16283C;
}

.answer-box {
    margin-top: 0.28rem;
    padding: 0.26rem 0.3rem;
    border: 2px solid #D6E7FA;
    border-radius: 0.24rem;
    background: #F0F7FF;
}

.answer-label,
.science-label {
    display: block;
    color: #2E7BF6;
    font-size: 0.24rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
}

.answer-text {
    display: block;
    margin-top: 0.1rem;
    color: #16283C;
    font-size: 0.34rem;
    font-weight: 700;
    line-height: 1.5;
}

.science {
    margin-top: 0.24rem;
    padding: 0.26rem 0.3rem;
    border-radius: 0.24rem;
    background: #F6FAFF;
}

.science-text {
    display: block;
    margin-top: 0.1rem;
    color: #5B7089;
    font-size: 0.27rem;
    line-height: 1.8;
}

/* ---------- 结算 ---------- */
.result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.6rem;
    text-align: center;
}

.result-eyebrow {
    color: #8FA3BC;
    font-size: 0.26rem;
    letter-spacing: 0.04rem;
}

.score-ring {
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 0.32rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4D97FF, #2E7BF6);
    box-shadow: 0 0.16rem 0.4rem rgba(46, 123, 246, 0.32);
    color: #FFFFFF;
}

.score-ring.score-ring-fail {
    background: linear-gradient(135deg, #A9C4E4, #8FA9C9);
    box-shadow: 0 0.16rem 0.4rem rgba(90, 120, 155, 0.24);
}

.score-num {
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.1;
}

.score-total {
    font-size: 0.26rem;
    opacity: 0.85;
}

.result-title {
    margin-top: 0.32rem;
    color: #16283C;
    font-size: 0.38rem;
    font-weight: 700;
}

.result-desc {
    margin-top: 0.14rem;
    color: #66798F;
    font-size: 0.28rem;
    line-height: 1.7;
}

.result-card .btn-primary,
.result-card .btn-ghost {
    width: 100%;
}

.result-card .btn-primary {
    margin-top: 0.36rem;
}

.result-card .btn-ghost {
    margin-top: 0.2rem;
}

.copy-tip {
    margin-top: 0.18rem;
    color: #8FA3BC;
    font-size: 0.24rem;
}

/* ---------- 答题中返回关卡列表 ---------- */
.back-link {
    display: block;
    width: 100%;
    margin: 0.3rem 0 0.2rem;
    color: #7C8EA3;
    font-size: 0.26rem;
    font-weight: 500;
    text-align: center;
}

.back-link:active {
    opacity: 0.7;
}
