/* ============================================================
   课本句子测试 公共样式 (sentence_choice / sentence_spell)
   设计参照 units/36.html 套件 (word_practice_suite)
   · 主色 #28977e（深绿）/ 辅色 #feca57 / 失败 #ff6b6b / 浅绿白卡
   · 发音按钮统一使用 https://img.cilaoda.com/dic.png
   · 答对/答错音效: https://img.cilaoda.com/voice/correct_answer.mp3
                  & https://img.cilaoda.com/voice/error_answer.mp3
   ============================================================ */
:root {
  --s-green: #28977e;
  --s-green-dark: #1e6e58;
  --s-green-soft: #e8f5f2;
  --s-green-mist: #d2efe5;
  --s-yellow: #feca57;
  --s-red: #ff6b6b;
  --s-blue: #48dbfb;
  --s-purple: #a29bfe;

  --s-bg-1: #f6fbf9;
  --s-bg-2: #eaf6f0;
  --s-card: #ffffff;
  --s-cream: #fbf6ed;   /* 米色"格纸"底，套件同款 */
  --s-ink: #2c3e50;
  --s-soft: #7f8c8d;

  --s-shadow-card: 0 8px 22px rgba(40, 151, 126, 0.10);
  --s-shadow-pop:  0 6px 18px rgba(40, 151, 126, 0.18);
  --s-radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #eaf6f0 0%, #f6fbf9 60%, #fff 100%);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--s-ink);
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 12px 60px;
  overflow-x: hidden;          /* 防止窄屏子元素撑破 viewport */
}

.wrap { width: 100%; max-width: 680px; }

/* ----------- 顶部标题 ----------- */
.top-head {
  text-align: center; margin: 6px 0 8px;
}
.top-head h1 {
  margin: 6px 0 2px; font-size: 22px; letter-spacing: 0.5px;
  color: var(--s-green-dark);
  text-shadow: 0 2px 4px rgba(40, 151, 126, 0.08);
  display: inline-flex; align-items: center; gap: 6px;
}
.top-head h1::before { content: ""; display: inline-block; width: 6px; height: 22px;
  background: linear-gradient(180deg, var(--s-green), var(--s-yellow));
  border-radius: 3px;
}
.top-head .sub { font-size: 12.5px; color: var(--s-soft); }

