/* ============================================================
   学英语模块共享样式 (V1 MVP)
   依赖: frontend.css / user.css / dazi-navbar.js 提供的基础环境
   ============================================================ */
:root {
  --eng-accent: #6f42c1;
  --eng-accent-soft: #f3edfb;
  --eng-blue: #2f6fed;
  --eng-green: #2e9e5b;
  --eng-red: #e05252;
  --eng-gold: #f0ad4e;
  --eng-card-r: 14px;
}

.eng-wrap { max-width: 1720px; margin: 0 auto; padding: 18px 40px 60px; }
@media (min-width: 1200px) {
  .eng-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (min-width: 1500px) {
  /* 大屏: 今日任务与统计并排更饱满 */
  .eng-hero { padding: 32px 40px; }
  .pack-row { padding: 16px 20px; }
  .pack-row .p-icon { font-size: 32px; width: 52px; }
  .pack-row .p-title { font-size: 17px; }
  .pack-row .p-sub { font-size: 13px; }
  .pack-row .p-bar { width: 220px; height: 8px; }
  .pack-row .p-pct { width: 90px; font-size: 14px; }
  .task-card { padding: 22px 26px; }
  .task-card .ring { width: 76px; height: 76px; }
  .task-card .ring > div { width: 60px; height: 60px; font-size: 26px; }
  .task-card h3 { font-size: 18px; }
  .task-card .sub { font-size: 14px; }
  .task-btn { padding: 11px 26px; font-size: 15px; }
}

/* ---------- 页头 ---------- */
.eng-hero {
  background: linear-gradient(135deg, #6f42c1 0%, #4263c1 60%, #2f9e8f 100%);
  border-radius: 18px; color: #fff; padding: 26px 24px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  box-shadow: 0 6px 24px rgba(111,66,193,.25);
}
.eng-hero h1 { font-size: 26px; margin: 0 0 6px; }
.eng-hero p { margin: 0; opacity: .9; font-size: 14px; }
.eng-hero .badge-total {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 8px 18px; font-size: 15px; text-align: center;
}
.eng-hero .badge-total b { font-size: 22px; }

/* ---------- 今日任务双卡 (复习优先) ---------- */
.eng-tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
@media (max-width: 720px) { .eng-tasks { grid-template-columns: 1fr; } }
.task-card {
  position: relative; background: #fff; border: 1px solid #ece7f7; border-radius: var(--eng-card-r);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 10px rgba(80,60,140,.06);
  transition: transform .15s;
}
.task-card:hover { transform: translateY(-2px); }
.task-card .ring {
  --p: 0; width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--eng-accent) calc(var(--p)*1%), #eee 0);
  display: flex; align-items: center; justify-content: center;
}
.task-card .ring > div {
  width: 50px; height: 50px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.task-card h3 { margin: 0 0 4px; font-size: 16px; }
.task-card .sub { font-size: 13px; color: var(--text-muted, #919191); }
.task-card.done { border-color: #bfe6cc; background: #f4fbf6; }
.task-card.warn { border-color: #f3c9c9; background: #fdf5f5; }
.task-card.dim { opacity: .55; }
.task-btn {
  margin-left: auto; background: var(--eng-accent); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 20px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.task-btn.secondary { background: var(--eng-blue); }
.task-card.done .task-btn { background: var(--eng-green); }

/* 火焰连击 */
.streak-flame { font-size: 20px; }

/* ---------- 学习线路径 ---------- */
.eng-path { background: #fff; border: 1px solid #ece7f7; border-radius: var(--eng-card-r); padding: 20px; margin-bottom: 20px; }
.eng-path h2, .eng-grid-section h2 { font-size: 17px; margin: 0 0 14px; }
.pack-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; color: inherit;
}
.pack-row:hover { background: var(--eng-accent-soft); border-color: #e2d6f5; }
.pack-row .p-icon { font-size: 26px; width: 42px; text-align: center; }
.pack-row .p-main { flex: 1; min-width: 0; }
.pack-row .p-title { font-weight: 600; font-size: 15px; }
.pack-row .p-sub { font-size: 12px; color: var(--text-muted, #919191); margin-top: 2px; }
.pack-row .p-bar { width: 130px; height: 7px; border-radius: 4px; background: #eee; overflow: hidden; flex-shrink: 0; }
.pack-row .p-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a63d3, #6f42c1); border-radius: 4px; }
.pack-row .p-pct { font-size: 12px; color: var(--text-muted, #919191); width: 66px; text-align: right; flex-shrink: 0; }
.pack-row.locked { opacity: .5; cursor: not-allowed; }

/* ---------- 功能宫格 ---------- */
.eng-grid-section { background: #fff; border: 1px solid #ece7f7; border-radius: var(--eng-card-r); padding: 20px; margin-bottom: 20px; }
.eng-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .eng-grid { grid-template-columns: repeat(2, 1fr); } }
.g-cell {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px;
  border-radius: 12px; text-decoration: none; color: inherit; font-size: 13px;
}
.g-cell:hover { background: var(--eng-accent-soft); }
.g-cell .g-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: var(--eng-accent-soft);
}

/* ---------- 学习日历热力图 ---------- */
.heatmap { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.hm-col { display: flex; flex-direction: column; gap: 3px; }
.hm-cell { width: 12px; height: 12px; border-radius: 3px; background: #edecf1; }
.hm-cell.l1 { background: #d8c9f0; } .hm-cell.l2 { background: #b291e0; }
.hm-cell.l3 { background: #8a63d3; } .hm-cell.l4 { background: #6f42c1; }
.eng-week-stats { display: flex; gap: 22px; margin-top: 12px; font-size: 13px; color: var(--text-secondary, #555); }
.eng-week-stats b { font-size: 17px; color: var(--eng-accent); display: block; }

/* ---------- Tab ---------- */
.eng-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.eng-tabs a {
  padding: 8px 18px; border-radius: 999px; text-decoration: none; color: #555; font-size: 14px;
  background: #fff; border: 1px solid #e5e0ef;
}
.eng-tabs a.on { background: var(--eng-accent); color: #fff; border-color: var(--eng-accent); }

/* ============================================================
   词卡页 word-card
   ============================================================ */
.wc-stage { max-width: 720px; margin: 0 auto; padding: 16px 16px 80px; }
.wc-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wc-progress .bar { flex: 1; height: 8px; border-radius: 4px; background: #eee; overflow: hidden; }
.wc-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a63d3, #6f42c1); transition: width .3s; }
.wc-progress .num { font-size: 13px; color: #919191; white-space: nowrap; }

.wc-card {
  background: #fff; border: 1px solid #ece7f7; border-radius: 20px; padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(80,60,140,.08); text-align: center; animation: wcIn .25s ease;
}
@keyframes wcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wc-word { font-size: 46px; font-weight: 700; letter-spacing: 1px; font-family: Georgia, "Times New Roman", serif; }
.wc-phonetic { font-size: 16px; color: #8a7fa8; margin-top: 4px; min-height: 20px; }
.wc-img { width: 220px; height: 220px; object-fit: contain; margin: 14px auto 4px; border-radius: 16px; background: #faf8fd; display: block; }
.wc-meaning { font-size: 19px; margin: 10px 0 4px; }
.wwc-speakers { display: flex; justify-content: center; gap: 10px; margin: 12px 0; }
.spk-btn {
  border: 1px solid #e2d6f5; background: var(--eng-accent-soft); color: var(--eng-accent);
  border-radius: 999px; padding: 8px 18px; font-size: 14px; cursor: pointer;
}
.spk-btn.slow { background: #fff5e8; border-color: #f3ddba; color: #b97a1e; }

/* 拼读拆字块 */
.wc-split { display: flex; justify-content: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.split-chip {
  min-width: 44px; padding: 10px 12px; border-radius: 10px; background: #f5f1fb;
  border: 1px solid #e2d6f5; font-size: 24px; font-weight: 700; cursor: pointer; transition: all .12s;
  font-family: Georgia, serif;
}
.split-chip:hover { background: var(--eng-accent-soft); transform: translateY(-2px); }
.split-chip.lit { background: var(--eng-accent); color: #fff; border-color: var(--eng-accent); }
.wc-split-tip { font-size: 12px; color: #919191; margin-bottom: 6px; }

/* 卡底操作 */
.wc-actions { display: flex; gap: 10px; margin-top: 18px; }
.wc-actions button {
  flex: 1; padding: 12px; border-radius: 12px; border: 1px solid #e5e0ef; background: #fff; cursor: pointer; font-size: 14px;
}
.wc-actions .act-hard:hover { border-color: #f0b9b9; background: #fdf3f3; }
.wc-actions .act-star.on { background: #fff5e0; border-color: #f0d9a6; }
.wc-actions .act-easy:hover { border-color: #bfe6cc; background: #f2fbf5; }
.wc-next {
  width: 100%; margin-top: 12px; padding: 15px; font-size: 17px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #7a4fd0, #5b34ae); color: #fff; cursor: pointer;
}
.wc-next:active { transform: scale(.99); }

/* 卡后小练 (四选一) */
.wc-mini { margin-top: 16px; border-top: 1px dashed #e5e0ef; padding-top: 16px; }
.wc-mini .q { font-size: 14px; color: #555; margin-bottom: 10px; }
.wc-mini .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wc-mini .opts button {
  padding: 12px; border-radius: 10px; border: 1px solid #e5e0ef; background: #fff; cursor: pointer; font-size: 15px; min-height: 46px;
}
.wc-mini .opts button.right { background: #eaf7ee; border-color: #9bd8b0; }
.wc-mini .opts button.wrongpick { background: #fdeeee; border-color: #f0b9b9; }

/* ============================================================
   题型练习/复习页 word-quiz / word-review
   ============================================================ */
.qz-stage { max-width: 760px; margin: 0 auto; padding: 16px 16px 90px; }
.qz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.qz-dots { display: flex; gap: 6px; flex: 1; }
.qz-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2dcec; flex: 1; max-width: 26px; }
.qz-dots i.cur { background: var(--eng-accent); }
.qz-dots i.ok { background: var(--eng-green); }
.qz-dots i.bad { background: var(--eng-red); }
.qz-combo { font-size: 14px; color: var(--eng-gold); font-weight: 700; white-space: nowrap; }
.qz-quit { border: 0; background: none; color: #919191; cursor: pointer; font-size: 18px; }

.qz-card {
  background: #fff; border: 1px solid #ece7f7; border-radius: 20px; padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(80,60,140,.08); text-align: center;
}
.qz-prompt { font-size: 14px; color: #919191; margin-bottom: 14px; }
.qz-prompt b { color: var(--eng-accent); }
.qz-stimulus { font-size: 34px; font-weight: 700; font-family: Georgia, serif; margin: 6px 0 2px; }
.qz-meaning { font-size: 22px; margin: 6px 0; }
.qz-img { max-width: 240px; max-height: 200px; border-radius: 14px; margin: 8px auto; object-fit: contain; }
.qz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.qz-options button {
  padding: 14px; border-radius: 12px; border: 1px solid #e5e0ef; background: #fff;
  cursor: pointer; font-size: 17px; min-height: 56px; transition: all .12s;
}
.qz-options button:hover { border-color: #c9b6ea; background: var(--eng-accent-soft); }
.qz-options button.right { background: #eaf7ee; border-color: #9bd8b0; }
.qz-options button.wrongpick { background: #fdeeee; border-color: #f0b9b9; }
.qz-replay {
  border: 1px solid #f3ddba; background: #fff5e8; color: #b97a1e; border-radius: 999px;
  padding: 10px 26px; font-size: 20px; cursor: pointer; margin: 10px 0;
}

/* 打字作答区: 字母格 */
.qz-typer { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; }
.ty-cell {
  min-width: 40px; height: 48px; border-bottom: 3px solid #d8d2e6; font-size: 26px;
  display: flex; align-items: center; justify-content: center; font-family: "SF Mono", Consolas, monospace;
  transition: all .1s;
}
.ty-cell.cur { border-color: var(--eng-accent); background: var(--eng-accent-soft); border-radius: 6px 6px 0 0; animation: tyCurBlink 1s infinite; }
@keyframes tyCurBlink { 0%,50% { opacity: 1; } 51%,100% { opacity: .4; } }
.ty-cell.ok { border-color: var(--eng-green); color: var(--eng-green); }
.ty-cell.bad { border-color: var(--eng-red); color: var(--eng-red); animation: shake .3s; }
.ty-cell.hint-chip { min-width: 30px; height: 38px; font-size: 19px; border-bottom-width: 2px; color: #b9aed6; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.qz-typer-tip { font-size: 12px; color: #919191; margin-bottom: 8px; }
.ty-hidden { border-bottom-color: #d8d2e6; } /* 未打字母: 显示低线占位(数量=字母数) */

/* 反馈条 */
.qz-feedback {
  margin-top: 14px; border-radius: 12px; padding: 12px 16px; font-size: 15px; display: none;
}
.qz-feedback.show { display: block; animation: wcIn .2s ease; }
.qz-feedback.good { background: #eaf7ee; color: #1d7a43; }
.qz-feedback.bad { background: #fdeeee; color: #b03a3a; }
.qz-feedback .ans-word { font-size: 22px; font-weight: 700; font-family: Georgia, serif; }
.qz-next-btn {
  margin-top: 14px; width: 100%; padding: 13px; font-size: 16px; border: 0; border-radius: 12px;
  background: var(--eng-accent); color: #fff; cursor: pointer;
}

/* 复习三档自评 */
.rv-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.rv-grade button {
  padding: 14px 6px; border-radius: 12px; border: 1px solid #e5e0ef; background: #fff; cursor: pointer; font-size: 16px;
}
.rv-grade button:hover { border-color: #c9b6ea; background: var(--eng-accent-soft); }

/* 结算页 */
.qz-result { text-align: center; }
.qz-score-ring {
  --p: 0; width: 150px; height: 150px; margin: 10px auto; border-radius: 50%;
  background: conic-gradient(var(--eng-green) calc(var(--p)*1%), #eee 0);
  display: flex; align-items: center; justify-content: center;
}
.qz-score-ring > div { width: 122px; height: 122px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qz-score-ring b { font-size: 36px; }
.qz-stat-row { display: flex; justify-content: center; gap: 30px; margin: 14px 0; flex-wrap: wrap; }
.qz-stat-row .st { text-align: center; }
.qz-stat-row .st b { font-size: 21px; display: block; color: var(--eng-accent); }
.qz-stat-row .st span { font-size: 12px; color: #919191; }
.qz-wrong-list { text-align: left; margin-top: 14px; }
.qz-wrong-list .wrow {
  display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px;
  background: #faf8fd; margin-bottom: 8px; font-size: 14px;
}

/* ============================================================
   错词本 word-book
   ============================================================ */
.wb-row {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #ece7f7;
  border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
.wb-row .w { font-size: 18px; font-weight: 700; font-family: Georgia, serif; width: 130px; }
.wb-row .m { flex: 1; font-size: 14px; color: #555; }
.wb-row .due { font-size: 12px; color: #919191; white-space: nowrap; }
.wb-row .due.danger { color: var(--eng-red); font-weight: 700; }
.wb-tag { font-size: 11px; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.wb-tag.wrong { background: #fdeeee; color: #b03a3a; }
.wb-tag.fuzzy { background: #fff5e0; color: #b97a1e; }

/* 错词本错因分轨(任务3) */
.wb-causebar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.wb-causebar .cb-label { font-size: 12.5px; color: #919191; }
.wb-causebar .cb-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.wb-causebar .cb-note { font-size: 12px; color: #b1b1b1; margin-left: auto; }
.cb-chip { padding: 4px 12px; border-radius: 999px; border: 1px solid #e3e3e3; background: #fff;
  font-size: 12.5px; color: #555; cursor: pointer; }
.cb-chip:hover { border-color: var(--eng-accent); color: var(--eng-accent); }
.cb-chip.on { background: var(--eng-accent); border-color: var(--eng-accent); color: #fff; }
.wb-cause { font-size: 11px; border-radius: 6px; padding: 2px 8px; margin-left: 5px; white-space: nowrap; }
.wb-cause.kn { background: #f3edfb; color: #6f42c1; }
.wb-cause.sk { background: #e8f1fd; color: #2f6fed; }
.wb-cause.hb { background: #fff5e0; color: #b97a1e; }
.wb-tag.solid { background: #eaf7ee; color: #1d7a43; }
.wb-op { border: 1px solid #e5e0ef; background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.wb-empty { text-align: center; color: #919191; padding: 60px 0; }
.wb-empty .big { font-size: 44px; margin-bottom: 10px; }

/* 通用加载/空态 */
.eng-loading { text-align: center; color: #919191; padding: 50px 0; }

/* ============================================================
   ✨ 设计精修层 (2026-09 商业化视觉升级) — 追加覆盖, 不改动上方既有类名
   字号体系 / 卡片层次 / 光影 / 微动效 / 骨架屏 / 按钮态
   ============================================================ */
:root {
  --eng-shadow-sm: 0 1px 2px rgba(76, 51, 128, .05), 0 2px 8px rgba(76, 51, 128, .06);
  --eng-shadow-md: 0 2px 6px rgba(76, 51, 128, .06), 0 8px 24px rgba(76, 51, 128, .09);
  --eng-shadow-lg: 0 4px 12px rgba(76, 51, 128, .08), 0 16px 48px rgba(76, 51, 128, .14);
  --eng-grad: linear-gradient(135deg, #7c5ce0 0%, #5b3fc4 100%);
  --eng-radius: 18px;
}

/* ---------- 全局字号与行高 (舒适阅读级) ---------- */
.eng-wrap, .qz-stage, .wc-stage { font-size: 16px; line-height: 1.75; }
.eng-path h2, .eng-grid-section h2, .cal-card h2, .roadmap-card h2 { font-size: 19px; letter-spacing: .3px; }
.eng-hero h1 { font-size: 30px; letter-spacing: .5px; }
.eng-hero p { font-size: 15px; }
.eng-hero { border-radius: 24px; padding: 32px 36px; box-shadow: var(--eng-shadow-lg); }
.stage-tab .sn { font-size: 18px; }
.stage-tab { border-radius: 18px; padding: 20px 24px; box-shadow: var(--eng-shadow-sm); }

/* ---------- 卡片层次 ---------- */
.eng-path, .eng-grid-section, .cal-card, .roadmap-card, .task-card, .qz-card, .wc-card {
  border: 1px solid #efeaf8;
  border-radius: var(--eng-radius);
  box-shadow: var(--eng-shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.task-card:hover, .stage-tab:hover { box-shadow: var(--eng-shadow-md); }
.eng-grid-section, .eng-path, .cal-card, .roadmap-card { padding: 26px 28px; }

/* ---------- 按钮体系 ---------- */
.task-btn {
  background: var(--eng-grad); border-radius: 12px; font-weight: 600; letter-spacing: .5px;
  padding: 11px 26px; box-shadow: 0 4px 14px rgba(91, 63, 196, .3);
  transition: transform .12s ease, box-shadow .12s ease;
}
.task-btn:hover { box-shadow: 0 6px 20px rgba(91, 63, 196, .42); }
.task-btn:active { transform: translateY(1px) scale(.98); }
.task-btn.secondary { background: linear-gradient(135deg, #4a8fd4 0%, #2f6fed 100%); box-shadow: 0 4px 14px rgba(47, 111, 237, .28); }
.wc-next { border-radius: 16px; font-weight: 700; letter-spacing: 1px; box-shadow: 0 6px 20px rgba(91, 63, 196, .35); }
.wc-next:active { transform: scale(.99); }
.spk-btn { border-radius: 12px; font-weight: 500; transition: all .15s; }
.spk-btn:hover { transform: translateY(-1px); }

/* ---------- 词包行 ---------- */
.pack-row { border-radius: 14px; padding: 14px 18px; margin-bottom: 4px; border: 1px solid transparent; }
.pack-row:hover { background: #f8f5fd; border-color: #e8dff7; box-shadow: var(--eng-shadow-sm); transform: translateX(4px); }
.pack-row .p-title { font-size: 16px; }
.pack-row .p-sub { font-size: 13px; }
.pack-row .p-bar { height: 8px; border-radius: 4px; }
.pack-row .p-bar i { background: var(--eng-grad); }

/* ---------- 宫格 ---------- */
.g-cell { border-radius: 16px; transition: all .18s ease; padding: 20px 8px; }
.g-cell:hover { background: #fff; box-shadow: var(--eng-shadow-md); transform: translateY(-4px); }
.g-cell .g-icon { border-radius: 16px; box-shadow: inset 0 -3px 0 rgba(111, 66, 193, .12); }

/* ---------- 词卡/练习页排版 ---------- */
.wc-card { border-radius: 24px; padding: 34px 38px; box-shadow: var(--eng-shadow-md); }
.qz-card { border-radius: 24px; padding: 32px 34px; box-shadow: var(--eng-shadow-md); }
.wc-word { font-size: 56px; letter-spacing: 1.5px; }
.wc-meaning { font-size: 21px; }
.wc-img { width: 260px; height: 260px; border-radius: 20px; }
.qz-stimulus { font-size: 38px; }
.qz-options button { border-radius: 14px; font-size: 18px; padding: 16px; }
.ty-cell { min-width: 46px; height: 54px; font-size: 28px; border-radius: 6px 6px 0 0; }

/* ---------- 打字格动效 ---------- */
.ty-cell.cur { animation: tyCur 1.2s ease infinite; }
@keyframes tyCur { 50% { background: #efe7fb; } }
.ty-cell.bad { animation: shake .35s; box-shadow: 0 2px 0 var(--eng-red); }
.ty-cell.ok { animation: tyOk .25s ease; }
@keyframes tyOk { from { transform: scale(1.25); } }

/* ---------- 连击/反馈特效 ---------- */
.qz-combo { font-size: 16px; animation: comboPop .3s ease; }
@keyframes comboPop { 40% { transform: scale(1.35); } }
.qz-feedback { border-radius: 14px; font-size: 16px; padding: 14px 20px; animation: fbIn .25s ease; }
@keyframes fbIn { from { opacity: 0; transform: translateY(6px); } }
.qz-feedback.good { border-left: 4px solid #2e9e5b; }
.qz-feedback.bad { border-left: 4px solid #e05252; }

/* ---------- 结算得分环 ---------- */
.qz-score-ring { filter: drop-shadow(0 8px 20px rgba(46, 158, 91, .25)); }

/* ---------- 进度条动画 ---------- */
.wc-progress .bar i, .pack-row .p-bar i, .task-card .ring { transition: width .45s ease, all .4s ease; }

/* ---------- 骨架屏 ---------- */
.skl {
  position: relative; overflow: hidden; background: #f0ecf7 !important; border-radius: 12px;
  color: transparent !important; min-height: 18px;
}
.skl::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: sklShine 1.4s infinite;
}
@keyframes sklShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 弹层/日历/路线图精修 ---------- */
.letter-panel, .cal-pop { border-radius: 20px; box-shadow: var(--eng-shadow-lg); }
.cal-cell { border-radius: 12px; font-size: 14px; transition: transform .12s; }
.cal-cell.has-learn:hover { transform: scale(1.1); }
.rm-node .rm-dot { box-shadow: var(--eng-shadow-sm); }
.report-mini .rm-box { border-radius: 14px; padding: 18px 10px; }
.report-mini .rm-box b { font-size: 28px; }

/* ---------- 数字滚动 ---------- */
.count-up { font-variant-numeric: tabular-nums; }

/* ---------- 滚动条 ---------- */
.eng-sidenav::-webkit-scrollbar, .rm-track::-webkit-scrollbar, .heatmap::-webkit-scrollbar { width: 6px; height: 6px; }
.eng-sidenav::-webkit-scrollbar-thumb, .rm-track::-webkit-scrollbar-thumb { background: #e0d6f2; border-radius: 3px; }

/* ---------- 键盘快捷键提示 ---------- */
.kbd {
  display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1px solid #d9d0ea;
  border-bottom-width: 2.5px; background: #faf8fd; font-size: 12px; color: #7a6f96; font-family: Consolas, monospace;
}
.shortcut-tip { font-size: 12.5px; color: #b9aed6; margin-top: 12px; }
.shortcut-tip .kbd { margin: 0 2px; }

/* ---------- 宽屏词卡双栏 ---------- */
@media (min-width: 1200px) {
  .wc-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; text-align: left; align-items: center; }
  .wc-layout .wc-media { order: 2; text-align: center; }
  .wc-word { font-size: 64px; }
  .wwc-speakers { justify-content: flex-start; }
  .wc-split { justify-content: flex-start; }
  .wc-split-tip { text-align: left; }
}


/* ---------- 字母岛 (abc.html) ---------- */
.kid-hero {
  background: linear-gradient(135deg, #ffb86b 0%, #ff8e9e 55%, #b18cf0 100%);
  border-radius: 20px; color: #fff; padding: 30px 36px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  box-shadow: 0 8px 26px rgba(255,150,120,.35);
}
.kid-hero h1 { font-size: 30px; margin: 0 0 6px; }
.kid-hero p { margin: 0; opacity: .92; }
.island-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
@media (max-width: 1100px) { .island-grid { grid-template-columns: repeat(6, 1fr); } }
.island {
  position: relative; aspect-ratio: 1/1; border-radius: 18px; border: 0; cursor: pointer;
  background: #fff; border: 2px solid #ffe3c9; font-family: Georgia, serif;
  font-size: 38px; font-weight: 700; color: #e0705a; transition: transform .15s;
  display: flex; align-items: center; justify-content: center;
}
.island:hover { transform: translateY(-4px) rotate(-2deg); background: #fff6ee; }
.island.done::after { content: '🚩'; position: absolute; top: -8px; right: -4px; font-size: 20px; }
.letter-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(60,40,20,.45); z-index: 9990; display: none; align-items: center; justify-content: center; }
.letter-modal.show { display: flex; }
.letter-panel {
  background: #fff; border-radius: 24px; padding: 34px 40px; width: min(620px, 92vw); text-align: center;
  animation: wcIn .25s ease;
}
.letter-pair { font-family: Georgia, serif; font-size: 96px; font-weight: 800; color: #e0705a; line-height: 1.1; }
.letter-pair small { font-size: 60px; color: #8fc1a9; }
.kid-btn {
  border: 0; border-radius: 999px; padding: 14px 30px; font-size: 18px; cursor: pointer;
  background: #ff9a76; color: #fff; margin: 6px;
}
.kid-btn.green { background: #6cbf84; }
.kid-btn.blue { background: #79a6e8; }
.kid-words { display: flex; justify-content: center; gap: 14px; margin: 16px 0; flex-wrap: wrap; }
.kid-word-chip {
  background: #f2fbf5; border: 2px solid #cdeed8; border-radius: 14px; padding: 10px 18px; cursor: pointer;
  font-size: 20px; font-weight: 600; color: #3d8f5f;
}
.kid-word-chip:hover { background: #e4f7eb; }
/* 大小写配对游戏 */
.match-game { margin-top: 18px; border-top: 2px dashed #ffe3c9; padding-top: 16px; }
.match-game .q { font-size: 17px; margin-bottom: 10px; }
.match-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.match-opts button {
  font-family: Georgia, serif; font-size: 30px; padding: 12px; border-radius: 14px;
  border: 2px solid #ffe3c9; background: #fff; cursor: pointer;
}
.match-opts button.right { background: #e4f7eb; border-color: #8fd4a6; }
.match-opts button.wrongpick { background: #fdeeee; border-color: #f0b9b9; }
.kid-sentence {
  background: #fff; border: 2px solid #ffe3c9; border-radius: 16px; padding: 16px 22px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 16px; font-size: 19px;
}
.kid-sentence .spk { margin-left: auto; flex-shrink: 0; }

/* ---------- 拆词实验室 ---------- */
.lab-input-row { display: flex; gap: 10px; margin-bottom: 18px; }
.lab-input-row input {
  flex: 1; padding: 14px 18px; border-radius: 12px; border: 1px solid #e5e0ef; font-size: 17px;
}
.morph-split { display: flex; justify-content: center; gap: 10px; margin: 22px 0; flex-wrap: wrap; }
.morph-chip {
  padding: 14px 22px; border-radius: 12px; font-size: 30px; font-weight: 700; font-family: Georgia, serif;
  cursor: pointer; animation: wcIn .3s ease;
}
.morph-chip.prefix { background: #e8f1ff; border: 2px solid #a9c9f5; color: #2f6fed; }
.morph-chip.root { background: #e9f8ee; border: 2px solid #a3dcb4; color: #1d7a43; }
.morph-chip.suffix { background: #fff3e2; border: 2px solid #f3d5a4; color: #b97a1e; }
.morph-chip .sub { display: block; font-size: 12px; font-weight: 400; font-family: sans-serif; color: #919191; margin-top: 4px; }
.morph-chip.unknown { background: #f5f3f7; border: 2px dashed #d5cdf0; color: #919191; }
.morph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 1100px) { .morph-grid { grid-template-columns: repeat(2, 1fr); } }
.morph-card { background: #fff; border: 1px solid #ece7f7; border-radius: 12px; padding: 14px 16px; }
.morph-card b { font-family: Georgia, serif; font-size: 19px; }
.morph-card .mn { font-size: 13px; color: #555; margin: 4px 0; }
.morph-card .ex { font-size: 12px; color: #919191; }

/* ---------- 易混词对 ---------- */
.conf-pair { background: #fff; border: 1px solid #ece7f7; border-radius: 14px; padding: 0; margin-bottom: 14px; overflow: hidden; }
.conf-cols { display: grid; grid-template-columns: 1fr 1fr; }
.conf-col { padding: 18px 22px; }
.conf-col + .conf-col { border-left: 1px dashed #e5e0ef; }
.conf-col h4 { font-family: Georgia, serif; font-size: 24px; margin: 0 0 8px; color: var(--eng-accent); }
.conf-col p { font-size: 14px; color: #555; margin: 0; }
.conf-tip { background: var(--eng-accent-soft); padding: 10px 22px; font-size: 13px; color: #6f42c1; }

/* ---------- Boss 战 ---------- */
.boss-bar {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #f0dcdc;
  border-radius: 16px; padding: 16px 22px; margin-bottom: 16px;
}
.boss-face { font-size: 52px; animation: bossFloat 2s ease-in-out infinite; }
@keyframes bossFloat { 50% { transform: translateY(-6px); } }
.boss-hp { flex: 1; }
.boss-hp .hp-track { height: 16px; border-radius: 8px; background: #f3e3e3; overflow: hidden; }
.boss-hp .hp-track i { display: block; height: 100%; background: linear-gradient(90deg, #e05252, #c73e3e); transition: width .25s; }
.boss-hp .hp-label { font-size: 13px; color: #b03a3a; margin-top: 4px; font-weight: 700; }
.boss-timer { font-size: 30px; font-weight: 800; color: #e05252; font-variant-numeric: tabular-nums; }
.boss-timer.low { animation: shake .5s infinite; }

/* ---------- 对战竞技场 ---------- */
.arena-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 18px 0; }
.arena-side { text-align: center; }
.arena-side .face { font-size: 58px; }
.arena-side .name { font-size: 15px; font-weight: 700; margin-top: 4px; }
.arena-side .hp { height: 12px; border-radius: 6px; background: #eee; overflow: hidden; margin-top: 8px; }
.arena-side .hp i { display: block; height: 100%; width: 100%; transition: width .3s; }
.arena-side.me .hp i { background: var(--eng-green); }
.arena-side.opp .hp i { background: var(--eng-red); }
.arena-vs .vs { font-size: 34px; font-weight: 900; color: var(--eng-gold); font-style: italic; }
.rank-badge { display: inline-block; background: linear-gradient(135deg, #7a4fd0, #5b34ae); color: #fff; border-radius: 999px; padding: 8px 22px; font-size: 15px; }
.arena-record-row { display: flex; gap: 14px; padding: 10px 14px; background: #faf8fd; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }

/* ---------- 词汇量测试 ---------- */
.vt-word { font-family: Georgia, serif; font-size: 56px; font-weight: 700; margin: 26px 0; min-height: 70px; }
.vt-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; margin: 0 auto; }
.vt-choices button { padding: 18px; font-size: 19px; border-radius: 14px; border: 1px solid #e5e0ef; background: #fff; cursor: pointer; }
.vt-choices button.no { color: #919191; }
.vt-report { text-align: center; }
.vt-big { font-size: 72px; font-weight: 800; color: var(--eng-accent); }
.vt-radar { display: flex; justify-content: center; gap: 30px; margin: 18px 0; flex-wrap: wrap; }
.vt-radar .st { text-align: center; min-width: 110px; }

/* ---------- 成长树 ---------- */
.tree-stage { background: linear-gradient(180deg, #f0faf3 0%, #e2f3e8 100%); border-radius: 20px; padding: 30px; text-align: center; }
.tree-fruits { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; }
.tree-fruit {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: #dfeee3; border: 2px solid #c4e2cc; cursor: default;
}
.tree-fruit.lit { background: #ffd76e; border-color: #f0b929; box-shadow: 0 3px 10px rgba(240,185,41,.4); }
.title-ladder { display: flex; gap: 10px; align-items: center; margin: 14px 0; }
.title-step { padding: 10px 20px; border-radius: 999px; background: #f1edf7; color: #919191; font-size: 14px; }
.title-step.reached { background: linear-gradient(135deg, #7a4fd0, #5b34ae); color: #fff; }
.title-step.cur { outline: 3px solid #ffd76e; }
.medal-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
@media (max-width: 1100px) { .medal-grid { grid-template-columns: repeat(4, 1fr); } }
.medal {
  background: #fff; border: 1px solid #ece7f7; border-radius: 14px; padding: 16px 8px; text-align: center;
}
.medal .mi { font-size: 34px; filter: grayscale(1); opacity: .45; }
.medal.got .mi { filter: none; opacity: 1; }
.medal .mn { font-size: 12px; margin-top: 6px; color: #555; }
.medal .md { font-size: 11px; color: #919191; }

/* ---------- 周报 ---------- */
.report-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.report-cards .rc { background: #fff; border: 1px solid #ece7f7; border-radius: 14px; padding: 20px; text-align: center; }
.report-cards .rc b { font-size: 34px; color: var(--eng-accent); display: block; }
.report-cards .rc span { font-size: 13px; color: #919191; }

/* ---------- 电台 / 阅读器 / 默写纸 ---------- */
.radio-now {
  background: #fff; border: 1px solid #ece7f7; border-radius: 20px; padding: 30px; text-align: center; margin-bottom: 16px;
}
.radio-now .word { font-family: Georgia, serif; font-size: 48px; font-weight: 700; }
.radio-now .mn { color: #555; font-size: 16px; margin-top: 6px; }
.radio-ctl { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.reader-text {
  background: #fff; border: 1px solid #ece7f7; border-radius: 20px; padding: 34px 40px;
  font-size: 20px; line-height: 2.1; color: #333;
}
.reader-text .rw { cursor: pointer; border-radius: 4px; padding: 1px 3px; }
.reader-text .rw:hover { background: var(--eng-accent-soft); }
.reader-text .rw.known { border-bottom: 2px solid #cfe6d6; }
.rw-pop {
  position: absolute; background: #333; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 14px;
  z-index: 50; max-width: 300px; display: none;
}
/* ---------- 学习路线图 ---------- */
.roadmap-card { background: #fff; border: 1px solid #ece7f7; border-radius: var(--eng-card-r); padding: 22px 24px 18px; margin-bottom: 20px; }
.roadmap-card h2 { margin: 0 0 4px; font-size: 18px; }
.roadmap-card .rm-sub { font-size: 13px; color: #919191; margin-bottom: 16px; }
.rm-track {
  display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 6px 2px 14px;
}
.rm-node {
  position: relative; flex: 1; min-width: 148px; text-decoration: none; color: inherit;
  text-align: center; padding: 0 8px;
}
.rm-node .rm-dot {
  width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 24px; background: #f1edf7; border: 3px solid #e2d9f0; position: relative; z-index: 2;
  transition: transform .15s;
}
.rm-node:hover .rm-dot { transform: scale(1.08); }
.rm-node.done .rm-dot { background: #e9f8ee; border-color: #8fd4a6; }
.rm-node.done .rm-dot::after { content: '✓'; position: absolute; top: -8px; right: -8px; background: #2e9e5b; color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; line-height: 20px; }
.rm-node.cur .rm-dot { background: #fff; border-color: #7a4fd0; box-shadow: 0 0 0 6px rgba(122,79,208,.15); animation: rmPulse 2s infinite; }
@keyframes rmPulse { 50% { box-shadow: 0 0 0 10px rgba(122,79,208,.07); } }
.rm-node::before {
  content: ''; position: absolute; top: 27px; left: -50%; width: 100%; height: 4px; background: #e9e3f4; z-index: 1;
}
.rm-node:first-child::before { display: none; }
.rm-node.done::before { background: #8fd4a6; }
.rm-node .rm-name { font-size: 14px; font-weight: 700; margin-top: 10px; }
.rm-node .rm-desc { font-size: 11.5px; color: #919191; margin-top: 2px; }
.rm-node .rm-prog { font-size: 11px; color: #6f42c1; margin-top: 3px; font-weight: 600; }
.rm-node.done .rm-prog { color: #2e9e5b; }
.rm-guide { text-align: center; padding: 34px 16px; }
.rm-guide .big { font-size: 48px; }
.rm-guide p { color: #555; font-size: 14px; margin: 10px 0 14px; }

/* ---------- 真日历 ---------- */
.cal-card { background: #fff; border: 1px solid #ece7f7; border-radius: var(--eng-card-r); padding: 22px 24px; margin-bottom: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h2 { margin: 0; font-size: 18px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  border: 1px solid #e5e0ef; background: #fff; border-radius: 9px; width: 34px; height: 34px; cursor: pointer; font-size: 15px;
}
.cal-nav button:hover { background: var(--eng-accent-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; color: #b9aed6; font-weight: 700; padding: 6px 0; }
.cal-cell {
  aspect-ratio: 1/1; border-radius: 10px; background: #faf8fd; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 13px; color: #777; position: relative; cursor: default;
}
.cal-cell.other { visibility: hidden; }
.cal-cell.today { outline: 2px solid #7a4fd0; font-weight: 700; color: #6f42c1; }
.cal-cell.has-learn { background: linear-gradient(135deg, #8a63d3, #6f42c1); color: #fff; font-weight: 700; cursor: pointer; }
.cal-cell.has-learn:hover { transform: scale(1.06); }
.cal-cell .cal-cnt { font-size: 10px; opacity: .85; }
.cal-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: #919191; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.cal-pop {
  position: fixed; z-index: 120; background: #fff; border: 1px solid #e5e0ef; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(80,60,140,.18); padding: 16px 20px; min-width: 220px; display: none;
}
.cal-pop.show { display: block; }
.cal-pop h4 { margin: 0 0 8px; font-size: 15px; }
.cal-pop .row { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 3px 0; }
.cal-pop-acts { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1ecf9; }
.cal-pop-acts button { flex: 1; border: 0; background: var(--eng-accent-soft, #f3edfb); color: var(--eng-accent, #6f42c1);
  border-radius: 9px; padding: 7px 6px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.cal-pop-acts button:hover { background: var(--eng-accent, #6f42c1); color: #fff; }
.cal-pop-hint { font-size: 12px; color: #b1b1b1; margin-top: 8px; }

/* ---------- 首页学习报告 ---------- */
.report-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1100px) { .report-mini { grid-template-columns: repeat(3, 1fr); } }
.report-mini .rm-box { background: #faf8fd; border-radius: 12px; padding: 14px 8px; text-align: center; }
.report-mini .rm-box b { display: block; font-size: 24px; color: var(--eng-accent); }
.report-mini .rm-box span { font-size: 12px; color: #919191; }

/* ---------- 学英语单行页脚 (仅版权+ICP) ---------- */
.eng-footer {
  margin-left: 216px; /* 让位左侧菜单, 与主内容对齐 */
  padding: 16px 28px 20px;
  text-align: center;
  font-size: 12.5px;
  color: #a99fce;
  border-top: 1px solid #f1ecf9;
}
.eng-footer a { color: #a99fce; text-decoration: none; }
.eng-footer a:hover { color: #6f42c1; text-decoration: underline; }
@media (max-width: 1100px) { .eng-footer { margin-left: 0; } }
@media print { .eng-footer { display: none !important; } }

/* ---------- 学英语统一左侧菜单 ---------- */
.eng-sidenav {
  position: fixed; left: 0; top: 70px; bottom: 0; width: 216px; z-index: 90;
  background: #fff; border-right: 1px solid #ece7f7;
  overflow-y: auto; padding: 10px 10px 30px;
  scrollbar-width: thin;
}
.eng-sidenav .es-brand { padding: 8px 10px 12px; border-bottom: 1px solid #f1ecf9; margin-bottom: 6px; }
.eng-sidenav .es-brand a { font-size: 18px; font-weight: 800; color: #6f42c1; text-decoration: none; }
.eng-sidenav .es-brand span { display: block; font-size: 11px; color: #b9aed6; margin-top: 3px; }
.eng-sidenav .es-brand { display: none; }
.eng-sidenav .es-head {
  font-size: 11px; color: #b9aed6; font-weight: 700; letter-spacing: 1px;
  padding: 12px 10px 5px; text-transform: uppercase;
}
.eng-sidenav .es-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px;
  font-size: 13.5px; color: #555; text-decoration: none; margin-bottom: 1px;
  transition: background .12s;
}
.eng-sidenav .es-item:hover { background: #f5f0fb; color: #333; }
.eng-sidenav .es-item.on { background: linear-gradient(135deg, #7a4fd0, #5b34ae); color: #fff; font-weight: 600; }
.eng-sidenav .es-ic { font-size: 15px; width: 20px; text-align: center; }

/* 有侧栏时主内容右移 (桌面 ≥1100px 显示侧栏) */
body.eng-has-sidenav .eng-wrap,
body.eng-has-sidenav .qz-stage,
body.eng-has-sidenav .wc-stage { margin-left: 232px; }
body.eng-has-sidenav .qz-top,
body.eng-has-sidenav .wc-top,
body.eng-has-sidenav .rv-top,
body.eng-has-sidenav .wb-head,
body.eng-has-sidenav .dt-top { margin-left: calc(232px + 16px); }
@media (max-width: 1100px) {
  .eng-sidenav { display: none; }
  body.eng-has-sidenav .eng-wrap,
  body.eng-has-sidenav .qz-stage,
  body.eng-has-sidenav .wc-stage,
  body.eng-has-sidenav .qz-top,
  body.eng-has-sidenav .wc-top,
  body.eng-has-sidenav .rv-top,
  body.eng-has-sidenav .wb-head,
  body.eng-has-sidenav .dt-top { margin-left: auto; }
}

.paper-table { width: 100%; border-collapse: collapse; }
.paper-table th, .paper-table td { border: 1px solid #999; padding: 10px 12px; font-size: 15px; }
.paper-table td.blank { height: 40px; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .eng-wrap { max-width: none; padding: 0; }
  .eng-sidenav { display: none !important; }
  body.eng-has-sidenav .eng-wrap,
  body.eng-has-sidenav .qz-stage,
  body.eng-has-sidenav .wc-stage { margin-left: auto; }
}

/* ============================================================
   词书目录 /word-books.html (小学全版本教材词书)
   ============================================================ */
.wb-search { position: relative; max-width: 420px; margin: 0 0 14px; }
.wb-search input {
  width: 100%; box-sizing: border-box; padding: 10px 38px 10px 36px;
  border: 1.5px solid #e3e3e3; border-radius: 12px; font-size: 14.5px;
  background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.wb-search input:focus { border-color: var(--eng-accent); box-shadow: 0 0 0 3px var(--eng-accent-soft); }
.wb-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #b1b1b1; font-size: 15px; }
.wb-search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: #f0f0f0; color: #888; border-radius: 50%; width: 22px; height: 22px;
  line-height: 22px; padding: 0; cursor: pointer; display: none; }
.wb-search .clear:hover { background: #e2e2e2; }
.wb-search.has-kw .clear { display: block; }

.wb-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.wb-frow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wb-flabel { font-size: 13px; color: #919191; flex-shrink: 0; width: 3.5em; }
.wb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-chip {
  padding: 5px 13px; border-radius: 999px; border: 1px solid #e3e3e3; background: #fff;
  font-size: 13px; color: #555; cursor: pointer; user-select: none; transition: all .12s;
}
.wb-chip:hover { border-color: var(--eng-accent); color: var(--eng-accent); }
.wb-chip.on { background: var(--eng-accent); border-color: var(--eng-accent); color: #fff; }
.wb-chip .n { font-size: 11px; opacity: .75; margin-left: 2px; }

.wb-count { font-size: 13px; color: #919191; margin: 10px 0 4px; }
.wb-section { margin: 18px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.wb-section h2 { margin: 0; font-size: 17px; }
.wb-section .sub { font-size: 12.5px; color: #919191; }

.wb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 12px; }
.wb-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid #ececf2; border-radius: var(--eng-card-r);
  padding: 16px 16px 14px; cursor: pointer; transition: all .15s;
  box-shadow: 0 1px 2px rgba(31, 27, 58, .04); text-decoration: none; color: inherit;
}
.wb-card:hover { transform: translateY(-2px); border-color: #d9cdf0; box-shadow: 0 6px 18px rgba(111, 66, 193, .12); }
.wb-card .top { display: flex; align-items: center; gap: 10px; }
.wb-card .icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--eng-accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
}
.wb-card .t { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.wb-card .s { font-size: 12px; color: #919191; margin-top: 2px; }
.wb-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.wb-card .n-words { font-size: 12.5px; color: var(--eng-accent); font-weight: 600; }
.wb-card .go { font-size: 12.5px; color: #b6b6b6; transition: color .12s, transform .12s; }
.wb-card:hover .go { color: var(--eng-accent); transform: translateX(2px); }
.wb-card .bar { height: 6px; border-radius: 4px; background: #f0eef6; overflow: hidden; }
.wb-card .bar i { display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #8a63d3, #6f42c1); transition: width .3s; }
.wb-card.done .bar i { background: linear-gradient(90deg, #52c07e, #2e9e5b); }
.wb-card .pct { font-size: 11.5px; color: #919191; }
.wb-empty { text-align: center; color: #919191; padding: 60px 0; font-size: 14px; }
@media (max-width: 640px) {
  .wb-grid { grid-template-columns: repeat(2, 1fr); }
  .wb-flabel { width: auto; }
}

/* ============================================================
   学音标 /phonetic.html (48音素 + 易混对比)
   ============================================================ */
.ph-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ph-progress .ph-bar { flex: 1; max-width: 360px; height: 10px; border-radius: 6px; background: #efeaf8; overflow: hidden; }
.ph-progress .ph-bar i { display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #8a63d3, #6f42c1); transition: width .3s; }
.ph-progress span { font-size: 13px; color: #919191; }

.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.ph-card { position: relative; background: #fff; border: 1px solid #ececf2; border-radius: var(--eng-card-r);
  padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(31,27,58,.04); transition: all .15s; }
.ph-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,27,58,.10); }
.ph-card.vowel { border-top: 3px solid #4d8fd6; }
.ph-card.diph { border-top: 3px solid #8a63d3; }
.ph-card.cons { border-top: 3px solid #52b788; }
.ph-card.done { background: #f4fbf6; border-color: #bfe6cd; }

.ph-sym { border: 0; background: none; cursor: pointer; padding: 2px 0; text-align: left;
  font-family: "Segoe UI", "Charis SIL", "Doulos SIL", Georgia, serif;
  font-size: 30px; font-weight: 600; color: #2c2c3a; line-height: 1.15; }
.ph-sym:hover { color: var(--eng-accent); }
.ph-card.vowel .ph-sym:hover { color: #4d8fd6; }
.ph-card.cons .ph-sym:hover { color: #2e9e5b; }
.ph-mark { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid #dcdcdc; background: #fff; color: #b1b1b1; font-size: 12px;
  cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ph-mark:hover { border-color: var(--eng-green); color: var(--eng-green); }
.ph-mark.on { background: var(--eng-green); border-color: var(--eng-green); color: #fff; }
.ph-tag { font-size: 11px; color: #919191; background: #f4f3f8; border-radius: 999px;
  padding: 2px 9px; align-self: flex-start; }
.ph-tip { font-size: 12.5px; color: #6d6d7a; line-height: 1.55; }
.ph-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ph-word { border: 1px solid #e6e3f0; background: #faf9fd; border-radius: 9px; padding: 5px 10px;
  font-size: 13.5px; color: #3f3f52; cursor: pointer; text-align: left; transition: all .12s; }
.ph-word i { display: block; font-style: normal; font-size: 10.5px; color: #a6a6b8; margin-top: 1px; }
.ph-word:hover { border-color: var(--eng-accent); color: var(--eng-accent); background: var(--eng-accent-soft); }
.ph-word:active { transform: scale(.96); }

.ph-pairs { margin-top: 26px; }
.ph-pairs h2 { font-size: 17px; margin: 0 0 12px; }
.ph-pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ph-pair { background: #fff; border: 1px solid #ececf2; border-radius: var(--eng-card-r); padding: 14px; }
.ph-pair-title { font-size: 15px; font-weight: 700; color: #2c2c3a; margin-bottom: 10px;
  font-family: Georgia, serif; }
.ph-pair-word { display: flex; gap: 10px; margin-bottom: 8px; }
.ph-pair-word:last-child { margin-bottom: 0; }
.ph-pair-word .ph-word { flex: 1; font-size: 15px; }
@media (max-width: 640px) {
  .ph-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-sym { font-size: 25px; }
}

/* 词库版权说明(单词大全底部) */
.wb-legal { margin-top: 30px; padding: 22px 26px; background: #fafaf7; border: 1px solid #eee9dc;
  border-radius: 16px; }
.wb-legal h3 { margin: 0 0 14px; font-size: 15px; color: #6b6455; }
.wb-legal .wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wb-legal .wl-item { background: #fff; border: 1px solid #f0ecdf; border-radius: 12px; padding: 12px 16px; }
.wb-legal .wl-item b { font-size: 13px; color: #57503f; display: block; margin-bottom: 5px; }
.wb-legal .wl-item p { margin: 0; font-size: 12px; color: #8d8674; line-height: 1.8; }
.wb-legal .wl-item p b { display: inline; color: #6f684f; }
@media (max-width: 640px) { .wb-legal .wl-grid { grid-template-columns: 1fr; } }

/* 词书收藏星标 */
.wb-card .wb-fav { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  border: 1px solid #ececf2; background: #fff; border-radius: 50%; cursor: pointer;
  font-size: 16px; line-height: 1; color: #cfcfd8; display: flex; align-items: center; justify-content: center;
  transition: all .12s; z-index: 2; }
.wb-card .wb-fav:hover { border-color: #f0ad4e; color: #f0ad4e; transform: scale(1.1); }
.wb-card .wb-fav.on { background: #fff7e8; border-color: #f0ad4e; color: #f0ad4e; }
.pack-fav-entry { flex-shrink: 0; padding: 8px 18px; border-radius: 999px; border: 1px solid #f0e3c8;
  background: #fffaf0; color: #b97a1e; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.pack-fav-entry:hover { background: #f0ad4e; color: #fff; border-color: #f0ad4e; }

/* 已收藏词册: 底部横条使用菜单选中同款底色 */
.wb-card.faved .foot { background: linear-gradient(135deg, #7a4fd0, #5b34ae);
  border-radius: 9px; padding: 7px 12px; margin-top: 4px; }
.wb-card.faved .foot .n-words { color: #fff; }
.wb-card.faved .foot .pct { color: rgba(255, 255, 255, .92); }
.wb-card.faved .foot .go { color: rgba(255, 255, 255, .85); }
.wb-card.faved .foot .go:hover { color: #fff; }
.wb-card .wb-type { position: absolute; top: 10px; right: 48px; width: 30px; height: 30px;
  border: 1px solid #ececf2; background: #fff; border-radius: 50%; cursor: pointer;
  font-size: 13px; color: #8b8b96; display: flex; align-items: center; justify-content: center;
  transition: all .12s; z-index: 2; }
.wb-card .wb-type:hover { border-color: var(--eng-accent, #6f42c1); color: var(--eng-accent, #6f42c1); transform: scale(1.1); }
.know-card { max-width: 640px; margin: 4px auto 0; text-align: center;
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.know-card span { font-size: 12.5px; border-radius: 8px; padding: 4px 12px; display: inline-block; }
.wt-focus .know-card { margin: 4px 0 0; }
.wt-focus .know-card .kc-forms { background: rgba(88,166,255,.12); color: #58a6ff; border: 1px solid rgba(88,166,255,.2); }
.wt-focus .know-card .kc-mn { background: rgba(210,153,34,.1); color: #d29922; border: 1px solid rgba(210,153,34,.2); }
.know-card .kc-forms { background: #f0f4ff; color: #2f6fed; }
.know-card .kc-mn { background: #fffbeb; color: #92650f; }

/* 打字页编排下拉 */
.ts-scheme { display: flex; align-items: center; gap: 6px; margin-left: 12px; flex-shrink: 0; }
.ts-scheme label { font-size: 13px; color: #8fa4b8; white-space: nowrap; }
.ts-scheme select {
  background: #16213e; color: #e8f0fe; border: 1px solid #2a4a7c; border-radius: 8px;
  padding: 5px 10px; font-size: 13.5px; cursor: pointer; outline: none;
  font-weight: 700; min-width: 140px;
}
.ts-scheme select:hover { border-color: #4a7ac4; }
.ts-scheme select option { background: #16213e; color: #e8f0fe; }
.ts-scheme .scheme-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #2a4a7c; color: #8fc4ff;
  font-size: 12px; font-weight: 800; text-decoration: none; flex-shrink: 0;
}
.ts-scheme .scheme-help:hover { background: #4a7ac4; color: #fff; }
