:root {
    --orange: #f4b382;
    --orange-deep: #ae4800;
    --blue: #567ecf;
    --blue-deep: #3d62b5;
    --green: #2e9e6b;
    --green-deep: #237a52;
    --text-dark: #333366;
    --text-gray: #8a8f9c;
    --line: #e4e8f0;
    --bg-soft: #fff8f1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: var(--text-dark);
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

/* ---------- 顶部横幅 ---------- */
.top-banner {
    background: linear-gradient(135deg, #f7c79b 0%, var(--orange) 45%, #ef9f66 100%);
    padding: 22px 32px;
    box-shadow: 0 2px 10px rgba(174, 72, 0, 0.15);
}

.banner-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    position: relative;
    width: 72px;
    height: 72px;
    flex: none;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(174, 72, 0, 0.25);
}

.logo .block {
    position: absolute;
    border-radius: 5px;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.logo .b1 {
    left: 12px;
    top: 13px;
    width: 48px;
    height: 20px;
    background: var(--blue);
}

.logo .b2 {
    left: 12px;
    top: 34px;
    width: 20px;
    height: 20px;
    background: #f2b134;
}

.logo .b3 {
    left: 34px;
    top: 34px;
    width: 26px;
    height: 20px;
    background: var(--green);
}

.brand h1 {
    font-size: 26px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(174, 72, 0, 0.35);
    letter-spacing: 1px;
}

.brand p {
    margin-top: 6px;
    font-size: 14px;
    color: #fff5ea;
    letter-spacing: 6px;
}

/* ---------- 中部内容区 ---------- */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 42px 16px 30px;
    background:
        radial-gradient(circle at 12% 18%, rgba(244, 179, 130, 0.18) 0, transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(86, 126, 207, 0.10) 0, transparent 32%),
        var(--bg-soft);
}

.login-card {
    width: 560px;
    max-width: 100%;
    padding: 38px 42px 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(60, 72, 120, 0.10);
}

.login-card h2 {
    font-size: 22px;
    text-align: center;
}

.subtitle {
    margin: 8px 0 22px;
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
}

/* ---------- 提示信息 ---------- */
.alerts {
    margin-bottom: 18px;
}

.alert {
    margin-bottom: 8px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.alert.error {
    color: #b3261e;
    background: #fdecea;
    border: 1px solid #f5c6c2;
}

.alert.success {
    color: #1e7a3c;
    background: #e7f6ec;
    border: 1px solid #bfe8cd;
}

/* ---------- 登录表单 ---------- */
.form-item {
    margin-bottom: 18px;
}

.form-item label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.form-item input,
.form-item select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--text-dark);
    background: #fafbfe;
    border: 1px solid #d7dce8;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-item select {
    padding: 0 12px;
    cursor: pointer;
}

.form-item input:focus,
.form-item select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(86, 126, 207, 0.16);
    background: #ffffff;
}

/* ---------- 登录成功欢迎区 ---------- */
.welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar {
    width: 64px;
    height: 64px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #f7c79b 0%, var(--orange-deep) 100%);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(174, 72, 0, 0.25);
}

.welcome-text h2 {
    font-size: 24px;
    text-align: left;
}

.welcome-text .subtitle {
    margin: 6px 0 0;
    text-align: left;
}

/* ---------- 板块选择 ---------- */
.modules {
    margin-top: 4px;
    border: none;
}

.modules legend {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.module-list {
    display: flex;
    gap: 12px;
}

.module {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 6px;
    cursor: pointer;
    background: #fafbfe;
    border: 2px solid #e0e4ee;
    border-radius: 12px;
    transition: all 0.2s;
}

.module input {
    display: none;
}

.module-icon {
    font-size: 22px;
    line-height: 1;
}

.module-name {
    font-size: 15px;
    font-weight: 600;
    color: #4b5468;
}

.module-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    color: #8a93a6;
}

.module:hover {
    border-color: var(--orange);
    background: #fffaf4;
}

.module input:checked + .module-icon + .module-name {
    color: var(--blue-deep);
}

.module:has(input:checked) {
    border-color: var(--blue);
    background: rgba(86, 126, 207, 0.08);
    box-shadow: 0 0 0 2px rgba(86, 126, 207, 0.15);
}

