/* ============================================================
   三年级助学系统 · 公共样式
   主题变量沿用 index.html（粉色默认 / 蓝色 [data-theme="blue"]）
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ===== 主题变量（默认粉色，女宝） ===== */
:root {
  --bg1: #ffe3f1; --bg2: #fff0f8; --bg3: #e8f5ff;
  --text: #5a4a6b;
  --accent1: #ff9ecb; --accent2: #c9a7ff;
  --hero-shadow: rgba(201,167,255,.35);
  --stat-border: #ffe0ef; --stat-shadow: rgba(255,158,203,.18);
  --num: #ff6fb0; --lbl: #b09bbf;
  --card-border: #ffe6f3; --card-shadow: rgba(201,167,255,.15);
  --head-bg1: #fff0f8; --head-bg2: #f3ecff;
  --head-alt1: #fff7e6; --head-alt2: #fff0f8;
  --name: #7a5bd6;
  --arrow: #c9a7ff;
  --row-border: #f3dcea; --row-active: #fff0f8;
  --btn-shadow: rgba(255,158,203,.4); --btn-shadow-hi: rgba(255,158,203,.8);
  --en: #5a4a6b; --cn: #b09bbf;
  --pg-color: #c9a7ff; --pg-bg: #f7f0ff;
  --eq: #ff6fb0;
  --player-border: #ffd6ec; --player-shadow: rgba(201,167,255,.3);
  --ctl-color: #7a5bd6; --ctl-bg: #f7f0ff;
  --main-shadow: rgba(255,158,203,.45);
  --progress-bg: #f3e0ef;
  --accent-color: #ff6fb0;
  --footer: #c9a7ff;

  /* 扩展语义色（保持同一套 token 体系） */
  --white: #ffffff;
  --danger: #ff6b8a; --danger-soft: #fff0f4; --danger-shadow: rgba(255,107,138,.35);
  --mask: rgba(90,74,107,.45);
  --toast-bg: rgba(90,74,107,.92);
  --control-bg: rgba(255,255,255,.9);
  --toggle-shadow: rgba(0,0,0,.14);
  --player-bg: rgba(255,255,255,.97);
  --overlay: rgba(255,255,255,.98);
  --shadow-lg: rgba(0,0,0,.2);
  --text-shadow: rgba(0,0,0,.15);
  --sc1a: #ffb1d8; --sc1b: #ff8fc4;
  --sc2a: #b9c6ff; --sc2b: #a58fff;
  --sc3a: #ffd6a5; --sc3b: #ffb87a;
}

/* ===== 主题变量（蓝色，男宝） ===== */
[data-theme="blue"] {
  --bg1: #e3f0ff; --bg2: #f0f7ff; --bg3: #f5fbff;
  --text: #4a5a6b;
  --accent1: #6db3ff; --accent2: #7c8cff;
  --hero-shadow: rgba(124,140,255,.35);
  --stat-border: #e0eeff; --stat-shadow: rgba(109,179,255,.18);
  --num: #3f8ef2; --lbl: #8fa3b8;
  --card-border: #e6f0ff; --card-shadow: rgba(124,140,255,.15);
  --head-bg1: #f0f6ff; --head-bg2: #eef1ff;
  --head-alt1: #eef7ff; --head-alt2: #f0f6ff;
  --name: #3b6fd6;
  --arrow: #7c8cff;
  --row-border: #dce8f3; --row-active: #f0f6ff;
  --btn-shadow: rgba(109,179,255,.4); --btn-shadow-hi: rgba(109,179,255,.8);
  --en: #4a5a6b; --cn: #8fa3b8;
  --pg-color: #7c8cff; --pg-bg: #eef1ff;
  --eq: #3f8ef2;
  --player-border: #d6e8ff; --player-shadow: rgba(124,140,255,.3);
  --ctl-color: #3b6fd6; --ctl-bg: #eef1ff;
  --main-shadow: rgba(109,179,255,.45);
  --progress-bg: #e0eef8;
  --accent-color: #3f8ef2;
  --footer: #7c8cff;

  --white: #ffffff;
  --danger: #f26d6d; --danger-soft: #fff0f0; --danger-shadow: rgba(242,109,109,.35);
  --mask: rgba(74,90,107,.45);
  --toast-bg: rgba(74,90,107,.92);
  --control-bg: rgba(255,255,255,.9);
  --toggle-shadow: rgba(0,0,0,.14);
  --player-bg: rgba(255,255,255,.97);
  --overlay: rgba(255,255,255,.98);
  --shadow-lg: rgba(0,0,0,.2);
  --text-shadow: rgba(0,0,0,.15);
  --sc1a: #7cc4ff; --sc1b: #5aa7ff;
  --sc2a: #8fa6ff; --sc2b: #7c8cff;
  --sc3a: #7fd6e8; --sc3b: #5ec2e0;
}

