/* ============ 蓁蓁英语打卡·四上 —— 多邻国风格 ============ */
:root {
  --green: #58cc02;
  --green-dark: #47a302;
  --green-light: #d7ffb8;
  --blue: #1cb0f6;
  --blue-dark: #1899d6;
  --yellow: #ffc800;
  --yellow-dark: #e6a900;
  --red: #ff4b4b;
  --red-dark: #e63f3f;
  --purple: #ce82ff;
  --orange: #ff9f43;
  --ink: #3c3c3c;
  --ink-soft: #777777;
  --ink-faint: #afafaf;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --card-shadow: 0 2px 0 var(--line);
  --radius: 16px;
  --font: "Nunito", "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: #e8e8e8;
  color: var(--ink);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.screen.active { display: flex; animation: screenIn .28s ease; }
@keyframes screenIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 32px; }

/* ---------- 顶栏 ---------- */
.topbar {
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  position: relative;
  z-index: 5;
}
.topbar .title { font-size: 20px; font-weight: 900; flex: 1; letter-spacing: .5px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 900;
  font-size: 14px;
  color: var(--ink);
}
.chip .num { color: var(--yellow-dark); }
.chip.flame .num { color: #ff6b00; }

/* ---------- 通用卡片与按钮 ---------- */
.card {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 16px;
  margin: 0 16px 14px;
}
.card.tinted-2 { background: var(--bg-soft); }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: var(--radius);
  padding: 15px 18px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .8px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 4px 0 var(--green-dark);
  cursor: pointer;
  transition: transform .06s, box-shadow .06s, filter .15s;
  text-transform: none;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--green-dark); }
.btn.blue { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.btn.blue:active { box-shadow: 0 0 0 var(--blue-dark); }
.btn.yellow { background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-dark); color: #7a5800; }
.btn.yellow:active { box-shadow: 0 0 0 var(--yellow-dark); }
.btn.red { background: var(--red); box-shadow: 0 4px 0 var(--red-dark); }
.btn.red:active { box-shadow: 0 0 0 var(--red-dark); }
.btn.ghost { background: transparent; box-shadow: none; border: 2px solid var(--line); color: var(--ink-soft); }
.btn.ghost:active { transform: none; background: var(--bg-soft); }
.btn.small { width: auto; padding: 10px 16px; font-size: 15px; border-radius: 12px; }
.btn:disabled { filter: grayscale(.7); opacity: .6; pointer-events: none; }

/* ---------- 首页 ---------- */
#daily-card { background: linear-gradient(160deg, #fff8e1, #ffffff 60%); border-color: #ffe08a; }
.goal-row { display: flex; align-items: center; gap: 12px; }
.goal-ring {
  --p: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) calc(var(--p) * 1%), #f0f0f0 0);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.goal-ring::before { content: ""; position: absolute; width: 50px; height: 50px; border-radius: 50%; background: #fff; }
.goal-ring span { position: relative; font-weight: 900; font-size: 15px; z-index: 1; }
.goal-info { flex: 1; }
.goal-info .big { font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.goal-info .sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }

.unit-card {
  display: flex; align-items: center; gap: 14px;
  border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  background: var(--bg);
  padding: 14px; margin: 0 16px 14px;
  cursor: pointer;
  transition: transform .08s;
}
.unit-card:active { transform: scale(.98); }
.unit-card .u-emoji {
  width: 58px; height: 58px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  border-radius: 18px;
  background: var(--uc, var(--bg-soft));
}
.unit-card .u-mid { flex: 1; min-width: 0; }
.unit-card .u-title { font-size: 17px; font-weight: 900; }
.unit-card .u-zh { font-size: 13px; color: var(--ink-soft); margin: 2px 0 8px; }
.unit-card .u-done { color: var(--yellow-dark); font-size: 22px; flex: none; }
.mini-bars { display: flex; gap: 6px; }
.mini-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); transition: width .4s; }
.unit-card.complete { border-color: var(--yellow); }
.resume-banner {
  margin: 0 16px 14px;
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.resume-banner .rb-text { flex: 1; font-weight: 800; font-size: 14px; }
.resume-banner .rb-text b { color: var(--green-dark); }

/* ---------- 单元页 ---------- */
.section-card {
  border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--card-shadow); background: var(--bg);
  padding: 16px; margin: 0 16px 14px;
}
.section-card .s-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-card .s-emoji { font-size: 30px; }
.section-card .s-title { font-size: 17px; font-weight: 900; flex: 1; }
.section-card .s-count { font-size: 13px; font-weight: 900; color: var(--ink-soft); background: var(--bg-soft); border-radius: 99px; padding: 3px 10px; }
.progress { height: 14px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 12px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #7ee02e, var(--green)); transition: width .5s ease; position: relative; }
.progress i::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px;
  background: rgba(255,255,255,.45); border-radius: 99px;
}

