/* CompTest - 与首页 GoSharp 主题一致（继承 /css/common.css 变量） */
:root {
    --black: var(--text-main);
    --primary: var(--accent);
    --secondary: var(--card-bg);
    --icon-mono: rgb(116, 123, 255);
    --border-thick: 1px;
    --shadow-hard: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --transition-bounce: all 0.2s ease;
    /* 与题目卡片 .phase-narrow-wrap 同宽（左右各约 20% 留白） */
    --comp-phase-content-width: 60%;
}

.comp-test-page {
    color: var(--text-main);
}

.comp-test-page * {
    box-sizing: border-box;
}

/* 主区域：无卡片，直接铺在页面上（勿用 margin 简写覆盖顶距） */
.container.comp-main {
    max-width: min(960px, 96vw);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    padding: 24px 16px 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .container.comp-main {
        margin-left: 12px;
        margin-right: 12px;
        padding: 20px 12px 32px;
    }
}

/* 综合/评分/结果页：主区域铺满宽度，便于作答卡 80vw */
body.test-started .container.comp-main {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(6px, 1.5vw, 14px);
    padding-right: clamp(6px, 1.5vw, 14px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 计时器：位于测试区标题行右侧，站点 RGB 强调色 */
.comp-test-timer#timer,
.comp-test-timer {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: rgb(116, 123, 255);
    background: linear-gradient(160deg, rgba(116, 123, 255, 0.16), rgba(116, 123, 255, 0.06));
    border: 1.5px solid rgb(116, 123, 255);
    padding: 6px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(116, 123, 255, 0.22);
    display: none;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.comp-test-timer.warning {
    color: rgb(255, 120, 60);
    border-color: rgb(255, 140, 80);
    background: linear-gradient(160deg, rgba(255, 140, 80, 0.2), rgba(255, 120, 60, 0.08));
    box-shadow: 0 2px 12px rgba(255, 120, 60, 0.28);
    animation: pulse-timer 1s infinite;
}

@keyframes pulse-timer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.screen { display: none; animation: popIn 0.35s ease; }
.screen.active { display: block; }

/* 测试页：规则说明 + 答题区纵向铺满，词汇段单屏不撑出整页滚动 */
#test-screen.screen.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.test-rules-intro {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 32px;
    overflow-y: auto;
    /* 开始页整体内容上移约 20% 视口高度 */
    margin-top: -20vh;
    padding-top: calc(20px + 4vh);
}

/* 开始页主标题：原字号约 clamp(1.25–1.5rem)，放大至 150%；站点 RGB 强调色 */
.test-rules-intro .exam-title-banner {
    font-size: clamp(1.875rem, 4.5vw, 2.25rem);
    color: rgb(116, 123, 255);
    font-weight: 600;
}

.test-rules-intro[hidden] {
    display: none !important;
}

.test-rules-card {
    width: 100%;
    max-width: 520px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px 22px 28px;
    box-shadow: var(--shadow-sm);
}

.test-rules-title {
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    margin-bottom: 0.75rem;
    display: block;
    width: 100%;
}

.test-rules-title::after {
    display: none;
}

.test-rules-list {
    margin: 0 0 1.5rem 1rem;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.test-rules-list li {
    margin-bottom: 0.45rem;
}

#btn-begin-after-rules {
    display: block;
    margin: 0 auto;
}

.test-phase-workspace {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.test-phase-workspace[hidden] {
    display: none !important;
}

.comp-answer-card-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.comp-answer-card-foot {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* 退出测试：与底部模块栏同一行，靠右（见 .comp-bottom-bar） */
.comp-answer-card-foot .comp-footer-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0 !important;
    gap: 0;
}

/* 标题 + 题型标签 + 进度条：与下方 .phase-narrow-wrap 题目区同宽 */
.test-phase-top {
    width: var(--comp-phase-content-width);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

.test-phase-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(6px, 1.5vw, 12px);
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.test-phase-title-spacer {
    min-width: 0;
}

.test-phase-timer-slot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.test-phase-title-row .exam-title-banner {
    margin-bottom: 0;
    justify-self: center;
    max-width: 100%;
}

.test-phase-workspace .test-phase-top .test-phase-title-row,
.test-phase-workspace .test-phase-top .phase-tabs,
.test-phase-workspace .test-phase-top .comp-answer-meta {
    flex-shrink: 0;
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text-main);
    text-shadow: none;
    letter-spacing: 0;
}

h2 {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text-main);
    display: inline-block;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    z-index: 0;
    transform: none;
}

#section-content h2::after,
.comp-test-card h2::after {
    display: none;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 24px;
    background: transparent;
    display: block;
    padding: 0;
    transform: none;
    border-radius: 0;
    border: none;
}

/* 按钮 */
.btn {
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
    text-decoration: none;
    color: var(--text-main);
    background: var(--bg-color);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    filter: brightness(0.95);
    transform: none;
    box-shadow: 0 4px 12px rgba(116, 123, 255, 0.35);
}

.btn-primary:active { transform: none; }
.btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    color: #6b7280;
    border-color: #d1d5db;
}

.btn-secondary {
    background: var(--bg-color);
}

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: none;
    box-shadow: none;
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.actions-start {
    margin-top: 32px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.login-hint {
    text-align: center;
    margin-top: 28px;
}

.login-hint-text {
    color: #b91c1c;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 12px;
}

/* 开始页：综合能力 / 单项能力 两张并排卡片（约各 45%–48% 宽），悬停时该张浮出 */
.comp-card-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: clamp(12px, 3vw, 20px);
    position: relative;
    margin-top: 10vh;
}

.comp-test-card {
    position: relative;
    flex: 1 1 45%;
    min-width: 0;
    max-width: 48%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 14px 22px;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.22s ease,
        opacity 0.25s ease;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.comp-card-stack .comp-test-card--comprehensive {
    z-index: 1;
}

@media (max-width: 720px) {
    .comp-card-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .comp-test-card {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

.comp-test-card .comp-test-card-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 400;
    color: var(--text-main);
    margin: 0 0 8px;
    letter-spacing: 0;
}

.comp-test-card .comp-title-accent {
    color: rgb(116, 123, 255);
}

.comp-card-stack:hover .comp-test-card {
    opacity: 0.5;
}

.comp-card-stack:hover .comp-test-card:hover,
.comp-card-stack:hover .comp-test-card:focus-within {
    opacity: 1;
    z-index: 10 !important;
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
    border-color: rgba(116, 123, 255, 0.45);
}

@media (hover: none) {
    .comp-card-stack:hover .comp-test-card {
        opacity: 1;
    }
}

/* 题量统计 */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 24px 0 8px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 0 12px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--icon-mono);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

@media (max-width: 560px) {
    .stat-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px 0;
    }
    .stat-item {
        border-right: none;
        padding: 0;
    }
}

/* 单项卡片：可点选题量格 */
.stat-row--selectable .stat-item--pick {
    cursor: pointer;
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    margin: 0;
    outline: none;
    border-right: 1px solid var(--border-color);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.stat-row--selectable .stat-item--pick:last-child {
    border-right: none;
}

.stat-row--selectable .stat-item--pick:hover {
    background: rgba(116, 123, 255, 0.06);
}

.stat-row--selectable .stat-item--pick.selected {
    background: rgba(116, 123, 255, 0.14);
    border-radius: 8px;
}

.stat-row--selectable .stat-item--pick:focus-visible {
    outline: 2px solid rgb(116, 123, 255);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (max-width: 560px) {
    .stat-row--selectable .stat-item--pick {
        border-right: none;
    }
}

/* 分项入口（旧链接列表，保留类名供其它页使用） */
.sub-tests-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 28px;
}

.sub-test-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 8px;
    transition: background 0.2s;
}

.sub-test-link:hover {
    background: rgba(116, 123, 255, 0.07);
}

.sub-test-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-mono);
    flex-shrink: 0;
}