html, body {
  font-family: "Comic Sans MS", "Chalkboard SE", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 30%, var(--bg3) 100%);
  min-height: 100vh;
  color: var(--text);
}

[hidden] { display: none !important; }

.container { max-width: 560px; margin: 0 auto; padding: 16px 14px 90px; }
/* 有底部导航的页面：留出导航高度 */
body.has-nav .container { padding-bottom: 130px; }
/* 有底部播放器的页面（english.html）：留出播放器 + 备案高度 */
body.has-player .container { padding-bottom: 260px; }
/* 播放器 + 底部导航同时存在（english.html）：再加导航高度 */
body.has-player.has-nav .container { padding-bottom: 320px; }

/* ===== 右上角主题切换按钮 ===== */
.theme-toggle {
  position: fixed; top: 12px; right: 12px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  font-size: 20px; cursor: pointer; line-height: 1;
  background: var(--control-bg);
  box-shadow: 0 4px 12px var(--toggle-shadow);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:active { transform: scale(.9); }

/* ===== 顶部标题 ===== */
.hero {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-radius: 28px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 24px var(--hero-shadow);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.hero .clouds { position: absolute; font-size: 26px; opacity: .5; animation: float 4s ease-in-out infinite; }
.hero .c1 { top: 8px; left: 14px; }
.hero .c2 { top: 26px; right: 20px; animation-delay: 1.2s; }
.hero .c3 { bottom: 6px; left: 60px; animation-delay: 2.2s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }
.hero h1 { font-size: 24px; color: var(--white); text-shadow: 0 2px 6px var(--text-shadow); letter-spacing: 2px; word-break: break-word; }
.hero p { color: var(--white); opacity: .95; font-size: 13px; margin-top: 6px; letter-spacing: 1px; }
.stars { font-size: 18px; letter-spacing: 4px; margin-top: 8px; }

/* ===== 统计小卡片 ===== */
.stats { display: flex; gap: 10px; margin-bottom: 16px; }
.stat {
  flex: 1; background: var(--white); border-radius: 18px; padding: 12px 8px; text-align: center;
  box-shadow: 0 4px 12px var(--stat-shadow); border: 2px solid var(--stat-border);
}
.stat .num { font-size: 22px; font-weight: bold; color: var(--num); }
.stat .lbl { font-size: 12px; color: var(--lbl); margin-top: 2px; }

/* ===== 通用卡片 ===== */
.card {
  background: var(--white); border-radius: 22px; margin-bottom: 14px; overflow: hidden;
  box-shadow: 0 6px 16px var(--card-shadow); border: 2px solid var(--card-border);
  padding: 16px;
}

.section-title { font-size: 14px; font-weight: bold; color: var(--name); margin: 4px 2px 10px; }

.tip-strip {
  text-align: center; font-size: 13px; color: var(--name);
  background: var(--white); border: 2px dashed var(--stat-border);
  border-radius: 18px; padding: 10px 12px; margin-bottom: 14px;
}

/* ===== 卡片式入口 ===== */
.entry-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 20px; border: 2px solid var(--card-border);
  box-shadow: 0 4px 12px var(--card-shadow); padding: 14px 16px; margin-bottom: 12px;
  text-decoration: none; color: var(--text); transition: transform .15s;
}
.entry-card:active { transform: scale(.98); }
.ec-ico { font-size: 28px; }
.ec-body { flex: 1; min-width: 0; }
.ec-name { font-size: 16px; font-weight: bold; color: var(--name); }
.ec-desc { font-size: 12px; color: var(--lbl); margin-top: 3px; }
.ec-arrow { color: var(--arrow); font-size: 22px; }

/* ===== 学科大卡片 ===== */
.subject-card {
  display: flex; align-items: center; gap: 14px;
  border-radius: 24px; padding: 18px 16px; margin-bottom: 14px;
  text-decoration: none; color: var(--white);
  box-shadow: 0 6px 16px var(--card-shadow); transition: transform .15s;
}
.subject-card:active { transform: scale(.98); }
.subject-card.chinese { background: linear-gradient(135deg, var(--sc1a), var(--sc1b)); }
.subject-card.math { background: linear-gradient(135deg, var(--sc2a), var(--sc2b)); }
.subject-card.english { background: linear-gradient(135deg, var(--sc3a), var(--sc3b)); }
.sc-ico { font-size: 34px; }
.sc-body { flex: 1; min-width: 0; }
.sc-name { font-size: 19px; font-weight: bold; }
.sc-desc { font-size: 12px; opacity: .92; margin-top: 3px; }
.sc-arrow { font-size: 24px; opacity: .9; }

/* ===== 按钮 ===== */
.btn {
  border-radius: 999px; font-family: inherit; font-size: 15px; padding: 11px 20px;
  cursor: pointer; border: 2px solid var(--row-border); background: var(--white);
  color: var(--name); transition: transform .15s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary {
  border-color: transparent; color: var(--white);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 4px 12px var(--btn-shadow);
}
.btn.ghost { background: var(--white); border: 2px solid var(--row-border); color: var(--name); }
.btn.danger { border-color: transparent; background: var(--danger); color: var(--white); box-shadow: 0 4px 12px var(--danger-shadow); }
.btn.block { display: block; width: 100%; }
.btn.sm { font-size: 12px; padding: 6px 12px; }

/* ===== 顶部返回栏 ===== */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.back-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--row-border); background: var(--white);
  color: var(--name); font-size: 18px; cursor: pointer; font-family: inherit;
}
.back-btn:active { transform: scale(.92); }
.topbar .title { font-size: 18px; font-weight: bold; color: var(--name); flex: 1; min-width: 0; }
.topbar .title .sub { display: block; font-size: 12px; font-weight: normal; color: var(--lbl); margin-top: 2px; }

