/* ============================================================
   高中雅思测试平台 · 设计系统（绿主题，无新东方字眼）
   - 主色 #00B050 雅思主题绿
   - 强调色 #FF7A00 橙色 CTA
   - 辅色 #6F3DD8 紫色（次级入口/写作）
   - 浅灰背景 #F4F6F8
   ============================================================ */
:root {
  /* 色彩 */
  --brand: #00B050;
  --brand-deep: #00873D;
  --brand-soft: #E6F8EE;
  --accent: #FF7A00;
  --accent-soft: #FFE9D4;
  --violet: #6F3DD8;
  --violet-soft: #EFE7FF;
  --gold: #F59E0B;
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --ink: #1F2A37;
  --text: #4B5563;
  --mute: #9AA3AF;
  --line: #E5E7EB;
  --line-soft: #F0F2F5;
  --ok: #00B050;
  --warn: #F59E0B;
  --err: #EF4444;

  /* 形状与阴影 */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lift: 0 12px 32px rgba(15, 23, 42, .10);
  --shadow-pop: 0 6px 20px rgba(0, 176, 80, .22);

  /* 排版 */
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ========== 顶部导航 ========== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--ink);
  letter-spacing: .5px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 10px;
  color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: var(--shadow-pop);
}
.brand-mark::after {
  content: "Y"; /* Y for IELTS 雅思 — 替换新东方品牌字 */
}
.brand-en { font-family: var(--font); font-size: 12px; color: var(--mute); margin-left: 4px; letter-spacing: 1px; }
.topnav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.topnav a {
  position: relative;
  padding: 8px 14px;
  color: var(--text);
  font-size: 14px;
  border-radius: 8px;
  transition: all .15s ease;
}
.topnav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.topnav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.topnav a .dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.bell {
  position: relative; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.bell .badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  border-radius: 8px; background: var(--err); color: #fff;
  font-size: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--line-soft);
  cursor: pointer;
}
.user-chip:hover { background: var(--brand-soft); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), #8B5CF6);
  color: #fff; font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.user-name { font-size: 13px; color: var(--ink); font-weight: 600; }
.caret { color: var(--mute); font-size: 10px; }

/* ========== 内容容器 ========== */
.app { max-width: 1280px; margin: 0 auto; padding: 28px 28px 60px; }