.sub-test-ico svg {
    width: 24px;
    height: 24px;
}

.sub-test-link .sub-test-title {
    font-size: 0.95rem;
    font-weight: 400;
}

/* 进度条 */
.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--icon-mono);
    border-right: none;
    transition: width 0.35s ease;
}

.section-indicator {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* 题目：扁平分区 */
.q-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 24px 0;
    margin-bottom: 0;
    box-shadow: none;
}

.q-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--icon-mono);
    background: transparent;
    border: 1px solid rgba(116, 123, 255, 0.35);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.q-text {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 14px;
    line-height: 1.55;
    color: var(--text-main);
}

.q-options { display: grid; gap: 10px; }

.q-opt {
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-main);
    box-shadow: none;
}

.q-opt:hover {
    background: rgba(116, 123, 255, 0.08);
    border-color: var(--accent);
    transform: none;
    box-shadow: none;
}

.q-opt.selected {
    background: rgba(116, 123, 255, 0.1);
    color: var(--text-main);
    border-color: var(--icon-mono);
}

.listen-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--icon-mono);
    color: var(--icon-mono);
    font-size: 1.35rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listen-play-btn:hover {
    background: rgba(116, 123, 255, 0.08);
    transform: none;
    box-shadow: none;
}

.listen-play-btn:disabled {
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    background: transparent;
}