/* ---------- 按钮 ---------- */
.login-btn,
.enter-btn {
    width: 100%;
    height: 46px;
    margin-top: 24px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.login-btn {
    background: linear-gradient(180deg, #6d93dd 0%, var(--blue) 100%);
    box-shadow: 0 6px 14px rgba(86, 126, 207, 0.32);
}

.login-btn:hover {
    background: linear-gradient(180deg, #5e87d8 0%, var(--blue-deep) 100%);
    box-shadow: 0 8px 18px rgba(86, 126, 207, 0.38);
}

.enter-btn {
    background: linear-gradient(180deg, #4bb584 0%, var(--green) 100%);
    box-shadow: 0 6px 14px rgba(46, 158, 107, 0.30);
}

.enter-btn:hover {
    background: linear-gradient(180deg, #3aa975 0%, var(--green-deep) 100%);
    box-shadow: 0 8px 18px rgba(46, 158, 107, 0.38);
}

.logout-form {
    margin-top: 14px;
    text-align: center;
}

.logout-btn {
    font-size: 13px;
    color: #9aa1b0;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.logout-btn:hover {
    color: var(--blue-deep);
}

/* ---------- 板块页 ---------- */
.board-tip {
    margin-bottom: 24px;
    padding: 18px;
    text-align: center;
    font-size: 14px;
    color: #5a6b85;
    background: #f7f9fc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.back-btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 15px;
    color: var(--blue-deep);
    background: #eef3fc;
    border: 1px solid #cfdcf5;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #e2ebfa;
}

/* ---------- 页脚 ---------- */
.page-footer {
    padding: 14px 0;
    text-align: center;
    font-size: 12px;
    color: #b0b5c2;
    background: #ffffff;
    border-top: 1px solid #f0f2f7;
}

@media (max-width: 640px) {
    .banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .module-list {
        flex-direction: column;
    }
}

/* ==================== 选择题模块 ==================== */
.module-page {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.choice-home-card {
    padding: 32px 38px 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(60, 72, 120, 0.10);
}

.choice-home-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.choice-home-head h2 {
    font-size: 24px;
    text-align: left;
}

.choice-home-head .subtitle {
    margin: 6px 0 0;
    text-align: left;
}

.resume-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 0;
    padding: 12px 16px;
    background: #fff8e1;
    border: 1px solid #f0dfa8;
    border-radius: 12px;
}

.resume-box strong {
    display: block;
    color: #9a6b00;
}

.resume-box span {
    font-size: 12px;
    color: #b58a2e;
}

.resume-btn {
    flex: none;
    padding: 8px 18px;
    color: #ffffff;
    background: var(--orange-deep);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.stats-row {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

.stat-card {
    flex: 1;
    padding: 18px 10px;
    text-align: center;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-deep);
}

.stat-label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.choice-actions {
    margin-top: 26px;
    text-align: center;
}

.start-btn {
    width: 320px;
    max-width: 100%;
    letter-spacing: 4px;
}

.start-tip {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-gray);
}

.choice-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #e4e8f0;
    font-size: 14px;
}

.choice-links a {
    color: var(--blue-deep);
    text-decoration: none;
}

.choice-links a:hover {
    text-decoration: underline;
}

/* ---------- 答题页 ---------- */
.quiz-wrap {
    width: 100%;
    margin: 0 auto;
}

.quiz-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(60, 72, 120, 0.08);
}

.quiz-user strong {
    display: block;
    font-size: 15px;
}

.quiz-user span {
    font-size: 12px;
    color: var(--text-gray);
}

.quiz-timer {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 22px;
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-radius: 10px;
}

.timer-label {
    font-size: 13px;
    color: #b3261e;
}

.timer-num {
    font-size: 24px;
    font-weight: 700;
    color: #b3261e;
    font-variant-numeric: tabular-nums;
}

.quiz-submit-btn {
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, #6d93dd 0%, var(--blue) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.quiz-submit-btn:hover {
    background: var(--blue-deep);
}

.quiz-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
}

.answer-card {
    position: sticky;
    top: 14px;
    flex: none;
    width: 230px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.answer-card h3 {
    font-size: 16px;
}

.card-type {
    margin: 8px 0;
    font-size: 12px;
    color: var(--text-gray);
}

.quiz-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 14px;
    padding: 12px;
    background: #fff8f1;
    border: 1px solid #f0dcc8;
    border-radius: 10px;
}

.quiz-controls .quiz-timer {
    justify-content: center;
    padding: 8px 10px;
}

.quiz-controls .quiz-submit-btn {
    width: 100%;
    padding: 10px 0;
}

.num-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

.num-btn {
    height: 34px;
    font-size: 14px;
    color: #4b5468;
    background: #f2f4f8;
    border: 1px solid #dfe3ec;
    border-radius: 8px;
    cursor: pointer;
}

.num-btn:hover {
    border-color: var(--blue);
}

.num-btn.done {
    color: #ffffff;
    background: var(--green);
    border-color: var(--green);
}

.card-legend {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-gray);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    background: #f2f4f8;
    border: 1px solid #dfe3ec;
    border-radius: 50%;
    vertical-align: -1px;
}

.dot.done {
    background: var(--green);
    border-color: var(--green);
}

.card-hint {
    margin-top: 10px;
    font-size: 11px;
    color: #b0b5c2;
}

.question-area {
    flex: 1;
    min-width: 0;
}

.q-card {
    margin-bottom: 16px;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.q-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.q-no {
    font-size: 16px;
    font-weight: 700;
}

.q-type,
.q-tip {
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 999px;
}

.q-type.single {
    color: #1e7a3c;
    background: #e7f6ec;
}

.q-type.multi {
    color: #6b46a1;
    background: #f3ecfd;
}

.q-tip {
    color: #b3261e;
    background: #fdecea;
}

.q-score {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-gray);
}

.q-images {
    min-width: 0;
    text-align: center;
}

.q-images img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0 auto 8px;
    border: 1px solid #eef1f6;
    border-radius: 10px;
}