/* ===== 学科 Tab ===== */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  flex: 1; border: 2px solid var(--row-border); background: var(--white); color: var(--lbl);
  border-radius: 999px; padding: 8px 0; font-size: 14px; font-family: inherit; cursor: pointer;
  transition: all .2s;
}
.tab.on {
  border-color: transparent; color: var(--white);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 3px 8px var(--btn-shadow);
}

/* ===== 分段控件（原题/相似题） ===== */
.seg { display: flex; background: var(--ctl-bg); border-radius: 999px; padding: 4px; gap: 4px; }
.seg-btn {
  flex: 1; border: none; background: transparent; color: var(--lbl);
  padding: 9px 0; border-radius: 999px; font-family: inherit; font-size: 14px; cursor: pointer;
  transition: all .2s;
}
.seg-btn.on {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 3px 8px var(--btn-shadow);
}

/* ===== 数量步进器 ===== */
.stepper { display: flex; align-items: center; justify-content: center; gap: 16px; }
.step-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--row-border);
  background: var(--white); color: var(--name); font-size: 20px; font-family: inherit;
  cursor: pointer; line-height: 1;
}
.step-btn:active { transform: scale(.92); }
.step-btn:disabled { opacity: .4; }
.step-num { font-size: 22px; font-weight: bold; color: var(--num); min-width: 40px; text-align: center; }

