/* ============================================================
 * WordQuest 单词大冒险 — 样式
 * 活泼儿童风：亮色、大圆角、大按钮，移动优先
 * ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --blue: #4d96ff;
  --blue-dark: #2f6fd0;
  --yellow: #ffd93d;
  --pink: #ff6b9d;
  --green: #6bcb77;
  --orange: #ff9f1c;
  --purple: #9b5de5;
  --bg: #f0f7ff;
  --card: #ffffff;
  --ink: #2b2d42;
  --ink-soft: #6c757d;
  --radius: 20px;
}

html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #dbeafe 0%, var(--bg) 40%);
  color: var(--ink);
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.5;
}
#app { max-width: 640px; margin: 0 auto; padding: 12px 14px 60px; }
.hidden { display: none !important; }

/* ---------- 顶栏 ---------- */
#topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.logo { font-size: 22px; font-weight: 900; color: var(--blue-dark); }
.player-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: 999px; padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(77,150,255,.18); font-size: 15px;
}
#chipAvatar { font-size: 24px; }
#chipName { font-weight: 700; }
.chip-tag {
  background: #eef4ff; border-radius: 999px; padding: 2px 10px;
  font-size: 13px; font-weight: 700; color: var(--blue-dark); white-space: nowrap;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(77,150,255,.12);
}
.card-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.home-row { display: flex; gap: 12px; margin-bottom: 0; }
.home-row .card { flex: 1; }
.home-row .tool-btn { flex: 1; }