/* ========== Hero 区 ========== */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #00B050 0%, #00C26F 55%, #00B894 100%);
  color: #fff;
  padding: 44px 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-lift);
}
.hero::before {
  content: "FORYOU";
  position: absolute; right: 60px; top: 30px;
  font-family: var(--font); font-weight: 800;
  font-size: 92px; letter-spacing: 6px; opacity: .10;
  pointer-events: none;
}
.hero h1 {
  color: #fff; font-size: 42px; line-height: 1.15;
  margin-bottom: 12px; font-weight: 700;
  font-family: var(--font);
  letter-spacing: 1px;
}
.hero p { font-size: 15px; opacity: .92; margin-bottom: 24px; max-width: 460px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 26px;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 18px rgba(255, 122, 0, .35);
  transition: transform .15s;
}
.hero-cta:hover { transform: translateY(-1px); color: #fff; }
.hero-cta::after { content: "→"; font-size: 16px; }
.hero-art {
  position: relative; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.hero-phone {
  width: 130px; height: 220px;
  background: #fff; border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  padding: 10px; transform: rotate(-8deg);
  margin-right: -32px;
}
.hero-phone + .hero-phone { transform: rotate(6deg); margin-right: 0; margin-left: -10px; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 14px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
}
.phone-row { display: flex; gap: 6px; }
.phone-pill { height: 8px; border-radius: 4px; background: var(--brand); flex: 1; opacity: .8; }
.phone-card {
  background: #fff; border-radius: 8px; padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  font-size: 8px; color: var(--ink);
}
.phone-card .num { font-size: 14px; font-weight: 700; color: var(--brand); }
.phone-bar { display: flex; gap: 4px; align-items: end; height: 30px; }
.phone-bar span { width: 8px; background: var(--violet); border-radius: 2px; }

/* ========== 三栏看板 ========== */
.dash-grid {
  display: grid; grid-template-columns: 280px 1fr 280px; gap: 20px;
  margin-top: 24px;
}
.col { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ""; width: 3px; height: 14px; background: var(--brand); border-radius: 2px; }
.card-title .more { margin-left: auto; color: var(--mute); font-size: 12px; font-weight: 400; }

/* 用户卡片 */
.profile-card { padding: 22px; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), #8B5CF6);
  color: #fff; font-weight: 700; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.profile-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.profile-lv { display: inline-block; padding: 1px 8px; background: var(--accent-soft); color: var(--accent); border-radius: 4px; font-size: 11px; margin-left: 4px; }
.profile-row { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-cell .num { font-size: 20px; font-weight: 700; color: var(--ink); font-family: var(--font-serif); }
.profile-cell .lbl { font-size: 12px; color: var(--mute); }
.profile-cell .num em { font-style: normal; font-size: 12px; color: var(--mute); margin-left: 2px; }

/* 倒计时 */
.countdown { text-align: center; padding: 22px; }
.countdown .lbl { color: var(--mute); font-size: 12px; }
.countdown .num { font-size: 56px; font-weight: 700; color: var(--err); line-height: 1; margin: 8px 0 4px; font-family: var(--font-serif); }
.countdown .num small { font-size: 16px; margin-left: 4px; }
.countdown .sub { font-size: 12px; color: var(--mute); }
.countdown .target { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.countdown .target .lbl { font-size: 12px; }
.countdown .target .num { font-size: 28px; color: var(--violet); margin: 4px 0; }

/* 累计完成练习 */
.icon-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.icon-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; }
.icon-bubble {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--violet-soft); color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.icon-bubble.b2 { background: var(--brand-soft); color: var(--brand); }
.icon-bubble.b3 { background: var(--accent-soft); color: var(--accent); }
.icon-bubble.b4 { background: #FFF3E0; color: var(--gold); }
.icon-num { font-size: 15px; font-weight: 700; color: var(--ink); }
.icon-lbl { font-size: 11px; color: var(--mute); }
.icon-num em { font-style: normal; font-size: 10px; color: var(--mute); margin-right: 1px; }

/* 今日已完成 */
.today { min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--mute); text-align: center; padding: 18px 12px; }
.today .illu {
  width: 80px; height: 60px;
  background: linear-gradient(180deg, var(--violet-soft) 0%, transparent 100%);
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  position: relative;
}
.today .illu::after {
  content: "📡"; position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 22px; opacity: .35;
}
.today a { color: var(--brand); }

/* 写作评估 promo */
.promo {
  background: linear-gradient(135deg, #F0FFF4 0%, #fff 60%);
  border: 1px solid var(--brand-soft);
  padding: 16px;
}
.promo h4 { font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.promo .tag { display: inline-block; padding: 1px 8px; background: var(--accent-soft); color: var(--accent); border-radius: 4px; font-size: 11px; }
.promo ul { list-style: none; margin-top: 10px; }
.promo li {
  background: #fff; padding: 8px 12px; border-radius: 8px; font-size: 12px; color: var(--text);
  margin-bottom: 6px; border: 1px solid var(--line-soft);
}
.promo strong { color: var(--violet); display: block; margin-top: 10px; font-size: 14px; }
.promo strong + strong { margin-top: 4px; }

/* 日历 */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-size: 18px; font-weight: 700; color: var(--ink); font-family: var(--font-serif); }
.cal-title em { font-style: normal; font-size: 12px; color: var(--mute); margin-left: 4px; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { background: transparent; border: 0; color: var(--mute); font-size: 14px; padding: 4px 8px; cursor: pointer; border-radius: 6px; }
.cal-nav button:hover { background: var(--line-soft); color: var(--ink); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 11px; color: var(--mute); margin-bottom: 6px; text-align: center; }
.cal-week span.sat, .cal-week span.sun { color: var(--err); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 6px; color: var(--text); }
.cal-day.empty { color: transparent; }
.cal-day.today { background: var(--brand); color: #fff; font-weight: 700; }
.cal-day.hot { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cal-foot { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); }
.cal-foot .num { color: var(--brand); font-weight: 700; }
.cal-foot .num.danger { color: var(--err); }
.cal-foot button {
  margin-left: auto; padding: 6px 18px;
  background: var(--violet); color: #fff; border: 0; border-radius: 999px; font-size: 12px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(111, 61, 216, .25);
}
.cal-foot button:hover { background: #5B2BC0; }

/* 排行榜 */
.rank-list { list-style: none; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-num { width: 22px; height: 22px; border-radius: 50%; background: var(--line-soft); color: var(--mute); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.rank-num.top1 { background: var(--gold); color: #fff; }
.rank-num.top2 { background: #C0C0C0; color: #fff; }
.rank-num.top3 { background: #CD7F32; color: #fff; }
.rank-name { flex: 1; font-size: 13px; color: var(--ink); }
.rank-score { font-size: 12px; color: var(--brand); font-weight: 700; }

/* 通用按钮 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 8px; border: 0; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(0,176,80,.20); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(255,122,0,.25); }
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 4px 12px rgba(111,61,216,.25); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* 标签 */
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tag-green { background: var(--brand-soft); color: var(--brand-deep); }
.tag-orange { background: var(--accent-soft); color: var(--accent); }
.tag-violet { background: var(--violet-soft); color: var(--violet); }
.tag-gray { background: var(--line-soft); color: var(--text); }

/* 页面标题 */
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 26px; color: var(--ink); margin-bottom: 6px; }
.page-head p { color: var(--mute); font-size: 14px; }
.page-head .back { color: var(--mute); font-size: 13px; }
.page-head .back:hover { color: var(--brand); }

/* 角色入口卡片 */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.entry-card {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 20px; transition: all .2s; cursor: pointer; border: 2px solid transparent;
}
.entry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--brand-soft); }
.entry-card .ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.entry-card .ico.g { background: var(--brand-soft); color: var(--brand-deep); }
.entry-card .ico.v { background: var(--violet-soft); color: var(--violet); }
.entry-card .ico.o { background: var(--accent-soft); color: var(--accent); }
.entry-card h4 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.entry-card p { font-size: 12px; color: var(--mute); line-height: 1.5; }

/* 表格 */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { background: var(--line-soft); color: var(--ink); padding: 10px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--line); }
table.t td { padding: 12px; border-bottom: 1px solid var(--line-soft); }
table.t tr:hover td { background: var(--brand-soft); }
table.t .status-on { color: var(--brand); }
table.t .status-off { color: var(--mute); }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: var(--mute); font-weight: 600; }
.field input, .field textarea, .field select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-soft); }
.field-full { grid-column: 1 / -1; }

/* 信息表格（入班测个人信息/学员基本信息） */
.info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.info-table th { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; padding: 8px 12px; text-align: left; width: 160px; border-bottom: 1px solid var(--line-soft); }
.info-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.filter-bar .f-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.filter-bar .f-item label { color: var(--mute); white-space: nowrap; }
.filter-bar select, .filter-bar input { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; }
.filter-bar .export { margin-left: auto; }

/* 上传区 */
.upload-zone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--mute); cursor: pointer; transition: all .15s; background: var(--line-soft); }
.upload-zone:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.upload-zone .big { font-size: 30px; margin-bottom: 6px; }
.upload-zone .t { font-size: 13px; font-weight: 600; color: var(--ink); }

/* 生成链接卡片 */
.link-card { background: linear-gradient(135deg, var(--brand-soft), #fff); border: 1px solid var(--brand); border-radius: var(--radius-lg); padding: 20px; margin-top: 16px; }
.link-card .url { background: #fff; border: 1px dashed var(--brand); border-radius: 8px; padding: 10px 14px; font-family: "Consolas", monospace; font-size: 13px; color: var(--brand-deep); word-break: break-all; }
.link-card .pwd { font-size: 13px; color: var(--ink); margin-top: 10px; }
.link-card .pwd strong { color: var(--accent); font-family: "Consolas", monospace; }

/* 饼图 */
.pie-row { display: flex; align-items: center; gap: 20px; }
.pie-legend { list-style: none; font-size: 12px; color: var(--text); flex: 1; }
.pie-legend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.pie-legend .dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.pie-legend .cnt { margin-left: auto; color: var(--ink); font-weight: 600; }

/* 正文标注高亮 */
.passage p mark, .passage .hl { background: #FFF3B0; border-radius: 3px; padding: 0 3px; cursor: pointer; }
.passage p mark:hover, .passage .hl:hover { background: #FFE066; }
.passage p.hl-on { background: #FFFBE6; border-left: 3px solid var(--gold); padding-left: 8px; }

/* KPI / 数据 */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi .num { font-size: 26px; font-weight: 700; color: var(--ink); font-family: var(--font-serif); }
.kpi .lbl { font-size: 12px; color: var(--mute); }
.kpi.alt { background: linear-gradient(135deg, var(--brand-soft), #fff); }
.kpi.alt .num { color: var(--brand-deep); }

/* 子导航 */
.subnav { display: flex; gap: 4px; padding: 4px; background: var(--line-soft); border-radius: 10px; margin-bottom: 20px; width: fit-content; }
.subnav a { padding: 8px 18px; border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 600; }
.subnav a:hover { background: var(--card); }
.subnav a.on { background: var(--card); color: var(--brand); box-shadow: 0 2px 6px rgba(15,23,42,.06); }

/* ========== 答题相关 ========== */
.exam-shell { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.exam-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: linear-gradient(90deg, var(--brand-deep), var(--brand)); color: #fff; }
.exam-title { font-size: 16px; font-weight: 700; }
.exam-tabs { display: flex; gap: 8px; margin-left: 16px; }
.exam-tab { padding: 6px 14px; border-radius: 6px; background: rgba(255,255,255,.16); font-size: 12px; cursor: pointer; }
.exam-tab.on { background: #fff; color: var(--brand-deep); font-weight: 700; }
.exam-timer { margin-left: auto; font-family: var(--font-serif); font-size: 18px; font-weight: 700; }
.exam-timer.warn { color: #FFE9D4; }

.exam-body { display: grid; grid-template-columns: 1fr 240px; min-height: 420px; }
.exam-main { padding: 24px; border-right: 1px solid var(--line); }
.exam-side { padding: 18px; background: var(--line-soft); }

.qbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.qbar .qno { font-size: 14px; color: var(--ink); font-weight: 700; }
.qbar .qno em { color: var(--brand); font-style: normal; }
.qbar .qnav { display: flex; gap: 6px; }
.qbar .qnav button { padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--ink); }
.qbar .qnav button:hover { border-color: var(--brand); color: var(--brand); }

.passage {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.8; color: var(--ink);
}
.passage h3 { font-size: 14px; margin-bottom: 10px; color: var(--brand-deep); }

.qitem { margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.qitem .stem { font-size: 14px; color: var(--ink); margin-bottom: 10px; font-weight: 600; }
.qitem .opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.qitem .opt:hover { background: var(--brand-soft); }
.qitem .opt.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.qitem .opt input { accent-color: var(--brand); }
.qitem .blank { display: inline-block; min-width: 110px; padding: 4px 8px; border: 1px solid var(--brand); border-radius: 6px; }

/* 题号面板 */
.qpanel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qpanel .q {
  aspect-ratio: 1; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--text);
}
.qpanel .q.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.qpanel .q.done { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.qpanel .q.flag { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.qpanel .q:hover { border-color: var(--brand); }
.panel-legend { display: flex; gap: 12px; font-size: 11px; color: var(--mute); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.panel-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.panel-legend .l-done::before { background: var(--brand-soft); border: 1px solid var(--brand); }
.panel-legend .l-flag::before { background: var(--accent-soft); border: 1px solid var(--accent); }

/* 新：题号面板（点击跳转版） */
.qpanel-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.qpanel-cell { display: block; text-align: center; padding: 10px 0; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.15s; }
.qpanel-cell:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); transform: translateY(-1px); }

/* 听力题：表单表格（保留原 docx 表格结构） */
.form-table { width: 100%; border-collapse: collapse; margin: 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.form-table th, .form-table td { border: 1px solid var(--line); padding: 12px 16px; vertical-align: middle; }
.form-table th { background: var(--line-soft); color: var(--ink); font-weight: 600; text-align: left; width: 38%; font-size: 13.5px; }
.form-table td { background: #fff; }
.form-table input.blank { width: 100%; border: 0; background: transparent; font-size: 14px; padding: 4px 6px; }
.form-table input.blank:focus { outline: 0; background: var(--brand-soft); border-radius: 4px; }

/* 阅读 / 写作：双栏独立滚动 + 可调字号 */
.reading-pane { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; max-height: 72vh; overflow-y: auto; line-height: 1.9; font-size: var(--reading-fs, 15px); }
.reading-pane .passage-title { color: var(--brand-deep); font-size: 16px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.5px; }
.reading-pane textarea { width: 100%; min-height: 320px; padding: 14px; border: 1px solid var(--brand); border-radius: 8px; font-size: var(--writing-fs, 15px); line-height: 1.85; resize: vertical; }

/* 段落高亮 */
.hl-para { margin-bottom: 12px; padding: 2px 6px; border-radius: 4px; cursor: text; transition: background 0.15s; }
.hl-para:hover { background: rgba(0, 176, 80, 0.05); }
mark, mark.hl { background: #FFF59D; padding: 1px 3px; border-radius: 2px; color: inherit; }

/* 字号控制 */
.font-ctrl { display: inline-flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.font-ctrl button { background: transparent; border: 0; padding: 5px 11px; cursor: pointer; font-size: 12px; font-weight: 600; border-radius: 6px; color: var(--text); }
.font-ctrl button:hover { background: var(--brand-soft); color: var(--brand-deep); }

/* 题目区 */
.qitem { background: var(--line-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.qitem .stem { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.qitem .opt { display: block; padding: 5px 8px; cursor: pointer; font-size: 13.5px; border-radius: 4px; }
.qitem .opt:hover { background: var(--brand-soft); }
.qitem .opt input { margin-right: 6px; vertical-align: middle; }
.panel-legend .l-on::before { background: var(--brand); }

/* 音频播放器 */
.audio-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(135deg, var(--brand-soft), #fff); border: 1px solid var(--brand); border-radius: 12px; }
.audio-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; font-size: 18px; box-shadow: var(--shadow-pop); }
.audio-btn:hover { background: var(--brand-deep); }
.audio-meta .t { font-size: 13px; color: var(--ink); font-weight: 700; }
.audio-meta .s { font-size: 12px; color: var(--mute); }
.audio-track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; position: relative; }
.audio-track .filled { position: absolute; left: 0; top: 0; height: 100%; width: 35%; background: var(--brand); border-radius: 3px; }
.audio-time { font-family: var(--font-serif); font-size: 13px; color: var(--brand-deep); min-width: 90px; text-align: right; }

/* 匹配题 */
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.match-list { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.match-list h5 { font-size: 12px; color: var(--mute); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.match-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.match-row .key { width: 22px; height: 22px; border-radius: 4px; background: var(--violet-soft); color: var(--violet); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.match-row .txt { font-size: 13px; color: var(--ink); }
.match-row select { padding: 3px 8px; border: 1px solid var(--brand); border-radius: 6px; background: #fff; color: var(--brand-deep); font-weight: 600; }

/* 结果页 */
.score-hero { display: flex; align-items: center; gap: 32px; padding: 32px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border-radius: var(--radius-xl); }
.score-hero .band { font-family: var(--font-serif); font-size: 72px; font-weight: 800; line-height: 1; }
.score-hero .band small { font-size: 20px; opacity: .8; margin-left: 8px; }
.score-hero .desc h2 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.score-hero .desc p { opacity: .9; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.score-cell { background: var(--card); border-radius: 12px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.score-cell .n { font-size: 28px; font-weight: 700; color: var(--brand-deep); font-family: var(--font-serif); }
.score-cell .l { font-size: 12px; color: var(--mute); }
.score-cell .n em { font-style: normal; font-size: 12px; color: var(--mute); }

/* 报告区 */
.report-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 20px; }
.radar-wrap { background: var(--card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.radar-wrap svg { width: 100%; height: auto; }

/* 写作评估 */
.eval-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eval-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.eval-card h3 { margin-bottom: 14px; }
.eval-card textarea { width: 100%; min-height: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 1.7; }
.eval-score { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.eval-score .es { background: var(--line-soft); border-radius: 10px; padding: 14px; }
.eval-score .es .l { font-size: 12px; color: var(--mute); }
.eval-score .es .n { font-size: 26px; font-weight: 700; color: var(--brand-deep); font-family: var(--font-serif); }
.tip-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tip-row:last-child { border-bottom: 0; }
.tip-l { font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.tip-l .tip-n { color: var(--brand-deep); font-weight: 800; margin-left: 4px; }
.tip-d { font-size: 12.5px; color: var(--mute); line-height: 1.75; }
.eval-score .es .c { font-size: 11px; color: var(--mute); margin-top: 4px; }

/* 评测 */
.dim-bar { margin: 10px 0; }
.dim-bar .d1 { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); }
.dim-bar .d2 { height: 6px; background: var(--line-soft); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.dim-bar .d3 { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); border-radius: 3px; }

/* 后台子导航 */
.subnav-tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--line-soft); margin-bottom: 20px; }
.subnav-tabs a { padding: 10px 16px; color: var(--text); font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.subnav-tabs a.on { color: var(--brand); border-color: var(--brand); }

/* 响应式 */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .hero-art { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .exam-body { grid-template-columns: 1fr; }
  .exam-side { display: none; }
  .eval-layout, .form-grid, .report-grid, .score-grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
}

/* footer */
.footer { text-align: center; color: var(--mute); font-size: 12px; padding: 32px 24px; border-top: 1px solid var(--line); margin-top: 40px; }

/* utility */
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.text-mute { color: var(--mute); }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.text-violet { color: var(--violet); }
.font-serif { font-family: var(--font-serif); }
/* ============================================================
   新东方风 · 机考外壳（CBT Shell）
   - 顶部细黑条：logo + 中央计时 + 4 按钮
   - 底部题号条：Part 分组 + 左右翻页 + Review 复选框
   - 浅蓝灰底 #F2F5FA + 白卡
   - 行内嵌入式 input / 匹配复选框 / 判断题按需展开
   ============================================================ */
.cbt-page { background: #F2F5FA; min-height: 100vh; }
.cbt-top {
  position: sticky; top: 0; z-index: 60;
  background: #1B2A3A; color: #fff;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px; height: 52px;
}
.cbt-top .cbt-logo { font-size: 14px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.cbt-top .cbt-paper { font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbt-top .cbt-timer {
  margin: 0 auto; display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cbt-top .cbt-ctrls { display: flex; gap: 6px; }
.cbt-btn {
  background: #EAF0F6; color: #1B2A3A; border: 0; border-radius: 6px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.cbt-btn:hover { background: #fff; }
.cbt-btn.ghost { background: transparent; color: #cfd8e0; }
.cbt-btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.cbt-body { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* 听力 / 阅读 / 写作 双栏或单栏答题区 */
.cbt-main { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cbt-main.single { grid-template-columns: 1fr; }

/* 白卡 */
.cbt-card { background: #fff; border: 1px solid #E3E8EE; border-radius: 10px; padding: 18px 20px; }

/* 音频播放器条 */
.cbt-audio {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #E3E8EE; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 16px;
}
.cbt-audio .play {
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: #1B2A3A; color: #fff; font-size: 14px; cursor: pointer;
  flex: 0 0 auto;
}
.cbt-audio .bar { flex: 1; height: 6px; background: #E9EEF3; border-radius: 3px; overflow: hidden; }
.cbt-audio .bar i { display: block; height: 100%; width: 0; background: #1B2A3A; transition: width .2s; }
.cbt-audio .t { font-size: 12px; color: #6b7a8a; font-variant-numeric: tabular-nums; }
.cbt-audio .spd { font-size: 12px; color: #1B2A3A; background: #F0F4F8; border: 0; border-radius: 4px; padding: 3px 8px; cursor: pointer; }

/* 大题标题区（Part 1 + 副标题） */
.cbt-part-head { margin-bottom: 10px; }
.cbt-part-head h2 { font-size: 22px; color: #1B2A3A; font-weight: 700; font-family: var(--font); }
.cbt-part-head .sub { font-size: 13px; color: #5b6b7b; margin-top: 2px; }
.cbt-instruction {
  font-size: 13px; color: #44576a; background: #F4F7FA;
  border-left: 3px solid #1B2A3A; padding: 10px 14px; border-radius: 0 8px 8px 0;
  margin: 12px 0 16px; line-height: 1.7;
}

/* ===== 行内嵌入式填空（句子中 ___ 嵌 input） ===== */
.inline-sentence { font-size: 15px; line-height: 2.1; color: #22313f; }
.inline-sentence .ib {
  display: inline-block; vertical-align: middle;
  border: 1px solid #C9D4DE; border-bottom: 2px solid #7A8B9C;
  border-radius: 3px; min-width: 120px; padding: 2px 8px;
  font-size: 14px; color: #1B2A3A; background: #fff; text-align: center;
}
.inline-sentence .ib:focus { outline: 0; border-color: #1B2A3A; box-shadow: 0 0 0 3px rgba(27,42,58,.12); }
.inline-sentence .ib.correct { background: #E7F8EE; border-color: #2E9E63; }
.inline-sentence .ib.wrong { background: #FDECEC; border-color: #D64545; }

/* 表格表单（EXAMINATION ENTRY FORM 风格） */
.cbt-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E3E8EE; border-radius: 10px; overflow: hidden; }
.cbt-table th, .cbt-table td { border: 1px solid #E8EDF2; padding: 10px 14px; vertical-align: middle; font-size: 14px; }
.cbt-table th { background: #F4F7FA; color: #44576a; font-weight: 600; text-align: left; }
.cbt-table td.label { background: #FAFBFD; color: #5b6b7b; width: 34%; }

/* ===== 单选 / 多选 / 判断题选项 ===== */
.cbt-q { margin-bottom: 14px; }
.cbt-q .stem { font-size: 14.5px; color: #22313f; margin-bottom: 8px; line-height: 1.6; cursor: pointer; padding: 8px 10px; border-radius: 6px; }
.cbt-q .stem:hover { background: #F4F8FB; }
.cbt-q .stem.active { background: #E8F1FA; box-shadow: inset 3px 0 0 #1B2A3A; }
.cbt-q .opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 10px 8px; }
.cbt-q .opt {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #D6DFE8; border-radius: 6px; padding: 6px 12px;
  font-size: 13.5px; color: #33434f; cursor: pointer; background: #fff;
  transition: all .15s;
}
.cbt-q .opt:hover { border-color: #7A8B9C; }
.cbt-q .opt input { accent-color: #1B2A3A; }
.cbt-q .opt.sel { background: #E8F1FA; border-color: #1B2A3A; color: #1B2A3A; font-weight: 600; }

/* 判断题：默认折叠，点击题干展开 */
.cbt-tfng .cbt-q .opts { display: none; }
.cbt-tfng .cbt-q.open .opts { display: flex; }
.cbt-tfng .cbt-q .stem { position: relative; }
.cbt-tfng .cbt-q .stem .arrow { font-size: 11px; color: #7A8B9C; margin-left: 6px; }
.cbt-tfng-legend {
  background: #F4F7FA; border: 1px solid #E3E8EE; border-radius: 8px;
  padding: 10px 14px; font-size: 12.5px; color: #44576a; line-height: 1.9; margin: 12px 0 16px;
}
.cbt-tfng-legend b { color: #1B2A3A; }

/* 匹配题：A B C D E F 复选框格 */
.cbt-match table { width: 100%; border-collapse: collapse; }
.cbt-match th, .cbt-match td { border: 1px solid #E8EDF2; padding: 8px 6px; text-align: center; font-size: 13px; }
.cbt-match th { background: #F4F7FA; color: #44576a; font-weight: 600; }
.cbt-match td.qstem { text-align: left; padding: 8px 12px; color: #22313f; }
.cbt-match .chk {
  width: 26px; height: 26px; margin: 0 auto; border: 1.5px solid #C9D4DE; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: transparent; font-size: 15px; font-weight: 700; transition: all .15s; background: #fff;
}
.cbt-match .chk.sel { background: #1B2A3A; border-color: #1B2A3A; color: #fff; }
.cbt-match .chk:hover { border-color: #7A8B9C; }
.cbt-match-list { margin-bottom: 12px; }
.cbt-match-list .m-item { font-size: 12.5px; color: #44576a; line-height: 1.8; padding: 2px 0; }

/* ===== 写作：左题右打字框 ===== */
.cbt-writing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.cbt-writing .cbt-card textarea {
  width: 100%; min-height: 420px; border: 1px solid #D6DFE8; border-radius: 8px;
  padding: 14px; font-size: 15px; line-height: 1.8; resize: vertical; color: #22313f;
}
.cbt-writing .cbt-card textarea:focus { outline: 0; border-color: #1B2A3A; }
.cbt-writing .wcount { font-size: 13px; color: #5b6b7b; text-align: right; margin-top: 8px; font-variant-numeric: tabular-nums; }
.cbt-writing .task-tag {
  display: inline-block; background: #1B2A3A; color: #fff; font-size: 12px;
  font-weight: 700; border-radius: 4px; padding: 3px 10px; margin-bottom: 10px;
}

/* ===== 底部题号条 ===== */
.cbt-bottom {
  position: sticky; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid #E3E8EE;
  padding: 10px 18px; display: flex; align-items: center; gap: 16px;
}
.cbt-bottom .review { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #44576a; white-space: nowrap; }
.cbt-bottom .qnums { flex: 1; display: flex; align-items: center; gap: 8px; overflow-x: auto; }
.cbt-bottom .qnums .grp { display: flex; align-items: center; gap: 4px; padding-right: 12px; }
.cbt-bottom .qnums .grp + .grp { border-left: 1px solid #E3E8EE; padding-left: 12px; }
.cbt-bottom .qnums .glabel { font-size: 11px; color: #7A8B9C; margin-right: 4px; font-weight: 600; }
.qnum {
  width: 30px; height: 30px; border-radius: 6px; border: 1.5px solid #D6DFE8;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: #44576a; cursor: pointer; background: #fff;
  font-weight: 600; text-decoration: none; transition: all .15s;
}
.qnum:hover { border-color: #7A8B9C; }
.qnum.cur { background: #E8F1FA; border-color: #1B2A3A; color: #1B2A3A; font-weight: 700; }
.qnum.done { background: #E7F8EE; border-color: #2E9E63; color: #1e7a44; }
.qnum.flag { background: #FFF3D6; border-color: #E8A23A; color: #a06a10; }
.cbt-bottom .navbtns { display: flex; gap: 6px; }
.cbt-bottom .navbtn {
  border: 1px solid #D6DFE8; background: #fff; border-radius: 6px;
  width: 34px; height: 34px; font-size: 15px; cursor: pointer; color: #33434f;
}
.cbt-bottom .navbtn:hover { background: #F0F4F8; }

/* ===== 成绩汇总：三 Tab + 题号三态 ===== */
.score-tabs { display: flex; gap: 4px; background: #E9EEF3; border-radius: 8px; padding: 4px; margin-bottom: 18px; }
.score-tab {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 6px; font-size: 14px; font-weight: 600;
  color: #5b6b7b; cursor: pointer; transition: all .15s; background: transparent; border: 0;
}
.score-tab.on { background: #fff; color: #1B2A3A; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.score-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.score-table th, .score-table td { border: 1px solid #E8EDF2; padding: 10px 14px; text-align: center; font-size: 13.5px; }
.score-table th { background: #F4F7FA; color: #44576a; font-weight: 600; }
.score-table td.l { text-align: left; }
.score-table .ok { color: #1e7a44; font-weight: 700; }
.score-table .bad { color: #c0392b; font-weight: 700; }
.band-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #E3E8EE; border-radius: 10px;
  padding: 16px 22px; margin-bottom: 18px;
}
.band-pill .v { font-size: 34px; font-weight: 800; color: #1B2A3A; font-family: var(--font-serif); }
.band-pill .l { font-size: 12.5px; color: #5b6b7b; line-height: 1.5; }

/* 解析页：我的答案（红）/ 正确答案（黑）对照行 */
.ans-compare {
  background: #F4F7FA; border: 1px dashed #C9D4DE; border-radius: 8px;
  padding: 12px 16px; margin: 12px 0 16px; font-size: 13.5px; line-height: 2;
}
.ans-compare .row-mine { color: #c0392b; }
.ans-compare .row-mine b { color: #a93226; }
.ans-compare .row-correct { color: #1e7a44; }
.ans-compare .row-correct b { color: #186a3b; }
.ans-compare .miss { color: #7A8B9C; font-style: italic; }
.solution-toggle {
  display: inline-block; color: #1B2A3A; font-size: 13px; font-weight: 600;
  cursor: pointer; margin: 6px 0 14px; border-bottom: 1px dashed #7A8B9C; padding-bottom: 2px;
}
.solution-box { display: none; background: #FAFBFD; border: 1px solid #E3E8EE; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #44576a; line-height: 1.8; }
.solution-box.open { display: block; }

/* ============================================================
   对标机考平台：题号 chip + 单选2×2网格 + 当前题高亮
   ============================================================ */
/* 行内填空的题号 chip（听力填空每道题带数字标签） */
.q-chip {
  display: inline-block;
  vertical-align: middle;
  background: #1B2A3A; color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 4px;
  padding: 0 5px; margin: 0 4px 0 2px;
  text-align: center; line-height: 20px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* 题号（单选/判断题题干前的数字） */
.q-num {
  display: inline-block;
  vertical-align: middle;
  font-weight: 700; color: #1B2A3A;
  margin-right: 8px; font-variant-numeric: tabular-nums;
  min-width: 18px;
}

/* 单选选项：统一竖排单列（机考样式；opts-grid 2×2 网格已弃用，仅保留兼容） */
.opts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0 12px 28px; }
.opts-3, .opts-v { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 12px 28px; }
.opts-3 .opt, .opts-v .opt { padding: 7px 12px; max-width: 520px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #D6DFE8; border-radius: 6px; cursor: pointer; background: #fff; transition: all 0.15s; }
.opt { display: flex; align-items: flex-start; gap: 6px; }
.opt-k { font-weight: 700; color: #1B2A3A; min-width: 18px; flex: 0 0 auto; }
.opt-t { flex: 1; line-height: 1.5; }

/* 当前激活的题：左侧蓝色条 + 浅蓝底 + stem 蓝色 */
.cbt-q.active .stem { background: #E8F1FA; box-shadow: inset 4px 0 0 #1B2A3A; border-radius: 6px; }
.cbt-q.active { transition: background .15s; }

/* 表格行：行内嵌入式填空加 padding */
.cbt-table td { position: relative; }
.cbt-table td > .q-chip { font-size: 10px; min-width: 18px; height: 18px; line-height: 18px; margin-right: 4px; }
.cbt-table td > .ib { min-width: 120px; }
.cbt-table tr[id^="q-"] td:first-child { background: #FAFBFD; font-weight: 600; color: #33434f; }

/* 顶部按钮更多时缩小 */
.cbt-top .cbt-ctrls { flex-wrap: wrap; justify-content: flex-end; }
.cbt-top .cbt-ctrls .cbt-btn { font-size: 11.5px; padding: 5px 10px; }
@media (max-width: 1100px) {
  .cbt-top .cbt-paper { display: none; }
}

/* ============================================================
   对标机考：圆形 radio 选项 + Part 3 圆框勾选 + 写作图嵌入
   ============================================================ */
/* 单选/判断题选项前的圆形 radio */
.opt-radio {
  width: 16px; height: 16px;
  border: 1.5px solid #C9D4DE;
  border-radius: 50%;
  position: relative; flex: 0 0 auto;
  background: #fff;
  transition: all 0.15s;
}
.opt-radio::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #1B2A3A;
  transform: scale(0);
  transition: transform 0.15s;
}
.opt:hover .opt-radio { border-color: #1B2A3A; }
.opt.sel .opt-radio { border-color: #1B2A3A; }
.opt.sel .opt-radio::after { transform: scale(1); }

/* 听力 Part 3：参考阅读 List of People 样式，圆框勾选 */
.cbt-match-part3 { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0 12px 28px; }
.match-pill {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid #D6DFE8; border-radius: 20px;
  padding: 7px 14px; cursor: pointer; background: #fff;
  font-size: 13.5px; color: #33434f;
  transition: all 0.15s;
  user-select: none;
}
.match-pill:hover { border-color: #1B2A3A; }
.match-pill.sel { background: #1B2A3A; color: #fff; border-color: #1B2A3A; }
.match-pill .pill-k { font-weight: 700; min-width: 18px; }
.match-pill .pill-t { line-height: 1.4; }
.match-pill .pill-x { font-size: 11px; opacity: 0.5; }

/* 听力题号：在题干左侧 */
.cbt-q .stem { display: flex; align-items: baseline; gap: 8px; }

/* 写作 Task 1 题目栏图片 */
.writing-task-img {
  width: 100%;
  max-width: 100%;
  border: 1px solid #E3E8EE;
  border-radius: 8px;
  padding: 10px;
  background: #FAFBFD;
  margin-top: 10px;
}
.writing-task-img img {
  width: 100%; height: auto; display: block;
}

/* ============================================================
   拖拽匹配题（听力 Part 3，参考机考阅读 List of People）
   ============================================================ */
.drag-pool {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 10px 14px; margin: 8px 0 14px;
  background: #F4F7FA; border: 1px dashed #C9D4DE; border-radius: 8px;
}
.drag-pool .pool-title {
  font-size: 12px; color: #5b6b7b; font-weight: 600;
  margin-right: 6px; width: 100%;
}
.drag-pool .dr-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid #1B2A3A;
  border-radius: 20px; padding: 6px 14px;
  font-size: 13.5px; color: #1B2A3A; font-weight: 600;
  cursor: grab; user-select: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.drag-pool .dr-item:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.drag-pool .dr-item:active { cursor: grabbing; }
.drag-pool .dr-item .dr-k { font-weight: 800; min-width: 16px; }
.drag-pool .grp-sep { width: 100%; height: 1px; background: #E3E8EE; margin: 4px 0; }
.drag-pool .grp-label { font-size: 11px; color: #7A8B9C; font-weight: 600; margin-right: 4px; }

.drag-board {
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 0 12px 28px;
}
.drag-q {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 12px; border-radius: 8px;
  background: #fff;
}
.drag-q.cur { background: #E8F1FA; box-shadow: inset 4px 0 0 #1B2A3A; }
.drag-q .dr-num { font-weight: 800; color: #1B2A3A; min-width: 32px; font-variant-numeric: tabular-nums; }
.drag-q .dr-stem { font-size: 14px; color: #22313f; min-width: 140px; }
.drag-q .dr-target {
  flex: 1; min-width: 140px; min-height: 36px;
  border: 1.5px dashed #C9D4DE; border-radius: 20px;
  padding: 4px 14px; display: inline-flex; align-items: center;
  font-size: 13.5px; color: #7A8B9C;
  background: #FAFBFD;
  transition: all 0.15s;
}
.drag-q .dr-target.drag-over { border-color: #1B2A3A; background: #E8F1FA; }
.drag-q .dr-target.filled {
  background: #1B2A3A; color: #fff; border-style: solid;
  border-color: #1B2A3A; font-weight: 600;
  cursor: pointer;
}
.drag-q .dr-target.filled:hover { background: #0f1d2b; }

/* 写作：单选 也加 padding */
.opt { padding: 7px 12px; }

/* ============================================================
   专属链接密码门（#/gate）：IELTS Placement 深蓝风格
   ============================================================ */
.gate-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: linear-gradient(160deg, #EEF2F7 0%, #E3EBF3 100%); }
.gate-box { width: 100%; max-width: 430px; background: #fff; border-radius: 14px; padding: 44px 40px 40px; box-shadow: 0 10px 34px rgba(31, 78, 121, .12); border-top: 4px solid #1F4E79; text-align: center; }
.gate-brand { font-family: Georgia, 'Times New Roman', serif; font-size: 13px; letter-spacing: 4px; color: #1F4E79; font-weight: 700; margin-bottom: 12px; }
.gate-title { font-family: Georgia, 'Times New Roman', serif; font-size: 30px; color: #17324C; margin: 0 0 10px; line-height: 1.2; }
.gate-sub { font-size: 13.5px; color: #6B7A8C; line-height: 1.7; margin: 0 0 26px; }
.gate-input { width: 100%; box-sizing: border-box; padding: 13px 14px; font-size: 19px; letter-spacing: 7px; text-align: center; text-transform: uppercase; border: 1.5px solid #C7D3DF; border-radius: 8px; outline: none; color: #17324C; font-weight: 600; transition: border-color .15s; }
.gate-input:focus { border-color: #1F4E79; box-shadow: 0 0 0 3px rgba(31, 78, 121, .1); }
.gate-err { font-size: 12.5px; color: #C0392B; margin-top: 10px; text-align: left; }
.gate-btn { width: 100%; margin-top: 18px; padding: 13px 0; font-size: 15px; font-weight: 700; color: #fff; background: #1F4E79; border: none; border-radius: 8px; cursor: pointer; letter-spacing: 2px; transition: background .15s; }
.gate-btn:hover { background: #173A5C; }