/* ===== 错题列表项 ===== */
.list-count { font-size: 12px; color: var(--lbl); margin: 0 2px 10px; }
.item-card {
  background: var(--white); border-radius: 20px; border: 2px solid var(--card-border);
  box-shadow: 0 4px 12px var(--card-shadow); padding: 14px; margin-bottom: 12px;
  cursor: pointer; transition: transform .15s;
}
.item-card:active { transform: scale(.99); }
.item-top { display: flex; gap: 10px; align-items: flex-start; }
.snippet { flex: 1; min-width: 0; font-size: 14px; line-height: 1.6; color: var(--text); word-break: break-word; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.icon-btn { border: none; background: transparent; font-size: 18px; cursor: pointer; padding: 2px 4px; line-height: 1; flex-shrink: 0; }
.icon-btn:active { transform: scale(.9); }
.meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11px; color: var(--name); background: var(--pg-bg);
  border-radius: 999px; padding: 3px 10px; max-width: 60%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.meta-date { font-size: 11px; color: var(--lbl); margin-left: auto; }

/* ===== 悬浮添加按钮 ===== */
.fab {
  position: fixed; right: 18px; bottom: 84px; z-index: 160;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 26px; color: var(--white); font-family: inherit;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 6px 18px var(--main-shadow);
  display: flex; align-items: center; justify-content: center;
}
.fab:active { transform: scale(.92); }

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; background: var(--overlay);
  border-top: 1px solid var(--row-border);
  box-shadow: 0 -4px 16px var(--card-shadow);
  box-sizing: border-box;
  /* 固定高度（含边框/安全区），便于播放器精确叠放（english.html） */
  height: calc(var(--nav-h, 60px) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 10px; text-decoration: none; color: var(--lbl); font-size: 12px;
}
.nav-item .nav-ico { font-size: 20px; }
.nav-item.on { color: var(--num); font-weight: bold; }

/* ===== 练习题卡片 ===== */
.q-card {
  background: var(--white); border-radius: 20px; border: 2px solid var(--card-border);
  box-shadow: 0 4px 12px var(--card-shadow); padding: 14px; margin-bottom: 12px;
}
.q-head { display: flex; gap: 10px; align-items: flex-start; }
.q-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2)); color: var(--white);
  font-size: 13px; font-weight: bold; display: flex; align-items: center; justify-content: center;
}
.q-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.q-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.qa-block { margin-top: 10px; border-top: 1px dashed var(--row-border); padding-top: 10px; }
.qa-label { font-size: 13px; font-weight: bold; color: var(--name); margin: 8px 0 4px; }
.qa-label:first-child { margin-top: 0; }
.qa-text { font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

/* ===== 表单 ===== */
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 13px; font-weight: bold; color: var(--name); margin-bottom: 6px; }
.input, .textarea {
  width: 100%; border: 2px solid var(--row-border); border-radius: 14px;
  background: var(--white); color: var(--text); font-family: inherit; font-size: 14px;
  padding: 10px 12px; outline: none;
}
.input:focus, .textarea:focus { border-color: var(--accent1); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.6; }

/* ===== 上传 ===== */
.upload-grid { display: flex; gap: 12px; margin-bottom: 12px; }
.upload-slot {
  flex: 1; border: 2px dashed var(--accent1); border-radius: 20px; background: var(--white);
  padding: 18px 10px; text-align: center; cursor: pointer; color: var(--name);
  font-family: inherit; font-size: 14px;
}
.upload-slot:active { transform: scale(.97); }
.upload-slot .up-ico { font-size: 30px; display: block; margin-bottom: 6px; }
.preview-wrap { margin-top: 4px; }
.preview-img { width: 100%; border-radius: 16px; border: 2px solid var(--card-border); display: block; }
.preview-fallback {
  text-align: center; color: var(--lbl); font-size: 13px; padding: 24px 10px;
  border: 2px dashed var(--row-border); border-radius: 16px;
}