/* 答题页（选择题/考试）：题目图片收窄到 75%，整体向中间聚拢 */
.q-card .q-images img {
    max-width: 75%;
}

@media (max-width: 720px) {
    .q-card .q-images img {
        max-width: 100%;
    }
}

.option-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
}

.opt-btn {
    cursor: pointer;
}

.opt-btn input {
    display: none;
}

.opt-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    background: #f7f9fc;
    border: 2px solid #d7dce8;
    border-radius: 50%;
    transition: all 0.15s;
}

.opt-btn:hover .opt-letter {
    border-color: var(--orange);
    background: #fffaf4;
}

.opt-btn:has(input:checked) .opt-letter {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(86, 126, 207, 0.35);
}

.opt-btn.multi:has(input:checked) .opt-letter {
    background: #7b5cd6;
    border-color: #7b5cd6;
}

/* 判断题：正确 / 错误 两个宽按钮 */
.judge-buttons .opt-letter {
    width: auto;
    min-width: 170px;
    height: 60px;
    padding: 0 26px;
    font-size: 20px;
    letter-spacing: 2px;
}

.judge-opt.yes .opt-letter {
    color: #2e9e6b;
    background: #f1fbf5;
    border-color: #bfe3cf;
}

.judge-opt.no .opt-letter {
    color: #c0392b;
    background: #fdf3f2;
    border-color: #f0cfcb;
}

.judge-opt.yes:hover .opt-letter {
    color: #2e9e6b;
    background: #e7f8ef;
    border-color: #2e9e6b;
}

.judge-opt.no:hover .opt-letter {
    color: #c0392b;
    background: #fbeceb;
    border-color: #c0392b;
}

.judge-opt.yes:has(input:checked) .opt-letter {
    color: #ffffff;
    background: #2e9e6b;
    border-color: #2e9e6b;
    box-shadow: 0 4px 12px rgba(46, 158, 107, 0.35);
}

.judge-opt.no:has(input:checked) .opt-letter {
    color: #ffffff;
    background: #c0392b;
    border-color: #c0392b;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.quiz-bottom-actions {
    text-align: center;
    padding: 10px 0 26px;
}

/* ---------- 成绩单页 ---------- */
.result-card {
    padding: 34px 42px 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(60, 72, 120, 0.10);
    text-align: center;
}

.result-score {
    margin: 6px 0 14px;
    line-height: 1.1;
}

.score-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--green);
}

.score-total {
    font-size: 17px;
    color: var(--text-gray);
}

.result-status {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
}

.result-status .ok {
    color: var(--green);
    font-weight: 700;
}

.result-status .bad {
    color: #b3261e;
    font-weight: 700;
}