/* ---------- 学习流 ---------- */
#learn-screen { z-index: 20; background: var(--bg); }
.learn-top {
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
}
.x-btn {
  width: 34px; height: 34px; flex: none;
  border: none; background: transparent;
  font-size: 26px; font-weight: 900; color: var(--ink-faint);
  cursor: pointer; line-height: 1;
}
.segs { flex: 1; display: flex; gap: 5px; }
.seg { flex: 1; height: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.seg i { display: block; height: 100%; background: var(--green); width: 0; transition: width .35s ease; }
.seg.full i { width: 100%; }
.learn-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 20px 20px; display: flex; flex-direction: column; }
.learn-title { font-size: 20px; font-weight: 900; text-align: center; margin: 10px 0 18px; color: var(--ink); }
.learn-foot {
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--line);
  background: var(--bg);
}

/* 大词卡 */
.word-card {
  margin: 8px auto 0;
  width: 100%; max-width: 340px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 4px 0 var(--line);
  padding: 26px 18px;
  text-align: center;
  animation: popIn .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.word-card .w-emoji { font-size: 74px; line-height: 1.15; }
.word-card .w-en { font-size: 30px; font-weight: 900; margin-top: 10px; letter-spacing: .5px; }
.word-card .w-ipa { font-size: 14px; color: var(--ink-faint); margin-top: 2px; }
.word-card .w-zh { font-size: 18px; font-weight: 800; color: var(--ink-soft); margin-top: 8px; }
.speaker-hint { text-align: center; color: var(--ink-faint); font-size: 13px; font-weight: 700; margin-top: 14px; animation: breathe 1.6s infinite; }
@keyframes breathe { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* 吉祥物 */
.mascot-wrap { display: flex; justify-content: center; margin: 6px 0; }
.mascot { animation: mBounce 2.4s ease-in-out infinite; }
@keyframes mBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mascot.happy { animation: mJump .55s ease; }
@keyframes mJump { 0%,100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-16px) scale(1.06); } }
.mascot.sad { animation: mSad .5s ease; filter: saturate(.8); }
@keyframes mSad { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

/* 音节/词块 */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0; }
.syl-chip {
  border: 2px solid var(--line); border-bottom-width: 4px;
  background: var(--bg); border-radius: 14px;
  padding: 12px 20px; font-size: 22px; font-weight: 900;
  cursor: pointer; transition: transform .08s, background .15s;
  color: var(--ink);
}
.syl-chip:active { transform: scale(.94); }
.syl-chip.playing { background: var(--green-light); border-color: var(--green); color: var(--green-dark); transform: scale(1.08); }