/* ===== 详情页字段 ===== */
.detail-label { font-size: 13px; font-weight: bold; color: var(--name); margin: 14px 0 6px; }
.detail-label:first-child { margin-top: 0; }
.detail-text { font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.answer-wrong { color: var(--danger); font-weight: bold; background: var(--danger-soft); border-radius: 12px; padding: 10px 12px; }
.answer-right { color: var(--name); background: var(--ctl-bg); border-radius: 12px; padding: 10px 12px; }
.photo-wrap { margin-bottom: 14px; }
.photo-wrap .photo { width: 100%; border-radius: 18px; display: block; border: 2px solid var(--card-border); }
.detail-meta { font-size: 12px; color: var(--lbl); margin-top: 4px; }
.btn-row { display: flex; gap: 10px; margin-top: 4px; }
.btn-row .btn { flex: 1; }

/* ===== 分析：薄弱点 chips + 补强清单 ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; color: var(--name); background: var(--pg-bg);
  border: 2px solid var(--stat-border); border-radius: 999px; padding: 6px 14px;
}
.plan-list { list-style: none; }
.plan-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 0;
  border-bottom: 1px dashed var(--row-border);
}
.plan-item:last-child { border-bottom: none; }
.plan-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2)); color: var(--white);
  font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center;
}
.plan-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.7; word-break: break-word; }

/* ===== 加载 ===== */
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 12px; }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 4px solid var(--progress-bg); border-top-color: var(--accent1);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 13px; color: var(--lbl); text-align: center; line-height: 1.6; }
.loading-mask {
  position: fixed; inset: 0; z-index: 300; background: var(--mask);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.loading-box {
  background: var(--white); border-radius: 22px; padding: 22px 20px;
  width: 100%; max-width: 320px; text-align: center;
  box-shadow: 0 10px 30px var(--shadow-lg);
}
.loading-box .spinner { margin: 0 auto 12px; }
.loading-box .btn { margin-top: 14px; }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 40px 16px; color: var(--lbl); font-size: 14px; }
.empty-ico { font-size: 44px; margin-bottom: 10px; }
.empty-text { line-height: 1.8; }

/* ===== 轻提示 ===== */
.toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 400;
  transform: translateX(-50%) translateY(20px);
  background: var(--toast-bg); color: var(--white); font-size: 13px;
  padding: 10px 18px; border-radius: 999px; max-width: 90vw; text-align: center;
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 页脚 ===== */
.footer { text-align: center; color: var(--footer); font-size: 12px; padding: 20px 0 10px; letter-spacing: 1px; }

/* ===== 备案信息（仅登录页 + 仅 PC 端展示） ===== */
.beian { display: none; text-align: center; padding: 6px 0 4px; line-height: 1.9; }
@media (min-width: 768px) {
  .beian { display: block; }
}
.beian a { color: var(--lbl); font-size: 12px; text-decoration: none; letter-spacing: .5px; }
.beian a:hover { color: var(--name); }
.beian-ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ============================================================
   听力模块（english.html 沿用 index.html 的单元/播放器样式）
   ============================================================ */
.unit-card {
  background: var(--white); border-radius: 22px; margin-bottom: 14px; overflow: hidden;
  box-shadow: 0 6px 16px var(--card-shadow); border: 2px solid var(--card-border);
}
.unit-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer;
  background: linear-gradient(90deg, var(--head-bg1), var(--head-bg2));
}
.unit-head.alt { background: linear-gradient(90deg, var(--head-alt1), var(--head-alt2)); }
.unit-head .icon { font-size: 26px; }
.unit-head .name { font-size: 17px; font-weight: bold; color: var(--name); flex: 1; min-width: 0; }
.unit-head .arrow { font-size: 16px; color: var(--arrow); transition: transform .3s; }
.unit-card.collapsed .arrow { transform: rotate(-90deg); }
.unit-card.collapsed .track-list { display: none; }

.track-list { padding: 4px 12px 12px; }
.track-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px;
  border-bottom: 1px dashed var(--row-border); cursor: pointer; border-radius: 14px;
  transition: background .2s;
}
.track-row:last-child { border-bottom: none; }
.track-row:active { background: var(--row-active); }
.track-row.flash { animation: flash 1.7s ease; }
@keyframes flash { 0%,100%{ background: transparent; } 30%{ background: rgba(255,214,80,.45); } }

.play-btn {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  display: flex; align-items: center; justify-content: center; color: var(--white);
  font-size: 16px; box-shadow: 0 4px 10px var(--btn-shadow);
}
.track-row.playing .play-btn { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 4px 10px var(--btn-shadow);} 50%{ box-shadow: 0 4px 20px var(--btn-shadow-hi);} }