.play-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 6px;
}

.trans-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border-radius: 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 400;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
    transition: all 0.2s;
}

.trans-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(116, 123, 255, 0.2);
    transform: none;
}

.exam-title-banner {
    text-align: center;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 20px;
    padding: 12px;
    text-shadow: none;
    letter-spacing: 0;
}

/* 阶段标签 */
.phase-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.phase-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-color);
    color: var(--text-main);
    border-right: 1px solid var(--border-color);
    position: relative;
}

.phase-tab:last-child { border-right: none; }
.phase-tab:hover { background: rgba(116, 123, 255, 0.06); }
.phase-tab.active { background: var(--icon-mono); color: #fff; }
.phase-tab.done { color: var(--text-muted); background: transparent; }
.phase-tab.done.active { background: var(--icon-mono); color: #fff; }
.phase-tab.done::after { content: ' \2714'; font-size: 12px; }
.phase-tab .tab-sub { font-size: 11px; font-weight: 400; opacity: 0.85; margin-top: 4px; }
.phase-tab.no-click { cursor: default; }
.phase-tab.no-click:hover { background: var(--bg-color); }

/* 词汇 */
.word-list { display: flex; flex-direction: column; gap: 20px; }

.word-item {
    background: transparent;
    padding: 20px 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

.word-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.options-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

@media (max-width: 600px) {
    .options-grid { grid-template-columns: repeat(2, 1fr); }
}

.option-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.option-btn:hover {
    background: rgba(116, 123, 255, 0.08);
    border-color: var(--accent);
    transform: none;
}

.option-btn.unknown-option { background: var(--card-bg); border-style: dashed; }
.option-btn.selected {
    background: rgba(116, 123, 255, 0.1) !important;
    border-color: var(--icon-mono);
}

.vocab-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* 词汇 / 听力 / 阅读 / 翻译：左右各约 20% 留白（内容区 60%），主区域单屏不滚动 */
#section-content.vocab-phase,
#section-content.listen-phase,
#section-content.read-phase,
#section-content.trans-phase {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phase-narrow-wrap {
    width: var(--comp-phase-content-width);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(12px, 2vw, 20px) clamp(14px, 2.2vw, 22px);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.phase-section-title {
    flex-shrink: 0;
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    font-weight: 400;
    color: var(--accent);
    margin: 0 0 10px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.phase-section-title::after {
    display: none;
}

#section-content.vocab-phase .phase-narrow-wrap > .phase-section-title {
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: none;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
}

/* 词汇区顶部进度：约为原 phase-section-title--progress 的 60% 字号；整体上移 10% */
#section-content.vocab-phase .phase-narrow-wrap > .phase-section-title--progress {
    font-size: clamp(0.75rem, 1.8vw, 0.99rem);
    font-weight: 600;
    color: var(--text-muted);
    transform: translateY(-10%);
}

/* 听力 / 阅读 / 翻译：进度文字与词汇区一致 */
#section-content.listen-phase .phase-narrow-wrap > .phase-section-title--progress,
#section-content.read-phase .phase-narrow-wrap > .phase-section-title--progress,
#section-content.trans-phase .phase-narrow-wrap > .phase-section-title--progress {
    font-size: clamp(0.75rem, 1.8vw, 0.99rem);
    font-weight: 600;
    color: var(--text-muted);
    transform: translateY(-10%);
}

#section-content.vocab-phase .vocab-progress-header {
    flex-shrink: 0;
    margin-bottom: 6px;
    padding-bottom: 6px;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    border-bottom: 1px solid var(--border-color);
}

#section-content.vocab-phase .word-list {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.9vh, 10px);
    justify-content: space-between;
}

#section-content.vocab-phase .word-item {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2px 0 6px;
    border-bottom: 1px solid var(--border-color);
}

#section-content.vocab-phase .word-item:last-child {
    border-bottom: none;
}