/* ---------- 主页：玩家切换 ---------- */
.profile-switch { display: flex; gap: 10px; }
.avatar-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 3px solid #e9ecef; background: #f8f9fa; border-radius: 16px;
  padding: 10px 4px; font-size: 14px; cursor: pointer; color: var(--ink);
}
.avatar-btn.active { border-color: var(--yellow); background: #fffbe8; }
.avatar-emoji { font-size: 40px; }

/* ---------- 每日目标环 ---------- */
.goal-card { text-align: center; }
.goal-wrap { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.goal-ring { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e9ecef; stroke-width: 10; }
.ring-fg {
  fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}
.goal-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.goal-text { font-size: 18px; font-weight: 900; color: var(--blue-dark); }
.goal-label { font-size: 12px; color: var(--ink-soft); }
.goal-done { margin-top: 8px; font-weight: 700; color: #2f9e44; }

/* ---------- 模式卡片 ---------- */
.mode-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.mode-card {
  border: none; border-radius: 18px; padding: 16px 8px; cursor: pointer;
  background: linear-gradient(135deg, #fff 60%, #eef4ff);
  border: 2px solid #e3edff; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform .12s ease;
}
.mode-card:active { transform: scale(.96); }
.mode-icon { font-size: 34px; }
.mode-name { font-size: 16px; font-weight: 800; }
.mode-desc { font-size: 12px; color: var(--ink-soft); }

/* ---------- 工具按钮 ---------- */
.tool-btn {
  border: none; border-radius: 16px; padding: 14px 8px; font-size: 15px; font-weight: 700;
  background: var(--card); color: var(--ink); cursor: pointer; position: relative;
  box-shadow: 0 2px 8px rgba(77,150,255,.12);
}
.badge {
  position: absolute; top: -6px; right: -4px; background: var(--pink); color: #fff;
  border-radius: 999px; min-width: 22px; height: 22px; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}
.badge:empty { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  border: none; border-radius: 999px; padding: 14px 26px; font-size: 17px; font-weight: 800;
  background: #e9ecef; color: var(--ink); cursor: pointer; min-height: 52px;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.btn.warn { background: linear-gradient(135deg, var(--orange), #f77f00); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; min-height: 0; }
.btn.big { font-size: 19px; padding: 16px 34px; }
.btn-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

/* ---------- 档案页 ---------- */
.profile-card { border: 3px solid #e9ecef; border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.profile-card.active { border-color: var(--yellow); }
.profile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar-big { font-size: 44px; }
.name-input {
  font-size: 18px; font-weight: 700; border: 2px solid #e9ecef; border-radius: 12px;
  padding: 8px 12px; width: 160px; color: var(--ink);
}
.av-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.av-pick {
  font-size: 26px; border: 2px solid transparent; background: #f8f9fa;
  border-radius: 12px; width: 48px; height: 48px; cursor: pointer;
}
.av-pick.sel { border-color: var(--blue); background: #e7f0ff; }
.profile-meta { font-size: 14px; color: var(--ink-soft); }

/* ---------- 单词包 ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pack-card {
  border: 2px solid #e3edff; background: #fbfdff; border-radius: 16px;
  padding: 14px 6px; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.pack-card:active { transform: scale(.96); }
.pack-all { border-color: var(--yellow); background: #fffbe8; grid-column: span 3; flex-direction: row; justify-content: center; gap: 10px; }
.pack-icon { font-size: 30px; }
.pack-name { font-weight: 800; font-size: 15px; }
.pack-count { font-size: 12px; color: var(--ink-soft); }

/* ---------- 游戏区 ---------- */
.game-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.game-titles { flex: 1; }
.game-title { font-size: 20px; font-weight: 900; }
.game-pack { font-size: 13px; color: var(--ink-soft); }
.progress-wrap { margin-bottom: 14px; }
.progress-track { height: 12px; background: #e9ecef; border-radius: 999px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transition: width .4s ease;
}
.progress-text { font-size: 13px; color: var(--ink-soft); margin-top: 4px; text-align: right; }
#gameArea { min-height: 300px; }

.feedback {
  margin-top: 14px; padding: 12px; border-radius: 14px; text-align: center;
  font-size: 18px; font-weight: 800; animation: pop .3s ease;
}
.feedback.good { background: #d3f9d8; color: #2b8a3e; }
.feedback.bad { background: #ffe3e3; color: #c92a2a; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- 选项题 ---------- */
.q-word { font-size: 34px; font-weight: 900; text-align: center; margin: 10px 0; color: var(--blue-dark); }
.q-word.cn-big { font-size: 30px; }
.q-pos { font-size: 16px; color: var(--ink-soft); font-weight: 400; }
.q-ask { text-align: center; color: var(--ink-soft); margin-bottom: 12px; font-size: 15px; }
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-btn {
  border: 3px solid #e9ecef; background: #fff; border-radius: 16px;
  padding: 14px; font-size: 19px; font-weight: 700; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
}
.opt-btn.right { border-color: var(--green); background: #d3f9d8; }
.opt-btn.wrong { border-color: #ff6b6b; background: #ffe3e3; animation: shake .35s; }
.opt-btn:disabled { opacity: .85; cursor: default; }
@keyframes shake {
  0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); } 75% { transform: translateX(-4px); }
}
.mini-say { font-size: 22px; padding: 4px 8px; }

/* ---------- 发音按钮 ---------- */
.say-btn {
  border: none; background: #e7f0ff; color: var(--blue-dark); border-radius: 999px;
  padding: 8px 16px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.say-btn:active { transform: scale(.95); }

/* ---------- 单词卡片（翻转） ---------- */
.flashcard { perspective: 800px; margin: 10px 0; cursor: pointer; }
.fc-inner {
  position: relative; width: 100%; min-height: 260px;
  transform-style: preserve-3d; transition: transform .5s ease;
}
.flashcard.flipped .fc-inner { transform: rotateY(180deg); }
.fc-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 24px; padding: 26px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(77,150,255,.18);
}
.fc-front { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; }
.fc-back { background: #fff; transform: rotateY(180deg); border: 3px solid var(--yellow); }
.fc-word { font-size: 44px; font-weight: 900; }
.fc-pos { font-size: 16px; opacity: .85; }
.fc-hint { font-size: 13px; opacity: .75; margin-top: 6px; }
.fc-cn { font-size: 32px; font-weight: 900; color: var(--blue-dark); }
.fc-ex { font-size: 18px; margin-top: 6px; }
.fc-excn { font-size: 15px; color: var(--ink-soft); }
.fc-tip { font-size: 14px; background: #fff9db; border-radius: 10px; padding: 6px 10px; margin-top: 6px; }
.fc-front .say-btn { background: rgba(255,255,255,.25); color: #fff; }

/* ---------- 听音拼写 ---------- */
.spell-box { text-align: center; }
.spell-cn { font-size: 22px; font-weight: 800; margin: 12px 0; }
.spell-hint { color: var(--ink-soft); margin: 10px 0; font-size: 14px; }
.spell-input {
  width: 100%; font-size: 26px; text-align: center; padding: 14px;
  border: 3px solid var(--blue); border-radius: 16px; margin: 8px 0; color: var(--ink);
  letter-spacing: 2px;
}
.spell-input.wrong { border-color: #ff6b6b; animation: shake .35s; }
.spell-answer { margin-top: 12px; font-size: 18px; background: #fff9db; border-radius: 14px; padding: 12px; }
.spell-cn2 { font-size: 14px; color: var(--ink-soft); }

/* ---------- 句子填空 ---------- */
.blank-sentence {
  background: #fff; border-radius: 18px; padding: 18px; font-size: 20px; font-weight: 700;
  margin: 10px 0; border: 3px dashed var(--blue); line-height: 1.8;
}
.blank-cn { font-size: 15px; font-weight: 400; color: var(--ink-soft); margin-top: 10px; }

/* ---------- 打字闯关 ---------- */
.type-box { margin: 10px 0; }
.type-target {
  background: #fff; border-radius: 16px; padding: 16px; font-size: 20px; line-height: 2;
  border: 2px solid #e3edff; margin-bottom: 12px; font-family: Georgia, serif;
}
.type-target span.ok { color: var(--green); }
.type-target span.bad { color: #fff; background: #ff6b6b; border-radius: 4px; }
.type-input {
  width: 100%; font-size: 19px; padding: 14px; border-radius: 16px;
  border: 3px solid var(--blue); color: var(--ink); font-family: Georgia, serif; resize: none;
}
.type-meta { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 14px; margin-top: 8px; }

/* ---------- 造句挑战 ---------- */
.make-box { margin: 10px 0; }
.make-word { font-size: 32px; font-weight: 900; color: var(--blue-dark); text-align: center; }
.make-cn { text-align: center; font-size: 17px; margin: 6px 0; }
.make-ex { background: #f8f9fa; border-radius: 12px; padding: 10px; font-size: 15px; margin: 10px 0 4px; }
.make-excn { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.make-input {
  width: 100%; font-size: 18px; padding: 14px; border-radius: 16px;
  border: 3px solid var(--purple); color: var(--ink); resize: none; font-family: Georgia, serif;
}
.make-msg { margin-top: 10px; font-size: 16px; font-weight: 700; text-align: center; }
.make-msg.good { color: #2b8a3e; }
.make-msg.bad { color: #c92a2a; }

/* ---------- 结算 ---------- */
.result-card {
  background: #fff; border-radius: 24px; padding: 30px 20px; text-align: center;
  box-shadow: 0 6px 18px rgba(77,150,255,.18);
}
.result-emoji { font-size: 64px; }
.result-card h2 { margin: 10px 0; }
.result-score { font-size: 22px; font-weight: 800; color: var(--blue-dark); }
.type-result { margin: 12px 0; font-size: 17px; }
.result-btns { display: flex; gap: 10px; margin-top: 16px; }
.result-btns .btn { flex: 1; }

/* ---------- 错题本 ---------- */
.mistake-item {
  border: 2px solid #ffe3e3; border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fffafa;
}
.m-word { font-size: 20px; font-weight: 800; color: var(--blue-dark); }
.m-cn { font-size: 15px; margin: 4px 0; }
.m-ex { font-size: 14px; color: var(--ink-soft); }
.empty-tip { text-align: center; color: var(--ink-soft); padding: 20px 0; font-size: 16px; }

/* ---------- 家长统计 ---------- */
.stat-card { border: 2px solid #e3edff; border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.stat-head { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-cell { background: #f8f9fa; border-radius: 12px; padding: 10px 4px; text-align: center; }
.stat-icon { font-size: 22px; }
.stat-value { font-size: 17px; font-weight: 800; color: var(--blue-dark); }
.stat-label { font-size: 12px; color: var(--ink-soft); }

/* ---------- 升级弹窗 / 彩带 / 提示 ---------- */
#overlay {
  position: fixed; inset: 0; background: rgba(43,45,66,.55); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.levelup {
  background: #fff; border-radius: 28px; padding: 36px 30px; text-align: center;
  animation: pop .4s ease; border: 4px solid var(--yellow); max-width: 320px;
}
.levelup-stars { font-size: 48px; animation: bounce 1s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.levelup h2 { margin: 10px 0 4px; font-size: 28px; }
.levelup-lv { font-size: 40px; font-weight: 900; color: var(--orange); margin-bottom: 16px; }

#confettiBox { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti {
  position: absolute; top: -40px; display: inline-block;
  animation: fall 2.2s ease-in forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: .6; }
}

#toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 15px; opacity: 0; transition: all .3s ease; z-index: 70; pointer-events: none;
  max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 大屏微调 ---------- */
@media (min-width: 560px) {
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .fc-word { font-size: 54px; }
}

/* ============ Phase 1 新增 ============ */

/* 用户登录 / 注册 */
.auth-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.auth-user {
  display: flex; align-items: center; gap: 10px;
  background: #f7f9ff; border: 2px solid #e3e9ff; border-radius: 14px;
  padding: 10px 14px; font-size: 17px; cursor: pointer; text-align: left;
}
.auth-user.active { border-color: #4d96ff; background: #eef4ff; }
.auth-uname { font-weight: bold; flex: 1; }
.auth-ulevels { font-size: 12px; color: #888; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chip {
  border: 2px solid #dfe6ff; background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 15px; cursor: pointer;
}
.chip.sel { border-color: #4d96ff; background: #e8f1ff; font-weight: bold; }
.chip.dim { opacity: .35; }
.select-wide, .name-input.wide {
  width: 100%; box-sizing: border-box; font-size: 16px;
  border: 2px solid #dfe6ff; border-radius: 12px; padding: 10px 12px; margin: 4px 0 8px;
}
.level-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 12px; }
.level-check {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid #e8ecff; border-radius: 12px; padding: 8px 10px;
  font-size: 14px; cursor: pointer; background: #fbfcff;
}
.level-check input { width: 20px; height: 20px; }
.level-check b { font-size: 15px; }
.level-check span { color: #888; font-size: 12px; }

/* 宠物卡 */
.pet-card { flex: 1; }
.pet-wrap { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.pet-emoji { font-size: 52px; line-height: 1; }
.pet-info { flex: 1; }
.pet-mood { font-size: 14px; margin-bottom: 6px; }
.pet-bar { background: linear-gradient(90deg, #ffb3c7, #c77dff) !important; }
.pet-growth { font-size: 12px; color: #888; margin-top: 4px; }

/* 键盘（打字课程） */
.keyboard { margin: 10px 0; }
.kb-row { display: flex; justify-content: center; gap: 5px; margin-bottom: 5px; }
.kb-key {
  min-width: 30px; height: 40px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #dfe6ff; border-radius: 8px; background: #f4f6ff;
  font-family: monospace; font-size: 16px; color: #9aa3c0;
}
.kb-key.lit { color: #222; border-color: #4d96ff; background: #e8f1ff; font-weight: bold; }
.kb-key.now { background: #ffd93d; border-color: #ff9f1c; transform: scale(1.15); }
.kb-key.f1, .kb-key.f8 { background: #ffe3ec; }
.kb-key.f2, .kb-key.f7 { background: #ffe9d6; }
.kb-key.f3, .kb-key.f6 { background: #dcf5e3; }
.kb-key.f4, .kb-key.f5 { background: #dceaff; }
.kb-key.lit.f1, .kb-key.lit.f8 { background: #ffc9da; }
.kb-key.lit.f2, .kb-key.lit.f7 { background: #ffd9b3; }
.kb-key.lit.f3, .kb-key.lit.f6 { background: #bdf0cd; }
.kb-key.lit.f4, .kb-key.lit.f5 { background: #bcd6ff; }
.kb-space { min-width: 180px; font-size: 13px; }
.finger-hint { font-size: 13px; color: #666; background: #f7f9ff; border-radius: 10px; padding: 8px; margin-top: 8px; }
.type-target.big { font-size: 22px; letter-spacing: 1px; }
.lesson-card {
  display: block; width: 100%; text-align: left; margin-bottom: 10px;
  border: 2px solid #e3e9ff; border-radius: 14px; padding: 12px 14px; background: #fff; cursor: pointer;
}
.lesson-card.locked { opacity: .5; }
.lesson-name { font-size: 17px; font-weight: bold; }
.lesson-desc { font-size: 13px; color: #888; margin-top: 4px; }

/* PK */
.pk-score {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  font-size: 18px; margin: 8px 0;
}
.pk-score.hidden { display: none; }
.pk-p { background: #f4f6ff; border-radius: 12px; padding: 6px 14px; border: 2px solid transparent; }
.pk-p.cur { border-color: #ffd93d; background: #fff8e1; }
.pk-p b { color: #4d96ff; }
.pk-vs { font-size: 22px; }
.pk-final { font-size: 22px; margin: 12px 0; }
.pack-card.empty { opacity: .45; }

/* 出处标注 */
.src-line { font-size: 12px; color: #999; margin-top: 8px; }

/* ---------- 生词本 ---------- */
.src-tag {
  flex-shrink: 0; font-size: 12px; color: #7c5cd6; background: #f0eaff;
  border-radius: 999px; padding: 4px 10px; margin-left: 8px; white-space: nowrap;
}
.dup-tag {
  font-size: 11px; color: #b8860b; background: #fff8e1; border-radius: 999px;
  padding: 2px 8px; font-weight: normal;
}
.dim-text { color: #aaa; }
.mw-item {
  border: 2px solid #e6ddff; border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fbfaff;
}
.mw-head { display: flex; align-items: flex-start; justify-content: space-between; cursor: pointer; }
.mw-main { flex: 1; min-width: 0; }
.mw-detail { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e0d6ff; }
.m-excn { font-size: 13px; color: #888; margin-top: 4px; }
.import-area {
  width: 100%; box-sizing: border-box; border: 2px solid #dfe6ff; border-radius: 12px;
  padding: 10px; font-size: 15px; font-family: inherit; margin-top: 8px; resize: vertical;
}
.import-area:focus { outline: none; border-color: #4d96ff; }
.import-preview { font-size: 14px; color: #4d96ff; margin: 8px 0; min-height: 20px; }
.quick-add { margin-left: 10px; }
.feedback { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }

/* ============ 本轮新增：统一页头 ============ */
.page-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding: 4px 2px;
}
.page-title { flex: 1; font-size: 19px; font-weight: 900; color: var(--blue-dark); }
.page-mini { font-size: 14px; font-weight: 700; white-space: nowrap; }
.head-back { flex-shrink: 0; }

/* ============ 模式卡片最佳成绩 ============ */
.mode-best { font-size: 12px; font-weight: 700; color: var(--orange); }

/* ============ 单词包：分类 / 徽章 / 搜索 ============ */
.pack-cat-title {
  grid-column: 1 / -1; font-size: 16px; font-weight: 800;
  color: var(--blue-dark); margin: 8px 0 2px;
}
.pack-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.lv-badge {
  font-size: 10px; font-weight: 700; color: var(--purple);
  background: #f0eaff; border-radius: 999px; padding: 2px 8px;
}
.level-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--blue); background: #e7f0ff; color: var(--blue-dark);
  border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700;
}
.level-x { color: #c92a2a; font-style: normal; cursor: pointer; padding: 0 2px; }
.word-hit {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid #e3edff; border-radius: 14px; padding: 10px 12px;
}
.wh-main { flex: 1; min-width: 0; }
.wh-main b { font-size: 17px; color: var(--blue-dark); }

/* ============ 单词卡片：更大 + 进度点 ============ */
.flashcard .fc-inner { min-height: 320px; }
.fc-word { font-size: 52px; }
.fc-cn { font-size: 36px; }
.fc-dots { display: flex; gap: 6px; justify-content: center; margin: 4px 0; flex-wrap: wrap; }
.fc-dot { width: 9px; height: 9px; border-radius: 50%; background: #dfe6ff; }
.fc-dot.done { background: var(--green); }
.fc-dot.cur { background: var(--blue); transform: scale(1.35); }
.fc-count { text-align: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 4px; }
.fc-actions .btn { min-height: 60px; font-size: 19px; }

/* ============ 家庭管理 ============ */
.invite-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.invite-code {
  font-size: 20px; font-weight: 900; letter-spacing: 2px; color: var(--blue-dark);
  background: #eef4ff; border-radius: 10px; padding: 8px 14px;
}
.pend-item, .fam-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 2px solid #e3edff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  background: #fbfdff; font-size: 15px;
}
.pend-item small { color: var(--ink-soft); }
.pend-btns { display: flex; gap: 6px; flex-shrink: 0; }
.pend-item .badge, .q-ask .badge { position: static; }
.fam-item .chip-tag { flex-shrink: 0; }

/* ============ 等待审核 ============ */
.pending-card { text-align: center; padding: 40px 20px; }
.pending-emoji { font-size: 64px; animation: bounce 1.5s infinite; }
.pending-card .q-ask { line-height: 2; }
