/* =====================================================
 * 贝拉英语真题库
 * 清爽白底主题：白色背景 + 青/紫品牌渐变 + 柔和阴影
 * ===================================================== */
:root {
    --bg: #f6f8fb;
    --bg-2: #eef2f7;
    --panel: #ffffff;
    --panel-strong: #f1f5f9;
    --border: #dfe6ef;
    --text: #1e293b;
    --muted: #64748b;
    --cyan: #0891b2;
    --violet: #6366f1;
    --pink: #c026d3;
    --grad: linear-gradient(135deg, #06b6d4 0%, #6366f1 55%, #c026d3 100%);
    --glow: 0 0 24px rgba(8, 145, 178, 0.2);
    --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background:
        radial-gradient(900px 480px at 12% -8%, rgba(8, 145, 178, 0.14), transparent 60%),
        radial-gradient(1000px 520px at 88% -12%, rgba(99, 102, 241, 0.16), transparent 62%),
        radial-gradient(760px 420px at 50% 118%, rgba(192, 38, 211, 0.1), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    /*color: var(--text);*/
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- 文字选中高亮（品牌青） ---------- */
::selection { background: rgba(8, 145, 178, 0.22); color: #0c4a6e; }
::-moz-selection { background: rgba(8, 145, 178, 0.22); color: #0c4a6e; }

.container { width: min(1180px, 92%); margin: 0 auto; }

.site-main { flex: 1; }

/* ---------- 顶部提示条 ---------- */
.notice-bar {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.08), rgba(99, 102, 241, 0.1), rgba(192, 38, 211, 0.08));
    border-bottom: 1px solid rgba(100, 116, 139, 0.08);
}

.notice-cta {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* ---------- 头部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 80px;
}

.logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo img {
    display: block;
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 4px;
    margin-right: auto;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { color: var(--text); background: var(--panel-strong); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.login-link { white-space: nowrap; }

.nav-toggle {
    display: none;
    background: var(--panel-strong);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 18px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad);
    color: #ffffff;
    box-shadow: var(--glow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(99, 102, 241, 0.45); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-light {
    background: #e6edf7;
    color: #05070f;
}

.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(230, 237, 247, 0.22); }

.btn-sm { padding: 8px 18px; font-size: 14px; }

.btn-lg { padding: 14px 36px; font-size: 16px; }

.btn-block { width: 100%; }

/* ---------- 首页 Hero ---------- */
.hero {
    padding: 110px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 116, 139, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 70% 62% at 50% 34%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 34%, #000 30%, transparent 75%);
    pointer-events: none;
}

.hero-inner { position: relative; }

.hero-badge {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--cyan);
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 26px;
}

.hero-title {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.15;
    background: linear-gradient(120deg, #0e7490 0%, #4f46e5 45%, #a21caf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(99, 102, 241, 0.25);
}

.hero-sub {
    margin-top: 18px;
    font-size: clamp(16px, 2.4vw, 21px);
    color: var(--muted);
    letter-spacing: 6px;
}

.hero-actions { margin-top: 42px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

.hero-stats {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 10px;
    backdrop-filter: blur(8px);
}

.stat b {
    display: block;
    font-size: 32px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 86px 0; }

.section-alt {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05) 40%, transparent);
}

.section-title, .page-title { text-align: center; }

.section-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-desc {
    text-align: center;
    color: var(--muted);
    margin-top: 10px;
    letter-spacing: 4px;
    font-size: 14px;
}

/* ---------- 首页：四大核心能力 ---------- */
.feature-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.feature-card {
    position: relative;
    padding: 34px 30px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(8, 145, 178, 0.4);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.6);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon { font-size: 34px; margin-bottom: 14px; }

.feature-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.feature-card p { color: var(--muted); font-size: 15px; text-align: justify; }

/* ---------- 首页：四科入口 ---------- */
.subject-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.subject-card {
    display: block;
    padding: 30px 24px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.subject-card:hover { transform: translateY(-6px); border-color: rgba(192, 38, 211, 0.45); }

.subject-icon { font-size: 34px; }

.subject-card h3 { font-size: 19px; margin: 14px 0 10px; }

.subject-card p { color: var(--muted); font-size: 13.5px; min-height: 66px; }

.subject-more {
    display: inline-block;
    margin-top: 8px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- CTA 横幅 ---------- */
.cta-band {
    padding: 90px 0;
    text-align: center;
    background:
        radial-gradient(600px 300px at 50% 50%, rgba(99, 102, 241, 0.16), transparent 70%),
        linear-gradient(180deg, transparent, rgba(8, 145, 178, 0.04), transparent);
}

.cta-band h2 {
    font-size: clamp(28px, 4vw, 40px);
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-band p { color: var(--muted); margin: 16px 0 34px; }

/* ---------- 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    padding: 44px 0 34px;
    margin-top: auto;
}

.footer-brand { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 30px; width: auto; }

.footer-brand span { color: var(--muted); font-weight: 400; font-size: 13.5px; margin-left: 12px; }

.footer-copy { color: var(--muted); font-size: 13.5px; margin-top: 14px; }

.footer-disclaimer {
    margin-top: 18px;
    color: rgba(71, 85, 105, 0.75);
    font-size: 12px;
    line-height: 1.8;
    text-align: justify;
}

/* ---------- 内页 Hero ---------- */
.page-hero {
    padding: 72px 0 50px;
    text-align: center;
    background:
        radial-gradient(700px 320px at 50% -20%, rgba(8, 145, 178, 0.12), transparent 65%);
    border-bottom: 1px solid rgba(100, 116, 139, 0.08);
}

.page-hero-sm { padding: 56px 0 42px; }

.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.crumb span { color: var(--cyan); }

.page-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: 1px;
}

.subject-icon-lg { font-size: 0.85em; margin-right: 6px; }

.page-desc {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 15px;
}

.page-tags { margin-top: 22px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.pill {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.pill-sm { padding: 3px 12px; font-size: 12px; }

.paper-info { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 科目页：真题列表 ---------- */
.list-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

.block-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid;
    border-image: var(--grad) 1;
}

.block-title small { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 10px; }

.block-title em { color: var(--muted); font-size: 13px; font-style: normal; font-weight: 400; margin-left: 10px; }

.paper-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 26px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.paper-card:hover { border-color: rgba(8, 145, 178, 0.4); transform: translateX(4px); }

.paper-main { flex: 1; min-width: 0; }

.paper-card h3 a { font-size: 18px; }

.paper-card h3 a:hover { color: var(--cyan); }

.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13.5px;
}

.freq {
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}

.freq-high { color: #be123c; background: rgba(244, 63, 94, 0.14); border: 1px solid rgba(244, 63, 94, 0.35); }

.freq-medium { color: #b45309; background: rgba(180, 83, 9, 0.12); border: 1px solid rgba(180, 83, 9, 0.32); }

.freq-low { color: #64748b; background: rgba(100, 116, 139, 0.12); border: 1px solid rgba(100, 116, 139, 0.3); }

.freq-inline { font-weight: 700; }

/* ---------- 科目页：侧栏 ---------- */
.side-panel {
    position: sticky;
    top: 92px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
}

.side-panel h3 { font-size: 17px; margin-bottom: 16px; }

.mode-list { list-style: none; }

.mode-list li { margin-bottom: 16px; }

.mode-list b {
    display: block;
    color: var(--cyan);
    font-size: 14.5px;
    margin-bottom: 4px;
}

.mode-list span { color: var(--muted); font-size: 13px; display: block; }

/* ---------- 试卷详情 ---------- */
.paper-section { margin-bottom: 44px; }

.question {
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

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

.q-no { font-weight: 800; color: var(--cyan); font-size: 16px; }

.q-type {
    font-size: 12px;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 2px 12px;
    border-radius: 999px;
}

.q-stem { font-size: 16px; font-weight: 600; margin-bottom: 14px; }

.options { list-style: none; display: grid; gap: 10px; }

.options li {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(100, 116, 139, 0.04);
    font-size: 15px;
}

.options li b { color: var(--cyan); margin-right: 8px; }

.options li.is-answer {
    border-color: rgba(5, 150, 105, 0.55);
    background: rgba(5, 150, 105, 0.08);
}

.ans-mark { color: #059669; font-weight: 700; font-size: 13px; margin-left: 10px; }

.analysis {
    margin-top: 18px;
    padding: 20px 22px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(8, 145, 178, 0.25);
    border-left: 4px solid #0891b2;
}

.analysis-title { font-weight: 800; color: var(--cyan); margin-bottom: 12px; }

.analysis p { color: #475569; font-size: 14px; margin-bottom: 10px; }

.analysis b { color: var(--text); }

.key-sentence {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(8, 145, 178, 0.06);
    color: #000000;
    font-size: 14px;
    margin-bottom: 12px;
    font-style: italic;
}

.grammar { color: #64748b; font-style: normal; margin-top: 8px; }

.syn-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }

.syn-table th, .syn-table td {
    padding: 8px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(100, 116, 139, 0.14);
}

.syn-table th { color: var(--cyan); font-weight: 700; }

.syn-table td { color: #475569; }

.paper-tip {
    margin-top: 30px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(192, 38, 211, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #4f46e5;
    font-size: 14px;
}

.paper-tip a { color: var(--pink); font-weight: 700; margin-left: 6px; }

/* ---------- 词汇页 ---------- */
.vocab-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.vocab-search {
    flex: 1;
    min-width: 240px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    outline: none;
}

.vocab-search:focus { border-color: var(--cyan); }

.vocab-count { color: var(--muted); font-size: 13.5px; }

.word-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.word-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.word-card:hover { transform: translateY(-4px); border-color: rgba(8, 145, 178, 0.4); }

.word-card.status-learning { border-color: rgba(180, 83, 9, 0.45); }

.word-card.status-mastered { border-color: rgba(5, 150, 105, 0.5); }

.word-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.word-top h3 {
    font-size: 20px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.phonetic { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.meaning { margin-top: 10px; font-size: 14.5px; }

.meaning b { color: var(--cyan); margin-right: 6px; }

.example { margin-top: 12px; color: #0e7490; font-size: 13.5px; font-style: italic; }

.example-cn { color: var(--muted); font-size: 13px; margin-top: 4px; }

.word-actions { margin-top: 16px; }

.status-btn {
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.status-btn[data-status="learning"] { color: #b45309; border-color: rgba(180, 83, 9, 0.5); }

.status-btn[data-status="mastered"] { color: #059669; border-color: rgba(5, 150, 105, 0.5); }

/* ---------- 模考页 ---------- */
.mock-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px 30px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.mock-card:hover { border-color: rgba(192, 38, 211, 0.4); transform: translateX(4px); }

.mock-main { flex: 1; }

.mock-card h3 { font-size: 19px; }

.mock-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13.5px;
}

/* ---------- 课程页 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.course-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.course-card:hover { transform: translateY(-5px); border-color: rgba(8, 145, 178, 0.4); }

.course-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.pill-type {
    color: #a21caf;
    background: rgba(192, 38, 211, 0.12);
    border-color: rgba(192, 38, 211, 0.35);
}

.price { font-weight: 800; color: #059669; font-size: 19px; }

.price del { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }

.price.free { color: #0891b2; }

.course-card h3 { font-size: 19px; margin-bottom: 12px; }

.course-meta { display: flex; gap: 20px; color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }

.suit { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { display: flex; align-items: center; justify-content: center; padding: 90px 16px; }

.auth-card {
    width: min(460px, 100%);
    padding: 42px 40px;
    border-radius: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
}

.auth-card h1 {
    font-size: 26px;
    text-align: center;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 26px; }

.form-error {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #be123c;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.auth-card label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }

.auth-card input, .auth-card select {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    outline: none;
}

.auth-card input:focus, .auth-card select:focus { border-color: var(--cyan); }

.auth-card select option { background: #ffffff; }

.auth-card .btn { margin-top: 8px; }

.auth-alt { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 20px; }

.auth-alt a { color: var(--cyan); font-weight: 700; }

.auth-tip { text-align: center; color: rgba(71, 85, 105, 0.7); font-size: 12.5px; margin-top: 10px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }

.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
    .feature-grid { grid-template-columns: 1fr; }
    .subject-grid { grid-template-columns: repeat(2, 1fr); }
    .word-grid { grid-template-columns: repeat(2, 1fr); }
    .course-grid { grid-template-columns: 1fr; }
    .list-layout { grid-template-columns: 1fr; }
    .side-panel { position: static; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 12px 4%;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.open { display: flex; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .paper-card, .mock-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .subject-grid, .word-grid { grid-template-columns: 1fr; }
    .hero { padding: 70px 0 60px; }
    .section { padding: 60px 0; }
    .login-link { display: none; }
}

/* ---------- yaquan.site 对齐组件（列表页 / 详情页） ---------- */
.part-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }

.part-tabs .ptab {
    font: inherit; font-size: 13px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.part-tabs .ptab:hover { color: var(--cyan); border-color: rgba(8, 145, 178, 0.45); }

.part-tabs .ptab.active {
    color: #ffffff;
    font-weight: 700;
    background: var(--grad);
    border-color: transparent;
}

/* ============ 真题列表分页条 ============ */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 10px; }

.pg-btn {
    font: inherit; font-size: 13px; font-weight: 600;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    min-width: 38px; height: 36px; padding: 0 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg-btn:hover:not(:disabled):not(.active) { color: var(--cyan); border-color: rgba(8, 145, 178, 0.45); }

.pg-btn.active {
    color: #ffffff;
    background: var(--grad);
    border-color: transparent;
}

.pg-btn:disabled { opacity: 0.45; cursor: default; }

.pg-dots { color: var(--muted); padding: 0 4px; font-size: 14px; }

/* 页码跳转：输入页码 + 跳转按钮（列表分页器右侧） */
.pg-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.pg-jump-input {
    width: 64px; padding: 6px 8px; font: inherit; font-size: 13px;
    color: var(--text); background: var(--panel);
    border: 1px solid var(--border); border-radius: 8px; text-align: center;
}
.pg-jump-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.15); }
.pg-jump-input::-webkit-outer-spin-button,
.pg-jump-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pg-jump-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* 「已做答」状态按钮：用户已交卷过的真题（列表卡片 / 搜索结果） */
.btn-done {
    border-color: rgba(16, 185, 129, 0.45);
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}
.btn-done:hover {
    border-color: #10b981;
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    transform: none;
    box-shadow: none;
}

.pc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }

.part-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #0e7490;
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(8, 145, 178, 0.35);
    border-radius: 999px;
    padding: 2px 12px;
}

.fq-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 12px;
    border: 1px solid;
}

.fq-tag[data-fq="超高频"] { color: #be123c; background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.4); }
.fq-tag[data-fq="高频"]   { color: #c2410c; background: rgba(194, 65, 12, 0.12); border-color: rgba(194, 65, 12, 0.4); }
.fq-tag[data-fq="中频"]   { color: #a16207; background: rgba(161, 98, 7, 0.1);  border-color: rgba(161, 98, 7, 0.35); }
.fq-tag[data-fq="低频"]   { color: #64748b; background: rgba(100, 116, 139, 0.1); border-color: rgba(100, 116, 139, 0.3); }

/* 搜索栏考频筛选（全部 / 超高频 / 高频 / 中频） */
.fq-filter {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 12px 0 2px;
}
.fqf-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.fqf-btn {
    font: inherit; font-size: 13px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.fqf-btn:hover { color: var(--cyan); border-color: rgba(8, 145, 178, 0.45); }
.fqf-btn.active {
    color: #ffffff;
    font-weight: 700;
    background: var(--grad);
    border-color: transparent;
}
.fq-tag[data-fq="保留题"] { color: #6d28d9; background: rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.4); }

.qt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.qt-chip {
    font-size: 12px;
    color: var(--muted);
    background: var(--panel-strong);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 3px 10px;
}

.qt-chip b { color: #4f46e5; margin-right: 6px; }

.confirm-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

.confirm-row b { color: #0e7490; }

.confirm-avatars { display: inline-flex; }

.confirm-avatars .cav {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--grad);
    border: 2px solid var(--bg);
    margin-left: -6px;
}

.confirm-avatars .cav:first-child { margin-left: 0; }

.audio-card {
    padding: 22px 26px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.audio-card audio { width: 100%; margin-top: 10px; }

.transcript {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    margin-bottom: 18px;
    overflow: hidden;
}

.transcript > summary {
    cursor: pointer;
    padding: 16px 24px;
    font-weight: 700;
    color: #4f46e5;
    list-style: none;
}

.transcript[open] > summary { border-bottom: 1px dashed var(--border); }

.transcript > summary::-webkit-details-marker { display: none; }

.article-body { padding: 10px 26px 20px; max-height: 420px; overflow-y: auto; }

.article-body p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    margin: 2px 0;
}

.req-bar {
    font-size: 13px;
    color: #c2410c;
    background: rgba(194, 65, 12, 0.08);
    border: 1px solid rgba(194, 65, 12, 0.3);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 14px;
}

.req-bar b { color: #c2410c; }

.ans-fold { margin-top: 14px; }

.ans-fold > summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    list-style: none;
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(8, 145, 178, 0.35);
    border-radius: 999px;
}

.ans-fold > summary::-webkit-details-marker { display: none; }

.ans-fold .analysis { margin-top: 14px; }

.ans-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.ans-text {
    font-size: 18px;
    font-weight: 800;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.35);
    border-radius: 8px;
    padding: 2px 14px;
}

.q-stem b { color: var(--cyan); }
.fq-tag[data-fq="新题"] { color: #15803d; background: rgba(21, 128, 61, 0.1); border-color: rgba(21, 128, 61, 0.35); }

/* =====================================================
 * 搜题 + 复制题目链接（对齐 yaquan.site/listening-select）
 * ===================================================== */
.search-bar { display: flex; gap: 10px; margin: 4px 0 14px; }

.sb-input-wrap { flex: 1; position: relative; }

.sb-input-wrap svg {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}

.sb-input {
    width: 100%; padding: 10px 14px 10px 38px;
    border-radius: 12px; font-size: 14px; font-family: var(--font);
    background: var(--panel-strong); border: 1px solid var(--border);
    color: var(--text); outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sb-input::placeholder { color: var(--muted); }

.sb-input:focus {
    border-color: rgba(8, 145, 178, 0.5);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.sb-btn { padding: 10px 26px; font-size: 14px; flex-shrink: 0; }
.sb-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.sb-hint {
    font-size: 12.5px; color: var(--muted);
    background: var(--panel); border: 1px dashed var(--border);
    border-radius: 10px; padding: 7px 14px; margin: 0 0 14px;
}

.sr-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding-bottom: 14px; margin: 6px 0 18px;
    border-bottom: 2px solid var(--border);
}

.sr-head-l { display: flex; align-items: center; gap: 12px; }

.sr-title { font-size: 20px; font-weight: 700; color: var(--text); }

.sr-count {
    padding: 3px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #6366f1);
}

.sr-back {
    padding: 8px 18px; border-radius: 10px; cursor: pointer;
    font-size: 13.5px; font-weight: 700; font-family: var(--font);
    color: var(--text); background: var(--panel-strong);
    border: 1px solid var(--border); transition: all 0.25s ease;
}

.sr-back:hover { border-color: rgba(8, 145, 178, 0.45); color: var(--cyan); }

.share-btn {
    margin-left: auto; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(8, 145, 178, 0.08); color: var(--cyan);
    cursor: pointer; transition: all 0.2s ease;
}

.share-btn svg { width: 15px; height: 15px; }

.share-btn:hover {
    background: var(--cyan); color: #ffffff;
    transform: scale(1.12); box-shadow: 0 0 16px rgba(8, 145, 178, 0.4);
}

.toast {
    position: fixed; left: 50%; bottom: 40px; z-index: 9999;
    transform: translateX(-50%) translateY(16px);
    padding: 10px 24px; border-radius: 999px;
    font-size: 14px; color: var(--text);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(8, 145, 178, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(8, 145, 178, 0.18);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 考试作答模式（对齐 yaquan.site /listening-test，浅色试卷纸风格） ---------- */
.exam-wrap { padding: 24px 0 70px; }

.exam-topbar {
    position: sticky; top: 66px; z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.exam-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.exam-paper-meta { min-width: 260px; }

.exam-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 8px; }

.exam-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }

.exam-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.exam-timer {
    display: flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: 13px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
}

.exam-timer b { color: var(--cyan); font-size: 15px; }

.exam-audio {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.audio-toggle {
    width: 34px; height: 34px; border: none; border-radius: 50%;
    background: var(--grad); color: #ffffff;
    font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.audio-toggle .ic-pause { display: none; }
.audio-toggle.playing .ic-play { display: none; }
.audio-toggle.playing .ic-pause { display: inline; }

.audio-progress {
    position: relative; width: 180px; height: 4px;
    background: rgba(100, 116, 139, 0.25);
    border-radius: 2px; cursor: pointer;
}

.audio-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--cyan); border-radius: 2px; transition: width 0.15s linear; }

.audio-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.audio-dot { width: 6px; height: 6px; border-radius: 50%; background: #8BA58B; animation: examPulse 1.5s ease-in-out infinite; }

@keyframes examPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.6); }
}

.btn-exam {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 18px; border-radius: 6px;
    font: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer; text-decoration: none; border: none;
}

.btn-exam-primary {  background:#404A7C; color: #fff; }
.btn-exam-primary:hover { background: #7d967e; }
.btn-exam-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-exam-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-exam-ghost:hover { color: var(--text); border-color: rgba(8, 145, 178, 0.45); }

.exam-body { margin-top: 26px; }

/* 题组 = 浅色试卷卡片 */
.qgroup {
    background: #FFFEFB;
    color: #2B2118;
    border: 1px solid #E9DFD2;
    border-radius: 12px;
    padding: 26px 28px;
    margin-bottom: 26px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.qgroup-req { font-size: 14px; line-height: 1.8; margin-bottom: 20px; color: #2B2118; }

/* 题目配图：按需求缩小一半显示（容器宽度的 50%） */
.qgroup-req .req-img { width: 50%; max-width: 100%; height: auto; margin: 12px 0; border: 1px solid #E9DFD2; border-radius: 6px; }

/* 小屏恢复整幅，保证可读 */
@media (max-width: 860px) {
    .qgroup-req .req-img { width: 100%; }
}

/* 地图/流程表格 */
.map-table-wrap { overflow-x: auto; }

.map-table { display: inline-block; min-width: max-content; border: 1px solid #000; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }

.map-row { display: flex; border-bottom: 1px solid #D9CCBB; background: #fff; }
.map-row:last-child { border-bottom: none; }

.map-head { background: #F6F1EA; border-bottom: 1px solid #000; }
.map-head .c-letter { font-weight: 700; }

.c-no { width: 36px; padding: 8px 6px; border-right: 1px solid #000; font-size: 13px; text-align: center; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.c-label { width: 220px; padding: 8px 12px; border-right: 1px solid #000; font-size: 13px; line-height: 1.5; white-space: normal; word-break: break-word; }

.c-letter { width: 50px; padding: 8px 6px; display: flex; align-items: center; justify-content: center; border-right: 1px solid #D9CCBB; font-size: 13px; }
.c-letter:last-child { border-right: none; }
.c-letter input[type="radio"] { width: 14px; height: 14px; cursor: pointer; }

/* 表格答题格：作答选中高亮（JS toggle .sel；恢复草稿 applyAnswers 同样生效）—— 对齐 yaquan 当前题浅蓝灰 */
.map-table .c-letter.sel { background: #EAF0F2; }

/* 交卷后表格自动填充：正确答案格绿、所答错误格红 */
.map-table .c-letter.ans-ok { background: #E1F3EA; box-shadow: inset 0 0 0 2px #1F8A5D; }
.map-table .c-letter.ans-bad { background: #FBE7E7; box-shadow: inset 0 0 0 2px #C2382E; }

/* 行内填空（对齐 yaquan listening-test：题行距 20px、行高 1.6、题号蓝色） */
.fill-list { display: flex; flex-direction: column; gap: 20px; }

.fill-item { font-size: 14px; line-height: 1.6; color: #2B2118; }

/* 题干开头题号：蓝色加粗（yaquan fontWeight:700 color:#2B579A） */
.qnum { font-weight: 700; color: #2B579A; white-space: nowrap; }

/* 题干 Markdown 表格（填空表格题，如听力 Places/Location/Details） */
.md-table {
    border-collapse: collapse;
    margin: 4px 0 10px;
    font-size: 14px;
    line-height: 1.9;
    color: #2B2118;
    background: #fff;
}

.md-table th,
.md-table td {
    border: 1px solid #D9CCBB;
    padding: 8px 14px;
    text-align: left;
    vertical-align: top;
}

.md-table th { background: #F6F1EA; font-weight: 700; white-space: nowrap; }

.md-table td .blank-input,
.md-table .blank-input { width: 132px; }

/* ===== 表格填空 table_fill（对齐 yaquan combined 表格：2px 黑外框、1px 黑内框） ===== */
.tf-wrap { margin-bottom: 0; }
.tf-before { margin-bottom: 16px; font-size: 14px; line-height: 1.8; color: #2B2118; }
.tf-table {
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #2B2118;
    background: #fff;
    border: 2px solid #000;
    max-width: 100%;
}
.tf-table th,
.tf-table td {
    border: 1px solid #000;
    padding: 8px 12px;
    text-align: left;
    white-space: pre-wrap;
    vertical-align: top;
}
.tf-table th { font-weight: 700; background: #fff; }
/* 单元格空位输入框：100×28（yaquan padding:4px 8px width:100 height:28 #97897A r3） */
.tf-table td .blank-input,
.tf-table td .blank-input.tf-input {
    width: 100px; height: 28px;
    padding: 4px 8px; margin: 0 2px;
    border: 1px solid #97897A; border-radius: 3px;
    box-sizing: border-box; vertical-align: middle;
}

.blank-input {
    width: 160px; padding: 2px 8px; margin: 0 4px;
    border: 1px solid #97897A; border-radius: 3px;
    font: inherit; font-size: 14px;
    background: #fff; color: #2B2118;
    outline: none; vertical-align: baseline;
}
.blank-input:focus { border-color: #8BA5B0; box-shadow: 0 0 0 2px rgba(139, 165, 176, 0.2); }

/* 选择题 */
.choice-q { margin-bottom: 26px; }
.choice-q:last-child { margin-bottom: 0; }

.choice-stem { font-size: 14px; line-height: 1.8; margin-bottom: 4px; color: #2B2118; }

/* 题干含 <p> 标签（HTML 直出数据）时取消块级换行/外边距，保持单行排版 */
.choice-stem p { display: inline; margin: 0; }

.choice-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.choice-opt {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; cursor: pointer;
    padding: 6px 12px; border-radius: 4px;
    border: 1px solid #E9DFD2; background: #fff;
    align-self: flex-start; max-width: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-opt:hover { border-color: #C9B895; }

.choice-opt.selected { border: 2px solid hsl(45, 95%, 45%); background: #F6F1EA; padding: 5px 11px; }

.opt-letter {
    width: 22px; height: 22px; border-radius: 50%;
    background: #F6F1EA; border: 1px solid #E9DFD2;
    color: #5A4A3A; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.choice-opt.selected .opt-letter { background: hsl(45, 95%, 45%); border-color: hsl(45, 95%, 45%); color: #fff; }

/* 听力答题页（exam-wrap）选项 —— 像素级对齐 yaquan.site /listening-test：
   无字母徽章 + 原生 radio/checkbox(16px) 前置；
   选项卡片 = inline-flex / gap 8px / padding 6px 12px（选中不补偿，与原站一致）
   / 圆角 4px / 边框 1px #E9DFD2 / 白底 / align-self flex-start；
   选中 = 2px 金黄边框 hsl(45,95%,45%) + 米底 #F6F1EA；
   无 hover 变色、无过渡动画（原站无） */
.exam-wrap .choice-opt .opt-letter { display: none; }

.exam-wrap .choice-opt input {
    position: static; opacity: 1; pointer-events: auto;
    order: -1; width: 16px; height: 16px;
    cursor: pointer; flex-shrink: 0; margin: 0;
}

.exam-wrap .choice-opt {
    padding: 6px 12px;
    border: 1px solid #E9DFD2;
    background: #fff;
    transition: none;
}

/* 原站选项无 hover 变色：覆盖全局 hover 规则 */
.exam-wrap .choice-opt:hover { border-color: #E9DFD2; }

.exam-wrap .choice-opt.selected,
.exam-wrap .choice-opt:has(input:checked) {
    border: 2px solid hsl(45, 95%, 45%);
    background: #F6F1EA;
    padding: 6px 12px;
}

/* 选项文字：14px 深棕（对齐原站继承色） */
.exam-wrap .choice-opt .opt-text { color: #2B2118; }

/* =====================================================
 * 配对题（matching，如 25-30 题）—— 像素级对齐 yaquan.site /listening-test：
 * 左侧题目行 = 勾选徽章(20×24 灰蓝) + 题干 + 虚线空框(2px dashed)；
 * 右侧选项备选区 = 米底容器(#F6F1EA/圆角6/边框#E9DFD2) + 白色选项卡
 * ===================================================== */
.match-wrap { display: flex; gap: 4px; align-items: flex-start; }
.match-rows { flex: 0 1 auto; min-width: 0; }

.match-row {
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
}

/* 当前题勾选徽章：20×24 灰蓝圆角 + 白勾；未选中为同尺寸空白占位（对齐原站） */
.match-flag {
    width: 20px; height: 24px; flex-shrink: 0;
    display: none;
    align-items: center; justify-content: center;
    background: #8BA5B0; border: 1px solid #8BA5B0; border-radius: 4px;
}
.match-row.current .match-flag { display: flex; }

.match-line {
    flex: 1; display: flex; align-items: center; gap: 8px;
    font-size: 14px; line-height: 1.6; color: #2B2118;
}
.match-line p { display: inline; margin: 0; }

/* 拖拽空框：未填灰虚线 + 题号；当前题或有值变 #8BA5B0，有值米蓝底 */
.match-blank {
    display: inline-block; min-width: 60px; min-height: 28px;
    padding: 4px 12px;
    border: 2px dashed #97897A; border-radius: 4px;
    background: #fff; text-align: center;
    font-size: 13px; font-weight: 700; color: #97897A;
    cursor: pointer; transition: all 0.2s ease; flex-shrink: 0;
}
.match-row.current .match-blank,
.match-blank.filled { border-color: #8BA5B0; }
.match-blank.filled { background: #EAF0F2; color: #8BA5B0; }
.match-blank.over { border-color: #8BA5B0; background: #EAF0F2; }

/* 右侧选项备选区：米底圆角容器，纵向排列白色选项卡（可拖拽） */
.match-opts {
    display: flex; flex-direction: column; gap: 4px;
    padding: 6px;
    background: #F6F1EA; border: 1px solid #E9DFD2; border-radius: 6px;
}
.match-opt {
    display: inline-flex; align-items: center;
    padding: 6px 12px;
    background: #fff; border: 1px solid #E9DFD2; border-radius: 4px;
    cursor: pointer; transition: all 0.2s ease;
    justify-content: center; text-align: center; align-self: flex-start;
}
.match-opt:hover { background: #F6F1EA; border-color: #8BA5B0; }
.match-opt.dragging { opacity: 0.5; }
.match-opt-text { font-size: 13px; color: #5A4A3A; line-height: 1.4; word-break: break-word; display: block; overflow: visible; }

@media (max-width: 720px) {
    .match-wrap { flex-direction: column; }
    .match-opts { flex-direction: row; flex-wrap: wrap; }
}

/* =====================================================
 * 答题卡：题号悬浮导航 —— 样式对齐 yaquan.site /listening-test
 * 定位用 sticky（非 fixed）：悬浮钉在视口底部跟随滚动，
 * 但被父容器（试卷区）限制边界 → 滚到页脚前自动停在试卷末尾，不遮挡 footer
 * 未作答：透明底 + #5A4A3A 字，hover 米底 #F6F1EA
 * 已作答：#97897A 灰底白字 + 右上角 8px 绿点(#8BA58B 白描边)
 * 当前题：2px #8BA5B0 边框（与已作答叠加时边框蓝灰、字色回 #5A4A3A，对齐原站）
 * ===================================================== */
.qcard {
    position: sticky; bottom: 16px; z-index: 1000;
    display: flex; gap: 6px; align-items: center;
    flex-wrap: wrap;
    width: -webkit-fit-content; /* Safari 兼容 */
    width: fit-content;
    max-width: calc(100vw - 64px);
    /* 左缘与试卷内容 container（min(1180px,92%) 水平居中）对齐 */
    margin: 0 0 16px max(32px, calc((100vw - 1180px) / 2));
}
.qcard-btn {
    width: 32px; height: 32px; min-width: 32px; min-height: 32px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: 2px solid transparent; border-radius: 4px;
    background: transparent; color: #5A4A3A;
    font-size: 14px; font-weight: normal; font-family: inherit; line-height: 1;
    cursor: pointer; transition: all 0.2s; position: relative;
}
.qcard-btn:hover { background: #F6F1EA; }
.qcard-btn.answered { background: #97897A; border-color: #97897A; color: #fff; }
.qcard-btn.answered:hover { background: #97897A; }
.qcard-btn.answered::after {
    content: ''; position: absolute; top: -4px; right: -4px;
    width: 8px; height: 8px; background: #8BA58B;
    border: 1px solid #fff; border-radius: 50%;
}
.qcard-btn.current { border-color: #8BA5B0; color: #5A4A3A; }

@media (max-width: 720px) {
    .qcard { bottom: 10px; margin: 0 0 10px 10px; max-width: calc(100vw - 20px); }
    .qcard-btn { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 12px; }
}

/* ---------- 划词标注：标亮 / 备注（听力答题页） ---------- */
.uh-hl {
    background: #FFE98A;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(217, 164, 16, 0.28);
}
/* 高亮可选颜色（.uh-hl 修饰类，默认黄 = 旧标注兼容） */
.uh-hl.uh-y { background: #FFE98A; box-shadow: 0 0 0 1px rgba(217, 164, 16, 0.28); }
.uh-hl.uh-g { background: #A7F3D0; box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.25); }
.uh-hl.uh-b { background: #BFDBFE; box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25); }
.uh-hl.uh-p { background: #FBCFE8; box-shadow: 0 0 0 1px rgba(219, 39, 119, 0.22); }
.uh-hl.uh-o { background: #FED7AA; box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.25); }
/* 高亮色板（点 🖍 Highlight 展开） */
.uh-colors {
    display: none;
    align-items: center;
    gap: 5px;
}
.uh-dot {
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.uh-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}
.uh-dot.uh-y { background: #FFE98A; }
.uh-dot.uh-g { background: #A7F3D0; }
.uh-dot.uh-b { background: #BFDBFE; }
.uh-dot.uh-p { background: #FBCFE8; }
.uh-dot.uh-o { background: #FED7AA; }
.uh-note {
    background: #D7E6FF;
    border-bottom: 2px dashed #5B8DEF;
    border-radius: 2px 2px 0 0;
    cursor: help;
}
.uh-toolbar {
    position: fixed;
    z-index: 1300;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}
.uh-btn {
    border: none;
    background: #F1F5F9;
    color: #334155;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.uh-btn:hover { background: #E2E8F0; }
.uh-btn.uh-primary { background: #404A7C; color: #ffffff; }
.uh-btn.uh-primary:hover { background: #36406B; }
.uh-btn.uh-danger { background: #FEE2E2; color: #B91C1C; }
.uh-btn.uh-danger:hover { background: #FECACA; }
.uh-textarea {
    width: 220px;
    font: inherit;
    font-size: 13px;
    padding: 6px 8px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    resize: vertical;
    outline: none;
}
.uh-textarea:focus { border-color: #404A7C; }
/* note 输入框：该题已保存的手写备注提示（与学习中心「题目备注」关联） */
.uh-note-hint {
    margin-bottom: 6px;
    padding: 6px 8px;
    background: #F1F5F9;
    border-left: 3px solid #404A7C;
    border-radius: 4px;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}
.uh-pop {
    position: fixed;
    z-index: 1300;
    display: none;
    max-width: 280px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}
.uh-pop-note {
    font-size: 13px;
    color: #1E293B;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 阅读答题页（rtest）悬浮/选中态专属配色 */
.rtest .blank-input { border-color: #404A7C; }
.rtest .opt-letter { color: #404A7C; }
.rtest .c-letter input[type="radio"] { accent-color: #404A7C; }

/* 判断题（tfng）选项：对齐表格题 / 听力页的原生圆点 radio 选中图标，不用 A/B/C 字母徽章 */
.rtest .choice-opt-tf .opt-letter { display: none; }
.rtest .choice-opt-tf input {
    position: static; opacity: 1; pointer-events: auto;
    order: -1; width: 16px; height: 16px;
    cursor: pointer; flex-shrink: 0; margin: 0;
    accent-color: #404A7C;
}

/* 阅读页选项的隐藏 radio(absolute) 以选项 label 为包含块：
   否则包含块是 .rtest-main，radio 钉在视口初始位置不随题目滚动，
   聚焦它时浏览器的“聚焦滚动”会连带滚动 window → 页面滚到底部空白 */
.rtest .choice-opt { position: relative; }

.rtest .choice-opt:hover { border-color: #C2382E; }

.rtest .choice-opt.selected,
.rtest .choice-opt:has(input:checked) {
    border: 2px solid #C2382E;
    background: #F29B8B;
    padding: 5px 11px;
}

.rtest .choice-opt.selected .opt-letter,
.rtest .choice-opt:has(input:checked) .opt-letter {
    background: #C2382E;
    border-color: #C2382E;
    color: #fff;
}

.choice-opt input { position: absolute; opacity: 0; pointer-events: none; }

/* 判分结果 */
.exam-result { margin-top: 6px; }

.score-card {
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
    padding: 24px 28px; color: var(--text);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
}

.score-main { display: flex; align-items: baseline; gap: 4px; }
.score-main b { font-size: 46px; font-weight: 800; color: #b45309; }
.score-main span { font-size: 20px; color: var(--muted); }

.score-rate b { font-size: 18px; color: var(--cyan); }
.score-detail { font-size: 13px; color: var(--muted); margin-top: 4px; }

.score-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.result-title { font-size: 18px; font-weight: 800; color: var(--text); margin: 30px 0 14px; }

.review-list { display: grid; gap: 14px; }

/* ---------- 交卷结果：左原文 / 右结果 两栏对照 ---------- */
.result-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 18px;
}
.result-cols.no-article { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.result-paper {
    position: sticky;
    top: 148px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px 22px;
    max-height: calc(100vh - 172px);
    overflow-y: auto;
}
.rp-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.result-paper .article-body { font-size: 14px; line-height: 2; color: #5A4A3A; }
.result-right {
    min-width: 0;
    position: sticky;
    top: 148px;
    max-height: calc(100vh - 172px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
}
.result-right .result-title { margin-top: 22px; }
.result-right .review-item {
    scroll-margin-top: 150px;
}
.result-paper::-webkit-scrollbar, .result-right::-webkit-scrollbar { width: 4px; }
.result-paper::-webkit-scrollbar-thumb, .result-right::-webkit-scrollbar-thumb { background: #D9CBB8; border-radius: 2px; }
.result-paper::-webkit-scrollbar-track, .result-right::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 980px) {
    .result-cols { grid-template-columns: 1fr; }
    .result-paper { position: static; max-height: none; }
    .result-right { position: static; max-height: none; overflow-y: visible; padding-right: 0; }
}

/* 作答回顾 —— 对齐 yaquan.site /listening-result 答案卡样式（米色棕系 + 左侧对错色条） */
.review-item {
    color: var(--text);
    border: 1px solid #E9DFD2; border-left: 5px solid #8BA5B0;
    border-radius: 8px; padding: 15px;
    background: #F6F1EA;
    transition: all 0.2s ease;
}

.review-item.ok    { border-left-color: #8BA58B; background: #EDF2EC; }
.review-item.bad   { border-left-color: #414e79; background: #F5E8E4; }
.review-item.blank { border-left-color: #8BA5B0; background: #F6F1EA; }

.rv-row { display: flex; align-items: flex-start; gap: 15px; }

.rv-side { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }

.rv-no {
    width: 40px; height: 40px; border-radius: 50%;
    background: #7C5C43; color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}

.rv-main { flex: 1; min-width: 0; }

.rv-text { font-size: 14px; line-height: 1.8; color: #5A4A3A; white-space: pre-wrap; word-break: break-word; }

/* 结果页题干表格 / 下划线空位（对齐 yaquan listening-result：2px #5A4A3A 外框、表头 #F6F1EA） */
.rv-text .rv-table { border-collapse: collapse; margin: 10px 0; font-size: 14px; line-height: 1.5; border: 2px solid #5A4A3A; background: #fff; max-width: 100%; }
.rv-text .rv-table th,
.rv-text .rv-table td { border: 1px solid #5A4A3A; padding: 8px 12px; text-align: left; white-space: pre-wrap; }
.rv-text .rv-table th { font-weight: 700; background: #F6F1EA; }
.rv-blank { display: inline-block; min-width: 80px; border-bottom: 1px solid #97897A; margin: 0 2px; }

.rv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.rv-mark { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-align: center; }
.rv-mark.ok { color: #5A7A5A; background: rgba(139, 165, 139, 0.28); }
.rv-mark.bad { color: #C47A74; background: rgba(196, 122, 116, 0.18); }
.rv-mark.blank { color: #7A8A90; background: rgba(122, 138, 144, 0.15); }

/* 选择题：仅展示相关选项的胶囊（正确答案=绿框 / 用户错选=红框） */
.rv-opts { margin: 12px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.rv-opt {
    display: flex; width: fit-content; max-width: 100%;
    align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px; font-size: 13px;
    background: #F6F1EA; border: 1px solid #E9DFD2;
}

.rv-opt b { font-weight: 700; min-width: 20px; color: #5A4A3A; }
.rv-opt span { color: #5A4A3A; flex: 1; }
.rv-opt.correct { background: #EDF2EC; border-color: #8BA58B; }
.rv-opt.correct b { color: #5A7A5A; }
.rv-opt.wrong { border-color: #C47A74; }
.rv-opt.wrong b { color: #C47A74; }

/* 填空/简答：答案徽章（你的答案=对绿/错红，正确答案=蓝灰） */
.rv-ans { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.rv-badge { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.rv-badge.b-user { background: #F5E8E4; color: #C47A74; border: 1px solid #F5E8E4; }
.rv-badge.b-user.ok { background: #EDF2EC; color: #5A7A5A; border-color: #B8CCB8; }
.rv-badge.b-correct { background: #EAF0F2; color: #7A8A90; border: 1px solid #D8E8EC; }

/* 兼容旧回顾结构（reading.js 仍在使用） */
.rv-ans p { margin: 2px 0; font-size: 14px; }
.rv-user { color: var(--muted); }
.rv-correct { color: #0891b2; font-weight: 700; }

.review-item .key-sentence { font-size: 13px; line-height: 1.7; border-radius: 8px; padding: 10px 14px; margin: 10px 0; }

.rv-expl {
    margin-top: 12px; padding: 12px 15px;
    background: #F7F0E8; border: 1px solid #E9DFD2; border-left: 4px solid #7C5C43;
    border-radius: 6px;
    font-size: 13px; line-height: 1.8; color: #5A4A3A;
}

/* ===== 听力交卷结果区（result-right）：白底黑字 ===== */
.result-right .review-item,
.result-right .review-item.ok,
.result-right .review-item.bad,
.result-right .review-item.blank { background: #ffffff; color: #000000; }

.result-right .rv-no { background: #ffffff; color: #000000; border: 1px solid #000000; }

.result-right .rv-text,
.result-right .rv-text strong,
.result-right .rv-para { color: #000000; background: transparent; border-color: #999999; }

.result-right .rv-text .rv-table,
.result-right .rv-text .rv-table th,
.result-right .rv-text .rv-table td { border-color: #000000; background: #ffffff; color: #000000; }
.result-right .rv-blank { border-bottom-color: #000000; }

.result-right .rv-mark,
.result-right .rv-mark.ok,
.result-right .rv-mark.bad,
.result-right .rv-mark.blank { background: #ffffff; color: #000000; border: 1px solid #999999; }

.result-right .rv-opt,
.result-right .rv-opt.correct,
.result-right .rv-opt.wrong { background: #ffffff; border-color: #999999; }
.result-right .rv-opt b,
.result-right .rv-opt span { color: #000000; }

.result-right .rv-badge,
.result-right .rv-badge.b-user,
.result-right .rv-badge.b-user.ok,
.result-right .rv-badge.b-correct { background: #ffffff; color: #000000; border: 1px solid #999999; }

.result-right .rv-expl { background: #ffffff; color: #000000; border-color: #999999; border-left-color: #000000; }
.result-right .review-item .key-sentence { background: #ffffff; color: #000000; }
.result-right .syn-table th,
.result-right .syn-table td { color: #000000; }

/* 阅读考试页（rtest 白底试卷纸）：交卷结果恢复黑字白底 */
.rtest .score-card { background: #FFFEFB; border-color: #E9DFD2; color: #2B2118; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.rtest .score-main b { color:hsl(4, 63%, 46%); }
.rtest .score-main span { color: #8B7B66; }
.rtest .score-rate b { color: #2B579A; }
.rtest .score-detail { color: #404A7C; }
.rtest .btn-exam-ghost { color: #404A7C; border-color: #D9CCBB; }
.rtest .btn-exam-ghost:hover { color: #2B2118; border-color: #8B7B66; }
.rtest .result-title { color: #2B2118; }
.rtest .review-item { background: #FFFEFB; color: #2B2118; border-color: #E9DFD2; }
.rtest .review-item.ok { border-left-color: #8BA58B; }
.rtest .review-item.bad { border-left-color: #C47A74; }
.rtest .rv-mark.ok { color: #3f6b40; background: rgba(139, 165, 139, 0.2); }
.rtest .rv-mark.bad { color: #e11d48; background: rgba(225, 29, 72, 0.1); }
.rtest .rv-mark.blank { color: #8B7B66; background: rgba(100, 116, 139, 0.15); }
.rtest .rv-user { color: #404A7C; }
.rtest .rv-correct { color: #2B579A; }
.rtest .review-item .key-sentence { background: #F6F1EA; color: #404A7C; }
.rtest .rv-expl { color: #2B2118; }
.rtest .rv-para { color: #8BA5B0; background: #F6F1EA; border-color: #E9DFD2; }
.rtest .syn-table th { color: #2B579A; }
.rtest .syn-table td { color: #2B2118; }
.rtest .syn-table th, .rtest .syn-table td { border-bottom-color: rgba(90, 74, 58, 0.18); }

/* 恢复练习弹窗 */
.exam-modal {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(15, 23, 42, 0.5);
    display: flex; align-items: center; justify-content: center;
}

.exam-modal-card {
    background: var(--panel-strong, #f1f5f9);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 34px;
    text-align: center;
    max-width: 360px;
}

.exam-modal-card h3 { font-size: 18px; color: var(--text); margin: 0 0 8px; }
.exam-modal-card p { font-size: 14px; color: var(--muted); margin: 0 0 20px; }

.exam-modal-btns { display: flex; gap: 12px; justify-content: center; }

/* 顶栏「学习中心」悬浮下拉（含修改昵称入口） */
.header-dd { position: relative; }
.header-dd-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 172px; padding: 6px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    display: none; z-index: 70;
}
/* 透明过渡带：填补按钮与菜单之间的 8px 空隙，鼠标从按钮移向菜单时 hover 命中不中断 */
.header-dd-menu::before {
    content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.header-dd:hover .header-dd-menu,
.header-dd.open .header-dd-menu { display: block; }
.header-dd-item {
    display: block; width: 100%; text-align: left;
    padding: 9px 12px; border: none; background: none; border-radius: 8px;
    font: inherit; font-size: 14px; color: var(--text);
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.header-dd-item:hover { background: var(--panel-strong); color: var(--cyan); }

@media (max-width: 860px) {
    .exam-topbar { position: static; }
    .exam-topbar-in { flex-direction: column; align-items: stretch; }
    .exam-tools { justify-content: space-between; }
    .audio-progress { width: 110px; }
    .qgroup { padding: 18px 16px; }
    .c-label { width: 150px; }
}

/* ================================================================
   阅读考试模式（对齐 yaquan.site /test：双栏 + 分钟倒计时 + 答题卡）
   ================================================================ */
.rtest { position: relative; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* 顶栏：白底 + 棕色分隔线 + 分钟倒计时 + 交卷 */
.rtest-topbar { background: #FFFFFF; border-bottom: 1px solid #404A7C; position: sticky; top: 0; z-index: 120; flex-shrink: 0; }
.rtest-topbar-in { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; gap: 16px; }
.rtest-logo { font-size: 18px; font-weight: 800; color: #404A7C; text-decoration: none; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; }
.rtest-logo:hover { color: #404A7C; }
.rtest-logo img { display: block; height: 26px; width: auto; }
.rtest-clock { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #404A7C; font-weight: bold; }
.rtest-clock b { font-size: 16px; }
.rtest-actions { display: flex; gap: 12px; align-items: center; }
.btn-rtest { padding: 8px 16px; border: none; border-radius: 4px; font-size: 14px; font-weight: bold; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block; }
.btn-rtest.primary { background: #404A7C; color: #FFFFFF; }
.btn-rtest.primary:hover { background: #404A7C; }
.btn-rtest.primary:disabled { background: #B8A79A; cursor: not-allowed; }
.btn-rtest.ghost { background: transparent; color: #404A7C; border: 1px solid #C1D5E7; }
.btn-rtest.ghost:hover { background: #404A7C; color: #C1D5E7; }

/* 双栏主体：左文章（默认 45%，可拖拽 20–80%）/ 右题目 */
.rtest-main { display: flex; flex: 1; min-height: 0; position: relative; background: #FFFFFF; }
.rtest-left { display: flex; flex-direction: column; width: 45%; min-width: 0; background: #FFFFFF; }
.rtest-passage { flex: 1; min-height: 0; overflow-y: auto; padding: 32px 40px 28px; background: #FFFFFF; }
.rtest-divider { width: 8px; flex-shrink: 0; background: #404A7C; cursor: col-resize; position: relative; transition: background 0.2s; }
.rtest-divider:hover { background: #E3D0BC; }
.rdivider-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2px; height: 36px; border-radius: 2px; background: #404A7C; }
.rtest-right { display: flex; flex-direction: column; flex: 1; min-width: 0; background: #FFFFFF; }
.rtest-questions { flex: 1; min-height: 0; overflow-y: auto; padding: 32px 40px 28px; background: #FFFFFF; }

.rtest-part-head { margin-bottom: 20px; }
.rtest-part { font-size: 18px; font-weight: bold; color: #000; margin-bottom: 6px; }
.rtest-part-sub { font-size: 15px; color: #000; line-height: 1.5; }
.rtest-title { font-size: 16px; font-weight: bold; color: #2B2118; margin-bottom: 24px; line-height: 1.4; }
.rpara { margin-bottom: 16px; }
.rpara-key { display: block; font-size: 13px; font-weight: 600; color: #404A7C; min-width: 20px; margin-bottom: 4px; }
.rpara-text { font-size: 14px; line-height: 1.6; text-align: justify; color: #2B2118; }

/* 题目分组（复用 qgroup-req/choice/map-table 样式，此处只做布局差异） */
.rgroup { margin-bottom: 32px; }
.rgroup .qgroup-req { margin-bottom: 16px; }
.rgroup .map-table-wrap { margin-bottom: 0; }

/* 当前题指示：chevron + 浅蓝底（对齐原站 #8BA5B0 / #EAF0F2） */
.chev { display: none; width: 24px; height: 32px; background: #8BA5B0; border: 1px solid #8BA5B0; border-radius: 4px; align-items: center; justify-content: center; flex-shrink: 0; margin: -2px 8px 2px 0; vertical-align: middle; }
.choice-q.current .chev, .fill-item.current .chev { display: inline-flex; }
.choice-q.current, .fill-item.current {  border-radius: 6px; padding: 6px 8px; margin: 0 -8px; }
.map-row.current { background: #EAF0F2; }
.rgroup .choice-q { margin-bottom: 18px; }

/* 底部答题卡 pills（左栏结构化底条：文章区上方滚动，pills 永远贴在文章栏最底部，不随页面滚动） */
.rtest-pills { position: static; margin: 10px 16px 14px; display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-width: 100%; max-height: 46px; padding: 6px 8px; background: #FAF7F2; border: 1px solid #E9DFD2; border-radius: 10px; scrollbar-width: thin; }
.rtest-pills::-webkit-scrollbar { height: 4px; }
.rtest-pills::-webkit-scrollbar-thumb { background: #D8CCBA; border-radius: 2px; }
.rtest-pills::-webkit-scrollbar-track { background: transparent; }
.rpill { width: 32px; height: 32px; min-width: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: normal; color: #404A7C; background: transparent; border: none; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.rpill:hover { background: #F6F1EA; }
.rpill.done { background: #404A7C; color: #FFFFFF; border: 2px solid #404A7C; }
.rpill.current { border: 2px solid #8BA5B0; }
.rpill.done.current { border-color: #8BA5B0; }

/* 右下角 上一题/下一题（48px，米色/黑色，对齐原站） */
.rtest-nav { position: static; display: flex; gap: 12px; justify-content: flex-end; margin: 10px 24px 16px; }
.rnav-btn { width: 48px; height: 48px; border: none; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.rnav-prev { background: #404A7C; }
.rnav-prev:hover { background: #D9CCBB; }
.rnav-next { background: #000000; }
.rnav-next:hover { background: #404A7C; }

/* 回顾卡：段落定位徽标 */
.rv-para { margin-left: auto; font-size: 12px; color: #64748b; font-weight: 600; background: rgba(100, 116, 139, 0.12); border: 1px solid rgba(100, 116, 139, 0.3); border-radius: 4px; padding: 2px 8px; }

/* 自定义滚动条（对齐原站） */
.custom-scrollbar::-webkit-scrollbar { width: 16px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #fff; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #404A7C; border-radius: 0; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #404A7C; }

@media (max-width: 900px) {
    .rtest { height: auto; overflow: visible; }
    .rtest-main { flex-direction: column; height: auto; }
    .rtest-left { width: auto; }
    .rtest-passage { width: 100% !important; max-height: 44vh; border-bottom: 1px solid #E9DFD2; padding: 20px 18px 32px; }
    .rtest-divider { display: none; }
    .rtest-questions { padding: 20px 18px 24px; }
    .rtest-pills { max-width: 100%; }
    .rtest-nav { margin: 8px 12px 12px; }
    .rnav-btn { width: 42px; height: 42px; }
    .cpg-num { width: 42px; height: 42px; }
}

/* 选择题选中态：现代浏览器 :has() 即时反馈（与 .selected 同款），兜底 JS 未执行场景 */
.choice-opt:has(input:checked) { border: 2px solid hsl(45, 95%, 45%); background: #F6F1EA; padding: 7px 13px; }
.choice-opt:has(input:checked) .opt-letter { background: hsl(45, 95%, 45%); border-color: hsl(45, 95%, 45%); color: #fff; }

/* ================================================================
   学习中心 /user-center（uc- 前缀）
   ================================================================ */
.uc-stats { margin: 26px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 820px; }
.uc-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 10px; text-align: center; }
.uc-stat b { display: block; font-size: 26px; line-height: 1.2; color: var(--text); }
.uc-stat span { font-size: 12px; color: var(--muted); }

.uc-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.uc-tab { padding: 9px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600; }
.uc-tab:hover { border-color: var(--cyan); color: var(--cyan); }
.uc-tab.active { background: hsl(45, 95%, 45%); border-color: hsl(45, 95%, 45%); color: #fff; }

.uc-empty { text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--border); border-radius: 12px; padding: 46px 20px; font-size: 14px; line-height: 1.9; }
.uc-empty a { color: var(--cyan); font-weight: 700; }

/* 答题记录行 */
.uc-list { display: flex; flex-direction: column; gap: 12px; }
.uc-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 22px; }
.uc-row-main { min-width: 0; flex: 1; }
.uc-row-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.uc-row-title a { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-row-title a:hover { color: var(--cyan); }
.uc-subject { flex-shrink: 0; font-size: 12px; font-weight: 700; color: hsl(45, 95%, 45%); background: rgba(212, 160, 23, 0.12); border-radius: 999px; padding: 2px 10px; }
.uc-row-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: 13px; }
.uc-row-side { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.uc-rate { display: flex; align-items: center; gap: 8px; }
.uc-rate b { font-size: 15px; color: var(--text); }
.uc-rate-bar { width: 86px; height: 8px; border-radius: 999px; background: var(--panel-strong); overflow: hidden; }
.uc-rate-bar i { display: block; height: 100%; background: linear-gradient(90deg, #059669, #34d399); border-radius: 999px; }
.uc-rate em { font-style: normal; font-size: 13px; font-weight: 700; color: #059669; min-width: 40px; }
.uc-marks { display: flex; gap: 8px; font-size: 12px; font-style: normal; }
.uc-marks i { font-style: normal; padding: 2px 8px; border-radius: 999px; }
.uc-marks .ok { color: #059669; background: rgba(5, 150, 105, 0.12); }
.uc-marks .bad { color: #e11d48; background: rgba(225, 29, 72, 0.12); }
.uc-marks .blank { color: #64748b; background: rgba(100, 116, 139, 0.15); }

/* 生词本 */
.uc-word-form { display: flex; gap: 10px; margin-bottom: 18px; }

/* ============ 答题记录详情页（/user-center/record-detail） ============ */
/* 题目区直接复用交卷结果的 .review-item / .rv-* 体系（与 /paper_listen 交卷后样式一致） */
.rec-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.rec-list { display: flex; flex-direction: column; gap: 14px; }
.uc-row-btns { display: inline-flex; gap: 8px; }
.uc-word-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 14px; background: var(--panel); color: var(--text); }
.uc-word-form input:focus { outline: none; border-color: hsl(45, 95%, 45%); box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.18); }
.uc-form-msg { margin: -8px 0 14px; font-size: 13px; color: #059669; }
.uc-word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.uc-word-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.uc-word-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uc-word { font-size: 18px; color: var(--text); letter-spacing: 0.2px; }
.uc-word-meaning { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); word-break: break-word; }
.uc-word-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.uc-word-meta a { color: var(--cyan); }

/* 题目备注 */
.uc-note-list { display: flex; flex-direction: column; gap: 14px; }
.uc-note { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.uc-note-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.uc-note-qno { font-size: 14px; font-weight: 800; color: var(--text); }
.uc-note-type { font-size: 12px; font-weight: 700; color: var(--cyan); background: rgba(8, 145, 178, 0.1); border-radius: 999px; padding: 2px 10px; }
.uc-note-paper { font-size: 13px; color: var(--text); font-weight: 600; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-note-paper:hover { color: var(--cyan); }
.uc-note-time { margin-left: auto; font-size: 12px; color: var(--muted); }
.uc-note-stem { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.uc-note-body { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 12px; }
.uc-note-content { font-size: 14px; line-height: 1.9; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.uc-note-ops { display: flex; gap: 10px; margin-top: 10px; }
.uc-edit, .uc-del { border: none; background: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.uc-edit:hover { color: var(--cyan); background: rgba(8, 145, 178, 0.08); }
.uc-del:hover { color: #e11d48; background: rgba(225, 29, 72, 0.08); }

/* 做题页「＋生词 / ＋备注」弹层（复用 .exam-modal 遮罩体系） */
.st-modal input[type="text"], .st-modal textarea {
    width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 12px;
    border: 1px solid var(--border); border-radius: 10px;
    font: inherit; font-size: 14px; background: var(--panel); color: var(--text);
}
.st-modal textarea { min-height: 96px; resize: vertical; }
.st-modal input:focus, .st-modal textarea:focus { outline: none; border-color: hsl(45, 95%, 45%); box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.18); }
.st-modal select { width: 100%; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 14px; background: var(--panel); color: var(--text); }

/* ============ 阅读页双击取词悬浮词典卡（蓝系：卡底 #C1D5E7 / 按钮 #404A7C） ============ */
.wd-pop {
    position: fixed; z-index: 1200;
    width: 320px; max-width: calc(100vw - 16px);
    max-height: 70vh;
    display: flex; flex-direction: column;   /* 头部 / 释义 / 底部三段弹性布局 */
    overflow: hidden;                        /* 滚动只发生在 .wd-body，头部与关闭按钮固定不滚 */
    background: #C1D5E7; border: 1px solid #9FB6CE; border-radius: 14px;
    box-shadow: 0 18px 50px rgba(64, 74, 124, .25);
    padding: 14px 16px 12px; font-size: 14px; color: #2C3450;
}
.wd-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    flex-shrink: 0;              /* 头部固定，不随释义内容滚动 */
    padding-right: 28px;         /* 给右上角固定关闭按钮让位，避免长词/短语被遮挡 */
}
.wd-word { font-size: 20px; font-weight: 800; letter-spacing: .2px; color: #2C3450; word-break: break-word; max-width: 100%; }
.wd-phon { color: #4A5A78; font-size: 13px; flex: 1; min-width: 0; }
.wd-audio {
    border: none; background: #404A7C; color: #fff;
    border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer;
    flex-shrink: 0;
}
.wd-close {
    position: absolute; top: 10px; right: 10px;   /* 始终固定在悬浮卡右上角，不随内容换行/滚动移动 */
    width: 24px; height: 24px; padding: 0; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%; background: #404A7C; color: #fff;
    font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.wd-audio:hover, .wd-close:hover { filter: brightness(1.15); }
.wd-body {
    flex: 1 1 auto; min-height: 0;      /* 允许在 flex 布局中收缩，超高时仅此区域出现滚动条 */
    overflow-y: auto; overscroll-behavior: contain;
}
.wd-zh { margin: 10px 0 2px; font-weight: 700; font-size: 15px; color: #404A7C; word-break: break-word; }
.wd-pos {
    display: inline-block; margin: 10px 6px 2px 0; font-style: normal;
    background: rgba(255, 255, 255, .6); color: #404A7C;
    padding: 1px 9px; border-radius: 999px; font-size: 12px;
}
.wd-def { margin: 3px 0 0; color: #3B4666; line-height: 1.55; font-size: 13px; word-break: break-word; }
.wd-loading { color: #4A5A78; margin: 10px 0 6px; }
.wd-foot { margin-top: 12px; border-top: 1px dashed #A8BFD6; padding-top: 10px; flex-shrink: 0; }
.wd-add {
    width: 100%; border: none; border-radius: 999px; cursor: pointer;
    background: #404A7C; color: #fff; font-weight: 700;
    padding: 8px 0; font-size: 14px;
}
.wd-add:hover { filter: brightness(1.15); }
.wd-add:disabled { background: #7DA26C; cursor: default; }


.st-modal .st-err { color: #e11d48; font-size: 13px; min-height: 18px; margin: 0 0 8px; }
.st-modal .exam-modal-btns { justify-content: flex-end; }

@media (max-width: 720px) {
    .uc-stats { grid-template-columns: repeat(2, 1fr); }
    .uc-row { flex-direction: column; align-items: stretch; }
    .uc-row-side { justify-content: space-between; flex-wrap: wrap; }
    .uc-note-time { margin-left: 0; }
    .uc-word-form { flex-direction: column; }
}

/* =====================================================
 * 二维码悬浮按钮(首页 / 听力真题 / 阅读真题 页面右下角,点击展开/收起)
 * ===================================================== */
.qr-float {
    position: fixed;
    right: 10px;
    bottom: 28px;
    z-index: 1100;   /* 低于取词词典卡(1200)与 toast(9999),互不遮挡 */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* ---- 悬浮按钮 ---- */
.qr-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: var(--grad);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--glow), 0 10px 24px rgba(15, 23, 42, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow), 0 14px 30px rgba(15, 23, 42, 0.28);
}

.qr-toggle:active { transform: translateY(0); }

.qr-toggle:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* 图标切换:默认显示二维码图标,展开后显示关闭图标 */
.qr-toggle .qr-icon-close { display: none; }
.qr-toggle.on .qr-icon-qr { display: none; }
.qr-toggle.on .qr-icon-close { display: block; }

/* ---- 二维码卡片(默认收起,点击按钮展开) ---- */
.qr-pop {
    width: 216px;
    margin-bottom: 12px;
    padding: 16px 16px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    text-align: center;
    animation: qrPopIn 0.25s ease;
}

.qr-pop[hidden] { display: none; }

@keyframes qrPopIn {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.qr-pop-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
}

.qr-pop img {
    width: 176px;
    height: 176px;
    margin: 0 auto;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.qr-pop-desc {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 720px) {
    .qr-float { right: 16px; bottom: 16px; }
    .qr-pop { width: 176px; padding: 12px 12px 10px; margin-bottom: 10px; }
    .qr-pop img { width: 148px; height: 148px; }
    .qr-toggle { padding: 11px 16px; font-size: 13px; }
}

/* ==================== 随机组卷（学习中心 /user-center/compose） ==================== */
/* 分页器（右下角，替换原「上一题/下一题」与底部「上一页/下一页」） */
.cpg { gap: 8px; }
.cpg-num {
    width: 48px; height: 48px; border: 1px solid #404A7C; border-radius: 4px;
    background: #FFFFFF; color: #404A7C; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: background-color 0.2s;
}
.cpg-num:hover { background: #D9CCBB; }
.cpg-num.active { background: #404A7C; color: #FFFFFF; }
.rnav-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* 每 Part 单独交卷：已交页提示横幅 / 页内小结（成绩卡 + 回顾） */
.cpart-done-tip {
    margin: 0 0 14px;
    padding: 10px 14px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px dashed #88C98A;
    border-radius: 8px;
    font-size: 13px;
    color: #2E7D32;
    line-height: 1.7;
}
.cpart-review { margin-bottom: 18px; }
.score-part-line {
    margin: 5px 0 0;
    font-size: 13px;
    color: #555;
    text-align: center;
}
.cpart-review .score-card { margin-top: 0; }

/* 交卷结果面板（隐藏各 Part 后整屏展示成绩与回顾） */
.rtest-result-pane {
    flex: 1; min-height: 0; display: flex; background: #FFFFFF;
}
.rtest-result-pane[hidden] { display: none; }
.rtest-result-pane .rtest-questions { padding: 24px 32px; }
.result-part-title {
    font-size: 16px; font-weight: 800; color: #404A7C;
    margin: 22px 0 10px; padding-bottom: 8px; border-bottom: 2px solid #E3D0BC;
}

/* 学习中心入口：随机组卷 Tab 与说明 */
.uc-tab-compose { background: rgba(64, 74, 124, 0.08); }
.uc-compose-tip {
    margin: 10px 0 18px; padding: 10px 14px;
    background: rgba(64, 74, 124, 0.06); border: 1px dashed #C1D5E7; border-radius: 8px;
    font-size: 13px; color: #404A7C; line-height: 1.7;
}


/* ============ 听力随机组卷（/user-center/compose-listening，exam 布局） ============ */
/* 题号导航条（exam-body 顶部；已作答填充米棕、当前题蓝灰边，配色对齐单页 qcard） */
.exam-qnums {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0 0 18px; padding: 0;
}
.exam-qnums .rpill {
    width: 34px; height: 34px; min-width: 34px;
    border: 1px solid var(--border); border-radius: 4px;
    background: #FFFFFF; color: var(--text);
}
.exam-qnums .rpill:hover { background: #F6F1EA; }
.exam-qnums .rpill.done { background: #97897A; border-color: #97897A; color: #fff; }
.exam-qnums .rpill.current { border: 2px solid #8BA5B0; color: #5A4A3A; }
.exam-qnums .rpill.done.current { border-color: #8BA5B0; }
/* 分页器：居中放在题组卡片下方（‹ › 翻 Part 页、页码直达） */
.exam-pager { display: flex; gap: 8px; justify-content: center; margin: 26px 0 10px; }
/* 全部交完后的整卷汇总区 */
.exam-result-wrap { padding: 4px 0 20px; }
.exam-result-wrap[hidden] { display: none; }