/* ----------- 答题模式:顶栏吸顶成单行操作条,不挤压反馈区 ----------- */
.top-head.quiz-mode {
  position: sticky; top: 6px; z-index: 20;
  margin: 4px 0 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border: 1px solid rgba(40, 151, 126, 0.18);
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(40, 151, 126, 0.12);
  padding: 5px 8px;
  min-height: 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  text-align: center;
  animation: topBarIn .25s ease-out;
}
@keyframes topBarIn {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
/* 答题态: 隐藏大标题文字, 仅保留模式角标与操作按钮 */
.top-head.quiz-mode h1,
.top-head.quiz-mode .sub {
  display: none;
}
.top-head.quiz-mode::after {
  content: attr(data-mode);
  font-size: 13px; color: var(--s-green-dark); font-weight: 700;
  letter-spacing: 0.5px; white-space: nowrap;
  background: var(--s-green-soft);
  border: 1px solid rgba(40, 151, 126, 0.14);
  padding: 4px 14px; border-radius: 14px;
  flex-shrink: 0;
}
/* 左右操作按钮组 */
.th-acts {
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.th-act {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; color: var(--s-green-dark);
  border: 1px solid rgba(40, 151, 126, 0.35);
  border-radius: 16px; padding: 5px 10px;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.th-act:hover { background: var(--s-green); color: #fff; transform: translateY(-1px); }
.th-act:active { transform: scale(.96); }
/* 左右排位: 左[换单元], 中[模式徽章(::after)], 右[切模式] */
.th-act[data-act="unit"] { order: 1; }
.th-act[data-act="mode"] { order: 3; }
.top-head.quiz-mode::after { order: 2; }
/* 换单元/切模式用的小图标文本(不依赖外部字体) */
.th-ico {
  display: inline-block; width: 14px; height: 14px;
  background: url("https://img.cilaoda.com/dict.png") center/contain no-repeat;
  opacity: .9;
}
.th-ico.th-ico-book { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328977e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/><path d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/></svg>") center/contain no-repeat; }

/* ----------- 选择区(册/单元/开始/发音开关) ----------- */
.selector-card {
  background: var(--s-card);
  border-radius: var(--s-radius);
  padding: 14px 16px;
  box-shadow: var(--s-shadow-card);
  margin: 10px 0 14px;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid rgba(40, 151, 126, 0.08);
}
.selector-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.selector-row label { font-size: 13.5px; color: var(--s-soft); min-width: 38px; }
.sel {
  flex: 1; min-width: 130px; padding: 10px 32px 10px 12px;
  border-radius: 12px;
  border: 2px solid #d2eae2; background: #fff;
  font-size: 15px; color: var(--s-ink);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%2328977e' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .15s;
}
.sel:focus { outline: none; border-color: var(--s-green); }

.suite-tools {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 6px 4px 0;
  font-size: 13px; color: var(--s-soft);
}
.suite-tool-label { display: inline-flex; align-items: center; gap: 6px; }
.suite-tool-ico {
  width: 20px; height: 20px;
  background: url("https://img.cilaoda.com/dict.png") center/contain no-repeat;
  display: inline-block; flex-shrink: 0; opacity: .85;
}
.suite-tool-divider {
  width: 1px; height: 14px; background: transparent; flex: 1 1 auto;
}
.suite-sound-switch {
  width: 42px; height: 22px; border-radius: 11px;
  background: #d6dee2; border: none; cursor: pointer; position: relative;
  transition: background .18s;
  flex-shrink: 0;
}
.suite-sound-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform .18s;
}
.suite-sound-switch.on { background: var(--s-green); }
.suite-sound-switch.on::after { transform: translateX(20px); }

/* ----------- 按钮 ----------- */
.btn-primary {
  border: none; border-radius: 14px; padding: 13px 18px; cursor: pointer;
  background: linear-gradient(135deg, #34b69e, #1e6e58);
  color: #fff; font-size: 16px; font-weight: 600;
  box-shadow: 0 6px 14px rgba(40, 151, 126, 0.32);
  transition: transform .15s, box-shadow .15s;
  letter-spacing: 1px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(40, 151, 126, 0.40); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  border: 2px solid #d2eae2; background: #fff; color: var(--s-green-dark);
  padding: 10px 14px; border-radius: 12px; cursor: pointer; font-size: 14px;
}
.btn-ghost:hover { border-color: var(--s-green); }

/* ----------- 顶部状态条 ----------- */
.statbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px;
  background: var(--s-card); border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--s-shadow-card); margin: 0 0 14px;
  font-size: 13.5px;
  border: 1px solid rgba(40, 151, 126, 0.08);
}
.statbar .score { color: #d4820a; font-weight: 700; font-size: 15px; }
.statbar .prog { color: var(--s-soft); }
.statbar .sb-ico {
  display: none;   /* 小屏隐藏图标, 仅大屏展示 */
  margin-right: 4px; opacity: .85;
}
.chip {
  background: var(--s-green-soft); color: var(--s-green-dark);
  border-radius: 20px; padding: 4px 12px; font-size: 12.5px;
  border: 1px solid rgba(40, 151, 126, 0.12);
  max-width: 60%; white-space: normal; word-break: break-word;
  text-align: center; line-height: 1.35;
}

/* ----------- 题目卡 ----------- */
.q-card {
  background: var(--s-card); border-radius: var(--s-radius);
  padding: 20px 18px;
  box-shadow: var(--s-shadow-card);
  text-align: center;
  border: 1px solid rgba(40, 151, 126, 0.08);
  position: relative;
  overflow: hidden;
}
.q-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--s-green), var(--s-yellow), var(--s-blue));
}

/* 中文题干 */
.q-zh {
  font-size: 19px; line-height: 1.5; color: #b3502a; font-weight: 600;
  background: linear-gradient(135deg, #fff7ef, #fff1de);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid #ffe1c2; text-align: center;
}
.q-zh .dir {
  display: block; font-size: 11px; color: #cf9a72; font-weight: 400;
  margin-bottom: 4px; letter-spacing: 1px;
}

/* 英文句子 */
.q-sentence {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 21px; line-height: 1.9; color: #16425b;
  padding: 6px 2px; word-break: break-word; min-height: 34px;
  text-align: center;
}
.q-sentence .blank {
  display: inline-block; min-width: 80px; padding: 0 12px; margin: 0 2px;
  /* 内容不放下划线字符, 只用 border-bottom 划单线; &nbsp; 撑高度 */
  border-bottom: 2px solid var(--s-green);
  color: var(--s-green-dark); font-weight: 700; letter-spacing: 1px;
}
.q-sentence .blank.filled { color: var(--s-green); border-bottom-color: var(--s-green); }

/* 发音按钮(dict.png) - 无背景, 纯图标(inline 跟题干文字同行) */
.q-sound {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-left: 6px; cursor: pointer;
  background: transparent; border: 0; padding: 0;
  vertical-align: middle; position: relative;
  transition: transform .15s, opacity .15s;
  flex-shrink: 0; opacity: .85;
  transform: translateY(-1px);
}
.q-sound::before {
  content: ""; position: absolute; inset: 0;
  background: url("https://img.cilaoda.com/dict.png") center/contain no-repeat;
}
.q-sound:hover { opacity: 1; transform: translateY(-1px) scale(1.10); }
.q-sound.playing { animation: soundPulse 0.8s ease-in-out infinite; }
@keyframes soundPulse {
  0%, 100% { opacity: .85; }
  50%      { opacity: 1; filter: drop-shadow(0 0 6px rgba(254, 202, 87, 0.85)); }
}

/* ----------- 选择题选项(套件风格 2x2 + A/B/C/D 圆角标) ----------- */
.options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 18px;
}
.opt {
  padding: 14px 12px; border-radius: 14px;
  border: 2px solid #d2eae2; background: #fff;
  font-size: 17px; cursor: pointer; transition: all .15s;
  color: var(--s-ink);
  font-family: "Georgia", "Times New Roman", serif;
  min-height: 56px;
  display: flex; align-items: center; gap: 10px;
  text-align: left;
}
.opt .k {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--s-green-soft), #e0f2fe);
  color: var(--s-green); font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.opt:hover:not(:disabled) {
  border-color: var(--s-green); background: var(--s-green-soft);
  transform: translateY(-2px); box-shadow: 0 6px 12px rgba(40, 151, 126, 0.18);
}
.opt.correct {
  background: var(--s-green-soft); border-color: var(--s-green); color: var(--s-green-dark);
  animation: correctBounce 0.45s ease;
}
.opt.correct .k { background: var(--s-green); color: #fff; }
.opt.wrong {
  background: #fff0f0; border-color: var(--s-red); color: #c0392b;
  animation: wrongShake 0.4s ease;
}
.opt.wrong .k { background: var(--s-red); color: #fff; }
.opt:disabled { cursor: default; }
@keyframes correctBounce {
  0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); }
}
@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ----------- 拼写区(套件"格纸"风格) ----------- */
.spell-hint {
  font-size: 13px; color: var(--s-soft); margin: 6px 0 8px;
  text-align: center;
}
.cells {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; min-height: 56px; margin: 10px 0 4px;
}
.cell {
  width: 44px; height: 52px; border-radius: 10px;
  border: 2px dashed #9cc5e4;
  background: repeating-linear-gradient(180deg, #fdf9f1 0px, #fdf9f1 18px, #f0e8d6 19px, #f0e8d6 20px);
  font-size: 26px; font-family: "Georgia", serif;
  color: #174f6e;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}
.cell.on { border: 2px solid var(--s-green); background: var(--s-green-soft); }
.cell.ok { border: 2px solid var(--s-green); background: var(--s-green-soft); color: var(--s-green-dark); animation: correctBounce .45s ease; }
.cell.bad { border: 2px solid var(--s-red); background: #fff0f0; color: #c0392b; }
.cell-gap { width: 14px; align-self: center; }
.letter-pool {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 16px;
}
.lt {
  width: 46px; height: 50px; border: none; border-radius: 12px;
  cursor: pointer; color: #fff; font-size: 24px;
  font-family: "Georgia", serif; font-weight: 700;
  background: linear-gradient(150deg, #5ad0be, #39b6a3);
  box-shadow: 0 6px 12px rgba(57, 182, 163, 0.35);
  transition: transform .12s; text-transform: lowercase;
}
.lt:hover { transform: scale(1.10) rotate(-4deg); }
.lt:disabled { opacity: 0.28; cursor: default; transform: none; }
.ctl-row { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.btn-ctl {
  border: none; padding: 11px 22px; border-radius: 26px;
  font-size: 15px; cursor: pointer; background: #eee; color: #456; font-weight: 600;
  transition: all .15s;
}
.btn-ctl:hover { filter: brightness(0.97); transform: translateY(-1px); }
.btn-ctl.ok { background: var(--s-green); color: #fff; }
.btn-ctl.warn { background: var(--s-yellow); color: #6b4f0c; }

/* ----------- 反馈(套件风格 .suite-feedback) ----------- */
.suite-feedback {
  margin: 16px auto 0; max-width: 480px; text-align: center;
  font-size: 15px; padding: 12px 16px; border-radius: 12px;
  line-height: 1.5; min-height: 1px; opacity: 0;
  transition: opacity .25s;
  background: transparent; color: var(--s-soft); border: none;
  font-weight: 600;
}
.suite-feedback.show { opacity: 1; }
.suite-feedback.show:not(.wrong) { color: var(--s-green-dark); }
.suite-feedback.wrong { color: var(--s-red); background: #fff0f0; border: 1px solid #fbd5d2; }
.suite-feedback .answord { font-family: "Georgia", serif; font-weight: 700; }
.suite-feedback .enw { font-family: "Georgia", serif; }

/* ----------- 结果面板 ----------- */
.result {
  display: none; text-align: center;
  background: var(--s-card); border-radius: var(--s-radius);
  padding: 24px 18px; box-shadow: var(--s-shadow-card); margin-top: 6px;
  position: relative; overflow: hidden;
}
.result h2 { margin: 4px 0 6px; font-size: 22px; color: var(--s-green-dark); }
.result .big { font-size: 36px; font-weight: 800; color: var(--s-green); letter-spacing: 1px; }
.result .wronglist {
  margin: 14px auto 0; text-align: left; max-height: 260px;
  overflow: auto; font-size: 13.5px;
  background: var(--s-green-soft); border-radius: 12px; padding: 10px 14px;
  border: 1px solid rgba(40, 151, 126, 0.10);
}
.result .wronglist div {
  padding: 8px 0; border-bottom: 1px dashed #cde5dc; line-height: 1.6;
}
.result .wronglist div:last-child { border-bottom: none; }
.wronglist .enw { font-family: "Georgia", serif; }

/* ----------- 错题/复习/测试模式标签 ----------- */
.review-ind {
  display: inline-block; background: #fff1de; color: #c25e12;
  font-size: 12.5px; border-radius: 20px; padding: 4px 12px; margin: 4px 0;
  border: 1px solid #ffd9a8;
}

.confetti {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: hidden; z-index: 5;
}
.confetti span {
  position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px;
  opacity: 0.95; animation: confettiFall 3.5s linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(420px) rotate(720deg); opacity: 0; }
}

.mode-chip { display: inline-block; padding: 2px 0; }
.loading { color: var(--s-soft); text-align: center; padding: 30px 0; font-size: 15px; }
.hide { display: none !important; }

/* ----------- 答题中"换单元"弹层 ----------- */
.picker-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(23, 42, 58, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: maskIn .18s ease-out;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.picker-box {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(23, 42, 58, 0.25);
  animation: boxUp .22s ease-out;
}
@keyframes boxUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.picker-box h3 {
  margin: 0 0 14px; font-size: 17px; color: var(--s-green-dark); text-align: center;
}
.picker-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.picker-row label { flex-shrink: 0; font-size: 14px; color: var(--s-soft); width: 44px; }
.picker-row select {
  /* 基础布局与盒模型 */
  box-sizing: border-box;
  width: 100%; /* 适配父容器，如图中长条样式 */
  max-width: 280px; /* 限制最大宽度，可按需调整 */
  padding: 8px 36px 8px 12px; /* 上右下左：右侧留白给自定义箭头 */
  
  /* 字体排版（契合图中的清晰黑体） */
  font-size: 16px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #333;
  
  /* 背景与边框（图中的浅灰边框与圆角） */
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  
  /* 核心：隐藏原生箭头，使用自定义背景 */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  
  /* 交互体验 */
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

/* 聚焦状态：边框变深/变色，增加阴影（提升交互感） */
.picker-row select:focus {
  border-color: #409eff; /* 常见的主题蓝，也可改为 #333 */
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

/* 悬停状态：边框微变 */
.picker-row select:hover {
  border-color: #adadad;
}

/* 禁用状态（可选） */
.picker-row select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}
.picker-actions { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }

/* ----------- 响应式 ----------- */
@media (max-width: 520px) {
  .options { grid-template-columns: 1fr; }
  .q-zh { font-size: 17px; }
  .q-sentence { font-size: 19px; }
  .lt { width: 40px; height: 46px; font-size: 21px; }
  .cell { width: 38px; height: 46px; font-size: 24px; }
  .top-head h1 { font-size: 19px; }
  .opt { font-size: 16px; min-height: 50px; }
  .result .big { font-size: 30px; }
}

/* 超窄屏(<380px, iPhone SE/老安卓): 进一步收紧字母格/选项, 防长单词断行错位 */
@media (max-width: 380px) {
  body { padding: 10px 8px 50px; overflow-x: hidden; }
  .wrap, .q-card, .cells, .letter-pool { max-width: 100%; }
  .selector-card { padding: 12px 12px; }
  .q-card { padding: 16px 12px; }
  .q-zh { font-size: 16px; padding: 10px 12px; }
  .q-sentence { font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
  .q-sentence .blank { min-width: 52px; padding: 0 6px; }
  .opt { font-size: 15px; min-height: 46px; padding: 11px 10px; gap: 8px; }
  .opt .k { width: 22px; height: 22px; }
  .lt { width: 34px; height: 40px; font-size: 18px; }
  .cell { width: 32px; height: 40px; font-size: 20px; border-radius: 8px; }
  .cell-gap { width: 8px; }
  .cells, .letter-pool { gap: 5px; }
  .statbar { padding: 8px 10px; font-size: 12.5px; }
  .suite-feedback { font-size: 14px; padding: 10px 12px; }
  .result .wronglist { max-height: 220px; }
  .suite-composer-hint { font-size: 11.5px; text-align: center; }
  .q-sound { width: 20px; height: 20px; margin-left: 4px; }
}

/* 平板 ≥768px: 容器更宽、卡片更舒展、字号提升 */
@media (min-width: 768px) {
  body { padding: 22px 24px 80px; }
  .wrap { max-width: 720px; }
  .selector-card { padding: 22px 26px; }
  .selector-row label { font-size: 15px; }
  .q-card { padding: 28px 30px; border-radius: 22px; }
  .q-card::before { height: 5px; }
  .q-zh { font-size: 22px; padding: 16px 18px; }
  .q-zh .dir { font-size: 12px; letter-spacing: 2px; }
  .q-sentence { font-size: 24px; line-height: 2; }
  .q-sentence .blank { min-width: 96px; padding: 0 14px; }
  .opt { font-size: 18px; min-height: 58px; padding: 16px 18px; gap: 12px; border-radius: 16px; }
  .opt .k { width: 28px; height: 28px; font-size: 15px; }
  .opt:hover { transform: translateY(-2px); }
  .cell { width: 48px; height: 56px; font-size: 28px; border-radius: 10px; }
  .lt { width: 52px; height: 56px; font-size: 26px; }
  .statbar { padding: 14px 20px; font-size: 14.5px; border-radius: 18px; margin-bottom: 18px; }
  .statbar .score { font-size: 17px; }
  .statbar .sb-ico { display: inline-block; }
  .suite-feedback { font-size: 16px; padding: 14px 20px; border-radius: 14px; }
  .top-head h1 { font-size: 26px; }
  .top-head .sub { font-size: 14px; }
  .top-head.quiz-mode { min-height: 46px; border-radius: 26px; padding: 6px 14px; }
  .top-head.quiz-mode::after { font-size: 14px; padding: 6px 16px; }
  .th-act { font-size: 13.5px; padding: 7px 14px; }
  .picker-box { max-width: 480px; padding: 28px 24px; border-radius: 24px; }
  .picker-box h3 { font-size: 20px; }
  .btn-primary { padding: 14px 28px; font-size: 16px; }
  .btn-ghost { padding: 12px 22px; font-size: 15px; }
  .result .big { font-size: 40px; }
}

/* 桌面 ≥1024px: 容器更宽、卡片有更明显"卡片"感 */
@media (min-width: 1024px) {
  body {
    padding: 32px 32px 100px;
    background:
      radial-gradient(1200px 600px at 8% -8%, #d8f0e5 0%, transparent 60%),
      radial-gradient(900px 500px at 100% 0%, #fff5dc 0%, transparent 55%),
      linear-gradient(180deg, #f4faf6 0%, #fff 70%);
  }
  .wrap { max-width: 760px; }
  .q-card {
    padding: 36px 40px;
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(40, 151, 126, 0.14), 0 2px 6px rgba(40, 151, 126, 0.06);
  }
  .q-card::before { height: 6px; }
  .q-zh { font-size: 24px; padding: 18px 22px; }
  .q-sentence { font-size: 27px; line-height: 2.1; }
  .opt { font-size: 19px; min-height: 64px; padding: 18px 22px; }
  .statbar { padding: 16px 24px; font-size: 15.5px; margin-bottom: 22px; border-radius: 20px; }
  .picker-box { max-width: 520px; padding: 32px 28px; }
  .picker-box h3 { font-size: 22px; margin-bottom: 18px; }
  .top-head { margin: 4px 0 14px; }
  .top-head h1 { font-size: 30px; }
}