#section-content.vocab-phase .word-title {
    font-size: clamp(0.78rem, 1.55vw, 1.02rem);
    margin-bottom: 3px;
    padding-bottom: 3px;
    flex-shrink: 0;
}

#section-content.vocab-phase .options-grid {
    gap: clamp(4px, 0.8vw, 8px);
    flex: 1 1 auto;
    min-height: 0;
    align-content: center;
}

#section-content.vocab-phase .option-btn {
    min-height: 0;
    padding: clamp(4px, 0.9vh, 8px) 6px;
    font-size: clamp(0.68rem, 1.35vw, 0.88rem);
    border: none;
}

#section-content.vocab-phase .option-btn:hover,
#section-content.vocab-phase .option-btn.unknown-option,
#section-content.vocab-phase .option-btn.selected {
    border: none;
}

/* 听力 */
#section-content.listen-phase .listen-phase-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#section-content.listen-phase .listen-nav-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
}

#section-content.listen-phase .listen-nav-btn {
    font-size: clamp(0.89rem, 1.68vw, 1rem);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgb(116, 123, 255);
    cursor: pointer;
    transition: opacity 0.2s, text-decoration 0.2s;
}

#section-content.listen-phase .listen-nav-btn:hover:not(:disabled) {
    text-decoration: underline;
    opacity: 0.92;
}

#section-content.listen-phase .listen-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    color: rgba(116, 123, 255, 0.45);
}

#section-content.listen-phase .listen-q-item {
    border: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 10px;
}

#section-content.listen-phase .listen-q-item--bare {
    gap: 10px;
}

#section-content.listen-phase .listen-q-item .q-label {
    flex-shrink: 0;
    margin-bottom: 0;
}

#section-content.listen-phase .listen-body {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 18px);
    align-items: stretch;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#section-content.listen-phase .listen-play-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0 2px;
    flex-shrink: 0;
    width: 100%;
}

#section-content.listen-phase .listen-opts-col {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#section-content.listen-phase .listen-q-options {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: clamp(8px, 1.5vw, 12px);
    align-content: center;
    align-items: stretch;
}

#section-content.listen-phase .q-opt {
    padding: clamp(10px, 1.8vw, 14px);
    font-size: clamp(0.82rem, 1.6vw, 1rem);
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    border: none !important;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

#section-content.listen-phase .q-opt:hover {
    border: none !important;
    background: transparent;
}

#section-content.listen-phase .q-opt.selected {
    border: none !important;
    background: transparent;
    color: rgb(116, 123, 255);
    font-weight: 600;
}

/* 听力：播放按钮 150% 尺寸，RGB 填充，三角（▶）白色 */
#section-content.listen-phase .listen-play-btn {
    width: 84px;
    height: 84px;
    font-size: 2.025rem;
    border: none;
    background: rgb(116, 123, 255);
    color: #fff;
}

#section-content.listen-phase .listen-play-btn:hover:not(:disabled) {
    background: rgb(96, 103, 230);
    color: #fff;
}

#section-content.listen-phase .listen-play-btn:disabled {
    border: none;
    background: rgba(116, 123, 255, 0.4);
    color: rgba(255, 255, 255, 0.75);
}

/* 阅读 / 翻译：顶部导航（与听力风格一致） */
#section-content.read-phase .read-phase-inner,
#section-content.trans-phase .trans-phase-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#section-content.read-phase .read-nav-row,
#section-content.trans-phase .trans-nav-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
}

#section-content.read-phase .read-nav-btn,
#section-content.trans-phase .trans-nav-btn {
    font-size: clamp(0.89rem, 1.68vw, 1rem);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgb(116, 123, 255);
    cursor: pointer;
    transition: opacity 0.2s, text-decoration 0.2s;
}

#section-content.read-phase .read-nav-btn:hover:not(:disabled),
#section-content.trans-phase .trans-nav-btn:hover:not(:disabled) {
    text-decoration: underline;
    opacity: 0.92;
}

#section-content.read-phase .read-nav-btn:disabled,
#section-content.trans-phase .trans-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    color: rgba(116, 123, 255, 0.45);
}

/* 翻译最后一题：右上角「完成测试」实心主色 */
#section-content.trans-phase .trans-nav-btn.trans-nav-finish {
    background: rgb(116, 123, 255);
    color: #fff;
    text-decoration: none;
}

#section-content.trans-phase .trans-nav-btn.trans-nav-finish:hover:not(:disabled) {
    background: rgb(96, 103, 230);
    color: #fff;
    text-decoration: none;
    opacity: 1;
    filter: brightness(1.02);
}