.result-groups {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.result-group {
    flex: 1;
    padding: 16px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.result-group h3 {
    margin-bottom: 10px;
    font-size: 15px;
}

.result-row {
    display: flex;
    justify-content: space-around;
    font-size: 14px;
}

.result-row .ok {
    color: var(--green);
    font-size: 18px;
}

.result-row .bad {
    color: #b3261e;
    font-size: 18px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.btn-primary,
.btn-ghost {
    padding: 11px 22px;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
}

.btn-primary {
    color: #ffffff;
    background: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-deep);
}

.btn-ghost {
    color: var(--blue-deep);
    background: #eef3fc;
    border: 1px solid #cfdcf5;
}

.btn-ghost:hover {
    background: #e2ebfa;
}

.result-links {
    margin-top: 16px;
    font-size: 13px;
}

.result-links a {
    color: var(--text-gray);
    text-decoration: none;
}

/* ---------- 解析页 ---------- */
.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.review-top h2 {
    text-align: left;
}

.review-top .subtitle {
    margin: 6px 0 0;
    text-align: left;
}

.review-switch a {
    padding: 8px 16px;
    color: var(--blue-deep);
    background: #eef3fc;
    border: 1px solid #cfdcf5;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
}

.review-card {
    margin-bottom: 14px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left-width: 6px;
    border-radius: 12px;
}

.review-card.right {
    border-left-color: var(--green);
}

.review-card.wrong {
    border-left-color: #d64541;
}

.q-result.ok {
    color: #1e7a3c;
}

.q-result.bad {
    color: #b3261e;
}

.review-answers {
    display: flex;
    gap: 30px;
    margin: 12px 0;
    font-size: 14px;
}

.answer-line.ok {
    color: #1e7a3c;
}

.answer-line.bad {
    color: #b3261e;
}

.analysis {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5468;
    background: #f7f9fc;
    border-radius: 8px;
}

.analysis-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.review-back {
    margin: 18px auto 0;
    max-width: 320px;
}

.empty-tip {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-gray);
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

/* ---------- 已做测验列表页 ---------- */
.history-page {
    width: min(1500px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    padding: 0 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.history-title h2 {
    font-size: 20px;
    text-align: left;
}

.history-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.history-title span {
    margin-left: 0;
    font-size: 13px;
    color: var(--text-gray);
    white-space: nowrap;
}

.history-nav {
    display: flex;
    gap: 14px;
}

.history-nav a {
    color: var(--blue-deep);
    text-decoration: none;
    font-size: 14px;
}

.history-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.history-actions form {
    margin: 0;
}

.history-start-btn {
    display: inline-block;
    border: none;
    background: var(--blue-deep, #33537b);
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

.history-start-btn:hover {
    opacity: 0.88;
}

.record-table td.topic-title {
    font-weight: bold;
    color: var(--blue-deep, #33537b);
    text-align: left;
}

.topic-title-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.topic-index {
    flex: none;
    min-width: 18px;
    color: #9299aa;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.topic-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.topic-level-badge {
    display: inline-flex;
    align-items: center;
    min-height: 17px;
    padding: 1px 5px;
    color: #7a8190;
    background: #f7f8fa;
    border: 1px solid #e7eaf0;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.record-table td.ops-cell form {
    display: inline-block;
    margin: 0 0 0 10px;
}

.inline-btn {
    border: 1px solid var(--blue-deep, #33537b);
    background: #ffffff;
    color: var(--blue-deep, #33537b);
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.inline-btn:hover {
    background: var(--blue-deep, #33537b);
    color: #ffffff;
}

.prog-loading-mask {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.55);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prog-loading-box {
    text-align: center;
    color: var(--blue-deep, #33537b);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.86);
    padding: 18px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(51, 83, 123, 0.12);
}

.prog-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    border: 4px solid #e3ebf6;
    border-top-color: var(--blue-deep, #33537b);
    border-radius: 50%;
    animation: prog-loading-spin 0.9s linear infinite;
}

@keyframes prog-loading-spin {
    to { transform: rotate(360deg); }
}

/* ---------- 顶部横幅右侧的登录身份（全站常驻） ---------- */
.banner-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.banner-user-role {
    opacity: 0.85;
}

.banner-user-name {
    font-weight: 700;
}

.compact-banner .banner-user {
    padding: 4px 12px;
    font-size: 13px;
}

@media (max-width: 720px) {
    .banner-user {
        padding: 4px 10px;
        font-size: 12px;
    }
}

.history-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rank-side {
    flex: none;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-panel {
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.rank-panel h3 {
    margin-bottom: 10px;
    font-size: 15px;
}

.rank-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.rank-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 14px;
}

.rank-list li:nth-child(odd) {
    background: #fafbfe;
}

.rank-list li.me {
    background: #fff3e2;
    font-weight: 700;
}

.rank-no {
    width: 24px;
    color: #b0b5c2;
    font-size: 13px;
}

.rank-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    font-weight: 700;
    color: var(--orange-deep);
}

.rank-empty {
    padding: 14px 4px;
    font-size: 13px;
    color: var(--text-gray);
    text-align: center;
}

.history-list {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.list-head h3 {
    margin-bottom: 10px;
    font-size: 15px;
}

.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-head .mini-nav {
    font-size: 13px;
    color: var(--blue-deep);
    text-decoration: none;
}

.record-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.record-table th,
.record-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #eef1f6;
}

.record-table th {
    color: var(--text-gray);
    font-weight: 600;
    background: #fafbfe;
}

.record-table tbody tr:hover {
    background: #f7f9fc;
}

.table-link {
    color: var(--blue-deep);
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-gray);
}

.pager-btns {
    display: flex;
    gap: 10px;
}

.pager-btns a {
    padding: 6px 14px;
    color: var(--blue-deep);
    background: #eef3fc;
    border: 1px solid #cfdcf5;
    border-radius: 8px;
    text-decoration: none;
}

.pager-btns a:hover {
    background: #e2ebfa;
}

@media (max-width: 900px) {
    .quiz-body,
    .history-main {
        flex-direction: column;
    }

    .answer-card {
        position: static;
        width: 100%;
    }

    .rank-side {
        width: 100%;
    }

    .result-groups {
        flex-direction: column;
    }
}

/* ---------- 答题页：单选/多选分页 + 答题卡分区 ---------- */
.q-page[hidden] {
    display: none;
}

.q-page-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.q-page-head em {
    font-style: normal;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-gray);
}

.answer-group {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e4e8f0;
}

.card-type-title {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5468;
}

.page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 6px 0 26px;
}

.page-nav-btn {
    padding: 9px 26px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, #6d93dd 0%, var(--blue) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.page-nav-btn:hover:not(:disabled) {
    background: var(--blue-deep);
}

.page-nav-btn:disabled {
    background: #cfd6e4;
    cursor: not-allowed;
}

#pageIndicator {
    min-width: 76px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ---------- 紧凑顶部横幅（整体约 2/3）：已做列表页与做题页共用 ---------- */
.compact-banner .top-banner {
    padding: 15px 32px;
    box-shadow: none;
}

.compact-banner .logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.compact-banner .logo .b1 {
    left: 8px;
    top: 9px;
    width: 32px;
    height: 13px;
}

.compact-banner .logo .b2 {
    left: 8px;
    top: 22px;
    width: 13px;
    height: 13px;
}

.compact-banner .logo .b3 {
    left: 22px;
    top: 22px;
    width: 17px;
    height: 13px;
}

.compact-banner .brand h1 {
    font-size: 18px;
}

.compact-banner .brand p {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 4px;
}

.compact-banner .banner-inner {
    gap: 14px;
}

.quiz-page .container {
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    align-items: flex-start;
}

.review-page .container {
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    align-items: flex-start;
}

.review-page .module-page {
    width: 100%;
}

.review-page .review-top {
    height: 52px;
    padding: 0 20px;
    margin-bottom: 14px;
}

.review-page .review-top h2 {
    font-size: 15px;
    margin: 0;
}

.review-page .review-top .subtitle {
    font-size: 12px;
    margin: 0;
}

.review-page .review-switch a {
    padding: 4px 12px;
    font-size: 12px;
}

.history-compact .history-page {
    margin-top: 0;
}

.history-compact .history-top {
    margin-top: 0;
    height: 50px;
    padding: 0 18px;
}

.history-compact .history-title h2 {
    font-size: 14px;
}

.history-compact .history-title span {
    margin-left: 10px;
    font-size: 11px;
}

.history-compact .history-nav {
    gap: 10px;
}

.history-compact .history-nav a {
    font-size: 12px;
}

.history-compact .container {
    padding-top: 10px;
    align-items: flex-start;
}

.history-compact .history-page {
    gap: 10px;
}

/* ==================== 编程题板块（偏深橘色主题，仅 .prog-body 生效） ==================== */
body.prog-body .top-banner {
    background: linear-gradient(135deg, #eda468 0%, #d96f2b 45%, #b34912 100%);
    box-shadow: 0 2px 10px rgba(120, 45, 0, 0.18);
}

body.prog-body .brand h1 {
    text-shadow: 0 2px 4px rgba(120, 45, 0, 0.4);
}

body.prog-body .container {
    background:
        radial-gradient(circle at 12% 18%, rgba(217, 111, 43, 0.16) 0, transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(86, 126, 207, 0.08) 0, transparent 32%),
        var(--bg-soft);
}

/* ---------- 答题页：题目条 + 编辑器全屏布局 ---------- */
body.prog-quiz-page {
    overflow: hidden;
}

/* 答题页让位给编辑器：隐藏平台横幅与页脚 */
body.prog-quiz-page .top-banner,
body.prog-quiz-page .page-footer {
    display: none;
}

body.prog-quiz-page .container {
    display: block;
    padding: 0;
    align-items: stretch;
}

.prog-quiz-wrap {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 4px 10px 6px;
}

.prog-quiz-top {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px 8px;
    margin-bottom: 4px;
    flex: none;
}

.prog-qimages {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prog-qimages img {
    max-height: 46px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.prog-qmeta {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prog-qno {
    background: #b34912;
    color: #fff;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
}

.prog-qscore {
    color: #b34912;
    font-size: 12px;
    font-weight: 700;
}

.prog-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff2e6;
    border: 1px solid #e9b28a;
    border-radius: 5px;
    padding: 2px 7px;
}

.prog-timer .timer-label {
    font-size: 10px;
    color: #8a4a20;
}

.prog-timer .timer-num {
    font-size: 13px;
    font-weight: 700;
    color: #b34912;
    font-variant-numeric: tabular-nums;
}

.prog-qmeta .quiz-submit-btn {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 5px;
}

.prog-save-state {
    flex: none;
    font-size: 11px;
    color: #a56633;
    margin: 0 2px 3px;
    min-height: 12px;
}

.prog-editor-frame {
    flex: 1;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.prog-editor-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- 解析页 ---------- */
.prog-review .container,
body.prog-review-page .container {
    align-items: flex-start;
}

body.prog-review-page .container {
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

body.prog-review-page .module-page {
    width: 100%;
}

.prog-review-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.prog-sec-title {
    margin: 18px 0 8px;
    font-size: 15px;
    color: #b34912;
    border-left: 4px solid #d96f2b;
    padding-left: 8px;
}

.prog-review-frame {
    height: 760px;
    flex: none;
}

.answer-lock {
    margin: 14px 0;
    padding: 16px 18px;
    background: #fff8ed;
    border: 1px solid #f0c894;
    border-radius: 10px;
    color: #684424;
    line-height: 1.7;
}

.answer-lock.compact {
    margin: 10px 0;
    padding: 12px 14px;
}

.answer-lock strong {
    display: block;
    margin-bottom: 4px;
    color: #a54d0d;
    font-size: 15px;
}

.answer-lock p {
    margin: 3px 0;
    font-size: 13px;
}

.answer-lock .btn-primary {
    display: inline-block;
    margin-top: 9px;
}

.exam-answer-lock {
    margin: 0 0 14px;
}

.prog-answer-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.prog-review .q-images img,
.prog-review .prog-answer-image img {
    max-width: 100%;
    zoom: 0.6667;
}

@media (max-width: 720px) {
    .topic-title-main {
        gap: 5px;
    }

    .topic-level-badge {
        padding: 1px 4px;
        font-size: 9px;
    }

    .prog-review .q-images img,
    .prog-review .prog-answer-image img {
        max-width: 100%;
        zoom: 1;
    }
}

.judge-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 6px;
    font-size: 14px;
}

.judge-table th:nth-child(1) { width: 22%; }
.judge-table th:nth-child(2) { width: 9%; }
.judge-table th:nth-child(3) { width: 11%; }
.judge-table th:nth-child(4) { width: 30%; }

.judge-table th,
.judge-table td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    text-align: left;
}

.judge-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.judge-table .judge-detail,
.judge-table .judge-hint {
    white-space: pre-line;
    line-height: 1.65;
}

.judge-table .judge-hint {
    color: #8a4a0f;
}

.judge-table th {
    background: #fff2e6;
    color: #8a3d0f;
}

.judge-table .ok { color: var(--green-deep); font-weight: 600; }
.judge-table .bad { color: #c0392b; font-weight: 600; }

/* ---------- 答题页 v2：题目弹窗 + 右侧控制条 ---------- */
.prog-quiz-main {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.prog-quiz-main .prog-editor-frame {
    flex: 1;
    min-width: 0;
}

.prog-sidebar {
    flex: none;
    width: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.prog-view-question {
    width: 100%;
    padding: 7px 4px;
    border: 1px solid #d96f2b;
    border-radius: 6px;
    background: #fff2e6;
    color: #b34912;
    font-size: 12px;
    cursor: pointer;
}

.prog-view-question:hover {
    background: #ffe3cc;
}

.prog-sidebar .prog-qscore {
    font-size: 12px;
}

.prog-sidebar .prog-timer {
    width: 100%;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

.prog-sidebar .quiz-submit-btn {
    width: 100%;
    padding: 8px 4px;
    font-size: 13px;
    border-radius: 6px;
}

.prog-sidebar .prog-save-state {
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-size: 10px;
}

/* 题目内容弹窗 */
.prog-modal {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
    overscroll-behavior: none;
}

.prog-modal[hidden] {
    display: none;
}

.prog-modal-box {
    --prog-modal-dx: 0px;
    --prog-modal-dy: 0px;
    position: absolute;
    left: 50%;
    top: 50%;
    background: #ffffff;
    border-radius: 12px;
    width: min(92vw, 1000px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translate(-50%, -50%) translate(var(--prog-modal-dx), var(--prog-modal-dy));
    box-shadow: 0 16px 44px rgba(45, 25, 10, 0.28);
    pointer-events: auto;
}

.prog-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #fff2e6;
    border-bottom: 1px solid #f0d2b8;
    cursor: move;
    user-select: none;
    touch-action: none;
}

.prog-modal-head h3 {
    font-size: 15px;
    color: #8a3d0f;
}

.prog-modal-close {
    border: 0;
    background: transparent;
    color: #8a3d0f;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    user-select: auto;
    touch-action: auto;
}

.prog-modal-body {
    overflow: auto;
    padding: 14px;
    text-align: center;
}

.prog-modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==================== 在线考试 ==================== */

/* ---------- 试卷列表页 ---------- */
.rank-paper-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #fff8f1;
    border: 1px solid #f0dcc8;
    border-radius: 10px;
    font-size: 12px;
    color: #6b4a2e;
}

.rank-paper-form select {
    flex: 1;
    min-width: 0;
    max-width: 170px;
    padding: 5px 6px;
    font-size: 12px;
    border: 1px solid #e2c6a8;
    border-radius: 6px;
    background: #ffffff;
    color: #4b5468;
}

.exam-table .exam-title-cell {
    min-width: 110px;
    max-width: 190px;
    font-weight: 600;
    color: #2c3454;
}

.exam-table .exam-type-stats {
    min-width: 100px;
    font-size: 12px;
    line-height: 1.5;
    color: #4b5468;
}

.exam-table .exam-score-cell b {
    font-size: 13px;
}

.exam-table .exam-actions {
    white-space: nowrap;
}

.exam-table .exam-actions .table-link {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 999px;
    text-decoration: none;
}

.exam-table .exam-actions .table-link + .table-link {
    margin-top: 6px;
}

.exam-table .exam-actions .table-link:hover {
    text-decoration: none;
    filter: brightness(0.96);
}

.exam-actions .act-review {
    color: #2b5fb0;
    background: #eaf1fd;
}

.exam-actions .act-retry,
.exam-actions .act-continue {
    color: #a34c08;
    background: #fff1e0;
}

.exam-actions .act-start {
    color: #147d4c;
    background: #e4f6ec;
}

.attempt-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 500;
    color: #7a8499;
    background: #f0f2f6;
    border-radius: 999px;
    vertical-align: middle;
}

tr.exam-row {
    cursor: pointer;
}

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-badge.todo {
    color: #7a8499;
    background: #f0f2f6;
}

.status-badge.doing {
    color: #a34c08;
    background: #fff1e0;
}

.status-badge.done {
    color: #147d4c;
    background: #e4f6ec;
}

/* ---------- 考前准备页 ---------- */
.exam-ready-page .module-page {
    width: 100%;
}

.exam-ready-card {
    max-width: 720px;
    margin: 0 auto;
}

.exam-countdown-page .module-page {
    width: 100%;
}

.exam-countdown-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.countdown {
    margin: 26px 0 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 54px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #2c3454;
}

.countdown-tip {
    margin-top: 6px;
    font-size: 13px;
    color: #8a93a6;
}

.exam-countdown-page #enterBtn[hidden] {
    display: none;
}

.exam-ready-title {
    margin: 14px 0 10px;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 700;
    color: #2c3454;
    text-align: center;
    background: #f7f9fc;
    border: 1px dashed #cfd8e8;
    border-radius: 10px;
}

.exam-ready-rows {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 4px 0 12px;
}

.exam-ready-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 16px;
    background: #fff8f1;
    border: 1px solid #f0dcc8;
    border-radius: 10px;
}

.exam-ready-row .ready-label {
    font-size: 13px;
    color: #8a6b4a;
}

.exam-ready-row b {
    font-size: 16px;
    color: #b34912;
}

.exam-ready-types {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 6px 0 12px;
}

.exam-ready-type {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #eef3fb;
    border-radius: 999px;
}

.exam-ready-type .type-name {
    font-size: 13px;
    color: #3d5c9b;
    font-weight: 600;
}

.exam-ready-type .type-count {
    font-size: 13px;
    color: #1f2c47;
}

.exam-ready-notes {
    margin: 8px 0 16px;
    padding: 12px 16px;
    background: #f7f9fc;
    border-radius: 10px;
    font-size: 13px;
    color: #5a6478;
    line-height: 1.8;
}

.exam-start-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 64px;
    font-size: 18px;
}

/* ---------- 考试答题页：编程题整页切换 ---------- */
.exam-quiz-page .quiz-wrap {
    display: block;
}

/* 选择题页容器直接子元素占满宽度；考试页多包一层，需同样撑满，避免内容被压缩居中 */
.exam-quiz-page #examQuizApp {
    width: 100%;
    min-width: 0;
}

#progStage {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 4px 10px 6px;
    box-sizing: border-box;
}

#progStage[hidden] {
    display: none;
}

#progStage .exam-prog-frame {
    flex: 1;
    min-height: 0;
}

body.exam-prog-active .top-banner,
body.exam-prog-active .page-footer {
    display: none;
}

body.exam-prog-active .container {
    display: block;
    padding: 0;
    align-items: stretch;
}

body.exam-prog-active {
    overflow: hidden;
}

/* ---------- 考试通用弹窗 ---------- */
.exam-modal {
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 10, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.exam-modal[hidden] {
    display: none;
}

.exam-modal-box {
    background: #ffffff;
    border-radius: 12px;
    width: min(92vw, 1000px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(80, 30, 0, 0.25);
}

.exam-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff8f1;
    border-bottom: 1px solid #f0dcc8;
}

.exam-modal-head h3 {
    font-size: 15px;
    color: #8a3d0f;
}

.exam-modal-close {
    border: 0;
    background: transparent;
    color: #8a3d0f;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
}

.exam-modal-body {
    overflow: auto;
    padding: 14px;
    text-align: center;
}

.exam-modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.exam-card-modal-box {
    width: min(92vw, 420px);
}

.exam-card-modal-box .exam-modal-body {
    text-align: left;
}

/* ---------- 解析页：左侧解析导航 + 右侧分页 ---------- */
.exam-review-page .module-page {
    width: 100%;
}

.exam-review-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.exam-review-body .exam-review-nav {
    flex: none;
    width: 230px;
}

.exam-review-pages {
    flex: 1;
    min-width: 0;
}

.exam-review-page .q-images img {
    max-width: 66.6667%;
}

.exam-review-section[hidden],
.exam-review-section[hidden] .prog-review-card {
    display: none;
}

.exam-review-section {
    margin-bottom: 14px;
}

.prog-review-card-section {
    width: 100%;
}

/* 手机上榜单/解析导航自然堆叠 */
@media (max-width: 980px) {
    .exam-review-body {
        flex-direction: column;
    }

    .exam-review-body .exam-review-nav {
        width: 100%;
        position: static;
    }
}

@media (max-width: 720px) {
    .exam-review-page .q-images img {
        max-width: 100%;
    }
}