/* 拼写槽与字母块 */
.slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 10px; min-height: 52px; }
.slot {
  width: 44px; height: 50px;
  border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
  background: var(--bg);
  cursor: pointer;
}
.slot.filled { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.slot.wide { width: auto; min-width: 44px; padding: 0 12px; }
.slot.word-slot { width: auto; min-width: 60px; padding: 0 14px; font-size: 18px; }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; max-width: 360px; align-self: center; }
.tile {
  width: 44px; height: 50px;
  border: 2px solid #d0d0d0; border-bottom-width: 4px; border-radius: 12px;
  background: #fff; font-size: 24px; font-weight: 900;
  cursor: pointer; transition: transform .08s, opacity .2s;
  font-family: var(--font);
}
.tile:active { transform: scale(.92); }
.tile.used { opacity: 0; pointer-events: none; }
.tile.word-tile { width: auto; min-width: 44px; padding: 0 14px; font-size: 18px; }
.spell-target { text-align: center; font-size: 26px; font-weight: 900; }
.spell-hint-row { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

/* 反馈 */
.flash-ok { animation: flashOk .5s ease; }
@keyframes flashOk { 0%,100% { box-shadow: 0 4px 0 var(--line); } 50% { box-shadow: 0 0 0 6px var(--green-light); } }
.shake { animation: shakeX .4s ease; }
@keyframes shakeX { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }

/* 选择题 */
.quiz-prompt {
  text-align: center; font-size: 22px; font-weight: 900; margin: 8px 0 4px;
}
.quiz-sub { text-align: center; color: var(--ink-faint); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.quiz-audio-big {
  width: 110px; height: 110px; margin: 4px auto 14px;
  border: 2px solid var(--blue); border-bottom-width: 5px;
  background: var(--bg); border-radius: 26px;
  font-size: 48px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.quiz-audio-big:active { transform: scale(.95); }
.opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  border: 2px solid var(--line); border-bottom-width: 4px;
  border-radius: var(--radius);
  background: var(--bg);
  padding: 14px 16px;
  font-family: var(--font); font-size: 17px; font-weight: 800; color: var(--ink);
  margin-bottom: 10px; cursor: pointer;
  transition: transform .08s, border-color .15s, background .15s;
}
.opt:active { transform: scale(.98); }
.opt .opt-key { font-size: 12px; font-weight: 900; color: var(--ink-faint); border: 2px solid var(--line); border-radius: 8px; padding: 2px 7px; flex: none; }
.opt.correct { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.opt.wrong { border-color: var(--red); background: #ffdfe0; color: var(--red-dark); }
.opt:disabled { cursor: default; }

/* 对话气泡 */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble-row.me { flex-direction: row-reverse; }
.avatar {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
}
.bubble {
  max-width: 76%;
  border: 2px solid var(--line); border-bottom-width: 4px;
  border-radius: 4px 18px 18px 18px;
  background: var(--bg);
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
}
.bubble-row.me .bubble { border-radius: 18px 4px 18px 18px; }
.bubble .b-en { font-size: 16px; font-weight: 800; }
.bubble .b-zh { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.bubble.playing { background: var(--blue); border-color: var(--blue-dark); }
.bubble.playing .b-en, .bubble.playing .b-zh { color: #fff; }
.bubble.dim .b-zh { visibility: hidden; }
.role-tag { font-size: 12px; color: var(--ink-faint); font-weight: 800; margin: 0 6px; }

.repeat-line { text-align: center; margin-top: 4px; }
.repeat-line .r-en { font-size: 24px; font-weight: 900; margin: 10px 0 4px; }
.repeat-line .r-zh { font-size: 15px; color: var(--ink-soft); font-weight: 700; }
.line-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.line-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.line-dot.on { background: var(--green); }

/* 结算 */
.result-hero { text-align: center; margin-top: 30px; animation: popIn .4s cubic-bezier(.2,1.4,.4,1); }
.result-hero .r-big { font-size: 64px; }
.result-hero .r-title { font-size: 24px; font-weight: 900; margin-top: 8px; }
.result-hero .r-sub { font-size: 15px; color: var(--ink-soft); font-weight: 700; margin-top: 6px; }
.xp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); border-radius: 999px;
  padding: 6px 16px; font-weight: 900; color: #7a5800;
  margin-top: 14px; font-size: 16px;
}
.stats-row { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.stat-box { border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; padding: 8px 16px; text-align: center; min-width: 86px; }
.stat-box .v { font-size: 18px; font-weight: 900; }
.stat-box .k { font-size: 12px; color: var(--ink-faint); font-weight: 800; }

/* 打卡页 */
.flame-hero { text-align: center; padding: 18px 0 6px; }
.flame-hero .f-emoji { font-size: 64px; display: inline-block; animation: flicker 1.4s infinite; }
@keyframes flicker { 0%,100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.12) rotate(3deg); } }
.flame-hero .f-num { font-size: 40px; font-weight: 900; color: #ff6b00; }
.flame-hero .f-label { color: var(--ink-soft); font-weight: 800; font-size: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 8px; }
.cal-day {
  aspect-ratio: 1; border-radius: 10px;
  background: var(--bg-soft); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--ink-faint);
}
.cal-day.hit { background: var(--green); border-color: var(--green-dark); color: #fff; }
.cal-day.part { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.cal-day.today { outline: 3px solid var(--yellow); outline-offset: 1px; }

/* 复习页 */
.wrong-empty { text-align: center; color: var(--ink-soft); font-weight: 700; padding: 14px 0; }
.review-unit-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 2px solid var(--line); }
.review-unit-row:last-child { border-bottom: none; }
.review-unit-row .ru-emoji { font-size: 26px; }
.review-unit-row .ru-name { flex: 1; font-weight: 800; font-size: 15px; }
.review-unit-row .ru-count { font-size: 13px; color: var(--ink-faint); font-weight: 800; }

/* 我的 */
.setting-row { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 2px solid var(--line); }
.setting-row:last-child { border-bottom: none; }
.setting-row .st-label { flex: 1; font-weight: 800; font-size: 16px; }
.toggle {
  width: 58px; height: 32px; border-radius: 99px;
  background: var(--line); position: relative; cursor: pointer;
  transition: background .2s; flex: none;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2);
  transition: left .2s;
}
.toggle.on { background: var(--green); }
.toggle.on::after { left: 29px; }
.speed-btns { display: flex; gap: 8px; }
.speed-btn { border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 10px; background: #fff; padding: 6px 12px; font-weight: 900; font-family: var(--font); cursor: pointer; color: var(--ink-soft); }
.speed-btn.on { background: var(--blue); border-color: var(--blue-dark); color: #fff; }

/* 弹层 */
.overlay {
  position: absolute; inset: 0; z-index: 50;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg); border-radius: 22px;
  width: calc(100% - 48px); max-width: 360px;
  padding: 22px; text-align: center;
  animation: popIn .3s cubic-bezier(.2,1.4,.4,1);
  border: 2px solid var(--line);
}
.modal .m-title { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.modal .m-text { font-size: 15px; color: var(--ink-soft); font-weight: 700; margin-bottom: 16px; }
.modal .m-actions { display: flex; flex-direction: column; gap: 10px; }

/* 彩带 */
.confetti-piece {
  position: absolute; top: -12px;
  width: 10px; height: 14px;
  border-radius: 3px;
  animation: confFall linear forwards;
  z-index: 60;
  pointer-events: none;
}
@keyframes confFall {
  to { transform: translateY(105vh) rotate(720deg); opacity: .8; }
}

/* 提示气泡 */
.toast {
  position: absolute; left: 50%; bottom: 120px;
  transform: translateX(-50%);
  background: rgba(60,60,60,.92); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 800; font-size: 14px;
  z-index: 70; pointer-events: none;
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 错误反馈条 */
.feedback-bar {
  margin: 0 16px;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 800; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.feedback-bar.good { background: var(--green-light); color: var(--green-dark); border: 2px solid var(--green); }
.feedback-bar.bad { background: #ffdfe0; color: var(--red-dark); border: 2px solid var(--red); }

.empty-tip { text-align: center; color: var(--ink-faint); font-weight: 700; padding: 40px 20px; font-size: 15px; }
.center-box { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 6px; }

@media (max-width: 360px) {
  .slot, .tile { width: 38px; height: 44px; font-size: 20px; }
  .word-card .w-emoji { font-size: 60px; }
}

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  background: var(--bg);
  border-top: 2px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  padding: 4px 0;
  border-radius: 12px;
}
.tab-btn .tb-icon { font-size: 22px; filter: grayscale(1) opacity(.45); transition: filter .15s, transform .15s; }
.tab-btn .tb-label { font-size: 11px; font-weight: 900; color: var(--ink-faint); }
.tab-btn.active .tb-icon { filter: none; transform: scale(1.12); }
.tab-btn.active .tb-label { color: var(--green-dark); }
/* 底部导航遮挡滚动内容 → 增大滚动留白 */
.scroll { padding-bottom: 96px; }

/* ---------- 补充细节 ---------- */
.goal-ring { position: relative; }
#learn-screen { z-index: 40; }
.dots { display: flex; justify-content: center; gap: 7px; margin: 6px 0 2px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: all .2s; }
.dot.on { background: var(--green); }
.dot.cur { background: var(--blue); transform: scale(1.3); }
.word-card .w-en.phrase-en { font-size: 21px; }
.repeat-line .r-en.phrase-en { font-size: 19px; }
.big-prompt { font-size: 20px; margin: 10px 0 14px; }
.review-unit-row:last-child { margin-bottom: 0; }

/* ---------- 词汇表（2025 秋新版新增）---------- */
.section-card .wl-btns { display: flex; gap: 10px; margin-top: 12px; }
.section-card .wl-btns .btn { flex: 1; }
.wl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 10px 16px 0;
  cursor: pointer;
  transition: transform .08s;
}
.wl-row:active { transform: scale(.98); }
.wl-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wl-main { flex: 1; min-width: 0; }
.wl-en { font-weight: 900; font-size: 16px; }
.wl-zh { font-size: 12px; color: var(--ink-soft); margin-top: 2px; font-weight: 700; }
.wl-sound { flex: none; font-size: 18px; opacity: .7; }

/* ---------- 考前冲刺（v1.2 新增板块）---------- */
.cram-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--orange);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--yellow-dark);
  padding: 14px 16px;
  margin: 4px 16px 14px;
  color: #fff;
  cursor: pointer;
  transition: transform .08s;
}
.cram-banner:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-dark); }
.cram-banner .cb-emoji { font-size: 30px; flex: none; }
.cram-banner .cb-mid { flex: 1; min-width: 0; }
.cram-banner .cb-title { font-weight: 900; font-size: 16px; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.cram-banner .cb-sub { font-size: 12px; font-weight: 700; opacity: .95; margin-top: 2px; }
.cram-banner .cb-go {
  flex: none; font-weight: 900; font-size: 14px;
  background: #fff; color: var(--orange);
  border-radius: 999px; padding: 8px 12px;
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.cram-hero {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--red-dark);
  padding: 18px 18px 16px;
  margin: 4px 16px 14px;
  text-align: center;
}
.cram-hero .ch-big { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.cram-hero .ch-sub { font-size: 13px; font-weight: 700; opacity: .95; margin-top: 6px; line-height: 1.7; }
.cram-card {
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 16px 14px;
  color: #fff;
  border: none;
  box-shadow: 0 4px 0 rgba(0,0,0,.22);
}
.cram-card.cram-words { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.cram-card.cram-phrases { background: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.cram-card.cram-grammar { background: var(--purple); box-shadow: 0 4px 0 #a55ee8; }
.cram-card .cc-top { display: flex; gap: 12px; align-items: flex-start; }
.cram-card .cc-emoji { font-size: 34px; flex: none; line-height: 1; }
.cram-card .cc-mid { flex: 1; min-width: 0; }
.cram-card .cc-title { font-weight: 900; font-size: 18px; }
.cram-card .cc-sub { font-size: 12.5px; font-weight: 700; opacity: .95; margin-top: 4px; line-height: 1.7; }
.cram-card .cc-actions { margin-top: 12px; display: flex; gap: 10px; }
.cram-card .cc-actions .btn { flex: 1; }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.btn.white:active { box-shadow: 0 0 0 rgba(0,0,0,.25); }
.cram-card .cc-units { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cc-unit-chip {
  border: none;
  background: rgba(255,255,255,.28);
  color: #fff;
  font-family: var(--font);
  font-weight: 900;
  font-size: 13px;
  border-radius: 999px;
  padding: 7px 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
  cursor: pointer;
}
.cc-unit-chip:active { transform: translateY(1px); box-shadow: none; }

/* 考前冲刺选项 / 提示补充 */
.tap-audio { font-size: 24px; font-weight: 900; cursor: pointer; }
.tap-audio:active { opacity: .7; }
.big-zh { font-size: 21px; font-weight: 900; line-height: 1.6; }
.prompt-sub { font-size: 14px; font-weight: 700; color: var(--ink-faint); margin-top: 6px; }
.learn-title.retry { color: var(--red-dark); }
.learn-title { animation: slideUp .22s ease; }
.slot.reveal { background: #ffdfe0; border-color: var(--red); color: var(--red-dark); font-weight: 900; }
.tile.good { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.opt { box-shadow: 0 3px 0 var(--line); }
.opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.opt:disabled { pointer-events: none; }
.r-note {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- 全屏弹出庆祝（多邻国式）---------- */
.cheer {
  position: absolute; inset: 0;
  z-index: 65;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  animation: fadeIn .12s ease;
  background: rgba(255,255,255,.001);
}
.cheer.cheer-green { background: rgba(88,204,2,.92); }
.cheer.cheer-red { background: rgba(255,75,75,.92); }
.cheer-inner { text-align: center; color: #fff; animation: cheerPop .55s cubic-bezier(.2,1.6,.35,1) both; }
.cheer-emoji { font-size: 88px; line-height: 1.1; filter: drop-shadow(0 6px 0 rgba(0,0,0,.15)); }
.cheer-title { font-size: 26px; font-weight: 900; margin-top: 8px; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.cheer-sub { font-size: 16px; font-weight: 800; opacity: .95; margin-top: 4px; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
@keyframes cheerPop {
  0% { transform: scale(.2) rotate(-8deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(3deg); opacity: 1; }
  80% { transform: scale(.96) rotate(-1deg); }
  100% { transform: scale(1); }
}

/* ---------- 跟读语音验证（麦克风卡）---------- */
.mic-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 14px 16px;
  margin-top: 12px;
  text-align: center;
  animation: slideUp .22s ease;
}
.mic-title { font-size: 15px; font-weight: 900; }
.mic-btn {
  width: 72px; height: 72px;
  border-radius: 999px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  margin: 10px auto 6px;
  display: block;
  box-shadow: 0 4px 0 var(--blue-dark);
  cursor: pointer;
  transition: transform .08s;
}
.mic-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue-dark); }
.mic-btn.listening {
  background: var(--red);
  box-shadow: 0 4px 0 var(--red-dark);
  animation: micPulse 1.1s ease-out infinite;
}
.mic-state { font-size: 14px; font-weight: 900; color: var(--ink-soft); min-height: 20px; }
.mic-heard { font-size: 13px; font-weight: 800; color: var(--ink-faint); margin-top: 3px; }
.mic-tip { font-size: 12px; font-weight: 700; color: var(--ink-faint); margin-top: 6px; }
@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,75,75,.45), 0 4px 0 var(--red-dark); }
  70% { box-shadow: 0 0 0 16px rgba(255,75,75,0), 0 4px 0 var(--red-dark); }
  100% { box-shadow: 0 0 0 0 rgba(255,75,75,0), 0 4px 0 var(--red-dark); }
}

/* ---------- 平板自适应（≥600dp：小米 Pad 8 Pro 等大屏）---------- */
@media (min-width: 600px) {
  body { background: #dbe7f0; }
  #app {
    max-width: 660px;
    box-shadow: 0 0 0 1px var(--line), 0 16px 48px rgba(0,0,0,.10);
  }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .topbar .title { font-size: 24px; }
  .topbar .chip { font-size: 16px; }
  .scroll { padding-left: 10px; padding-right: 10px; }
  .btn { font-size: 17px; }
  .word-card .w-emoji { font-size: 64px; }
  .word-card .w-en { font-size: 38px; }
  .word-card .w-zh { font-size: 20px; }
  .repeat-line .r-en { font-size: 32px; }
  .opt { font-size: 19px; }
  .big-zh { font-size: 24px; }
  .tab-btn .tb-icon { font-size: 26px; }
  .tab-btn .tb-label { font-size: 13px; }
  .mic-btn { width: 84px; height: 84px; font-size: 40px; }
  .mic-state { font-size: 16px; }
  .mic-title { font-size: 17px; }
}