#section-content.trans-phase .trans-nav-btn.trans-nav-finish:disabled {
    background: rgba(116, 123, 255, 0.45);
    color: rgba(255, 255, 255, 0.85);
}

/* 阅读 / 翻译：题干卡片 + 答题区 */
#section-content.read-phase .read-q-item,
#section-content.trans-phase .trans-q-item {
    border: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

#section-content.read-phase .read-q-item .q-label,
#section-content.trans-phase .trans-q-item .q-label {
    flex-shrink: 0;
    margin-bottom: 0;
}

#section-content.read-phase .passage-block,
#section-content.trans-phase .passage-block {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'San Francisco',
        'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 300%;
    line-height: 1.55;
    color: rgb(116, 123, 255);
    text-align: center;
    transform: translateY(10%);
    font-feature-settings: 'kern' 1;
    -webkit-overflow-scrolling: touch;
}

#section-content.read-phase .read-answer-wrap,
#section-content.trans-phase .trans-answer-wrap {
    position: relative;
    flex: 0 1 38%;
    min-height: 120px;
    max-height: 42vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#section-content.read-phase .read-phase-textarea,
#section-content.trans-phase .trans-phase-textarea {
    flex: 1;
    width: 100%;
    min-height: 100px;
    max-height: 42vh;
    resize: none;
    overflow-y: auto;
    margin-bottom: 0;
    padding: 14px 14px 48px 14px;
    box-sizing: border-box;
    font-size: 200%;
    line-height: 1.55;
    color: #334155;
}

#section-content.read-phase .read-phase-textarea::placeholder,
#section-content.trans-phase .trans-phase-textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

#section-content.read-phase .read-inline-submit,
#section-content.trans-phase .trans-inline-submit {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    padding: 8px 18px;
    border-radius: 10px;
}

.hint-area {
    margin-top: 12px;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-top: 1px dashed var(--border-color);
    border-radius: 0;
}

.hint-label { font-size: 0.95rem; font-weight: 400; color: var(--accent); margin-bottom: 10px; }
.hint-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.hint-kw {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-main);
    box-shadow: none;
}

.hint-kw .kw-pos {
    opacity: 0.85;
    margin-left: 6px;
    font-size: 11px;
    background: rgba(116, 123, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    border: none;
}

.hint-patterns { display: flex; flex-direction: column; gap: 8px; }

.hint-pat {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-main);
}

/* 结果：扁平 */
.result-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.big-level {
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--icon-mono);
    text-shadow: none;
    margin-bottom: 8px;
}

.level-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    background: transparent;
    display: inline-block;
    padding: 0;
    border: none;
    border-radius: 0;
}

.exam-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

@media (max-width: 500px) {
    .exam-grid { grid-template-columns: 1fr; }
}

.exam-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 16px 4px;
    text-align: center;
    box-shadow: none;
    transition: none;
}

.exam-card:hover {
    transform: none;
    box-shadow: none;
}

.exam-card .exam-name {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 6px;
    border-bottom: none;
    padding-bottom: 4px;
}

.exam-card .exam-score {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--icon-mono) !important;
    text-shadow: none;
}

.detail-section {
    margin-top: 28px;
    padding: 20px 0 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
}

.detail-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-main);
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
    font-weight: 400;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-main);
}

.analysis-text {
    line-height: 1.75;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* 评分中面板 */
.scoring-panel {
    text-align: center;
    padding: 48px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.scoring-panel .loading-spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
    margin: 0 auto 16px;
}

.scoring-panel h2 {
    color: var(--text-main);
    font-size: 1.35rem;
    font-weight: 400;
}

.scoring-panel h2::after {
    display: none;
}

.scoring-panel .scoring-status {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1rem;
    margin-top: 10px;
}

.hist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.hist-box {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    color: var(--text-main);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hard);
    animation: popIn 0.25s ease;
}

.hist-item {
    background: var(--card-bg);
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    position: relative;
}

.hist-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 10px 0 0 10px;
}

.hist-item .hist-time {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 4px;
}

.hist-item .hist-level {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--accent);
    text-shadow: none;
    margin-bottom: 4px;
}

.hist-item .hist-detail {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.5;
}