.track-info { flex: 1; min-width: 0; }
.track-info .en { font-size: 14px; font-weight: bold; color: var(--en); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-info .cn { font-size: 12px; color: var(--cn); margin-top: 2px; }
.track-pg { font-size: 12px; color: var(--pg-color); background: var(--pg-bg); padding: 4px 8px; border-radius: 10px; flex-shrink: 0; white-space: nowrap; }

.eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; width: 16px; flex-shrink: 0; }
.eq span { width: 3px; background: var(--eq); border-radius: 2px; animation: eq 0.9s infinite ease-in-out; }
.eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.eq span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.eq span:nth-child(4) { height: 80%; animation-delay: 0.45s; }
.eq.paused span { animation-play-state: paused; }
@keyframes eq { 0%,100%{ transform: scaleY(0.4);} 50%{ transform: scaleY(1);} }

.none-eq { width: 16px; flex-shrink: 0; }

/* ===== 底部播放器 ===== */
.player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--player-bg); border-top: 3px solid var(--player-border);
  box-shadow: 0 -6px 24px var(--player-shadow);
  backdrop-filter: blur(8px);
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
}
/* 与底部导航并存时，播放器上移一层，避免遮挡导航 */
body.has-player.has-nav .player { bottom: calc(var(--nav-h, 60px) + env(safe-area-inset-bottom, 0px)); }
.player .p-info { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.player .p-title { flex: 1; min-width: 0; }
.player .p-title .en { font-size: 13px; font-weight: bold; color: var(--ctl-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .p-title .cn { font-size: 11px; color: var(--lbl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .p-time { font-size: 11px; color: var(--lbl); flex-shrink: 0; }

.progress-wrap { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; margin: 0 6px; }
.progress-bg { width: 100%; height: 8px; background: var(--progress-bg); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent1), var(--accent2)); border-radius: 6px; transition: width .1s linear; }

.player .controls { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 4px; }
.ctl {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ctl-color); background: var(--ctl-bg); border: none; cursor: pointer; font-family: inherit;
}
.ctl:active { transform: scale(.92); }
.ctl.main {
  width: 54px; height: 54px; font-size: 22px; color: var(--white);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 4px 14px var(--main-shadow);
}
.mode-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.mode-btn {
  border: 2px solid var(--row-border); background: var(--white); color: var(--lbl);
  font-size: 12px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-family: inherit; transition: all .2s;
}
.mode-btn:active { transform: scale(.95); }
.mode-btn.on {
  border-color: transparent; color: var(--white);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 3px 8px var(--btn-shadow);
}
.volume-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.volume-row span { font-size: 14px; color: var(--lbl); }
.volume-range { width: 140px; height: 4px; accent-color: var(--accent-color); }

/* ============================================================
   拍照录题（一图多题）：识别结果卡片 + 勾选保存工具栏
   仅本模块使用，复用 .card/.field/.tag/.tip-strip/.btn 等既有样式
   ============================================================ */
.q-item { transition: opacity .2s; }
.q-item.q-off { opacity: .55; }
.q-item .q-head { align-items: center; margin-bottom: 12px; }
.q-item .q-pick {
  display: flex; align-items: center; flex-shrink: 0;
  padding: 4px; cursor: pointer;
}
.q-item .q-pick input {
  width: 20px; height: 20px; margin: 0;
  accent-color: var(--accent-color);
}
.q-item .q-badge { font-size: 13px; font-weight: bold; padding: 5px 12px; max-width: 100%; }
.q-item .q-hint { text-align: left; margin-bottom: 12px; }
.q-item .field:last-child { margin-bottom: 2px; }

/* 底部的「全选 + 保存」工具栏：长列表滚动时吸底，随手可保存 */
.act-bar {
  position: sticky; bottom: 10px; z-index: 120;
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 2px solid var(--card-border);
  border-radius: 999px; padding: 8px 10px; margin-bottom: 14px;
  box-shadow: 0 8px 20px var(--card-shadow);
}
.act-bar #selectAllBtn {
  flex: 0 0 auto; white-space: nowrap;
  font-size: 13px; padding: 8px 12px;
}
.act-bar #saveBtn {
  flex: 1 1 auto; min-width: 0;
  font-size: 13px; padding: 10px 12px;
}
