﻿/* ===== 基础 ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #f4f6fa;
  color: #1f2a3d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
/* 页面整体按 125% 显示（等效浏览器缩放 125%） */
body { zoom: 1.25; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(22, 45, 84, .06);
}

/* ===== 顶部导航 ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  padding: 0 26px;
  background: linear-gradient(135deg, #2fbd74, #199e63);
  color: #ffffff;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.brand .ver {
  font-size: 11px; font-weight: 400;
  background: rgba(255, 255, 255, .18);
  padding: 2px 6px; border-radius: 4px;
}
.topbar .spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .16);
  color: #ffffff; font-size: 13px;
  border: none;
  transition: background .15s;
}
.chip:hover { background: rgba(255, 255, 255, .26); }
.chip .caret { font-size: 10px; opacity: .8; }
.user-chip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

/* 下拉面板 */
.dropdown-wrap { position: relative; }
.dropdown {
  position: absolute; top: 42px; right: 0; z-index: 60;
  width: 250px; max-height: 380px; overflow: auto;
  background: #ffffff; color: #1f2a3d;
  border-radius: 12px; padding: 8px;
  box-shadow: 0 12px 34px rgba(15, 34, 65, .18);
}
.dropdown.left { right: auto; left: 0; }
.dropdown .dd-title { font-size: 11px; color: #98a2b3; padding: 8px 10px 4px; }
.dd-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; cursor: pointer; color: #344054;
}
.dd-item:hover { background: #f2f8f5; }
.dd-item.active { background: #e9f8f0; color: #12a15f; font-weight: 600; }
.dd-item .sub { color: #98a2b3; font-size: 11px; }
.dropdown .divider { height: 1px; background: #eef1f6; margin: 6px 4px; }

/* ===== 科目 tab ===== */
.subject-tabs {
  display: flex;
  border-bottom: 1px solid #eef1f6;
  padding: 0 26px;
  background: #ffffff;
}
.subject-tab {
  flex: 1; text-align: center;
  padding: 16px 0 14px;
  font-size: 15px; color: #667085;
  border-bottom: 3px solid transparent;
  transition: all .15s;
}
.subject-tab:hover { color: #12a15f; }
.subject-tab.active { color: #12a15f; font-weight: 700; border-bottom-color: #12a15f; }

/* ===== 首页分栏：左圆卡+右图标紧凑居中，一屏显示全 ===== */
#home-body {
  min-height: calc(100vh - 410px);
  display: flex; flex-direction: column; justify-content: center;
}
.band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  padding: 18px 30px;
  border-bottom: 1px solid #f1f4f9;
  position: relative;
}
.band:last-of-type { border-bottom: none; }
.band-left { flex: none; width: 210px; display: flex; flex-direction: column; align-items: center; gap: 8px; }

.circle {
  width: 160px; height: 160px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: #ffffff; position: relative;
  box-shadow: 0 14px 30px rgba(18, 161, 95, .22);
  transition: transform .18s;
}
.circle:hover { transform: translateY(-3px); }
.circle.green { background: radial-gradient(circle at 32% 28%, #8ef0c0, #21bd7c 58%, #0f9d63); }
.circle.blue { background: radial-gradient(circle at 32% 28%, #8fd6ff, #3b95ec 58%, #2372d8); box-shadow: 0 14px 30px rgba(35, 114, 216, .22); }
.circle .c-title { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.circle .c-sub { font-size: 14px; opacity: .92; font-variant-numeric: tabular-nums; }
.circle .c-btn {
  margin-top: 4px;
  height: 36px; padding: 0 26px;
  border-radius: 18px; border: none;
  background: rgba(255, 255, 255, .94);
  font-size: 15px; font-weight: 700;
  color: #0f9d63;
}
.circle.blue .c-btn { color: #2372d8; }
.circle .c-btn:hover { background: #ffffff; }

.band-right { flex: none; }
.band-head { text-align: center; margin-bottom: 12px; }
.band-title { font-size: 24px; font-weight: 700; color: #344054; letter-spacing: 1px; }
.band-desc { font-size: 15px; color: #98a2b3; margin-top: 6px; }

/* 图标行：集中居中、固定间距，两侧留白离边远一点 */
.icon-row {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 38px; padding: 0 30px;
}
.icon-item {
  width: 112px; display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 6px 0; border-radius: 10px; cursor: pointer;
  transition: transform .15s, background .15s;
  position: relative;
}
.icon-item:hover { transform: translateY(-4px); background: #fafcff; }
.icon-tile {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 31px; color: #ffffff;
  box-shadow: 0 6px 14px rgba(31, 42, 61, .12);
}
.icon-label { font-size: 15px; color: #475067; font-weight: 600; }
.icon-sub { font-size: 13px; color: #98a2b3; margin-top: -4px; }
.icon-badge {
  position: absolute; top: -4px; right: 12px;
  background: #ff5a5f; color: #fff;
  font-size: 9px; line-height: 1; padding: 3px 5px;
  border-radius: 7px 7px 7px 0;
}
.icon-item.locked .icon-tile { filter: grayscale(.5); opacity: .8; }

/* 底部快捷卡：右下角浮动显示，不占文档流 */
.quick-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
  padding: 0;
}
.quick-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  background: #ffffff; border: 1px solid #e8eefa;
  box-shadow: 0 6px 18px rgba(22, 45, 84, .14);
  font-size: 13px; color: #475467; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.quick-card:hover { background: #f4f8ff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 45, 84, .18); }

/* ===== 页面头部（二级页） ===== */
.page-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  border-bottom: 1px solid #eef1f6;
  background: #ffffff;
  position: sticky; top: 0; z-index: 40;
}
.back-btn {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid #e6ebf3; background: #ffffff;
  font-size: 18px; color: #475467; line-height: 1;
}
.back-btn:hover { background: #f4f7fb; }
.page-title { font-size: 16px; font-weight: 700; color: #1f2a3d; }
.page-sub { font-size: 12px; color: #98a2b3; }
.page-head .spacer { flex: 1; }

/* ===== 刷题布局：整题固定一屏，内容放不下时由脚本逐级缩小 --pf ===== */
.practice-wrap { display: flex; gap: 20px; padding: 10px 26px 12px; align-items: stretch; }
.practice-main { flex: 1; min-width: 0; min-height: 0; display: flex; }
.practice-aside { width: 290px; flex: none; position: sticky; top: 12px; align-self: flex-start; }

.quiz-card {
  --pf: 1;
  flex: 1; min-width: 0; min-height: 0; height: 100%;
  background: #ffffff; border: 1px solid #eef1f6; border-radius: 14px;
  padding: calc(18px * var(--pf, 1)) calc(24px * var(--pf, 1)) calc(14px * var(--pf, 1));
  box-shadow: 0 4px 18px rgba(31, 42, 61, .04);
  display: flex; flex-direction: column; overflow: hidden;
}
.q-tags { display: flex; align-items: center; gap: 8px; margin-bottom: calc(10px * var(--pf, 1)); flex-wrap: wrap; flex: none; }
.tag {
  font-size: calc(11px * var(--pf, 1)); line-height: 1; padding: 4px 7px; border-radius: 4px;
  color: #ffffff; font-weight: 600;
}
.tag.type { background: #22c55e; }
.tag.city { background: #3b82f6; }
.tag.newrule { background: #f97316; }
.tag.chapter { background: #f1f5f9; color: #7b8798; font-weight: 400; }

.q-stem { font-size: calc(17px * var(--pf, 1)); line-height: 1.55; font-weight: 600; color: #1f2a3d; flex: 1; }
.q-stem .q-no { color: #98a2b3; font-weight: 400; margin-right: 4px; }
.q-stem-row { display: flex; align-items: flex-start; gap: calc(8px * var(--pf, 1)); flex: none; }
.speak-btn {
  flex-shrink: 0; width: calc(34px * var(--pf, 1)); height: calc(34px * var(--pf, 1)); border-radius: 50%;
  border: 1.5px solid #eef1f6; background: #fbfcfe; font-size: calc(15px * var(--pf, 1));
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s; padding: 0;
}
.speak-btn:hover { border-color: #c7d4e8; background: #fff; }
.speak-btn.speaking { background: #e8f0ff; border-color: #3b7bff; animation: speakPulse 1.2s ease-in-out infinite; }
@keyframes speakPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(59,123,255,.35); } 50% { box-shadow: 0 0 0 6px rgba(59,123,255,0); } }

.options { margin-top: calc(12px * var(--pf, 1)); display: flex; flex-direction: column; gap: calc(8px * var(--pf, 1)); flex: none; }
.opt {
  display: flex; align-items: center; gap: calc(10px * var(--pf, 1));
  width: 100%; text-align: left; font-family: inherit;
  padding: calc(10px * var(--pf, 1)) calc(12px * var(--pf, 1)); border-radius: calc(10px * var(--pf, 1));
  border: 1.5px solid #eef1f6; background: #fbfcfe;
  cursor: pointer; transition: all .12s;
}
.opt:hover { border-color: #b9e6cd; background: #f7fdfa; }
.opt .letter {
  width: calc(24px * var(--pf, 1)); height: calc(24px * var(--pf, 1)); border-radius: 50%;
  border: 1px solid #c8d2e0; color: #59657a;
  display: flex; align-items: center; justify-content: center;
  font-size: calc(12px * var(--pf, 1)); font-weight: 700; flex: none;
  background: #ffffff;
}
.opt .opt-text { flex: 1; line-height: 1.5; color: #344054; font-size: calc(14.5px * var(--pf, 1)); }
.opt.selected { border-color: #22c55e; background: #f0fdf4; }
.opt.selected .letter { background: #22c55e; border-color: #22c55e; color: #ffffff; }
.opt.correct { border-color: #22c55e; background: #eefcf3; }
.opt.correct .letter { background: #22c55e; border-color: #22c55e; color: #ffffff; }
.opt.wrong { border-color: #ef4444; background: #fff4f4; }
.opt.wrong .letter { background: #ef4444; border-color: #ef4444; color: #ffffff; }
.opt.disabled { cursor: default; }

.fb {
  margin-top: calc(10px * var(--pf, 1)); padding: calc(10px * var(--pf, 1)) calc(12px * var(--pf, 1));
  border-radius: calc(10px * var(--pf, 1));
  background: #f8fafc; font-size: calc(13px * var(--pf, 1)); line-height: 1.65; color: #475467;
  flex: none; overflow: hidden;
}
.fb.ok { background: #f0fdf4; color: #15803d; }
.fb.no { background: #fef2f2; color: #b91c1c; }
.fb .fb-answer { font-weight: 700; }

.skill-bar { display: flex; gap: calc(10px * var(--pf, 1)); margin-top: calc(10px * var(--pf, 1)); padding-top: calc(10px * var(--pf, 1)); border-top: 1px dashed #edf1f6; flex: none; }
.skill-btn {
  flex: 1; height: calc(34px * var(--pf, 1)); border-radius: calc(8px * var(--pf, 1));
  border: 1px solid #e6ecf7; background: #f4f7fd;
  color: #4b5b74; font-size: calc(12.5px * var(--pf, 1)); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.skill-btn:hover { background: #e8effc; }

.quiz-nav { display: flex; align-items: center; gap: calc(10px * var(--pf, 1)); margin-top: calc(10px * var(--pf, 1)); flex: none; }
.quiz-nav .btn { height: calc(36px * var(--pf, 1)); padding: 0 calc(16px * var(--pf, 1)); font-size: calc(13px * var(--pf, 1)); }
.btn {
  height: 44px; padding: 0 20px; border-radius: 10px;
  border: 1px solid #e2e8f2; background: #ffffff;
  color: #344054; font-size: 14px; font-weight: 600;
}
.btn:hover { background: #f7fafc; }
.btn.primary { background: #22c55e; border-color: #22c55e; color: #ffffff; }
.btn.primary:hover { background: #1eb257; }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.danger { background: #ef4444; border-color: #ef4444; color: #ffffff; }
.grow { flex: 1; }

.vip-tip {
  display: flex; align-items: center; gap: 10px;
  margin: 0 26px 0; padding: 12px 16px;
  background: linear-gradient(120deg, #fff7e8, #fffdf8);
  border: 1px solid #ffe1b8; border-radius: 10px;
  color: #b7791f; font-size: 13px;
  margin-top: 16px;
}
.vip-tip .grow { flex: 1; }
.vip-tip button {
  height: 30px; padding: 0 14px; border-radius: 15px;
  border: none; background: #f59e0b; color: #ffffff; font-size: 12px; font-weight: 600;
}

/* 答题卡（侧栏） */
.side-card {
  background: #ffffff; border: 1px solid #eef1f6; border-radius: 14px;
  padding: 18px; box-shadow: 0 4px 18px rgba(31, 42, 61, .04);
}
.side-title { font-size: 14px; font-weight: 700; color: #344054; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.side-title .count { font-size: 12px; color: #98a2b3; font-weight: 400; }
.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.cell {
  height: 32px; border-radius: 6px;
  background: #f4f6fa; color: #7b8798;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; border: 1px solid transparent;
}
.cell:hover { background: #e8effc; }
.cell.done { background: #dcfce7; color: #15803d; font-weight: 600; }
.cell.wrong { background: #fee2e2; color: #b91c1c; font-weight: 600; }
.cell.cur { border-color: #22c55e; box-shadow: inset 0 0 0 1px #22c55e; }
.legend { display: flex; gap: 12px; margin-top: 12px; font-size: 11px; color: #98a2b3; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }

/* ===== 列表页 ===== */
.list-wrap { padding: 22px 26px 50px; }
.list-table { width: 100%; border-collapse: collapse; }
.list-table th {
  text-align: left; font-size: 12px; color: #98a2b3; font-weight: 500;
  padding: 10px 12px; border-bottom: 1px solid #eef1f6;
}
.list-table td { padding: 14px 12px; border-bottom: 1px solid #f4f7fb; font-size: 13px; color: #344054; }
.list-table tr:hover td { background: #fafcff; }
.score-pill { display: inline-block; min-width: 44px; padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; text-align: center; }
.score-pill.pass { background: #dcfce7; color: #15803d; }
.score-pill.fail { background: #fee2e2; color: #b91c1c; }

/* 成绩单“做错题”入口 + 重做页 */
.redo-btn {
  height: 28px; padding: 0 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid #bfd3f5; background: #eef4fd; color: #1d4ed8;
  font-size: 12px; font-weight: 600;
}
.redo-btn:hover { background: #dde9fd; }
.redo-wrap { height: calc(100vh * .8 - 62px); padding: 14px 26px 18px; display: flex; flex-direction: column; }
.redo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex: none; }
.redo-title { font-size: 15px; font-weight: 700; color: #1f2a3d; }
.redo-stat { font-size: 12.5px; color: #667085; }
.redo-stat b { color: #1f2a3d; }
.redo-stat b.ok { color: #15803d; }
.redo-flag {
  font-size: 11px; padding: 3px 8px; border-radius: 10px;
  background: #fff7ed; color: #b45309; border: 1px solid #ffd9b5;
}
.redo-flag.wrong { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.redo-card {
  --pf: 1;
  flex: 1; min-height: 0; overflow-y: auto;
  background: #fff; border: 1px solid #eef1f6; border-radius: 14px;
  padding: 20px 24px; box-shadow: 0 4px 18px rgba(31, 42, 61, .04);
}
.redo-stem { font-size: 17px; font-weight: 600; line-height: 1.65; color: #1f2a3d; margin: 2px 0 4px; }
.redo-img { margin: 10px auto 4px; }
.redo-img img { max-height: 28vh; }

.empty {
  padding: 70px 0; text-align: center; color: #98a2b3; font-size: 13px;
}
.empty .emoji { font-size: 34px; display: block; margin-bottom: 12px; opacity: .6; }

/* ===== 选择城市 ===== */
.city-page { padding: 0 26px 60px; position: relative; }
.city-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #eef1f6;
}
.city-nav-title { font-size: 16px; font-weight: 700; }
.city-nav-current { margin-left: auto; font-size: 12px; color: #98a2b3; }

.city-search {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 4px;
  height: 44px; padding: 0 16px;
  background: #f7f9fc; border: 1px solid #eef1f6; border-radius: 22px;
}
.city-search .cs-icon { font-size: 15px; opacity: .55; }
.city-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: #1f2a3d; }
.city-search input::placeholder { color: #b0b9c8; }
.cs-clear {
  border: none; background: transparent; color: #98a2b3; font-size: 14px; padding: 4px;
}

.loc-card {
  display: flex; align-items: center; gap: 16px;
  margin-top: 16px; padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(120deg, #f0fdf4, #f7fbff);
  border: 1px solid #e6f3ec;
}
.loc-main { flex: 1; min-width: 0; }
.loc-label { font-size: 12px; color: #12a15f; font-weight: 600; }
.loc-name { font-size: 22px; font-weight: 700; margin-top: 6px; color: #1f2a3d; }
.loc-sub { font-size: 12px; color: #98a2b3; margin-top: 6px; }
.loc-btns { display: flex; flex-direction: column; gap: 8px; flex: none; }
.btn-mini {
  height: 32px; padding: 0 14px; border-radius: 16px;
  border: 1px solid #cfe9db; background: #ffffff; color: #12a15f;
  font-size: 12px; font-weight: 600;
}
.btn-mini:hover { background: #f0fdf4; }
.btn-mini.ghost { color: #667085; border-color: #e6ebf3; }
.btn-mini.ghost:hover { background: #f7f9fc; }

.city-block, .letter-block { margin-top: 22px; }
.block-title { font-size: 13px; color: #98a2b3; margin-bottom: 12px; }
.letter-head {
  font-size: 12px; font-weight: 700; color: #12a15f;
  padding: 6px 4px; margin-bottom: 8px;
  position: sticky; top: 71px; z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #f4f7fb;
}
.city-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.city-cell {
  position: relative;
  height: 44px; border-radius: 10px;
  border: 1px solid #eef1f6; background: #ffffff;
  font-size: 13px; color: #344054;
  transition: all .12s;
  overflow: hidden;
}
.city-cell:hover { border-color: #22c55e; color: #12a15f; }
.city-cell.active { background: #e9f8f0; border-color: #9bdfbb; color: #12a15f; font-weight: 700; }
.city-cell .dot {
  position: absolute; right: 6px; top: 3px;
  font-size: 9px; color: #12a15f; opacity: .8;
}

.search-list { display: flex; flex-direction: column; gap: 6px; }
.search-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 10px;
  border: none; background: #fafcff;
  font-size: 14px; color: #344054;
}
.search-row:hover { background: #f0fdf4; color: #12a15f; }
.search-row .sr-name { flex: 1; }
.search-row .sr-prov { font-size: 12px; color: #98a2b3; }

.city-index {
  position: fixed; top: 50%; transform: translateY(-50%);
  right: 8px; z-index: 50;
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 20px rgba(22, 45, 84, .12);
}
.city-index span {
  display: block; width: 16px; text-align: center;
  font-size: 10px; color: #667085; cursor: pointer;
  padding: 1px 0; border-radius: 4px;
}
.city-index span:hover { background: #e9f8f0; color: #12a15f; font-weight: 700; }
@media (min-width: 1200px) {
  .city-index { right: calc((100vw - 1120px) / 2 + 6px); }
}
@media (max-width: 720px) {
  .city-page { padding: 0 14px 50px; }
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .letter-head { top: 69px; }
  .loc-card { flex-direction: column; align-items: flex-start; }
  .loc-btns { flex-direction: row; }
  .city-index span { width: 12px; font-size: 9px; }
}


/* ===== 考试成绩 ===== */
.result-wrap { padding: 26px; }
.result-hero {
  display: flex; align-items: center; gap: 36px;
  padding: 30px; border-radius: 16px;
  background: linear-gradient(120deg, #f0fdf4, #f8fbff);
  border: 1px solid #e6f3ec;
  margin-bottom: 22px;
}
.score-circle {
  width: 128px; height: 128px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #ffffff; border: 8px solid #22c55e; color: #15803d;
  box-shadow: 0 10px 26px rgba(34, 197, 94, .16);
  flex: none;
}
.score-circle.fail { border-color: #ef4444; color: #b91c1c; box-shadow: 0 10px 26px rgba(239, 68, 68, .14); }
.score-circle .num { font-size: 40px; font-weight: 800; line-height: 1; }
.score-circle .unit { font-size: 12px; color: #98a2b3; margin-top: 4px; }
.result-info h2 { margin: 0 0 8px; font-size: 22px; }
.result-info .meta { font-size: 13px; color: #667085; line-height: 1.9; }
.result-info .meta b { color: #1f2a3d; }
/* 成绩页右侧：再模拟一次 / 做本次模拟的错题 */
.result-actions {
  margin-left: auto; flex: none; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.result-actions .btn { min-width: 168px; height: 42px; }

.review-title { font-size: 15px; font-weight: 700; margin: 6px 0 12px; }
.review-item {
  border: 1px solid #eef1f6; border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px;
}
.review-item .rv-stem { font-size: 14px; line-height: 1.7; color: #1f2a3d; font-weight: 600; }
.review-item .rv-row { margin-top: 8px; font-size: 13px; color: #667085; }
.review-item .rv-answer { color: #16a34a; font-weight: 700; }
.review-item .rv-wrong { color: #dc2626; font-weight: 700; }
.review-item .rv-explain { margin-top: 8px; font-size: 13px; color: #475467; background: #f8fafc; padding: 10px 12px; border-radius: 8px; line-height: 1.7; }

/* ===== 考试页 ===== */
.exam-top {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 26px; border-bottom: 1px solid #eef1f6;
  background: #ffffff; position: sticky; top: 0; z-index: 40;
}
.exam-timer {
  display: flex; align-items: center; gap: 8px;
  background: #fff4e6; border: 1px solid #ffd7a8;
  color: #b45309; border-radius: 8px; padding: 7px 12px;
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.exam-timer.warn { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.exam-timer b { font-size: 17px; letter-spacing: 1px; }
.exam-progress { flex: 1; height: 8px; border-radius: 4px; background: #eef1f6; overflow: hidden; }
.exam-progress > i { display: block; height: 100%; background: #22c55e; width: 0; transition: width .3s; }

/* ===== 弹窗 ===== */
.mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(16, 27, 45, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal {
  width: 420px; max-width: 92vw; max-height: 86vh; overflow: auto;
  background: #ffffff; border-radius: 16px;
  padding: 26px 26px 22px;
  animation: popIn .16s ease;
  position: relative;
}
.modal.wide { width: 520px; }
.modal .m-close {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: #f4f6fa; color: #98a2b3;
  font-size: 17px; line-height: 1;
}
.modal .m-close:hover { background: #e8edf5; color: #475467; }
.m-title { font-size: 19px; font-weight: 700; text-align: center; margin-bottom: 18px; color: #1f2a3d; }
.m-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; line-height: 1.6; margin: 9px 0; }
.m-row .k { color: #667085; flex: none; }
.m-row .v { color: #1f2a3d; text-align: right; }
.m-suggest {
  margin: 18px 0; padding: 14px 16px; border-radius: 10px;
  background: #fef2f2; color: #7f1d1d; font-size: 13px; line-height: 1.7;
}
.m-suggest b { color: #dc2626; }
.m-suggest .st { font-weight: 700; color: #b91c1c; display: block; margin-bottom: 6px; }
.m-actions { display: flex; gap: 10px; margin-top: 20px; }
.m-actions .btn { flex: 1; }
.m-actions .btn.primary { flex: 2; }

.switch-row { display: flex; gap: 26px; justify-content: center; margin: 18px 0 4px; }
.switch-item { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; font-weight: 600; color: #1f2a3d; }
.radio {
  width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid #9fb3cd; box-sizing: border-box;
}
.radio.on { border-color: #22c55e; background: radial-gradient(circle at center, #22c55e 0 45%, #ffffff 46% 100%); }

/* 登录 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: #667085; margin-bottom: 7px; }
.field input {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid #e2e8f2; border-radius: 9px;
  font-size: 14px; color: #1f2a3d; outline: none;
}
.field input:focus { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .1); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn { height: 42px; padding: 0 14px; font-size: 12.5px; white-space: nowrap; }
.hint { font-size: 12px; color: #f59e0b; margin-top: 8px; min-height: 16px; }
.hint .dev-code { font-weight: 700; letter-spacing: 2px; }

/* 语音/视频技巧 */
.skill-panel { font-size: 14px; line-height: 1.85; color: #1f2a3d; background: #f7f9fd; border-radius: 10px; padding: 16px 18px; }
.skill-panel .sp-empty { color: #98a2b3; text-align: center; padding: 14px 0; }
.audio-bar { display: flex; align-items: center; gap: 12px; padding: 10px 0 2px; }
.audio-bar audio { width: 100%; height: 36px; }
.video-box video { width: 100%; border-radius: 10px; background: #000; max-height: 320px; }
.modal-head-actions { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.link-btn { border: none; background: none; color: #3b82f6; font-size: 12.5px; padding: 2px 4px; }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(24, 34, 51, .9); color: #ffffff;
  padding: 10px 18px; border-radius: 8px; font-size: 13px;
  z-index: 1200; pointer-events: none;
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .band { flex-direction: column; padding: 26px 18px; }
  .band-left { width: 100%; }
  .icon-row { flex-wrap: wrap; justify-content: center; gap: 18px; padding: 0 8px; }
  .icon-item { width: 76px; }
  .practice-wrap { flex-direction: column; padding: 16px; }
  .practice-aside { width: 100%; position: static; }
  .list-wrap { padding: 16px; }
  .result-hero { flex-direction: column; text-align: center; }
  .result-actions { margin-left: 0; align-self: center; }
  .topbar { padding: 0 14px; gap: 8px; }
  .brand .ver { display: none; }
  .subject-tabs { padding: 0 14px; }
  .quick-bar { justify-content: center; }
}

/* ===== 会员中心 / 扫码支付 ===== */
.vip-alert { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.vip-status { display: flex; align-items: center; gap: 8px; background: #f4f6fa; color: #475467; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }
.vip-status.on { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #9a3412; font-weight: 600; }
.vip-status .vs-icon { font-size: 18px; }
.vip-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.plan-card { border: 1px solid #e4e7ec; border-radius: 12px; padding: 16px 14px; text-align: center; background: #fff; }
.plan-card:hover { border-color: #16a34a; box-shadow: 0 6px 18px rgba(22, 163, 74, .12); }
.plan-name { font-size: 13.5px; color: #475467; }
.plan-price { font-size: 26px; font-weight: 800; color: #16a34a; margin: 6px 0 2px; letter-spacing: -.5px; }
.plan-price small { font-size: 14px; font-weight: 700; }
.plan-days { font-size: 12px; color: #98a2b3; margin-bottom: 12px; }
.plan-buy { width: 100%; height: 34px; font-size: 13px; }
.vip-code { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #e4e7ec; }
.vc-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.vip-code .code-row input { height: 42px; border: 1px solid #e4e7ec; border-radius: 10px; padding: 0 12px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.vip-code .code-row { display: flex; gap: 10px; }
.vip-code .code-row input { flex: 1; }
.vip-code .code-row .btn { height: 42px; padding: 0 16px; }
.vip-code .hint { font-size: 12px; color: #98a2b3; margin-top: 8px; }
.pay-box { display: flex; gap: 22px; align-items: center; padding: 6px 2px 10px; }
.pay-qr { width: 200px; height: 200px; border: 1px solid #e4e7ec; border-radius: 12px; padding: 8px; background: #fff; flex: none; }
.pay-side { flex: 1; min-width: 0; }
.pay-name { font-size: 15px; font-weight: 600; }
.pay-amount { font-size: 32px; font-weight: 800; color: #16a34a; margin: 8px 0; letter-spacing: -.5px; }
.pay-amount small { font-size: 16px; font-weight: 700; }
.pay-tip { font-size: 13px; color: #667085; line-height: 1.7; }
.pay-status { margin-top: 12px; font-size: 13px; color: #f59e0b; }
.pay-side .link-btn { margin-top: 12px; padding-left: 0; }
@media (max-width: 640px) {
  .pay-box { flex-direction: column; }
  .pay-qr { width: 100%; max-width: 260px; height: auto; }
}

/* ===== 科目二 / 科目三 视频课程 ===== */
.video-hero { gap: 16px; }
.video-hero-icon {
  width: 52px; height: 52px; border-radius: 15px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 14px rgba(37, 99, 235, .18);
}
.video-count { font-size: 13px; color: #98a2b3; }
.video-chapter { padding: 22px 30px 0; }
.video-chapter-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; color: #344054; margin-bottom: 14px;
}
.video-chapter-head .sub { font-size: 12px; font-weight: 400; color: #98a2b3; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.video-card {
  position: relative; border: 1px solid #eef1f7; border-radius: 12px; overflow: hidden;
  background: #fff; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31, 42, 61, .1); }
.video-cover { width: 100%; height: 132px; object-fit: cover; display: block; background: #f2f5fa; }
.video-cover-empty { display: flex; align-items: center; justify-content: center; font-size: 30px; color: #c7d2e3; }
.video-play {
  position: absolute; top: 46px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%; background: rgba(15, 23, 42, .55);
  color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
  padding-left: 3px;
}
.video-info { padding: 11px 13px 13px; }
.video-title { font-size: 13.5px; color: #344054; line-height: 1.45; height: 39px; overflow: hidden; }
.video-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: #98a2b3; margin-top: 8px; }
.video-meta .video-done { color: #16a34a; }
.video-player { width: 100%; max-height: 62vh; border-radius: 10px; background: #000; display: block; }
.video-desc { font-size: 13px; color: #667085; line-height: 1.7; margin-top: 12px; }
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-chapter { padding: 18px 16px 0; }
  .video-hero { padding: 20px 16px; }
}

/* ===== 图标技巧（左目录 / 右图标） ===== */
.icons-wrap {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 26px 50px;
}
.icons-nav {
  width: 196px;
  flex: none;
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: #f7f9fc;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.icons-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #475467;
  text-align: left;
  transition: background .15s, color .15s;
}
.icons-nav-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icons-nav-item em { font-style: normal; font-size: 11px; color: #98a2b3; }
.icons-nav-item:hover { background: #eef4ff; color: #1d4ed8; }
.icons-nav-item.active { background: #2563eb; color: #fff; font-weight: 600; }
.icons-nav-item.active em { color: rgba(255, 255, 255, .8); }

.icons-main { flex: 1; min-width: 0; }
.icons-main-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.icons-main-head h3 { font-size: 16px; color: #1f2a3d; }
.icons-main-head span { font-size: 12px; color: #98a2b3; }
.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.icon-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 14px 12px 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  text-align: center;
}
.icon-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31, 42, 61, .1); border-color: #dbe6f7; }
.icon-card-img {
  height: 96px; display: flex; align-items: center; justify-content: center;
  background: #f8fafd; border-radius: 9px; margin-bottom: 10px; overflow: hidden;
}
.icon-card-img img { max-width: 100%; max-height: 92px; object-fit: contain; }
.icon-card-name { font-size: 13px; color: #344054; font-weight: 600; line-height: 1.4; }
.icon-card-desc {
  font-size: 11.5px; color: #98a2b3; line-height: 1.5; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.no-img { font-size: 26px; color: #c7d2e3; }

.icon-detail { text-align: center; }
.icon-detail-img {
  background: #f8fafd; border-radius: 12px; padding: 16px;
  display: flex; align-items: center; justify-content: center; min-height: 180px;
}
.icon-detail-img img { max-width: 100%; max-height: 320px; object-fit: contain; }
.icon-detail-desc { margin-top: 14px; font-size: 13.5px; color: #475467; line-height: 1.8; text-align: left; }

@media (max-width: 720px) {
  .icons-wrap { flex-direction: column; padding: 16px; gap: 12px; }
  .icons-nav {
    width: 100%; position: static; max-height: none;
    flex-direction: row; overflow-x: auto; gap: 6px;
  }
  .icons-nav-item { width: auto; flex: none; white-space: nowrap; }
  .icons-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .icon-card-img { height: 78px; }
}

/* ===== 练习进度侧栏（替代答题卡） ===== */
.pstat { display: flex; gap: 12px; }
.pstat-item {
  flex: 1; min-width: 0;
  background: #f8fafd; border-radius: 10px;
  padding: 14px 8px; text-align: center;
}
.pstat-num { font-size: 26px; font-weight: 700; color: #1f2a3d; letter-spacing: -0.5px; line-height: 1.2; }
.pstat-num.blue { color: #2563eb; }
.pstat-label { font-size: 12px; color: #98a2b3; margin-top: 5px; }
.pstat-bar { height: 8px; background: #f1f4fa; border-radius: 99px; margin-top: 16px; overflow: hidden; }
.pstat-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #2563eb); border-radius: 99px; transition: width .3s; }
.pstat-note { margin-top: 10px; font-size: 11.5px; color: #98a2b3; line-height: 1.6; }

/* ===== 考试答题卡 10 × 10 ===== */
#e-aside { width: 336px; }
.card-grid.ten { grid-template-columns: repeat(10, 1fr); gap: 4px; }
.card-grid.ten .cell { height: 26px; font-size: 10px; border-radius: 5px; }
@media (max-width: 720px) {
  #e-aside { width: 100%; }
  .card-grid.ten .cell { height: 28px; font-size: 11px; }
}

/* ===== 真实考场模拟：开考前考台确认页 ===== */
.rex2 {
  display: flex; flex-direction: column;
  /* 全局 body 有 zoom:1.25，这里把 100vh 折算成 0.8 倍，保证 1366/1024×768 下正好一屏、不滚动 */
  height: calc(100vh * .8); overflow: hidden;
  background: #f4f6fa;
  /* 页面整体字号倍率：小/中/大/特大/超大，默认“大” */
  --fx: 1.16;
  --gx: 1.16;
}
.rex2[data-fs="s"] { --fx: .90; --gx: .90; }
.rex2[data-fs="m"] { --fx: 1.04; --gx: 1.04; }
.rex2[data-fs="l"] { --fx: 1.16; --gx: 1.16; }
.rex2[data-fs="xl"] { --fx: 1.38; --gx: 1.22; }
.rex2[data-fs="xxl"] { --fx: 1.62; --gx: 1.22; }
/* 特大/超大档优先保证答题卡完整可见，图片区适当回收高度 */
.rex2[data-fs="xl"] .rex2-imagewrap { height: 22vh; }
.rex2[data-fs="xxl"] .rex2-imagewrap { height: 21vh; }
.rex2-banner {
  position: relative;
  flex: none; height: calc(28px + 4px * var(--fx));
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1677e6, #3aa0ff);
  color: #fff; font-size: calc(17px * var(--fx)); font-weight: 800; letter-spacing: 5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
/* 页面整体字号控制（右上角） */
.rex2-fs {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 4px; letter-spacing: 0;
}
.rex2-fs-label { font-size: 12px; font-weight: 600; opacity: .92; margin-right: 2px; }
.rex2-fs button {
  height: 24px; padding: 0 8px; border-radius: 3px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: 0;
}
.rex2-fs button:hover { background: rgba(255, 255, 255, .28); }
.rex2-fs button.on { background: #fff; color: #1b6fd6; border-color: #fff; }

.rex2-intro-page { height: auto; min-height: calc(100vh * .8); overflow-y: auto; }
.rex2-intro-card {
  width: 92%; max-width: 1040px; margin: 20px auto 24px;
  background: #fff; border: 1px solid #dbe3ec; border-radius: 4px;
  padding: 24px 32px 26px;
  display: flex; gap: 40px; box-sizing: border-box;
}
.rex2-intro-left { flex: 1; min-width: 0; }
.rex2-intro-right { width: 330px; flex: none; text-align: center; }
.rex2-intro-title { font-size: calc(17px * var(--fx)); font-weight: 700; color: #1f2a3d; margin-bottom: 12px; }
.rex2-notice { font-size: calc(15px * var(--fx)); color: #475467; line-height: 2.1; }
.rex2-notice b { color: #1f2a3d; }
.rex2-intro-station { font-size: calc(18px * var(--fx)); font-weight: 700; color: #1f2a3d; margin: 6px 0 18px; }
.rex2-intro-line { font-size: calc(15px * var(--fx)); color: #475467; line-height: 2.2; }
.rex2-intro-val { color: #e11d48; font-weight: 700; }
.rex2-intro-btn {
  width: 150px; height: 40px; margin: 20px 0 18px;
  border: none; border-radius: 6px; background: #2563eb; color: #fff;
  font-size: calc(17px * var(--fx)); font-weight: 700; letter-spacing: 6px; cursor: pointer;
}
.rex2-intro-btn:hover { background: #1d4ed8; }
.rex2-intro-btn:disabled { opacity: .6; cursor: not-allowed; }
.rex2-intro-bottom {
  flex: none; margin-top: auto;
  padding: 9px 20px 10px;
  background: #ffffff; border-top: 2px solid #2563eb;
  font-size: calc(14px * var(--fx)); color: #2563eb; line-height: 1.6;
}

/* ===== 真实考场模拟：考试页 ===== */
.rex2-body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 310px;
  gap: 8px; padding: 7px 9px; box-sizing: border-box;
}
.rex2-side {
  display: flex; flex-direction: column; min-height: 0; min-width: 0; width: 100%;
  background: #fff; border: 1px solid #cfd8e3;
}
/* 左侧考生信息：内容过长（特大字号）时只滚动信息区，剩余时间/退出始终可见 */
.rex2-side-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.rex2-side-top { padding: 5px 8px; border-bottom: 1px solid #e6ebf2; text-align: center; }
.rex2-school { font-size: calc(13px * var(--fx)); color: #475467; font-weight: 600; }
.rex2-station { font-size: calc(14px * var(--fx)); font-weight: 800; color: #1f2a3d; margin-top: 1px; }
.rex2-info-head {
  padding: 3px 8px; background: #eef4fd; border-bottom: 1px solid #e6ebf2;
  color: #1d4ed8; font-size: calc(12.5px * var(--fx)); font-weight: 700;
}
.rex2-avatar {
  width: 26px; height: 26px; margin: 3px auto 0; border-radius: 50%;
  background: #eef2f8; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.rex2-rows { padding: 0 6px; }
.rex2-row { font-size: calc(12px * var(--fx)); color: #334155; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rex2-row span { color: #64748b; }
.rex2-timer-box {
  margin-top: auto; padding: 4px 8px 7px; border-top: 1px solid #e6ebf2; text-align: center;
}
.rex2-timer-label { font-size: calc(11.5px * var(--fx)); color: #64748b; }
.rex2-timer {
  font-family: Consolas, "Courier New", monospace;
  font-size: calc(19px * var(--fx)); font-weight: 800; color: #16a34a; letter-spacing: 1px; margin-top: 2px;
}
.rex2-exit {
  width: 100%; height: calc(24px * var(--fx)); margin-top: 6px; cursor: pointer;
  border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #64748b;
  font-size: calc(11.5px * var(--fx));
}
.rex2-main {
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
  background: #fff; border: 1px solid #cfd8e3;
}
.rex2-main-head {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 4px 10px; background: #f7faff; border-bottom: 1px solid #e6ebf2;
}
.rex2-head-title { font-size: calc(14px * var(--fx)); font-weight: 600; color: #475467; }
.rex2-badge {
  padding: 1px 7px; border-radius: 3px;
  background: #1d4ed8; color: #fff; font-size: calc(12px * var(--fx)); font-weight: 700;
}
.rex2-qbox {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 3px 10px 2px;
}
/* 题干+选项+答案行+提示信息+操作按钮统一随内容滚动：按钮位于提示信息下方右侧，不再固定页面底部 */
.rex2-qscroll { flex: 1; min-height: 0; overflow-y: auto; padding-right: 2px; }
.rex2-stem-row { flex: none; display: flex; align-items: flex-start; gap: 8px; }
.rex2-stem { flex: 1; min-width: 0; font-size: calc(15.5px * var(--fx)); font-weight: 600; line-height: 1.55; color: #1f2a3d; }
.rex2-skill {
  flex: none; padding: 1px 7px; border-radius: 3px; cursor: pointer;
  border: 1px solid #fbbf24; background: #fffbeb; color: #b45309;
  font-size: calc(11.5px * var(--fx));
}
/* 选项竖排：每个选项独占一行、整行可点 */
.rex2-options {
  flex: none;
  margin-top: calc(6px * var(--fx)); display: flex; flex-direction: column;
  gap: calc(4px * var(--fx)); align-content: flex-start;
}
.rq-opt {
  flex: 0 0 auto; width: 100%; max-width: 100%;
  display: flex; align-items: center; gap: calc(7px * var(--fx));
  padding: calc(4px * var(--fx)) calc(10px * var(--fx));
  border: 1px solid #cbd5e1; border-radius: 4px;
  background: #fff; color: #334155; font-size: calc(13.5px * var(--fx)); line-height: 1.45;
  text-align: left; cursor: pointer;
}
.rq-opt:hover { border-color: #93b4f8; }
.rq-opt:disabled { cursor: not-allowed; }
.rq-opt-badge {
  flex: none; width: calc(18px * var(--fx)); height: calc(18px * var(--fx)); border-radius: 50%;
  background: #eef4fd; color: #1d4ed8; font-size: calc(11px * var(--fx)); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rq-opt-text { flex: 1; min-width: 0; word-break: break-word; }
/* 选项图片：固定缩略图尺寸，不挤压文字 */
.rq-opt-img {
  flex: none; width: calc(64px * var(--fx)); height: calc(48px * var(--fx));
  object-fit: contain; border-radius: 3px; background: #f8fafc; border: 1px solid #eef1f6;
}
.rq-opt.picked { border-color: #1d4ed8; background: #eef4fd; }
.rq-opt.right { border-color: #16a34a; background: #f0fdf4; }
.rq-opt.right .rq-opt-badge { background: #dcfce7; color: #15803d; }
.rq-opt.wrong { border-color: #dc2626; background: #fef2f2; }
.rq-opt.wrong .rq-opt-badge { background: #fee2e2; color: #b91c1c; }
.rex2-answer-row {
  flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  margin-top: 4px; padding-top: 5px; border-top: 1px dashed #dbe3ec;
}
.rex2-answer-col { font-size: calc(12px * var(--fx)); color: #475467; }
.rex2-answer-col b { color: #1d4ed8; }
.rex2-letters { display: flex; align-items: center; gap: 4px; }
.rq-letter {
  width: calc(23px * var(--fx)); height: calc(23px * var(--fx)); border-radius: 4px; cursor: pointer;
  border: 1px solid #cbd5e1; background: #fff; color: #475467;
  font-size: calc(12.5px * var(--fx)); font-weight: 700;
}
.rq-letter:disabled { cursor: not-allowed; }
.rq-letter.picked { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.rq-letter.right { background: #16a34a; border-color: #16a34a; color: #fff; }
.rq-letter.wrong { background: #dc2626; border-color: #dc2626; color: #fff; }
.rex2-nav { margin-top: calc(6px * var(--fx)); display: flex; justify-content: flex-end; gap: 6px; flex: none; }
.rex2-btn {
  min-width: calc(60px * var(--fx)); height: calc(29px * var(--fx)); border-radius: 4px; cursor: pointer;
  border: 1px solid #cbd5e1; background: #fff; color: #334155; font-size: calc(13px * var(--fx));
}
.rex2-btn:hover { border-color: #2563eb; color: #2563eb; }
.rex2-btn:disabled { opacity: .45; cursor: not-allowed; }
.rex2-card {
  display: flex; flex-direction: column; min-height: 0; min-width: 0; width: 100%;
  background: #fff; border: 1px solid #cfd8e3;
}
/* 覆盖旧考试页的固定 336px 栏宽，真实考场按三栏网格宽度自适应 */
.rex2-body #e-aside { width: 100%; }
.rex2-card-title {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 2px 8px; background: #f7faff; border-bottom: 1px solid #e6ebf2;
  font-size: calc(13px * var(--fx)); font-weight: 700; color: #334155;
}
.rex2-card-count { font-size: calc(11.5px * var(--fx)); font-weight: 500; color: #64748b; }
.rex2-grid-wrap { flex: 1; min-height: 0; overflow: auto; padding: 2px; }
.rg-grid { display: grid; grid-template-columns: calc(20px * var(--gx)) repeat(10, minmax(0, 1fr)); gap: 2px; }
.rg-head {
  height: calc(20.7px * var(--gx)); display: flex; align-items: center; justify-content: center;
  background: #eef4fd; border: 1px solid #dbe3ec; border-radius: 2px;
  font-size: calc(8.6px * var(--gx)); color: #475467; white-space: nowrap;
}
.rg-rowhead {
  height: calc(20.7px * var(--gx)); display: flex; align-items: center; justify-content: center;
  background: #f7faff; border: 1px solid #e6ebf2; border-radius: 2px;
  font-size: calc(8.6px * var(--gx)); color: #64748b; white-space: nowrap;
}
.rcell2 {
  height: calc(20.7px * var(--gx)); display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
  border: 1px solid #d8dee9; border-radius: 2px; background: #fff;
  font-size: calc(10px * var(--gx)); color: #475467; cursor: pointer; overflow: hidden;
}
.rcell2 .n { font-size: calc(8.6px * var(--gx)); line-height: 1; }
.rcell2 .m { min-height: calc(6px * var(--gx)); font-size: calc(9px * var(--gx)); line-height: 1; font-weight: 700; }
.rcell2.done { background: #eef4fd; border-color: #bfd3f5; }
.rcell2.done.right .m { color: #15803d; }
.rcell2.wrong { background: #e05252; border-color: #e05252; color: #fff; }
.rcell2.wrong .m { color: #fff; }
.rcell2.cur { box-shadow: inset 0 0 0 2px #e11d48; border-color: #e11d48; }
.rcell2.blank { background: #fafbfd; border-color: #eef1f6; cursor: default; }
.rex2-legend {
  flex: none; display: flex; gap: 10px; padding: 1px 8px 2px;
  border-top: 1px solid #e6ebf2; font-size: calc(10px * var(--fx)); color: #64748b;
}
.rex2-legend span { display: flex; align-items: center; gap: 3px; }
.rex2-legend i { width: 9px; height: 9px; border-radius: 2px; border: 1px solid #d8dee9; }
.rex2-legend .lg-done { background: #eef4fd; border-color: #bfd3f5; }
.rex2-legend .lg-wrong { background: #e05252; border-color: #e05252; }
.rex2-legend .lg-cur { border: 2px solid #e11d48; }
.rex2-hint {
  flex: none; display: flex; align-items: center; gap: 8px;
  margin-top: calc(6px * var(--fx));
  padding: 2px 10px; background: #fff;
  border-top: 2px solid #1d4ed8; border-bottom: 1px solid #cfd8e3;
}
.rex2-hint-text { font-size: calc(13px * var(--fx)); color: #1d4ed8; }
.rex2-hint-text b { color: #0f172a; margin-right: 6px; }
.rex2-hint-text b.rex2-hint-wrong { color: #dc2626; }
.rex2-submit {
  margin-left: 4px; min-width: calc(84px * var(--fx)); height: calc(24px * var(--fx));
  border: none; border-radius: 4px; background: #22b14c; color: #fff;
  font-size: calc(13px * var(--fx)); font-weight: 700; letter-spacing: 3px; cursor: pointer;
}
.rex2-submit:hover { background: #1a9b41; }
.rex2-imagewrap {
  flex: none; height: 26vh;
  display: flex; align-items: center; justify-content: center;
  padding: 5px 10px 6px; box-sizing: border-box;
  background: #f4f6fa;
}
/* 题量更多（8 行 / 10 行答题卡）时压缩图片区，优先保证格子全部可见、不滚动 */
.rex2.rex2-img-sm .rex2-imagewrap { height: 22vh; }
.rex2.rex2-img-xs .rex2-imagewrap { height: 17vh; }
.rex2-imagebox {
  width: min(448px, 80%); height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
}
.rex2-imagebox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; }
.rex2-imagebox.has-image { cursor: zoom-in; }
/* 无图/加载失败时保持空白：不显示文字，也不显示白色空框 */
.rex2-imagebox:empty { background: transparent; border-color: transparent; }
.rex2-image-empty { font-size: 10px; color: #f1f5f9; }
.rex2-bigimg { text-align: center; }
.rex2-bigimg img { max-width: 100%; max-height: 66vh; object-fit: contain; }

/* ===== 模拟考试：卡片式浅色布局（左侧信息 / 中间题目 / 右侧答题卡） ===== */
.mx {
  height: calc(100vh * .8); overflow: hidden;
  display: grid; grid-template-columns: 168px minmax(0, 1fr) 330px;
  gap: 10px; padding: 12px; box-sizing: border-box;
  background: #f4f6fa;
  --fx: 1; --gx: 1;
}
.mx-side, .mx-main, .mx-card {
  min-width: 0; min-height: 0; background: #fff; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06); box-sizing: border-box;
}
.mx-side { display: flex; flex-direction: column; padding: 8px; text-align: center; }
.mx-side-top { flex: none; padding-bottom: 7px; border-bottom: 1px solid #eef1f6; }
.mx-side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-top: 5px; }
.mx-school { font-size: 11.5px; color: #98a2b3; }
.mx-station { font-size: 14.5px; font-weight: 800; color: #1f2a3d; margin-top: 1px; }
.mx-info-head {
  padding: 3px 6px; margin-bottom: 2px; border-radius: 3px;
  background: #eef4fd; color: #1d4ed8; font-size: 11px; font-weight: 700; text-align: left;
}
.mx-avatar {
  width: 30px; height: 30px; margin: 7px auto 4px; border-radius: 50%;
  background: #eef2f8; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.mx-rows { text-align: left; padding: 0 4px; }
.mx-row { font-size: 11.5px; color: #334155; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-row span { color: #94a3b8; }
.mx-timer-box {
  flex: none; margin-top: 8px; padding: 7px 0 8px; text-align: center;
  border-top: 1px solid #eef1f6; border-bottom: 1px solid #eef1f6;
}
.mx-timer-box.warn .mx-time { color: #dc2626; }
.mx-timer-label { font-size: 11.5px; color: #64748b; }
.mx-time {
  font-family: Consolas, "Courier New", monospace;
  font-size: 19px; font-weight: 800; color: #16a34a; letter-spacing: 1px; margin-top: 2px;
}
.mx-exit {
  width: 100%; height: 28px; margin-top: 6px; cursor: pointer;
  border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: #64748b; font-size: 12px;
}
.mx-main { display: flex; flex-direction: column; padding: 12px 14px 10px; }
.mx-head { flex: none; display: flex; align-items: center; gap: 8px; }
.mx-head-title { font-size: 12px; font-weight: 700; color: #e11d48; letter-spacing: 1px; }
.mx-badge {
  padding: 1px 7px; border-radius: 3px; background: #eef4fd; color: #1d4ed8;
  font-size: 11px; font-weight: 700;
}
.mx-count { margin-left: auto; font-size: 11px; color: #98a2b3; }
.mx-qscroll { flex: 1; min-height: 0; overflow-y: auto; margin-top: 7px; padding-right: 2px; }
.mx-stem-row { display: flex; align-items: flex-start; gap: 8px; }
.mx-stem { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: #1f2a3d; line-height: 1.5; }
.mx-no { margin-right: 4px; }
.mx-speak {
  flex: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  border: 1px solid #dbe3ec; background: #fff; font-size: 12px;
}
.mx-options { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.mx-opt {
  width: 100%; display: flex; align-items: center; gap: 4px; cursor: pointer;
  padding: 5px 10px; border: 1px solid #e6ebf2; border-radius: 5px;
  background: #fff; color: #334155; font-size: 13.5px; line-height: 1.5; text-align: left;
}
.mx-opt:hover { border-color: #93b4f8; }
.mx-opt:disabled { cursor: not-allowed; }
.mx-opt.selected { border-color: #2563eb; background: #eef4fd; }
.mx-opt.right { border-color: #16a34a; background: #f0fdf4; }
.mx-opt.right .mx-opt-letter { color: #15803d; }
.mx-opt.wrong { border-color: #dc2626; background: #fef2f2; }
.mx-opt.wrong .mx-opt-letter { color: #b91c1c; }
.mx-opt-letter { flex: none; color: #64748b; font-weight: 600; }
.mx-opt.selected .mx-opt-letter { color: #1d4ed8; }
.mx-opt-text { flex: 1; min-width: 0; word-break: break-word; }
.mx-ansrow { margin-top: 9px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #475467; }
.mx-ans-label { color: #64748b; }
.mx-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 4px; border: 1px solid #dbe3ec; border-radius: 4px;
  background: #fff; color: #1f2a3d; font-weight: 700; font-size: 12px;
}
.mx-none { color: #98a2b3; }
.mx-tipwrap { margin-top: 9px; padding: 4px 10px 6px; background: #f5f8fd; border-radius: 5px; }
.mx-tip-label { font-size: 11px; font-weight: 700; color: #2563eb; margin-bottom: 2px; }
.mx-tip { font-size: 12.5px; color: #475467; line-height: 1.55; }
.mx-tip-ok { color: #16a34a; }
.mx-tip-bad { color: #dc2626; }
.mx-nav { flex: none; display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; padding-top: 6px; }
.mx-btn {
  min-width: 76px; height: 34px; border: 1px solid #dbe3ec; border-radius: 5px;
  background: #fff; color: #475467; font-size: 13px; cursor: pointer;
}
.mx-btn:hover { border-color: #2563eb; color: #2563eb; }
.mx-btn:disabled { opacity: .45; cursor: not-allowed; }
.mx-btn.green { background: #22c55e; border-color: #22c55e; color: #fff; }
.mx-btn.green:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
/* 图片区：固定高度占位，有图才渲染图片；无图留白，保证操作按钮位置不随题目上下移动 */
.mx-imagewrap {
  flex: none; height: 196px; width: min(620px, 100%); align-self: center;
  display: flex; align-items: center; justify-content: center;
  margin: 6px auto 10px; box-sizing: border-box;
}
.mx-imagewrap img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
/* 答题卡（复用 rg-grid / rcell2 结构） */
.mx-card { display: flex; flex-direction: column; padding: 10px; }
.mx-card#e-aside { width: 100%; }
.mx-card-title {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 8px;
}
.mx-card-count { font-size: 11px; font-weight: 500; color: #98a2b3; }
.mx-grid-wrap { flex: 1; min-height: 0; overflow: auto; }
/* 模拟考试答题卡固定 10 列 100 格：加大格子并保证完整显示，不横向溢出 */
.mx .rg-grid { grid-template-columns: 24px repeat(10, minmax(0, 1fr)); gap: 2px; }
.mx .rg-head, .mx .rg-rowhead, .mx .rcell2 { height: 26px; }
.mx .rg-head, .mx .rg-rowhead { font-size: 9.5px; }
.mx .rcell2 .n { font-size: 10px; }
.mx .rcell2 .m { min-height: 7px; font-size: 10px; }
.mx-legend {
  flex: none; display: flex; gap: 10px; padding-top: 6px;
  font-size: 10.5px; color: #64748b;
}
.mx-legend span { display: flex; align-items: center; gap: 3px; }
.mx-legend i { width: 9px; height: 9px; border-radius: 2px; border: 1px solid #d8dee9; }
.mx-legend .lg-done { background: #eef4fd; border-color: #bfd3f5; }
.mx-legend .lg-wrong { background: #e05252; border-color: #e05252; }
.mx-legend .lg-cur { border: 2px solid #e11d48; }
@media (max-width: 1160px) {
  .mx { grid-template-columns: 150px minmax(0, 1fr) 308px; gap: 8px; padding: 10px; }
  .mx-imagewrap { height: 180px; width: min(560px, 100%); }
}

/* 答错解析弹窗 */
.ra-head {
  font-size: 19px; font-weight: 800; color: #b91c1c;
  text-align: center; margin: 4px 0 16px;
}
.ra-row { font-size: 14px; color: #334155; }
.ra-answer { color: #16a34a; font-size: 17px; margin-left: 4px; }
.ra-label {
  margin-top: 14px; font-size: 13px; font-weight: 700; color: #1f2a3d;
}
.ra-text {
  margin-top: 6px; padding: 10px 12px; border-radius: 8px;
  background: #f7fafc; border: 1px solid #e6ebf2;
  font-size: 13.5px; line-height: 1.8; color: #475467;
  max-height: 34vh; overflow-y: auto; white-space: pre-wrap;
}
.ra-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px;
}
.ra-count { font-size: 12.5px; color: #94a3b8; }
.ra-foot .btn { min-width: 96px; height: 38px; }

/* ===== 考试确认窗口 ===== */
.rc-head {
  background: #2ebd6e; color: #fff;
  text-align: center; font-size: 17px; font-weight: 700; letter-spacing: 2px;
  padding: 15px; border-radius: 14px 14px 0 0;
  margin: -20px -20px 18px;
}
.rc-body { font-size: 14px; color: #475467; line-height: 2; }
.rc-tip-title { font-weight: 700; color: #1f2a3d; margin-bottom: 4px; }
.rc-g { color: #16a34a; }
.rc-r { color: #dc2626; }
.rc-foot { display: flex; gap: 14px; justify-content: center; margin-top: 20px; }
.rc-foot .btn { min-width: 130px; height: 40px; }

/* 真实考场模拟：窄屏适配（1366×768 起为基准，缩放时保持三栏不塌） */
@media (max-width: 1160px) {
  .rex2-body { grid-template-columns: 150px minmax(0, 1fr) 295px; gap: 6px; padding: 6px; }
  .rex2-imagebox { width: min(420px, 82%); }
}
@media (max-width: 960px) {
  .rex2-intro-card { flex-direction: column; gap: 18px; padding: 18px 20px; }
  .rex2-intro-right { width: 100%; }
}
@media (max-width: 760px) {
  .rex2 { height: auto; min-height: calc(100vh * .8); overflow: visible; }
  .rex2-body { grid-template-columns: 1fr; }
  .rex2-side { position: static; }
  .rex2-imagebox { width: 100%; }
  .rex2-hint { flex-wrap: wrap; gap: 8px; }
}

/* ===== 题目图片/动图：上一题/下一题下方居中，自适应不下拉看全 ===== */
.q-image { margin: 14px auto 4px; text-align: center; display: flex; align-items: center; justify-content: center; }
.q-image img { max-width: 100%; max-height: 36vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; border: 1px solid #e8edf5; display: inline-block; }
.q-image.sm { display: block; text-align: left; }
.q-image.sm img { max-height: 200px; }
/* 练习页图片：占据卡片剩余高度，自动等比缩小，保证整题一屏 */
.quiz-card .q-image { flex: 1; min-height: 0; margin: calc(8px * var(--pf, 1)) 0 0; }
.quiz-card .q-image img { max-height: 100%; max-width: 100%; border-radius: 8px; }

/* ===== 个人中心：绑定驾校 ===== */
.bind-current {
  background: #f8fafc; border: 1px solid #e8edf5; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px;
}
.bind-current.ok { background: #eafaf0; border-color: #b8ebc9; }
.bind-current.pending { background: #fff7ed; border-color: #ffd9b5; }
.bind-current-label { font-size: 12px; color: #98a2b3; }
.bind-current-name { font-size: 18px; font-weight: 800; color: #1f2a3d; margin-top: 4px; }
.bind-current.ok .bind-current-name { color: #15803d; }
.bind-current-meta { font-size: 12px; color: #667085; margin-top: 4px; }
.bind-preview {
  border: 1px dashed #ffc38a; background: #fffaf5; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px;
}
.bind-preview-label { font-size: 12px; color: #98a2b3; }
.bind-preview-name { font-size: 17px; font-weight: 800; color: #b45309; margin-top: 4px; }
.bind-preview-meta { font-size: 12px; color: #a16207; margin-top: 2px; }
.bind-note {
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
  background: #fff7ed; color: #b45309;
}
.bind-note.ok { background: #eafaf0; color: #15803d; }
.bind-note.fail { background: #fff0f0; color: #dc2626; }