.loading-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(116, 123, 255, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 结果页底部按钮区 */
.result-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.analysis-loading {
    text-align: center;
    padding: 28px;
}

.analysis-loading p {
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 10px;
}

/* 顶部四个题型标签已移除（改由底部模块栏 + 管理员跳转） */
#phase-tabs {
    display: none !important;
}

/* ========== 底部模块栏（综合测试：时间 + 词汇/听力/阅读/翻译） ========== */
.test-phase-workspace.module-footer-mode .test-phase-timer-slot,
.test-phase-workspace.module-footer-mode .comp-answer-meta {
    display: none !important;
}

.comp-module-footer {
    width: var(--comp-phase-content-width);
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

.comp-bottom-bar {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.comp-bottom-bar .comp-bottom-stats {
    flex: 1;
    min-width: 0;
}

/* 四模块：不展示进度数字，仅以色块区分；时间列仍显示数值 */
.comp-bottom-stat--module .comp-bottom-stat-val {
    display: none !important;
}

.comp-bottom-stat--module {
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    border: none;
    transition: background 0.2s, color 0.2s;
}

.comp-bottom-stat--module .comp-bottom-stat-label {
    margin-top: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

.comp-bottom-stat--module.is-current {
    background: rgb(116, 123, 255);
    box-shadow: 0 2px 8px rgba(116, 123, 255, 0.35);
}

.comp-bottom-stat--module.is-current .comp-bottom-stat-label {
    color: #fff;
    font-weight: 600;
}

.comp-bottom-stat--module.comp-bottom-stat--admin:hover:not(.is-current) {
    background: rgba(116, 123, 255, 0.12);
}

.comp-bottom-stat--module.comp-bottom-stat--admin {
    cursor: pointer;
}

.comp-bottom-stat--module.comp-bottom-stat--admin:hover .comp-bottom-stat-label {
    text-decoration: none;
}

.comp-bottom-stat--module.comp-bottom-stat--admin.is-current:hover .comp-bottom-stat-label {
    color: #fff;
}

.phase-section-title--progress {
    border-bottom: none;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 600;
    color: var(--text-main);
}

.vocab-footer-progress {
    margin-bottom: 10px;
}

.vocab-footer-progress .progress-bar-fill {
    background: linear-gradient(90deg, rgba(180, 160, 255, 0.95), rgb(116, 123, 255));
}

.comp-bottom-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 10px;
    box-shadow: var(--shadow-sm);
}

.comp-bottom-stat {
    text-align: center;
    min-width: 0;
}

.comp-bottom-stat-val {
    display: block;
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
    line-height: 1.2;
}

.comp-bottom-stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 520px) {
    .comp-bottom-stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
    }

    .comp-bottom-bar {
        flex-wrap: wrap;
    }

    .comp-bottom-bar .comp-footer-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 2px;
    }
}

.vocab-carousel-wrap {
    animation: vocabCarouselIn 0.32s ease;
}

/* 词汇主区（进度+单词+选项）整体下移约 10% 视口高度 */

