/* ============================================================
   IELTS 机考刷题平台 · 样式表（浅色主题）
   ============================================================ */
:root {
  --brand: #0B5FA5;
  --brand-dark: #084A80;
  --brand-soft: #E8F1FA;
  --accent: #E4002B;
  --accent-soft: #FDEBEE;
  --green: #0FA47A;
  --green-soft: #E6F6F0;
  --amber: #D98A1F;
  --amber-soft: #FBF0DC;
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --text: #17233B;
  --text-2: #5A6B85;
  --text-3: #93A3BC;
  --line: #E3EAF3;
  --shadow: 0 2px 10px rgba(11, 46, 84, .06);
  --shadow-lg: 0 10px 32px rgba(11, 46, 84, .12);
  --radius: 14px;
  --radius-sm: 9px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--text); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
a { color: var(--brand); text-decoration: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { border: none; background: none; padding: 0; display: flex; align-items: center; gap: 9px; }
.brand img { height: 40px; width: auto; max-width: 220px; border-radius: 0; object-fit: contain; }
.brand-text { text-align: left; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 16px; color: var(--brand-dark); letter-spacing: .2px; }
.brand-sub { font-size: 10.5px; color: var(--text-3); letter-spacing: .5px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav-btn {
  border: none; background: none; padding: 8px 13px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: all .18s;
}
.nav-btn:hover { background: var(--brand-soft); color: var(--brand); }
.nav-btn.active { background: var(--brand); color: #fff; }
.nav-btn.accent { color: var(--accent); }
.nav-btn.accent.active { background: var(--accent); color: #fff; }

/* ---------- 返回键（导航历史回退） ---------- */
.back-btn {
  display: none; align-items: center; gap: 3px; flex: none;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  padding: 7px 12px 7px 8px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; line-height: 1;
  transition: background .18s, color .18s, border-color .18s;
}
.back-btn.is-on { display: flex; }
.back-btn:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.back-btn svg { display: block; }
@media (max-width: 720px) {
  .back-btn { padding: 6px 10px 6px 7px; font-size: 13px; }
}

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 11px 22px;
  font-size: 15px; font-weight: 700; transition: all .18s;
  text-decoration: none; line-height: 1.2;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(11,95,165,.3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(228,0,43,.28); }
.btn-accent:hover { background: #C40027; }
.btn-outline { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #fff; color: var(--text); }
.btn-danger { background: #C40027; color: #fff; box-shadow: 0 4px 14px rgba(196,0,39,.25); }
.btn-danger:hover { background: #A3001F; }
.btn-danger[disabled] { opacity: .45; cursor: not-allowed; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.rec-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--text-2); min-width: 46px; }
.rec-play { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.rec-play audio { border-radius: 8px; }
.rec-done { font-size: 12.5px; color: var(--green); font-weight: 600; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* 考试条返回键（深色底） */
.exam-bar .btn-back {
  background: rgba(255,255,255,.13); color: #fff; border: 1px solid rgba(255,255,255,.38);
  display: inline-flex; align-items: center; gap: 5px; flex: none;
}
.exam-bar .btn-back:hover { background: rgba(255,255,255,.26); color: #fff; }
/* TTS 播放按钮 */
.tts-btn { display: inline-flex; align-items: center; gap: 5px; }
.tts-btn.playing { background: var(--accent); color: #fff; border-color: var(--accent); }
.tts-btn.playing:hover { background: #C40027; color: #fff; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.card-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 16px; }
.section-head h2 { font-size: 21px; font-weight: 800; }
.section-head .more { font-size: 13px; color: var(--text-3); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.badge-blue { background: var(--brand-soft); color: var(--brand); }
.badge-red { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-gray { background: #EEF2F7; color: var(--text-2); }
.badge-purple { background: #F3E9FB; color: #8E2B9B; }

/* ---------- Hero ---------- */
.hero {
  margin: 26px 0 8px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(120deg, #0B5FA5 0%, #0E7AC2 55%, #17A0D8 100%);
  color: #fff; padding: 46px 42px; position: relative;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.hero::before {
  content: ""; position: absolute; right: 90px; bottom: -90px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(228,0,43,.22);
}
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 30px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.hero h1 { font-size: 34px; font-weight: 900; line-height: 1.25; margin-bottom: 12px; letter-spacing: .3px; }
.hero p { font-size: 16px; opacity: .92; max-width: 640px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; position: relative; z-index: 2; flex-wrap: wrap; }
.hero .btn-white { background: #fff; color: var(--brand-dark); }
.hero .btn-white:hover { background: #EDF5FF; }
.hero .btn-glass { background: rgba(255,255,255,.18); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.hero .btn-glass:hover { background: rgba(255,255,255,.3); }

.hero-stats { display: flex; gap: 26px; margin-top: 30px; position: relative; z-index: 2; flex-wrap: wrap; }
.hero-stats .hs { font-size: 13px; opacity: .85; }
.hero-stats .hs b { display: block; font-size: 22px; font-weight: 900; opacity: 1; }

/* ---------- 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: all .2s; cursor: pointer; text-align: left;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #C9D9EC; }
.feature-ico {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 13px;
}
.feature-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-2); }
.feature-tag { margin-top: 12px; display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); }

/* ---------- 真题库 ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.book-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); cursor: pointer; transition: all .2s; position: relative;
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #C9D9EC; }
.book-cover {
  height: 64px; border-radius: 10px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: #fff;
}
.book-cover .cn { font-size: 12px; opacity: .85; margin-left: 4px; font-weight: 700; }
.book-card h3 { font-size: 16px; font-weight: 800; }
.book-card .desc { font-size: 12.5px; color: var(--text-2); margin: 4px 0 12px; }
.progress-track { height: 6px; background: #EDF1F7; border-radius: 8px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), #17A0D8); border-radius: 8px; transition: width .4s; }
.progress-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

/* 册详情 */
.book-hero { display: flex; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
.book-hero .cover-lg { width: 86px; height: 86px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 900; }
.book-hero .cover-lg span { font-size: 13px; font-weight: 700; }
.book-hero h2 { font-size: 22px; font-weight: 900; }
.book-hero p { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.test-list { display: flex; flex-direction: column; gap: 16px; }
.test-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.test-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.test-card-head h3 { font-size: 16px; font-weight: 800; }
.section-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.section-pill {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #FAFCFE;
  border-radius: 11px; padding: 11px 13px; cursor: pointer; transition: all .18s; text-align: left;
}
.section-pill:hover { border-color: var(--brand); background: var(--brand-soft); }
.section-pill .s-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.section-pill .s-meta { flex: 1; min-width: 0; }
.section-pill .s-name { font-weight: 700; font-size: 13.5px; }
.section-pill .s-sub { font-size: 11px; color: var(--text-3); }
.section-pill .s-status { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.section-pill .s-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.s-rec-link {
  font-size: 10.5px; font-weight: 700; color: var(--brand);
  background: none; border: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.s-rec-link:hover { text-decoration: underline; }

/* ---------- 练习/考试界面 ---------- */
body.exam-mode .topbar, body.exam-mode .footer { display: none; }
.exam-shell { min-height: 100vh; }
.exam-bar {
  position: sticky; top: 0; z-index: 40; background: var(--brand-dark); color: #fff;
  display: flex; align-items: center; gap: 14px; padding: 12px 22px; flex-wrap: wrap;
}
.exam-bar .ex-title { font-weight: 800; font-size: 15px; }
.exam-bar .ex-sub { font-size: 12px; opacity: .8; }
.exam-timer {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 9px; font-variant-numeric: tabular-nums;
  font-weight: 800; font-size: 15px; letter-spacing: 1px;
}
.exam-timer.warn { background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.exam-nav {
  position: sticky; bottom: 0; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line); padding: 12px 22px;
}
.exam-nav-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-dot {
  width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff;
  font-size: 12.5px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; justify-content: center;
}
.q-dot.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.q-dot.cur { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.part-block { margin-bottom: 26px; }
.section-head {
  background: var(--brand); color: #fff; border-radius: 11px; padding: 12px 18px;
  font-weight: 800; font-size: 17px; letter-spacing: .5px; margin-bottom: 6px;
}
.section-sub { font-size: 12.5px; color: var(--text-3); margin: 4px 2px 14px; }
.q-group-head { font-weight: 800; font-size: 14px; color: var(--brand-dark); margin: 16px 0 4px; }
.q-instruction {
  font-size: 12.5px; color: #6B7787; font-style: italic; background: #F4F8FC;
  border-left: 3px solid var(--brand-soft); padding: 7px 12px; border-radius: 0 8px 8px 0; margin-bottom: 12px;
}
.task-meta { font-size: 12.5px; color: var(--text-3); font-style: italic; margin: 2px 2px 2px; }
.task-meta + .task-meta { margin-bottom: 10px; }

/* ---------- 剑桥原版听力/写作排版 ---------- */
.cam-part-head { margin: 16px 0 10px; font-size: 18px; font-weight: 800; color: var(--text); }
.cam-part-head b { font-weight: 800; letter-spacing: .5px; }
.cam-part-head i { font-weight: 600; font-style: italic; color: var(--text-2); margin-left: 10px; }
.cam-q-group { font-weight: 700; font-style: italic; font-size: 14px; margin: 14px 0 4px; color: var(--brand-dark); }
.cam-instruction { font-style: italic; font-size: 13px; color: #6B7787; margin: 2px 0 12px; }
.cam-notes-card, .cam-table-card, .cam-box-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px;
  background: #fff; box-shadow: var(--shadow);
}
.cam-card-title { font-weight: 800; font-size: 14px; text-align: center; margin-bottom: 12px; color: var(--text); }
.cam-note-line { font-size: 14px; line-height: 2.1; margin-bottom: 8px; padding-left: 18px; position: relative; }
.cam-note-line::before { content: '•'; position: absolute; left: 2px; top: 0; color: var(--text-2); }
.cam-notes-section-head { font-weight: 700; font-size: 14px; margin: 14px 0 6px; color: var(--text); }
.cam-fill { display: inline-flex; align-items: baseline; gap: 4px; margin: 0 4px; vertical-align: baseline; }
.cam-no { font-weight: 700; font-size: 12.5px; color: var(--brand); }
.cam-fill-input {
  border: none; border-bottom: 2px dotted #B9C6D6; background: transparent; width: 150px;
  font-size: 14px; padding: 0 2px; outline: none; color: var(--text);
}
.cam-fill-input:focus { border-bottom-color: var(--brand); }
.cam-fill-input-wide { border: none; border-bottom: 2px dotted #B9C6D6; background: transparent; width: 160px; font-size: 14px; outline: none; }
.cam-fill-input-wide:focus { border-bottom-color: var(--brand); }
.cam-mc { margin-bottom: 16px; }
.cam-mc-q { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.cam-mc-q b { display: inline-block; margin-right: 8px; color: var(--brand-dark); }
.cam-mc-opts { display: flex; flex-direction: column; gap: 6px; margin-left: 24px; }
.cam-mc-opt {
  display: flex; align-items: baseline; gap: 8px; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; cursor: pointer; background: #fff; transition: all .15s; font-size: 14px;
}
.cam-mc-opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.cam-mc-opt.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.cam-mc-opt b { flex: none; width: 22px; height: 22px; border-radius: 6px; background: #EEF2F7; color: var(--text-2); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.cam-mc-opt.sel b { background: var(--brand); color: #fff; }
.cam-box-opt { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; padding: 3px 0; }
.cam-box-opt b { flex: none; width: 22px; color: var(--brand-dark); }
.cam-match-line { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cam-match-line > b:first-child { color: var(--brand-dark); }
.cam-match-subtitle { font-weight: 700; font-size: 14px; margin: 12px 0 6px; color: var(--text); }
.cam-match-sel { border: none; border-bottom: 2px dotted #B9C6D6; background: transparent; font-size: 14px; outline: none; padding: 2px 4px; }
.cam-match-sel:focus { border-bottom-color: var(--brand); }
.cam-write-head { font-weight: 800; font-size: 17px; letter-spacing: .5px; margin: 26px 0 8px; color: var(--text); }
.cam-write-meta { font-size: 13px; color: var(--text-2); margin: 3px 0; }
.cam-prompt-box { font-style: italic; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 8px 0 12px; background: #fff; font-size: 14px; line-height: 1.8; }
.cam-chart-title { font-weight: 700; text-align: center; font-size: 13.5px; margin: 10px 0 6px; }
.cam-table-wrap { margin-bottom: 16px; }
.cam-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cam-table th { background: #F0F4F8; font-size: 12.5px; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.cam-table td { border-bottom: 1px solid var(--line); padding: 9px 12px; font-size: 14px; vertical-align: middle; }
.cam-table tr:last-child td { border-bottom: none; }
.cam-td-act { font-weight: 600; color: var(--brand-dark); width: 34%; }

/* 阅读 notes 组（表格 / 摘要 / 列表） */
.cam-table-card .cam-table-wrap { margin-bottom: 0; overflow-x: auto; }
.cam-box-grid { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; }
.cam-box-word {
  border: 1px solid var(--line); border-radius: 7px; padding: 3px 10px;
  font-size: 13px; background: #F7F9FC; color: var(--text); white-space: nowrap;
}
.cam-summary-text { font-size: 14.5px; line-height: 2.15; color: var(--text); }
/* List of Headings：heading 列表（带罗马数字编号） */
.cam-heading-list { display: flex; flex-direction: column; gap: 5px; }
.cam-heading-item {
  font-size: 13.5px; line-height: 1.55; color: var(--text);
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; background: #F7F9FC;
}
.cam-axis-foot {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--text-2); text-align: center; letter-spacing: .5px;
}
/* 右栏较窄，压缩表格与填空框尺寸 */
.reading-questions-col .cam-notes-card,
.reading-questions-col .cam-table-card,
.reading-questions-col .cam-box-card { padding: 14px 14px; }
.reading-questions-col .cam-table th { padding: 7px 9px; font-size: 12px; }
.reading-questions-col .cam-table td { padding: 7px 9px; font-size: 13px; line-height: 1.7; }
.reading-questions-col .cam-fill-input { width: 118px; }
.reading-questions-col .cam-summary-text { font-size: 14px; line-height: 2.05; }
.part-head {
  background: var(--brand-soft); border: 1px solid #CFE1F4; color: var(--brand-dark);
  border-radius: 11px; padding: 10px 16px; font-weight: 700; font-size: 14.5px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.transcript-box {
  background: #FBFCFE; border: 1px dashed #B9CCE2; border-radius: 11px; padding: 14px 16px;
  font-size: 13.5px; color: var(--text-2); margin-bottom: 16px; max-height: 260px; overflow: auto;
}
.question { margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.q-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.q-no {
  flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.q-text { font-weight: 600; font-size: 14.5px; padding-top: 2px; }
.q-tag { font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 2px 9px; border-radius: 20px; }
.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.opt {
  display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 14px; cursor: pointer; transition: all .15s; font-size: 14px; background: #fff;
}
.opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.opt .o-key {
  flex: none; width: 24px; height: 24px; border-radius: 7px; background: #EEF2F7; color: var(--text-2);
  font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.opt.sel .o-key { background: var(--brand); color: #fff; }
.fill-input { width: 100%; margin-top: 10px; }
.fill-input input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none; transition: border .15s;
}
.fill-input input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fill-inline { line-height: 2; }
.inline-fill { display: inline-flex; align-items: center; gap: 5px; margin: 0 5px; vertical-align: middle; }
.inline-no { font-size: 12px; font-weight: 700; color: var(--brand); }
.inline-fill input {
  width: 120px; border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; outline: none; transition: border .15s;
  font-size: 14px; background: #fff;
}
.inline-fill input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tfng-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tfng-btn {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 16px; background: #fff;
  font-size: 13.5px; font-weight: 700; color: var(--text-2); transition: all .15s;
}
.tfng-btn:hover { border-color: var(--brand); color: var(--brand); }
.tfng-btn.sel { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 阅读：一次一篇（顶部 Passage 切换条） ---------- */
.rpass-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.rpass-tab {
  flex: 1 1 0;
  min-width: 150px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow);
  transition: border-color .15s, background .15s;
}
.rpass-tab:hover { border-color: var(--brand); }
.rpass-tab.cur {
  border-color: var(--brand);
  background: linear-gradient(180deg, #EAF3FC, #F7FBFF);
}
.rpass-tab b { font-size: 14.5px; color: var(--text); }
.rpass-tab.cur b { color: var(--brand); }
.rpass-tab-sub { font-size: 11.5px; color: var(--text-3); }
.rpass-tab-prog { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.rpass-tab.done b,
.rpass-tab.done .rpass-tab-prog { color: #1A9C5B; }

/* ---------- 阅读双栏布局 ---------- */
.reading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  /* 顶部 Passage 切换条 + 底部篇导航占用约 150px，故从 210 上调 */
  height: calc(100vh - 340px);
  min-height: 420px;
}

/* ---------- 阅读：底部篇导航 ---------- */
.rpass-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.rpass-foot-mid { font-size: 13px; color: var(--text-2); }
.rpass-foot-mid b { color: var(--brand); font-size: 15px; }
.reading-passage-col,
.reading-questions-col {
  overflow-y: auto;
  padding-right: 8px;
  height: 100%;
}
.reading-passage-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.reading-passage-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reading-para {
  font-size: 14.5px;
  line-height: 1.85;
  margin-bottom: 12px;
}
.reading-q-section {
  margin-bottom: 24px;
}
.reading-q-section:last-child {
  margin-bottom: 0;
}
.reading-q-head {
  background: var(--brand);
  color: #fff;
  border-radius: 11px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 做题界面回放：取消固定视口高度，随记录卡片自然展开 */
.reading-split.replay-split { height: auto; min-height: 0; }
.reading-split.replay-split .reading-passage-col,
.reading-split.replay-split .reading-questions-col { height: auto; overflow: visible; }
@media (max-width: 900px) {
  .reading-split {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .reading-passage-col,
  .reading-questions-col {
    height: auto;
    max-height: none;
    overflow-y: visible;
  }
  /* 窄屏：Passage 切换条改为横向滚动，避免纵向占满首屏 */
  .rpass-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rpass-tab { flex: 0 0 165px; min-width: 165px; }
  .rpass-foot { flex-wrap: wrap; }
}

/* 结果面板 */
.result-hero {
  background: linear-gradient(120deg, #084A80, #0B6FBF); color: #fff; border-radius: 18px; padding: 30px; text-align: center; margin-bottom: 20px;
}
.result-hero .band-big { font-size: 58px; font-weight: 900; line-height: 1; }
.result-hero .band-label { opacity: .85; margin-top: 4px; font-size: 14px; }
.result-hero .rs-raw { margin-top: 10px; font-size: 14px; opacity: .9; }
.verdict { font-size: 15px; font-weight: 700; margin-top: 12px; }
.verdict.good { color: #7CE8C6; } .verdict.mid { color: #FFE1A8; } .verdict.low { color: #FFB3C2; }
.review-item { border-left: 3px solid var(--line); padding: 0 14px; margin-bottom: 10px; background: #FBFCFE; border-radius: 0 9px 9px 0; display: block; }
.review-item.correct { border-left-color: var(--green); }
.review-item.wrong { border-left-color: var(--accent); }
.review-item > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; }
.review-item > summary::-webkit-details-marker { display: none; }
.review-item > summary::marker { content: ''; }
.review-item[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.rv-summary .rv-no { flex: none; font-weight: 800; color: var(--brand); min-width: 34px; font-size: 13.5px; padding-top: 1px; }
.rv-summary .rv-prompt { flex: 1; font-weight: 600; font-size: 13.5px; line-height: 1.5; }
.rv-summary .rv-tag { flex: none; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 20px; margin-left: 4px; }
.rv-summary .rv-tag.ok { color: #0F7A5A; background: #E3F4ED; }
.rv-summary .rv-tag.bad { color: #A11727; background: #FBE6EA; }
.rv-body { padding: 4px 0 12px; }
.rv-line { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.rv-line b { color: var(--text-1); }
.review-item .rv-explain { font-size: 12.5px; margin-top: 6px; padding: 7px 10px; background: var(--brand-soft); border-radius: 8px; color: var(--brand-dark); line-height: 1.6; }
.rv-explain.rv-none { background: #F2F4F7; color: var(--text-3); }

/* 写作/口语 */
.write-box { width: 100%; min-height: 300px; border: 1.5px solid var(--line); border-radius: 11px; padding: 16px; outline: none; font-size: 14.5px; line-height: 1.8; resize: vertical; background: #fff; }
.write-box:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.wc-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.wc-bar .wc-num { font-weight: 800; color: var(--brand); font-size: 14px; }
.analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ana-card { background: #FBFCFE; border: 1px solid var(--line); border-radius: 11px; padding: 14px; }
.ana-card h4 { font-size: 13px; font-weight: 800; color: var(--text-2); margin-bottom: 6px; }
.ana-card .ana-val { font-size: 22px; font-weight: 900; color: var(--brand); }
.ana-card p { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.sample-box { background: #FDFBF4; border: 1px solid #EDE3C2; border-radius: 11px; padding: 16px; font-size: 13.5px; line-height: 1.8; color: #5A4E2F; white-space: pre-wrap; max-height: 380px; overflow: auto; }

/* ---------- AI 写作批改报告 ---------- */
.rv-hero { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--brand), #17A0D8); border-radius: 14px; padding: 16px 20px; margin-bottom: 14px; color: #fff; }
.rv-hero-band { font-size: 42px; font-weight: 900; line-height: 1; min-width: 74px; }
.rv-hero-meta { display: flex; flex-direction: column; gap: 3px; }
.rv-hero-meta b { font-size: 17px; }
.rv-hero-meta span { font-size: 12px; opacity: .85; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rv-score { background: #FBFCFE; border: 1px solid var(--line); border-radius: 11px; padding: 12px; }
.rv-score-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.rv-score-name { font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.rv-score-val { font-size: 20px; font-weight: 900; color: var(--brand); }
.rv-score-bar { height: 6px; border-radius: 4px; background: #E7ECF3; overflow: hidden; }
.rv-score-bar div { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #0B5FA5, #17A0D8); }
.rv-score-tip { font-size: 11px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.rv-comments { background: var(--brand-soft); border-radius: 11px; padding: 12px 15px; margin-top: 14px; }
.rv-comments h4 { font-size: 13.5px; font-weight: 800; color: var(--brand-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.rv-cmt { font-size: 13px; color: var(--brand-dark); line-height: 1.9; }
.rv-sent { border: 1px solid var(--line); border-left: 3px solid #D9A441; border-radius: 9px; padding: 11px 13px; margin-bottom: 10px; }
.rv-sent-text { font-size: 13px; line-height: 1.7; color: var(--text-1); margin-bottom: 8px; }
.rv-issue { display: flex; gap: 9px; align-items: flex-start; background: #FFF8F0; border: 1px solid #F0DFC6; border-radius: 8px; padding: 8px 11px; margin-top: 6px; }
.rv-issue-cat { flex: none; font-size: 11px; font-weight: 800; color: #fff; background: #B4550B; border-radius: 5px; padding: 2px 7px; margin-top: 1px; }
.rv-issue-cat.语法, .rv-issue-cat.冠词 { background: #A11727; }
.rv-issue-cat.标点 { background: #37507E; }
.rv-issue-cat.词汇 { background: #0F7A5A; }
.rv-issue-cat.表达 { background: #8E2B9B; }
.rv-issue-msg { font-size: 12.5px; color: #7A4A1E; line-height: 1.6; }
.rv-issue-fix { font-size: 12px; color: #0F7A5A; margin-top: 2px; line-height: 1.6; }
.rv-vocab { display: flex; flex-direction: column; gap: 6px; }
.rv-vocab-item { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 7px 11px; background: #F6FAF7; border: 1px solid #DCEBE2; border-radius: 9px; }
.rv-old { color: #A11727; font-weight: 700; text-decoration: line-through; text-decoration-color: #D9A441; }
.rv-arrow { color: var(--text-3); }
.rv-new { color: #0F7A5A; font-weight: 800; }
.rv-history { background: #FBFCFE; border: 1px solid var(--line); border-radius: 11px; padding: 12px; }
.deep-report { background: linear-gradient(180deg, #F5F9FF, #FBFCFE); border: 1.5px solid #C9D9EC; border-radius: 14px; padding: 16px 18px; }
.deep-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--brand-dark); margin-bottom: 10px; }
.deep-overall { margin-left: auto; font-size: 26px; font-weight: 900; color: var(--brand); background: #fff; border: 1.5px solid #C9D9EC; border-radius: 12px; padding: 2px 12px; }
.deep-summary { font-size: 13.5px; color: var(--text-1); line-height: 1.8; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 12px; }
.deep-line { font-size: 13px; line-height: 1.9; padding: 7px 12px; border-radius: 9px; margin-bottom: 6px; }
.deep-line.ok { background: #F0F9F3; color: #0F7A5A; }
.deep-line.warn { background: #FDF6EC; color: #B4550B; }
.speaking-card { background: #FBFCFE; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.speaking-card .s-title { font-weight: 800; font-size: 15px; color: var(--brand-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.speaking-card .s-body { font-size: 14px; }
.cue-card { background: #FFF; border: 2px solid var(--accent); border-radius: 12px; padding: 18px; margin: 12px 0; }
.cue-card .cc-title { font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.cue-card ul { padding-left: 20px; font-size: 13.5px; color: var(--text-2); }
.rubric-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rubric-item:last-child { border-bottom: none; }
.rubric-item .r-name { font-size: 13.5px; font-weight: 600; }
.rubric-item .r-desc { font-size: 11.5px; color: var(--text-3); }
.stars { display: flex; gap: 4px; }
.star { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-size: 12px; font-weight: 800; color: var(--text-2); transition: all .15s; }
.star:hover { border-color: var(--amber); color: var(--amber); }
.star.sel { background: var(--amber); border-color: var(--amber); color: #fff; }

/* ---------- 水平测试 ---------- */
.assess-hero {
  background: linear-gradient(120deg, #A11727, #E4002B 60%, #FF6A4D); color: #fff;
  border-radius: 20px; padding: 44px 40px; margin: 26px 0 22px; position: relative; overflow: hidden;
}
.assess-hero::after { content: ""; position: absolute; right: -50px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.1); }
.assess-hero h1 { font-size: 30px; font-weight: 900; margin-bottom: 10px; }
.assess-hero p { font-size: 15px; opacity: .93; max-width: 620px; }
.assess-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; position: relative; z-index: 2; }
.assess-step { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 13px; padding: 16px; }
.assess-step b { display: block; font-size: 15px; }
.assess-step span { font-size: 12.5px; opacity: .85; }

/* 诊断报告 */
.report-band-row { display: flex; gap: 14px; flex-wrap: wrap; }
.report-band {
  flex: 1; min-width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); text-align: center;
}
.report-band .rb-name { font-size: 13px; color: var(--text-2); font-weight: 700; }
.report-band .rb-score { font-size: 34px; font-weight: 900; color: var(--brand); margin: 4px 0 2px; }
.report-band .rb-band { font-size: 12px; font-weight: 800; color: var(--text-3); }
.diag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.diag-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.diag-card h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.diag-item { border-left: 3px solid var(--accent); background: #FDF6F7; padding: 9px 12px; border-radius: 0 8px 8px 0; margin-bottom: 9px; }
.diag-item .di-title { font-weight: 700; font-size: 13px; color: #8C1226; }
.diag-item .di-body { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.plan-table th { text-align: left; background: var(--brand-soft); color: var(--brand-dark); padding: 10px 12px; font-size: 12.5px; }
.plan-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-table tr:last-child td { border-bottom: none; }

/* 语法测试 / 水平测试拆分选择器 */
.gt-choose { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.gt-opt {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; cursor: pointer; transition: all .15s; box-shadow: var(--shadow);
}
.gt-opt:hover { border-color: var(--brand); transform: translateY(-1px); }
.gt-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.gt-meta { flex: 1; }
.gt-meta b { display: block; font-size: 16px; font-weight: 800; color: var(--text-1); }
.gt-meta span { font-size: 13px; color: var(--text-2); }
.gt-opt svg:last-child { color: var(--text-3); flex: 0 0 auto; }

/* 语法测试答题/报告 */
.cloze-passage { font-size: 14px; line-height: 2.1; color: var(--text-1); background: #FBFCFE; border: 1px dashed #B9CCE2; border-radius: 10px; padding: 16px 18px; margin: 6px 0 4px; }
.cloze-passage .fill-input { box-shadow: none; }
.band-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.rev-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.rev-item:last-child { border-bottom: none; }
.rev-q { font-size: 13.5px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.rev-opts { font-size: 13px; line-height: 1.9; }
.rev-opts span { display: inline-block; margin-right: 14px; }
.rev-ok { color: #0F7A5A; font-weight: 800; }
.rev-no { color: #C0392B; font-weight: 800; }
.rev-line { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.rev-ex { font-size: 12.5px; color: var(--text-3); margin-top: 5px; background: #F6F8FB; padding: 7px 10px; border-radius: 7px; }

/* ---------- 记录/表格 ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-card .st-label { font-size: 12.5px; color: var(--text-3); font-weight: 700; }
.stat-card .st-val { font-size: 26px; font-weight: 900; color: var(--brand-dark); margin-top: 2px; }
.table-wrap { overflow-x: auto; }
table.records { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.records th { text-align: left; background: #F4F8FC; color: var(--text-2); font-size: 12px; padding: 10px 12px; white-space: nowrap; }
table.records td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.records tr:hover td { background: #FAFCFE; }
.empty-tip { text-align: center; padding: 50px 20px; color: var(--text-3); }
.empty-tip .et-ico { font-size: 40px; margin-bottom: 10px; opacity: .6; }

/* ---------- 设置 ---------- */
.logo-preview {
  width: 96px; height: 96px; border-radius: 16px; background: var(--brand-soft); border: 2px dashed var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.logo-preview .lp-text { font-size: 30px; font-weight: 900; color: var(--brand); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
.form-row input[type=text], .form-row select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; outline: none; background: #fff;
}
.form-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.seg { display: inline-flex; background: #EEF2F7; border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { border: none; background: none; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.seg button.sel { background: #fff; color: var(--brand); box-shadow: 0 1px 5px rgba(0,0,0,.08); }
.color-pal { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dot { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; transition: transform .15s; }
.color-dot:hover { transform: scale(1.12); }
.color-dot.sel { box-shadow: 0 0 0 2.5px var(--text); }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.danger-zone { border: 1.5px solid #F3C6CE; background: #FDF6F7; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(10,25,45,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; max-width: 460px; width: 100%; padding: 26px; box-shadow: var(--shadow-lg); animation: popIn .2s; }
@keyframes popIn { from { transform: translateY(10px); opacity: 0; } }
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.modal p { font-size: 14px; color: var(--text-2); margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; resize: vertical; margin-bottom: 16px; font-family: inherit; }
.modal-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Toast ---------- */
#toastRoot { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--brand-dark); color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: toastIn .25s; max-width: 90vw;
}
.toast.err { background: var(--accent); }
.toast.ok { background: var(--green); }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } }

/* ---------- 雷达图 ---------- */
.radar-wrap { display: flex; align-items: center; justify-content: center; padding: 10px; }
.radar-legend { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 4px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 60px; background: #fff; }
.footer-inner { padding: 26px 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { font-size: 12.5px; color: var(--text-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .hero { padding: 30px 22px; }
  .hero h1 { font-size: 25px; }
  .assess-hero { padding: 30px 22px; }
  .assess-hero h1 { font-size: 24px; }
  .exam-bar { padding: 10px 14px; }
}

/* ============================================================
   单词打卡
   ============================================================ */
.vocab-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.vocab-stats .vs {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.vocab-stats .vs-streak { border-color: #F3D9A4; background: linear-gradient(135deg, #FFF9EE, #FFF3DC); }
.vocab-stats .vs-ico {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none;
}
.vocab-stats .vs-streak .vs-ico { background: #FDEBD0; color: #C77A00; }
.vocab-stats .vs b { display: block; font-size: 19px; font-weight: 900; line-height: 1.15; }
.vocab-stats .vs span { font-size: 12px; color: var(--text-3); }

.vocab-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.vocab-cat {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 16px; text-align: left; cursor: pointer; transition: all .18s;
}
.vocab-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--vc) 45%, #fff); }
.vocab-cat .vc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vocab-cat .vc-ico {
  width: 38px; height: 38px; border-radius: 11px; background: var(--vcbg);
  color: var(--vc); display: flex; align-items: center; justify-content: center;
}
.vocab-cat .vc-name { font-size: 16px; font-weight: 800; color: var(--vc); }
.vocab-cat p { font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; }
.vocab-cat .vc-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3); margin-top: 8px;
}

.checkin-done {
  background: linear-gradient(135deg, #FFF9EE, #FEF3E0);
  border-color: #F3D9A4;
}
.checkin-done .cd-ico {
  width: 60px; height: 60px; border-radius: 16px; background: #FDEBD0;
  color: #C77A00; display: flex; align-items: center; justify-content: center;
}
.checkin-done b { color: var(--brand-dark); }

.word-table { display: flex; flex-direction: column; margin-top: 14px; }
.word-row {
  display: grid; grid-template-columns: 150px 1fr 1.6fr 84px 36px;
  gap: 12px; align-items: center; padding: 11px 12px;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.word-row:last-child { border-bottom: none; }
.word-row.done { background: #FAFDF9; }
.word-row .wr-word { font-weight: 800; color: var(--brand-dark); display: flex; align-items: center; gap: 6px; }
.word-row .wr-tag {
  font-size: 10px; font-weight: 800; color: var(--accent);
  background: #FDEBEE; border-radius: 5px; padding: 1px 5px;
}
.wr-speak {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border: 1.2px solid var(--line);
  border-radius: 50%; background: #fff; color: var(--brand); cursor: pointer;
  flex: 0 0 auto; transition: background .15s, color .15s, border-color .15s;
}
.wr-speak:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.wr-speak.playing { background: var(--brand); color: #fff; border-color: var(--brand); animation: wrPulse 1s ease-in-out infinite; }
@keyframes wrPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.word-flip-card .wr-speak, .word-quiz-word .wr-speak { width: 34px; height: 34px; margin-left: 10px; vertical-align: middle; }
.word-flip-card .wr-speak svg, .word-quiz-word .wr-speak svg { width: 17px; height: 17px; }
.word-row .wr-meaning { color: var(--text-1); }
.word-row .wr-example { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.word-row .wr-state { text-align: right; }
.badge-green { background: #E3F4EA; color: #1E7A45; }

/* 学习卡 */
.word-flip-card {
  background: linear-gradient(135deg, #F4F8FC, #EBF3FA);
  border: 1.5px solid #CFE0F0; border-radius: 16px;
  padding: 30px 22px; text-align: center;
}
.word-flip-card .wfc-word { font-size: 30px; font-weight: 900; color: var(--brand-dark); letter-spacing: .3px; }
.word-flip-card .wfc-meaning { font-size: 17px; font-weight: 700; color: var(--text-1); margin-top: 10px; }
.word-flip-card .wfc-example {
  font-size: 13.5px; color: var(--text-2); margin-top: 12px; font-style: italic;
  background: rgba(255,255,255,.7); border-radius: 9px; padding: 10px 14px; line-height: 1.7;
}

/* 自测 */
.word-quiz-word {
  font-size: 30px; font-weight: 900; color: var(--brand-dark);
  text-align: center; padding: 26px 0 20px;
}
.word-quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wq-opt {
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 14px 16px; font-size: 14.5px; font-weight: 700; color: var(--text-1);
  cursor: pointer; transition: all .15s; text-align: center;
}
.wq-opt:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.wq-opt:disabled { cursor: default; opacity: .9; }
.wq-opt.ok { border-color: #2FA36B; background: #E9F7EF; color: #1E7A45; }
.wq-opt.bad { border-color: #E4572E; background: #FDEBE5; color: #B53A1A; }
.qf {
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
  display: flex; align-items: center; gap: 8px;
}
.qf-ok { background: #E9F7EF; color: #1E7A45; }
.qf-bad { background: #FDEBE5; color: #B53A1A; }

/* ================= 精听练习 ================= */
.lp-tabs { display:flex; gap:26px; border-bottom:1px solid var(--line); margin:18px 0 16px; }
.lp-tabs button { background:none; border:none; padding:10px 4px; font-size:15px; font-weight:700; color:var(--text-2); cursor:pointer; border-bottom:3px solid transparent; }
.lp-tabs button.sel { color:var(--brand); border-bottom-color:var(--brand); }
.lp-book-filter { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.lp-book-filter button { background:#fff; border:1px solid var(--line); border-radius:18px; padding:7px 14px; font-size:13.5px; color:var(--text-2); cursor:pointer; transition:all .15s; }
.lp-book-filter button:hover { border-color:var(--brand); color:var(--brand); }
.lp-book-filter button.sel { background:var(--brand); color:#fff; border-color:var(--brand); }
.lp-tip { background:#F4F0FE; color:#5B3FB8; border-radius:8px; padding:10px 16px; font-size:13.5px; margin:12px 0 14px; }
.lp-test-block { margin-bottom:18px; }
.lp-test-head { font-size:17px; font-weight:800; color:var(--text); margin-bottom:10px; }
.lp-section-list { background:#fff; border-radius:var(--radius); border:1px solid var(--line); overflow:hidden; }
.lp-section-row { display:flex; align-items:center; gap:14px; padding:14px 18px; border-bottom:1px solid var(--line); }
.lp-section-row:last-child { border-bottom:none; }
.lp-sec-info { flex:1; min-width:0; }
.lp-sec-info b { font-size:15px; color:var(--text); margin-right:8px; }
.lp-sec-info span { font-size:12.5px; color:var(--text-3); }
.lp-sec-info p { font-size:13px; color:var(--text-2); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lp-sec-meta { font-size:13px; color:var(--text-3); white-space:nowrap; }
.lp-sec-actions { display:flex; gap:10px; }
.lp-player { max-width:860px; margin:0 auto; padding:20px 0; }
.lp-player-head { margin:18px 0; }
.lp-player-head h2 { font-size:22px; font-weight:800; }
.lp-player-head p { font-size:14px; color:var(--text-2); margin-top:4px; }
.lp-audio-card { background:#fff; border-radius:var(--radius); border:1px solid var(--line); padding:16px; margin-bottom:14px; }
.lp-count-row { display:flex; align-items:center; justify-content:space-between; margin-top:12px; }
.lp-count-row span { font-size:13px; color:var(--text-3); }
.lp-mode-tabs { display:flex; gap:8px; margin-bottom:14px; }
.lp-mode-tabs button { flex:1; background:#fff; border:1px solid var(--line); border-radius:10px; padding:11px; font-size:15px; font-weight:700; color:var(--text-2); cursor:pointer; }
.lp-mode-tabs button.sel { background:var(--brand); color:#fff; border-color:var(--brand); }
.lp-sentence-card { background:#fff; border-radius:var(--radius); border:1px solid var(--line); padding:24px; text-align:center; }
.lp-sentence-index { font-size:13px; color:var(--text-3); margin-bottom:14px; }
.lp-sentence-body { font-size:18px; line-height:1.7; color:var(--text); min-height:90px; display:flex; align-items:center; justify-content:center; }
.lp-sentence-ctrls { display:flex; justify-content:center; gap:12px; margin-top:22px; }
.lp-full-card { background:#fff; border-radius:var(--radius); border:1px solid var(--line); padding:16px; max-height:520px; overflow:auto; }
.lp-full-line { padding:10px 12px; border-radius:8px; font-size:14.5px; line-height:1.7; color:var(--text); cursor:pointer; transition:background .15s; }
.lp-full-line:hover { background:var(--brand-soft); }
.lp-full-line.current { background:#E8F1FA; font-weight:700; }
.lp-masked { color:var(--text-3); font-style:italic; }

/* ===== 精听听写（XDF 风格） ===== */
.lp-player-xdf { background:#fff; border-radius:var(--radius); border:1px solid var(--line); overflow:hidden; }
.lp-xdf-topbar {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px; background:#F8FAFC; border-bottom:1px solid var(--line);
}
.lp-xdf-brand { display:flex; align-items:center; gap:12px; }
.lp-xdf-logo { color:var(--brand); display:flex; align-items:center; }
.lp-xdf-title { font-size:15px; color:var(--text); }
.lp-xdf-title b { font-weight:700; margin-right:6px; }
.lp-xdf-actions { display:flex; align-items:center; gap:10px; }
.lp-xdf-action {
  display:inline-flex; align-items:center; gap:6px;
  background:#fff; border:1px solid var(--line); border-radius:8px;
  padding:7px 12px; font-size:13px; color:var(--text-2); cursor:pointer;
  transition:all .15s;
}
.lp-xdf-action:hover { border-color:var(--brand); color:var(--brand); }
.lp-xdf-action svg { stroke:var(--text-3); }
.lp-xdf-action.lp-xdf-end { background:#FEF2F2; color:#DC2626; border-color:#FECACA; }
.lp-xdf-action.lp-xdf-end:hover { background:#FEE2E2; }

.lp-xdf-layout { display:flex; min-height:560px; }
.lp-xdf-sidebar {
  width:220px; flex-shrink:0; background:#FAFBFC; border-right:1px solid var(--line);
  display:flex; flex-direction:column;
}
.lp-xdf-sidebar-title {
  display:flex; align-items:center; gap:8px;
  padding:14px 16px; font-size:14px; font-weight:700; color:var(--text);
  border-bottom:1px solid var(--line);
}
.lp-xdf-sidebar-title svg { stroke:var(--text-3); }
.lp-xdf-sentences { flex:1; overflow:auto; padding:10px 12px; }
.lp-xdf-sentence {
  display:flex; align-items:center; gap:8px;
  padding:10px 10px; margin-bottom:6px; border-radius:8px;
  font-size:13px; color:var(--text-2); cursor:pointer;
  transition:background .15s;
}
.lp-xdf-sentence:hover { background:var(--brand-soft); }
.lp-xdf-sentence.current { background:#E8F1FA; color:var(--brand); font-weight:600; }
.lp-xdf-sent-no { flex:1; }
.lp-xdf-sent-dur { font-size:12px; color:var(--text-3); white-space:nowrap; }
.lp-xdf-sent-playing { color:var(--brand); display:flex; align-items:center; }

.lp-xdf-main { flex:1; padding:18px 22px; display:flex; flex-direction:column; min-width:0; }
.lp-xdf-tabs { display:flex; gap:10px; margin-bottom:16px; }
.lp-xdf-tabs button {
  background:#fff; border:1px solid var(--line); border-radius:20px;
  padding:7px 18px; font-size:13.5px; font-weight:600; color:var(--text-2); cursor:pointer;
}
.lp-xdf-tabs button.sel { background:var(--brand); color:#fff; border-color:var(--brand); }

.lp-xdf-controls {
  display:flex; align-items:center; gap:14px;
  background:#F8FAFC; border:1px solid var(--line); border-radius:10px;
  padding:12px 16px; margin-bottom:12px;
}
.lp-xdf-play {
  width:38px; height:38px; border-radius:50%; border:none;
  background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex-shrink:0;
}
.lp-xdf-play:hover { filter:brightness(1.08); }
.lp-xdf-progress {
  flex:1; min-width:120px; height:6px; border-radius:3px;
  -webkit-appearance:none; appearance:none; background:#E2E8F0; cursor:pointer;
}
.lp-xdf-progress::-webkit-slider-thumb {
  -webkit-appearance:none; width:14px; height:14px; border-radius:50%;
  background:var(--brand); cursor:pointer;
}
.lp-xdf-progress::-moz-range-thumb {
  width:14px; height:14px; border-radius:50%; background:var(--brand); cursor:pointer;
}
.lp-xdf-time { font-size:13px; color:var(--text-3); white-space:nowrap; min-width:100px; text-align:center; }
.lp-xdf-selects { display:flex; gap:8px; flex-shrink:0; }
.lp-xdf-selects select {
  background:#fff; border:1px solid var(--line); border-radius:8px;
  padding:6px 10px; font-size:13px; color:var(--text-2); cursor:pointer;
}

.lp-xdf-toggles {
  display:flex; align-items:center; flex-wrap:wrap; gap:12px;
  margin-bottom:16px; font-size:13px; color:var(--text-2);
}
.lp-xdf-check { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.lp-xdf-check input { accent-color:var(--brand); cursor:pointer; }
.lp-xdf-hint { color:var(--text-3); font-size:12px; margin-left:auto; }
.lp-xdf-btns { display:flex; gap:8px; }

.lp-xdf-content { flex:1; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px; }
.lp-xdf-sentence-view { text-align:center; padding:30px 20px; }
.lp-xdf-sentence-index { font-size:13px; color:var(--text-3); margin-bottom:18px; }
.lp-xdf-sentence-body { font-size:18px; line-height:1.8; color:var(--text); }
.lp-xdf-speaker { font-weight:700; color:var(--brand); margin-right:4px; }
.lp-xdf-en { color:var(--text); }
.lp-xdf-trans { display:block; font-size:15px; color:var(--text-3); margin-top:8px; }
.lp-xdf-sent-masking { color:var(--text-3); font-size:20px; letter-spacing:2px; }

.lp-xdf-full-view { }
.lp-xdf-full-line {
  display:flex; align-items:flex-start; gap:12px;
  padding:12px 10px; border-bottom:1px solid #F1F5F9; cursor:pointer;
}
.lp-xdf-full-line:last-child { border-bottom:none; }
.lp-xdf-full-line:hover { background:#F8FAFC; }
.lp-xdf-full-line.current { background:#E8F1FA; }
.lp-xdf-line-no {
  width:26px; height:26px; border-radius:50%; background:#F1F5F9;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; color:var(--text-3); flex-shrink:0; margin-top:2px;
}
.lp-xdf-full-line.current .lp-xdf-line-no { background:var(--brand); color:#fff; }
.lp-xdf-line-body { flex:1; font-size:15px; line-height:1.75; }

@media (max-width: 860px) {
  .lp-xdf-layout { flex-direction:column; }
  .lp-xdf-sidebar { width:auto; max-height:180px; border-right:none; border-bottom:1px solid var(--line); }
  .lp-xdf-sentences { display:flex; gap:8px; overflow-x:auto; padding:10px; }
  .lp-xdf-sentence { white-space:nowrap; margin-bottom:0; }
  .lp-xdf-controls { flex-wrap:wrap; }
  .lp-xdf-toggles { flex-direction:column; align-items:flex-start; }
  .lp-xdf-hint { margin-left:0; }
}

/* ===== 打字训练 ===== */
.tp-instr { text-align:center; color:var(--text-2); font-size:14px; margin:10px 0; }
.tp-stage { background:#f6f9fc; border:1px solid var(--line); border-radius:var(--radius); padding:22px; margin-top:14px; }
.tp-stats { display:flex; gap:22px; justify-content:center; flex-wrap:wrap; font-size:13px; color:var(--text-2); margin-bottom:14px; }
.tp-stats b { color:var(--text-1); font-size:17px; margin-left:4px; }
.tp-text { font-family:Consolas,Menlo,'Courier New',monospace; font-size:19px; line-height:2; letter-spacing:.5px; word-break:break-word; max-width:860px; margin:0 auto; }
.tp-ch { border-radius:3px; padding:0 1px; }
.tp-ch.ok { color:var(--text-1); }
.tp-ch.cur { background:var(--brand); color:#fff; }
.tp-ch.todo { color:#b6c2cf; }
.tp-caps { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin:16px 0 4px; }
.tp-cap { width:44px; height:54px; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--line); border-bottom-width:4px; border-radius:8px; font-size:22px; font-weight:700; font-family:Consolas,monospace; color:var(--text-1); }
.tp-cap.hot { background:#fff; border-color:#f0a63a; box-shadow:0 2px 10px rgba(240,166,58,.35); }
.tp-cap.dim { opacity:.4; }
.tp-kb { display:flex; flex-direction:column; gap:6px; align-items:center; margin-top:18px; }
.tp-krow { display:flex; gap:5px; }
.tp-key { width:42px; height:42px; border-radius:6px; background:#fff; border:1px solid var(--line); border-bottom-width:3px; display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--text-2); position:relative; font-family:Consolas,monospace; }
.tp-key.k12 { width:52px; }
.tp-key.k14 { width:60px; }
.tp-key.k18 { width:74px; }
.tp-key.k22 { width:92px; }
.tp-key.k24 { width:100px; }
.tp-key.k7 { width:300px; }
.tp-key.hot { background:var(--brand); border-color:var(--brand); color:#fff; font-weight:700; }
.tp-key .fpbar { position:absolute; left:5px; right:5px; bottom:3px; height:3px; border-radius:2px; }
.tp-legend { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; font-size:12px; color:var(--text-2); margin-top:12px; }
.tp-legend i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:4px; vertical-align:-1px; }
.tp-result { text-align:center; padding:22px 0 8px; }
.tp-result h3 { margin:0 0 8px; font-size:19px; }
.tp-result p { color:var(--text-2); margin:0 0 14px; }
.tp-result b { color:var(--brand); font-size:17px; }
.tp-btns { display:flex; gap:10px; justify-content:center; align-items:center; }
.tp-hint { color:var(--text-3); font-size:12px; }
@media (max-width: 760px) {
  .word-quiz-opts { grid-template-columns: 1fr; }
  .word-row { grid-template-columns: 110px 1fr; }
  .word-row .wr-example { display: none; }
  .word-row .wr-state { display: none; }
  .lp-section-row { flex-direction:column; align-items:flex-start; gap:10px; }
  .lp-sec-actions { width:100%; }
  .lp-sec-actions button { flex:1; }
  .tp-key { width:32px; height:34px; font-size:10px; }
  .tp-key.k12 { width:38px; }
  .tp-key.k14 { width:44px; }
  .tp-key.k18 { width:56px; }
  .tp-key.k22 { width:70px; }
  .tp-key.k24 { width:76px; }
  .tp-key.k7 { width:210px; }
  .tp-text { font-size:16px; }
}

/* ============================================================
   官方机考界面仿真（IELTS on computer）
   参照 IELTS 官方机考：顶栏(计时/设置/音量/帮助)、说明框、
   高亮与笔记、题号导航(已答上线/标记圆形)、对比度与字号设置
   ============================================================ */
.exam-bar { gap: 10px; padding: 10px 18px; }
.exam-bar .ex-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.exam-bar .ex-test { font-size: 13.5px; font-weight: 800; letter-spacing: .3px; }
.exam-bar .ex-part {
  font-size: 11.5px; font-weight: 700; opacity: .92;
  background: rgba(255,255,255,.16); padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.exam-bar .ex-mid { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.exam-bar .ex-right { display: flex; align-items: center; gap: 8px; }
.ex-ico {
  width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255,255,255,.14);
  color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.ex-ico:hover { background: rgba(255,255,255,.28); }
.ex-ico.on { background: var(--accent); }
.ex-ico.sm { width: 28px; height: 28px; border-radius: 7px; }

/* 计时器 */
.ex-timer-wrap {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border-radius: 9px; padding: 4px 6px 4px 14px;
}
.ex-timer-wrap .t {
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: 16px; letter-spacing: 1px; min-width: 62px; text-align: center;
}
.ex-timer-wrap.warn { background: var(--accent); }
.ex-timer-wrap.danger { background: #D93025; animation: pulse .9s infinite; }
.ex-timer-wrap.mask .t { visibility: hidden; }

/* 设置面板 */
.ex-panel {
  position: absolute; right: 0; top: 46px; width: 280px; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15,32,64,.2);
  padding: 14px; z-index: 60; text-align: left;
}
.ex-panel h4 { margin: 0 0 8px; font-size: 11.5px; color: var(--text-2); letter-spacing: .6px; }
.ex-panel .opt-row { display: flex; gap: 6px; margin-bottom: 14px; }
.ex-panel .opt {
  flex: 1 1 0; border: 1.5px solid var(--line); background: #fff; border-radius: 8px;
  padding: 7px 5px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--text-2);
}
.ex-panel .opt.on { border-color: var(--brand); background: #EAF2FB; color: var(--brand); }
.opt-swatch { display: block; width: 100%; height: 18px; border-radius: 4px; margin-top: 5px; border: 1px solid var(--line); }
.sw-bow { background: #fff; }
.sw-wob { background: #111; }
.sw-yob { background: #111; }
.sw-yob i { display: block; width: 100%; height: 6px; background: #FFE500; margin-top: 6px; border-radius: 2px; }
.ex-panel .vol-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); font-weight: 700; }
.ex-panel input[type=range] { flex: 1; }

/* 官方说明框（每题组顶部） */
.instr-box {
  background: #F1F5FA; border: 1px solid #CFE0F0; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: #1F3A5F; line-height: 1.7;
}
.instr-box .ib-title { font-weight: 800; margin-bottom: 3px; display: block; }

/* 高亮 */
mark.hl { background: #FFE680; color: inherit; padding: 0 1px; border-radius: 2px; cursor: pointer; }
mark.hl.hl-note { border-bottom: 2px solid #F0A500; }
.hl-pop {
  position: absolute; z-index: 90; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 10px 26px rgba(15,32,64,.2); display: flex; overflow: hidden;
}
.hl-pop button {
  border: 0; background: #fff; padding: 9px 14px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; color: var(--text-2); white-space: nowrap;
}
.hl-pop button + button { border-left: 1px solid var(--line); }
.hl-pop button:hover { background: #F3F7FC; color: var(--brand); }

/* 笔记面板 */
.notes-panel {
  position: fixed; right: 18px; bottom: 82px; width: 330px; max-height: 48vh; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 42px rgba(15,32,64,.24);
  z-index: 75; display: flex; flex-direction: column; text-align: left;
}
.notes-panel .np-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); font-weight: 800; font-size: 13px;
}
.notes-panel .np-head button { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--text-2); padding: 2px; }
.notes-panel .np-body { padding: 10px 12px; overflow: auto; }
.notes-panel textarea {
  width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; font-size: 13px; resize: vertical; font-family: inherit;
}
.note-item { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; font-size: 12.5px; }
.note-item .q { color: var(--text-2); font-style: italic; margin-bottom: 5px; }
.note-item .del { border: 0; background: none; color: #C0392B; font-size: 11.5px; cursor: pointer; padding: 0; }

/* 题号导航：已答显示上线；标记变为圆形并带角标 */
.q-dot { position: relative; }
.q-dot.done::before {
  content: ''; position: absolute; top: 5px; left: 7px; right: 7px; height: 2px;
  background: #fff; border-radius: 2px;
}
.q-dot.flag { border-radius: 50%; border-color: var(--accent); color: var(--accent); }
.q-dot.flag::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); border: 2px solid #fff;
}
.nav-legend { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--text-2); margin-left: auto; }
.nav-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nav-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--line); display: inline-block; }
.nav-legend i.lg-done { background: var(--brand); border-color: var(--brand); }
.nav-legend i.lg-flag { border-radius: 50%; border-color: var(--accent); }

/* 对比度主题（作用于考试内容区） */
.exam-shell.ct-wob, .exam-shell.ct-yob { color: #fff; }
.exam-shell.ct-wob .exam-content, .exam-shell.ct-yob .exam-content { background: #111; }
.exam-shell.ct-yob .exam-content { color: #FFE500; }
.exam-shell.ct-wob .card, .exam-shell.ct-wob .question, .exam-shell.ct-wob .cam-notes-card,
.exam-shell.ct-wob .cam-box-card, .exam-shell.ct-wob .cam-table-card, .exam-shell.ct-wob .cam-table-wrap,
.exam-shell.ct-wob .speaking-card, .exam-shell.ct-wob .ana-card, .exam-shell.ct-wob .instr-box,
.exam-shell.ct-yob .card, .exam-shell.ct-yob .question, .exam-shell.ct-yob .cam-notes-card,
.exam-shell.ct-yob .cam-box-card, .exam-shell.ct-yob .cam-table-card, .exam-shell.ct-yob .cam-table-wrap,
.exam-shell.ct-yob .speaking-card, .exam-shell.ct-yob .ana-card, .exam-shell.ct-yob .instr-box {
  background: #1B1B1B !important; border-color: #3A3A3A !important; color: inherit !important;
}
.exam-shell.ct-yob .card, .exam-shell.ct-yob .question, .exam-shell.ct-yob .instr-box { color: #FFE500 !important; }
.exam-shell.ct-wob .exam-nav, .exam-shell.ct-yob .exam-nav { background: rgba(18,18,18,.97); border-top-color: #3A3A3A; }
.exam-shell.ct-wob .q-dot, .exam-shell.ct-yob .q-dot { background: #1B1B1B; border-color: #444; color: inherit; }
.exam-shell.ct-wob .q-dot.done, .exam-shell.ct-yob .q-dot.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.exam-shell.ct-wob .notes-panel, .exam-shell.ct-yob .notes-panel { background: #1B1B1B; border-color: #3A3A3A; color: inherit; }
.exam-shell.ct-wob .notes-panel textarea, .exam-shell.ct-yob .notes-panel textarea { background: #111; color: #FFE500; border-color: #444; }

/* 字号设置 */
.exam-shell.fs-lg .exam-content { font-size: 17px; }
.exam-shell.fs-xl .exam-content { font-size: 20px; }
.exam-shell.fs-lg .cam-fill-input, .exam-shell.fs-xl .cam-fill-input { font-size: inherit; }

@media (max-width: 720px) {
  .exam-bar { padding: 8px 10px; gap: 6px; }
  .exam-bar .ex-test { font-size: 12px; }
  .ex-panel { right: 0; width: 250px; }
  .notes-panel { right: 10px; left: 10px; width: auto; }
}

/* ---- 开考前确认页 Confirm your details（新东方机考模板 1:1 复刻） ---- */
.cd-page { min-height: 100vh; background: #e0e3f2; }
.cd-inner { max-width: 920px; margin: 0 auto; padding: 70px 24px 40px; }
.cd-head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #1f2330; margin: 0 0 26px 2px; }
.cd-panel { background: #d7dcf0; border-radius: 4px; padding: 26px 44px 32px; }
.cd-example { color: #d0021b; font-size: 34px; font-weight: 800; letter-spacing: 1px; text-align: center; margin: 2px 0 16px; }
.cd-row { font-size: 14.5px; color: #23262f; margin: 10px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cd-input { width: 132px; height: 28px; background: #fff; border: 1px solid #fff; border-radius: 2px; padding: 0 8px; font-size: 14px; color: #222; outline: none; }
.cd-input:focus { border-color: #8fa7d9; }
.cd-hint { color: #8b90a0; font-size: 13.5px; }
.cd-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14.5px; color: #23262f; }
.cd-btnrow { text-align: center; margin-top: 26px; }
.cd-btn { display: inline-block; background: #f6f6f8; border: 1px solid #84889a; border-radius: 4px; padding: 9px 16px; font-size: 14.5px; font-weight: 700; color: #17181c; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); font-family: inherit; }
.cd-btn:hover { background: #fff; }
.cd-foot { text-align: center; color: #8b90a0; font-size: 14px; margin-top: 56px; }
@media (max-width: 720px) {
  .cd-inner { padding-top: 40px; }
  .cd-panel { padding: 20px 18px 26px; }
  .cd-example { font-size: 26px; }
}

/* ---- 新东方机考模板：深色顶栏 / 试音 / 说明 / 答题 / 底部题号条 ---- */
.nd-shell { min-height: 100vh; background: #e0e3f2; display: flex; flex-direction: column; }
.nd-bar { height: 46px; background: linear-gradient(#252f3f, #121926); display: flex; align-items: center; gap: 10px; padding: 0 14px; position: sticky; top: 0; z-index: 60; }
.nd-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; }
.nd-logo { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #0B5FA5; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; border: none; font-family: inherit; }
.nd-title { color: #cfd6e4; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-mid { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.nd-clock { display: inline-flex; align-items: center; }
.nd-timer { color: #f2cd6e; font-size: 17px; letter-spacing: .5px; white-space: nowrap; }
.nd-timer.warn { color: #ffb347; }
.nd-timer.danger { color: #ff7070; animation: ndblink 1s steps(2) infinite; }
@keyframes ndblink { 50% { opacity: .35; } }
.nd-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nd-vol { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.nd-vol input[type="range"] { width: 110px; accent-color: #9cc3e8; height: 4px; cursor: pointer; }
.nd-btn { background: #f2f4f8; color: #1c2733; border: 1px solid #a9b2c1; border-radius: 4px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.nd-btn:hover { background: #fff; }
.nd-btn.blue { background: #a5c9ea; border-color: #7fa9d0; color: #16283c; }
.nd-btn.blue:hover { background: #bcd8f2; }
.nd-showchip { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 70; display: none; background: #1b2430; color: #fff; border: 1px solid #3a4552; border-top: none; border-radius: 0 0 8px 8px; padding: 4px 18px; font-size: 12px; font-weight: 700; cursor: pointer; }
body.nd-barhide .nd-bar { display: none; }
body.nd-barhide .nd-showchip { display: block; }
.nd-body { flex: 1 1 auto; }
.nd-inner { max-width: 980px; margin: 0 auto; padding: 20px 22px 96px; }
.nd-h1 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #171b26; margin: 30px 0 18px; }
/* 说明页 */
.nd-inst-title { font-size: 21px; font-weight: 800; color: #10131b; margin: 10px 0 4px; }
.nd-inst-time { font-size: 13px; color: #2c3242; margin-bottom: 16px; }
.nd-inst-h { font-size: 17.5px; font-weight: 800; margin: 14px 0 6px; color: #10131b; }
.nd-list { margin: 0 0 10px; padding-left: 24px; }
.nd-list li { font-size: 13.5px; color: #232836; margin: 5px 0; }
.nd-warn-center { text-align: center; font-size: 13.5px; margin: 20px 0 14px; color: #171b26; }
/* 试音页 */
.ts-panel { border: 1px solid #c9cee3; border-radius: 6px; padding: 26px 30px 30px; }
.ts-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #171b26; margin: 4px 0; }
.ts-btnrow { text-align: center; margin: 22px 0; }
/* Part 横带（听力） */
.nd-shell .cam-part-head { background: #fff; border-radius: 2px; padding: 13px 18px 12px; margin: 0 0 14px; }
.nd-shell .cam-part-head b { display: block; font-size: 22px; font-weight: 800; color: #10131b; margin-bottom: 2px; }
.nd-shell .cam-part-head i { font-style: normal; font-size: 13px; color: #333c4e; }
/* 填空框：题号显示在框内（新东方样式） */
.nd-shell .cam-no, .nd-shell .inline-no { display: none; }
.nd-shell .cam-fill-input, .nd-shell .cam-fill-input-wide, .nd-shell .inline-fill input, .nd-shell .fill-input input {
  background: #fff; border: 1px solid #9aa3b5; border-radius: 3px; height: 30px; padding: 0 8px;
  text-align: center; color: #1c2733; font-weight: 600; outline: none; box-sizing: border-box;
}
.nd-shell .cam-fill-input:focus, .nd-shell .cam-fill-input-wide:focus, .nd-shell .inline-fill input:focus, .nd-shell .fill-input input:focus { border-color: #4a7ec2; box-shadow: 0 0 0 2px rgba(74, 126, 194, .18); }
.nd-shell .cam-match-sel { background: #fff; border: 1px solid #9aa3b5; border-radius: 3px; height: 28px; padding: 0 6px; color: #1c2733; outline: none; }
/* 底部题号导航条 */
.nd-navwrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; gap: 14px; padding: 8px 16px 12px; pointer-events: none; }
.nd-navwrap > * { pointer-events: auto; }
.nd-review { display: inline-flex; align-items: center; gap: 6px; color: #f3f5fa; font-size: 12.5px; font-weight: 600; cursor: pointer; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); flex: none; user-select: none; }
.nd-review input { width: 14px; height: 14px; accent-color: #f3f5fa; cursor: pointer; }
.nd-nav { flex: 1 1 auto; background: #1b2430; border-radius: 8px; padding: 7px 12px; display: flex; align-items: center; gap: 5px; overflow-x: auto; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); scrollbar-width: thin; }
.nd-nav-label { color: #fff; font-size: 12px; font-weight: 700; margin: 0 7px 0 9px; white-space: nowrap; }
.nd-nav-label:first-child { margin-left: 2px; }
.nd-nbtn { flex: none; min-width: 26px; height: 24px; border-radius: 4px; border: none; background: #39434f; color: #e8edf5; font-size: 12px; font-weight: 600; cursor: pointer; position: relative; font-family: inherit; padding: 0 4px; }
.nd-nbtn:hover { background: #46525f; }
.nd-nbtn.cur { background: #d9e6f8; color: #16283c; }
.nd-nbtn.done::before { content: ''; position: absolute; top: 0; left: 4px; right: 4px; height: 3px; background: #e8edf5; border-radius: 2px; }
.nd-nbtn.cur.done::before { background: #4a7ec2; }
.nd-nbtn.flag { box-shadow: inset 0 0 0 2px #e2574d; }
.nd-arrows { display: flex; gap: 8px; flex: none; }
.nd-arrow { width: 42px; height: 36px; border-radius: 6px; border: none; background: #f2f4f8; color: #1c2733; font-size: 18px; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.nd-arrow:hover { background: #fff; }
/* Help 弹窗内的设置选项 chip */
.opt2 { background: #fff; border: 1px solid #c3c9d6; border-radius: 6px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: #333; cursor: pointer; }
.opt2.on { border-color: var(--brand, #0B5FA5); color: var(--brand, #0B5FA5); background: #eef5fc; }
@media (max-width: 720px) {
  .nd-bar { gap: 6px; padding: 0 8px; }
  .nd-title { display: none; }
  .nd-vol input[type="range"] { width: 70px; }
  .nd-btn { padding: 5px 8px; font-size: 11.5px; }
  .nd-timer { font-size: 14px; }
  .nd-inner { padding: 14px 12px 120px; }
  .nd-navwrap { gap: 8px; padding: 6px 8px 10px; }
  .nd-arrow { width: 34px; height: 32px; }
  .nd-review { font-size: 11.5px; }
}
/* 考试模式下解除 #app 容器宽度限制：深色顶栏/底栏通栏，宽度由 nd-inner/cd-inner 自控 */
body.exam-mode #app.container { max-width: none; padding: 0; margin: 0; }

/* ---- 机考各界面统一返回键（Back） ---- */
.nd-back { display: inline-flex; align-items: center; gap: 4px; background: #f2f4f8; color: #1c2733; border: 1px solid #a9b2c1; border-radius: 4px; font-size: 12.5px; font-weight: 700; padding: 5px 10px 5px 7px; cursor: pointer; white-space: nowrap; font-family: inherit; flex: none; }
.nd-back:hover { background: #fff; color: #0B5FA5; border-color: #7fa9d0; }
.nd-back svg { display: block; }
.cd-backrow { display: flex; align-items: center; margin: 14px 0 2px; }
.cd-back { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .75); border: 1px solid #b9c0d4; border-radius: 18px; color: #2c3550; font-size: 13px; font-weight: 700; padding: 6px 14px 6px 10px; cursor: pointer; font-family: inherit; }
.cd-back:hover { background: #fff; color: #0B5FA5; border-color: #7fa9d0; }
.cd-back svg { display: block; }

/* 真题库听力：Section 分区切换 */
.nd-sec-tab {
  border: 1px solid #CFE3F7; background: #fff; color: #0B5FA5;
  border-radius: 999px; padding: 7px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s ease;
}
.nd-sec-tab:hover { background: #E8F1FA; }
.nd-sec-tab.on { background: #0B5FA5; color: #fff; border-color: #0B5FA5; }

/* ================= 真题库练习页（对齐新东方真题库练习模板） =================
   仅作用于 EX.mode==='practice' 的练习页；机考模考(.nd-shell 无 .pb-shell)不受影响 */
.pb-shell { background: #fff; }
.pb-shell .nd-inner { padding: 14px 22px 96px; }

/* 顶栏：计时 + 暂停答题 / 退出练习 / 交卷 + 音量 */
.pb-bar { gap: 12px; }
.pb-left { flex: 1 1 auto; min-width: 0; }
.pb-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pb-btn {
  background: transparent; color: #e8edf5; border: 1px solid #55617a; border-radius: 4px;
  font-size: 13px; font-weight: 600; padding: 5px 14px; cursor: pointer;
  white-space: nowrap; font-family: inherit; transition: all .15s ease;
}
.pb-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pb-btn.pb-primary { background: #2f7ed8; border-color: #2f7ed8; color: #fff; }
.pb-btn.pb-primary:hover { background: #3d8ce6; }
.pb-clock { font-variant-numeric: tabular-nums; }

/* 第二节通栏横带：剑20 Test 1-Section 1 + Listen and answer questions 1-10 + 播放条 */
.pb-secband { background: #f1f3f7; border-bottom: 1px solid #dfe3ec; padding: 9px 22px; }
.pb-secrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pb-secmeta { flex: 0 1 auto; min-width: 0; }
.pb-sectitle { font-size: 15.5px; font-weight: 800; color: #10131b; line-height: 1.3; }
select.pb-sectitle { border: none; background: transparent; font-family: inherit; cursor: pointer; padding: 0; max-width: 100%; }
select.pb-sectitle:focus { outline: none; }
.pb-secsub { font-size: 12.5px; color: #46506a; margin-top: 2px; }
.pb-secright { flex: 1 1 400px; display: flex; align-items: center; gap: 10px; justify-content: flex-end; min-width: 0; }
.pb-play {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: #1d2530; color: #fff; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; transition: background .15s ease;
}
.pb-play:hover { background: #2b3646; }
.pb-play.on { background: #0B5FA5; }
.pb-play svg { display: block; }
.pb-track {
  position: relative; flex: 1 1 160px; min-width: 110px; height: 6px;
  background: #d3d8e4; border-radius: 6px; cursor: pointer; touch-action: none;
}
.pb-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: #1d2530; border-radius: 6px; }
.pb-knob {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #1d2530; border: 2px solid #fff; transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.pb-time { flex: none; font-size: 12px; color: #333c4e; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.pb-rate-wrap { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.pb-rate { width: 72px; accent-color: #1d2530; height: 4px; cursor: pointer; }
.pb-rate-label { font-size: 11.5px; color: #333c4e; font-variant-numeric: tabular-nums; min-width: 34px; }
.pb-ico {
  flex: none; width: 30px; height: 30px; border-radius: 5px; border: 1px solid #c3c9d6;
  background: #fff; color: #333c4e; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all .15s ease;
}
.pb-ico:hover { border-color: #0B5FA5; color: #0B5FA5; }
.pb-ico.on { border-color: #0B5FA5; color: #0B5FA5; background: #eef5fc; }
.pb-note { font-size: 12px; color: #5c6479; }

/* 文字稿（默认折叠） */
.pb-trans { margin: 0 0 16px; background: #fff; border: 1px solid #dfe4ee; border-radius: 4px; padding: 12px 16px; }
.pb-trans-in { font-size: 13.5px; line-height: 1.95; color: #232836; }

/* Questions 1-10 + 收藏本题 / 题目纠错 */
.pb-qhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; flex-wrap: wrap; }
.pb-qhead b { font-size: 15px; font-weight: 800; color: #10131b; }
.pb-qacts { display: inline-flex; align-items: center; gap: 16px; }
.pb-qact {
  display: inline-flex; align-items: center; gap: 5px; border: none; background: none;
  color: #4a5468; font-size: 12.5px; cursor: pointer; font-family: inherit; padding: 2px 0;
}
.pb-qact:hover { color: #0B5FA5; }
.pb-qact.on { color: #0B5FA5; font-weight: 700; }
@media (max-width: 720px) {
  .pb-bar { gap: 6px; padding: 0 8px; }
  .pb-btn { padding: 5px 9px; font-size: 12px; }
  .pb-secband { padding: 9px 12px; }
  .pb-secright { gap: 7px; flex: 1 1 100%; justify-content: flex-start; }
  .pb-rate-wrap { display: none; }
  .pb-time { min-width: 74px; }
}

/* Section 按钮组（同时展现，放在横带内，替代原下拉框） */
.pb-sectabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-secprefix { font-size: 15.5px; font-weight: 800; color: #10131b; margin-right: 2px; }
.pb-sectabs .nd-sec-tab { padding: 5px 13px; font-size: 12.5px; }

/* ================= 机考模考听力：整页版式对齐新东方机考答题页（2026-09-12） =================
   作用域严格限定 .mock-shell.sec-L（EX.mode==='mock' 且 section==='L'）；
   真题库练习(.pb-shell)与阅读/写作/口语不受影响。
   参考基准：用户提供的「剑雅20-Test 1」机考答题页截图（2052×1013，按 2x 反推 CSS 尺寸）：
     顶栏 30px 高、深色渐变（中段偏亮）、计时纯白、按钮浅底深字
     页面底色 #DEE5F5；Part 白卡 56px（21px 标题 + 12.5px 副题），与题组卡间隔 6px
     题组卡：说明带 #DDE3EE（约 79px）+ 紧贴其下的表格（表头 #CFE6F5/30px、网格 #C7CFD5）
     填空框 120×22、边框 2px #96BAFF、数字居中 */
.mock-shell.sec-L { background: #dee5f5; }
/* 顶栏：对齐截图做成 30px 窄条（练习页 .pb-bar 仍为 46px，不受影响） */
.mock-shell.sec-L .nd-bar {
  height: 30px; padding: 0 10px; gap: 8px;
  background: linear-gradient(180deg, #25313b 0%, #414b4f 46%, #182532 100%);
}
.mock-shell.sec-L .nd-logo { width: 18px; height: 18px; font-size: 10px; }
.mock-shell.sec-L .nd-title { font-size: 14px; font-weight: 700; color: #fff; }
.mock-shell.sec-L .nd-timer { font-size: 14px; color: #fff; }
.mock-shell.sec-L .nd-btn { font-size: 11px; padding: 2px 10px; border-radius: 4px; }
.mock-shell.sec-L .nd-back { font-size: 11px; padding: 2px 8px 2px 6px; }
.mock-shell.sec-L .nd-vol input[type="range"] { width: 80px; }
.mock-shell.sec-L .nd-right { gap: 6px; }

/* 内容容器：截图为近满宽布局（左右留白约 8px），故放宽 max-width 由 JS 设为 1240px */
.mock-shell.sec-L .nd-inner { padding: 11px 8px 96px; }

/* Part 标题卡：白卡 + 下沿 6px 页面底色条，复现截图中 Part 卡与题组卡之间的间隙
   注意：.cam-part-head 自身 font-size/line-height 必须压到副题尺寸，
   否则内联 <i> 会被 18px/29.7px 的 strut 撑高（会把整卡从 56px 顶到 75px） */
.mock-shell.sec-L .part-block { background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.mock-shell.sec-L .cam-part-head {
  background: #fff; border-radius: 0; padding: 6px 18px 7px;
  font-size: 12.5px; line-height: 16px;
  margin: 0; border-bottom: 6px solid #dee5f5;
}
.mock-shell.sec-L .cam-part-head b { display: block; font-size: 21px; line-height: 25px; margin-bottom: 2px; }
.mock-shell.sec-L .cam-part-head i { font-style: normal; font-size: 12.5px; line-height: 16px; color: #2b3340; }

/* 题组卡：说明带（#DDE3EE）+ 表格紧贴，中间无白色间隙（说明带下沿即为表格上边框） */
.mock-shell.sec-L .cam-q-group {
  background: #dde3ee; margin: 0; padding: 13px 18px 0;
  font-style: normal; font-weight: 700; font-size: 12.5px; color: #12161f;
}
.mock-shell.sec-L .cam-instruction {
  background: #dde3ee; margin: 0; padding: 0 18px;
  font-style: normal; font-weight: 400; font-size: 12.5px; line-height: 1.8; color: #1c2230;
}
.mock-shell.sec-L .cam-instruction + .cam-instruction { padding-top: 0; }
/* 表格/笔记卡：左右内缩 10px（截图中表格相对说明带略内缩），表头紧贴说明带下沿 */
.mock-shell.sec-L .cam-notes-card,
.mock-shell.sec-L .cam-table-card,
.mock-shell.sec-L .cam-box-card { border: none; border-radius: 0; box-shadow: none; padding: 0 10px 10px; margin: 0; }
.mock-shell.sec-L .part-block > *:last-child { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.mock-shell.sec-L .cam-table-card > .cam-card-title { padding-top: 12px; }
.mock-shell.sec-L .cam-card-title { font-size: 13px; text-align: left; margin-bottom: 10px; }
.mock-shell.sec-L .cam-note-line { font-size: 12.5px; line-height: 1.95; margin-bottom: 6px; padding-left: 16px; }
.mock-shell.sec-L .cam-table-wrap { margin: 0; }
.mock-shell.sec-L .cam-table { border: 1px solid #c7cfd5; border-radius: 0; }
.mock-shell.sec-L .cam-table th {
  background: #cfe6f5; color: #12161f; font-size: 12px; font-weight: 700; line-height: 1.1;
  text-align: center; padding: 8px 12px; border: 1px solid #c7cfd5;
}
.mock-shell.sec-L .cam-table td {
  border: 1px solid #c7cfd5; padding: 12px; font-size: 12.5px; line-height: 1.8;
  color: #12161f; vertical-align: top;
}
.mock-shell.sec-L .cam-table tr:last-child td { border-bottom: 1px solid #c7cfd5; }
.mock-shell.sec-L .cam-fill { margin: 0 6px; }
.mock-shell.sec-L .cam-fill-input {
  width: 120px; height: 22px; border: 2px solid #96baff; border-radius: 3px; background: #fff;
  text-align: center; font-size: 11.5px; font-weight: 400; color: #333; padding: 0 4px;
}
/* 对比度主题（白字黑底 / 黄字黑底）下保持可读 */
.mock-shell.ct-wob.sec-L, .mock-shell.ct-yob.sec-L { background: #000; }
.mock-shell.ct-wob.sec-L .cam-part-head, .mock-shell.ct-yob.sec-L .cam-part-head { border-bottom-color: #000; }
.mock-shell.ct-wob.sec-L .part-block, .mock-shell.ct-wob.sec-L .cam-part-head,
.mock-shell.ct-yob.sec-L .part-block, .mock-shell.ct-yob.sec-L .cam-part-head { background: #111; }
.mock-shell.ct-wob.sec-L .cam-q-group, .mock-shell.ct-wob.sec-L .cam-instruction,
.mock-shell.ct-yob.sec-L .cam-q-group, .mock-shell.ct-yob.sec-L .cam-instruction { background: #1b1b1b; }
.mock-shell.ct-wob.sec-L .cam-table th, .mock-shell.ct-yob.sec-L .cam-table th { background: #22303d; }

/* 口语题库录音条 */
.sp-rec { display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap; }
.sp-rec-btn { display:inline-flex; align-items:center; gap:6px; border:1px solid #C9D9EC; background:#fff; color:#2b6cb0; border-radius:20px; padding:7px 16px; font-size:13px; font-weight:600; cursor:pointer; transition:.15s; }
.sp-rec-btn:hover { background:#EFF5FD; }
.sp-rec-btn.recording { background:#e53e3e; color:#fff; border-color:#e53e3e; }
.sp-rec-status { font-size:12px; color:#e53e3e; font-weight:600; }
.sp-rec-play { display:inline-flex; }
.sp-rec-play audio { height:36px; max-width:300px; }

/* ===== 单词打卡 · 场景/话题分组（听力场景、写作话题） ================= */
.vscene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.vscene-card {
  border: 1px solid var(--line); border-radius: 13px; background: #fff;
  padding: 13px 14px; text-align: left; cursor: pointer; transition: all .18s;
}
.vscene-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--vc) 45%, #fff); }
.vscene-card .vsc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.vscene-card .vsc-ico {
  width: 30px; height: 30px; border-radius: 9px; background: var(--vcbg);
  color: var(--vc); display: flex; align-items: center; justify-content: center; flex: none;
}
.vscene-card .vsc-name { flex: 1; font-size: 14.5px; font-weight: 800; color: var(--vc); word-break: break-word; }
.vscene-card .vsc-num {
  flex: none; font-size: 11.5px; font-weight: 700; color: var(--vc);
  background: var(--vcbg); border-radius: 999px; padding: 2px 8px;
}
.vscene-card .vsc-sub { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.vscene-card .vsc-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3); margin-top: 8px;
}
/* 学习页内的场景切换条（可横向滚动，兼容 24 场景 / 48 话题） */
.vscene-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; }
.vscene-bar button {
  flex: none; border: 1px solid var(--line); background: #fff; color: var(--text-2);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.vscene-bar button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.vscene-bar button.sel { background: var(--brand); border-color: var(--brand); color: #fff; }