@keyframes vocabCarouselIn {
    from {
        opacity: 0.88;
        transform: translateX(6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vocab-carousel-row {
    display: grid;
    grid-template-columns: minmax(64px, 0.95fr) minmax(200px, 1.5fr) minmax(64px, 0.95fr);
    align-items: start;
    gap: clamp(8px, 2vw, 20px);
    flex: 1;
    min-height: 0;
}

.vocab-carousel-side {
    opacity: 0.42;
    font-size: clamp(0.72rem, 1.45vw, 0.9rem);
    color: var(--text-main);
    line-height: 1.35;
    padding-top: 0.35rem;
}

.vocab-carousel-prev {
    text-align: left;
    position: relative;
    padding-left: 4px;
}

.vocab-carousel-prev-hit {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.vocab-carousel-prev-hit .vocab-carousel-preview-word {
    display: block;
}

.vocab-carousel-prev-hit:hover,
.vocab-carousel-prev-hit:focus-visible {
    opacity: 0.88;
    outline: none;
}

.vocab-carousel-prev-hit:focus-visible {
    box-shadow: 0 0 0 2px rgba(116, 123, 255, 0.45);
    border-radius: 8px;
}

.vocab-carousel-next {
    text-align: right;
    position: relative;
    padding-right: 4px;
    pointer-events: none;
    user-select: none;
}

.vocab-carousel-arrow {
    display: block;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.vocab-carousel-arrow--right {
    margin-top: 6px;
    margin-bottom: 0;
}

.vocab-carousel-preview-word {
    font-weight: 500;
    word-break: break-word;
}

/* 左右预览词：相对侧栏字号一致（150%） */
#section-content.vocab-phase .vocab-carousel-prev .vocab-carousel-preview-word,
#section-content.vocab-phase .vocab-carousel-next .vocab-carousel-preview-word {
    font-size: 1.5em;
    line-height: 1.25;
}

.vocab-carousel-preview-def {
    color: var(--text-muted);
    font-size: 0.82em;
    margin-top: 4px;
}

.vocab-carousel-preview-meta {
    color: var(--text-muted);
    font-size: 0.82em;
    margin-top: 4px;
}

.vocab-carousel-preview-muted {
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0.5;
}

.vocab-carousel-placeholder {
    min-height: 1.5em;
}

.vocab-carousel-center {
    text-align: center;
    min-width: 0;
}

.vocab-word-block {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.2);
}

#section-content.vocab-phase .vocab-word-block .vocab-carousel-word-line {
    margin-bottom: 0;
}

.vocab-carousel-word-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.vocab-word-main {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'San Francisco',
        'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(1.65rem, 4.2vw, 2.35rem);
    font-weight: 500;
    color: #334155;
    letter-spacing: 0.14em;
    font-feature-settings: 'kern' 1;
}

/* 当前词汇：较默认放大 30%，主题 RGB 色 */
#section-content.vocab-phase .vocab-word-main {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
        'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(2.145rem, 5.46vw, 3.055rem);
    color: rgb(116, 123, 255);
    font-weight: 600;
}

/* 词汇卡：与综合测试统一的字体栈（中文优先） */
#section-content.vocab-phase .vocab-carousel-wrap,
#section-content.vocab-phase .vocab-carousel-options {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
        'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#section-content.vocab-phase .vocab-carousel-options.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

#section-content.vocab-phase .vocab-carousel-options .option-btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: clamp(0.82rem, 1.55vw, 1rem);
    border: none;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    color: #4a4a4a;
}

#section-content.vocab-phase .vocab-carousel-options .option-btn:hover:not(.selected) {
    color: #334155;
}

/* 普通释义选中：淡紫底 + 主题色字（与综合测试效果图一致） */
#section-content.vocab-phase .vocab-carousel-options .option-btn.selected:not(.unknown-option) {
    background: #f0f2ff;
    color: rgb(116, 123, 255);
    font-weight: 600;
}

/* 「不认识」：浅中性灰底 */
#section-content.vocab-phase .vocab-carousel-options .option-btn.unknown-option {
    background: #f5f7f9;
    border: none;
    color: #7e868e;
    font-style: normal;
}

#section-content.vocab-phase .vocab-carousel-options .option-btn.unknown-option:hover:not(.selected) {
    background: #eef1f4;
    color: #64748b;
}

#section-content.vocab-phase .vocab-carousel-options .option-btn.unknown-option.selected {
    background: rgba(116, 123, 255, 0.12);
    color: rgb(116, 123, 255);
    font-weight: 600;
}

/* 词汇轮播：单屏展示；收紧内边距与顶距（原 10vh 易触发滚动） */
#section-content.vocab-phase .phase-narrow-wrap.vocab-carousel-wrap {
    flex: 1;
    min-height: 0;
    justify-content: flex-start;
    padding: clamp(0px, 2vh, 16px) clamp(12px, 2vw, 18px) clamp(6px, 1.2vh, 12px);
}

#section-content.vocab-phase .vocab-carousel-row {
    margin-top: 2px;
}

/* 词汇区：压缩主词与分隔线留白 */
#section-content.vocab-phase .vocab-word-block {
    padding-bottom: 8px;
    margin-bottom: 8px;
}

/* 标题区进度条：略收紧，与卡片总高匹配 */
.test-phase-workspace .test-phase-top .progress-bar-bg {
    margin-bottom: 12px;
}

.test-phase-workspace .test-phase-top .section-indicator {
    margin-bottom: 6px;
}

/* 管理员：听力题卡右下角（级别 + 正确答案文案） */
.listen-q-item.listen-card-wrap {
    position: relative;
}

.listen-admin-peek {
    position: absolute;
    bottom: 10px;
    right: 10px;
    max-width: 58%;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    background: rgba(255, 243, 224, 0.96);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hard);
    text-align: right;
    z-index: 2;
}

.listen-admin-peek .peek-row {
    display: block;
}
