/* ==========================================================================
   熊猫打字通（英文版）· 军旅 + 未来科技 视觉层
   在 style.css（结构与组件）之上做主题覆盖，不改变 JS 生成的 DOM 契约
   ========================================================================== */

:root {
  --army-900: #0E1A14;
  --army-800: #14251C;
  --army-700: #1E3527;
  --gold: #C8A24C;
  --gold-2: #E8CD8C;
  --tech: #45CFBB;
  --canvas: #EDEFE8;

  /* 兼容旧变量名，统一到新色板 */
  --cream: #EDEFE8;
  --paper: #FFFFFF;
  --ink: #121A15;
  --ink-2: #4C5A51;
  --muted: #85928A;
  --line: #D9DED3;
  --green-900: #14261C;
  --green-700: #2C5A44;
  --green-500: #468263;
  --green-100: #E5EDE5;
  --sun: #C8A24C;
  --sun-soft: #F6EED6;
  --coral: #D2643F;
  --pinky: #D98A7E;
  --ring: #C9A96A;
  --middle: #8FB9A2;
  --index: #7FC4C6;

  --shadow-sm: 0 2px 0 rgba(18, 26, 21, .04), 0 6px 18px rgba(18, 26, 21, .06);
  --shadow: 0 1px 0 rgba(18, 26, 21, .05), 0 14px 34px rgba(18, 26, 21, .09);
  --shadow-lg: 0 24px 60px rgba(18, 26, 21, .18);
  --radius: 10px;
  --radius-sm: 8px;
}

body {
  background:
    linear-gradient(180deg, rgba(237, 239, 232, .98), rgba(233, 236, 227, .98));
  color: var(--ink);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 背景细网格，暗示战术图纸 */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 37, 28, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 37, 28, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 88%);
}

/* ------------------------------------------------------------------ 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 26, 20, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(200, 162, 76, .38);
  padding: 0 !important;
  display: block !important;
}
.nav-wrap {
  max-width: 1180px; margin: 0 auto; height: 64px;
  padding: 0 clamp(14px, 3vw, 28px);
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 40px; height: 40px; padding: 4px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--army-700), var(--army-900));
  border: 1px solid rgba(200, 162, 76, .55);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid rgba(200, 162, 76, .18); border-radius: 3px;
}
.brand-mark svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.brand-text b { font-size: 17px; letter-spacing: .5px; color: #F4F2E7; font-weight: 800; }
.brand-text .brand-ed { font-size: 13px; color: var(--gold-2); font-weight: 700; margin-left: 2px; }
.brand-text i { font-size: 9.5px; letter-spacing: 3px; color: rgba(244, 242, 231, .5); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav-item {
  font-size: 13.5px; font-weight: 600; color: rgba(244, 242, 231, .74);
  padding: 8px 12px; border-radius: 4px; cursor: pointer; transition: .18s;
  position: relative; letter-spacing: .3px;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-item::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: .2s;
}
.nav-item:hover::after { transform: scaleX(1); }

/* ------------------------------------------------ 年级快捷入口（吸顶第二行） */
.grade-bar {
  position: relative;
  border-top: 1px solid rgba(200, 162, 76, .14);
  background: linear-gradient(180deg, rgba(20, 37, 28, .55), rgba(14, 26, 20, .9));
  transition: box-shadow .25s;
}
.grade-bar.flash { box-shadow: inset 0 0 0 1px rgba(200, 162, 76, .45), 0 0 22px rgba(200, 162, 76, .18); }
.grade-track {
  max-width: 1180px; margin: 0 auto;
  padding: 7px clamp(14px, 3vw, 28px) 8px;
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.grade-track::-webkit-scrollbar { display: none; }
.grade-group-label {
  flex: none; font-size: 10.5px; letter-spacing: 2px; color: rgba(232, 205, 140, .62);
  margin-right: 2px; font-family: var(--mono, ui-monospace, monospace);
}
.grade-group-label.junior {
  margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(200, 162, 76, .25);
}
.gchip {
  flex: none; display: inline-flex; align-items: baseline; gap: 3px;
  padding: 5px 10px 5px 9px;
  border: 1px solid rgba(200, 162, 76, .28);
  background: rgba(244, 242, 231, .045);
  color: rgba(244, 242, 231, .8); border-radius: 3px;
  cursor: pointer; font-family: inherit; transition: .16s;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.gchip b { font-family: var(--mono, ui-monospace, monospace); font-size: 15px; line-height: 1; color: var(--gold-2); }
.gchip i { font-style: normal; font-size: 10px; opacity: .68; letter-spacing: .5px; }
.gchip:hover { border-color: var(--gold); background: rgba(200, 162, 76, .14); color: #fff; }
.gchip:hover b { color: #fff; }
.gchip.on {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(200, 162, 76, .3), rgba(200, 162, 76, .12));
  color: #FFF6DF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 14px rgba(200, 162, 76, .16);
}
.gchip.on b { color: #FFE9AE; }
.grade-tip {
  flex: none; margin-left: auto; padding-left: 12px;
  font-size: 10.5px; letter-spacing: .4px; color: rgba(244, 242, 231, .4); white-space: nowrap;
}

/* 年级下拉面板 */
.grade-panel {
  position: absolute; z-index: 60; top: calc(100% + 8px);
  width: min(380px, calc(100vw - 28px));
  padding: 14px 16px 15px;
  background: linear-gradient(180deg, #172B20, #0E1A14);
  border: 1px solid rgba(200, 162, 76, .5);
  border-radius: 6px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .52);
  color: #F4F2E7;
}
.grade-panel::before {
  content: ""; position: absolute; top: -6px; left: var(--arrow-x, 24px);
  width: 10px; height: 10px; background: #172B20;
  border-left: 1px solid rgba(200, 162, 76, .5);
  border-top: 1px solid rgba(200, 162, 76, .5);
  transform: rotate(45deg);
}
.gp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.gp-title b { font-size: 16px; letter-spacing: .5px; }
.gp-title span { display: block; margin-top: 3px; font-size: 11px; color: rgba(244, 242, 231, .5); }
.gp-close {
  flex: none; width: 22px; height: 22px; border: 1px solid rgba(200, 162, 76, .3);
  background: transparent; color: rgba(244, 242, 231, .6); border-radius: 3px;
  line-height: 1; font-size: 14px; cursor: pointer; font-family: inherit;
}
.gp-close:hover { color: #fff; border-color: var(--gold); }
.gp-books { display: flex; gap: 8px; margin-bottom: 11px; }
.gp-book {
  flex: 1; text-align: left; padding: 9px 10px; cursor: pointer;
  border: 1px solid rgba(200, 162, 76, .26); border-radius: 4px;
  background: rgba(255, 255, 255, .04); color: #F4F2E7; font-family: inherit;
  transition: .16s;
}
.gp-book:hover { border-color: var(--gold); background: rgba(200, 162, 76, .1); }
.gp-book.on { border-color: var(--gold); background: rgba(200, 162, 76, .18); }
.gp-book b { display: block; font-size: 13.5px; }
.gp-book span { display: block; margin-top: 3px; font-size: 10.5px; color: rgba(244, 242, 231, .55); font-family: var(--mono, ui-monospace, monospace); }
.gp-actions { display: flex; gap: 8px; }
.gp-start {
  flex: 1; padding: 9px 12px; cursor: pointer; font-family: inherit;
  background: var(--gold); border: 1px solid #E0C075; color: #1A1505;
  font-weight: 800; font-size: 13px; letter-spacing: .4px; border-radius: 4px;
}
.gp-start:hover { background: var(--gold-2); }
.gp-units {
  padding: 9px 12px; cursor: pointer; font-family: inherit; font-size: 12.5px;
  background: transparent; border: 1px solid rgba(244, 242, 231, .24);
  color: rgba(244, 242, 231, .78); border-radius: 4px;
}
.gp-units:hover { border-color: var(--gold); color: #fff; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sound-btn {
  width: 34px; height: 34px; border-radius: 4px; border: 1px solid rgba(244, 242, 231, .22);
  color: var(--gold-2); font-size: 15px; line-height: 1; background: rgba(255, 255, 255, .04);
  display: grid; place-items: center;
}
.sound-btn:hover { border-color: var(--gold); color: #fff; }
.cta-mini {
  background: var(--gold); color: #1A1505; font-weight: 800; font-size: 13px;
  padding: 9px 16px; border-radius: 4px; letter-spacing: .4px;
  border: 1px solid #E0C075; box-shadow: 0 0 0 0 rgba(200, 162, 76, .5);
  transition: .18s;
}
.cta-mini:hover { background: var(--gold-2); transform: translateY(-1px); }

/* ------------------------------------------------------------------ 布局 */
#app { max-width: 1180px; margin: 0 auto; padding: clamp(16px, 2.4vw, 26px) clamp(14px, 3vw, 28px) 40px !important; }

/* ------------------------------------------------------------------ Hero */
.hero {
  display: grid !important;
  grid-template-columns: 1.15fr .85fr !important;
  gap: 0 !important;
  margin: 4px 0 22px !important;
  background:
    radial-gradient(120% 130% at 8% 0%, rgba(70, 130, 99, .28) 0%, rgba(14, 26, 20, 0) 55%),
    linear-gradient(140deg, #122019 0%, #0E1A14 58%, #10231B 100%);
  border: 1px solid rgba(200, 162, 76, .28);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 205, 140, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 205, 140, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 72%);
}
.hero-copy { padding: clamp(24px, 3.4vw, 44px); position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2.6px;
  color: rgba(232, 205, 140, .86); text-transform: uppercase;
  border: 1px solid rgba(200, 162, 76, .3); border-radius: 3px; padding: 5px 10px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--tech); border-radius: 50%;
  box-shadow: 0 0 8px var(--tech);
}
.hero-title {
  font-size: clamp(30px, 4.3vw, 50px) !important; line-height: 1.18 !important;
  color: #F7F5EA; font-weight: 800; letter-spacing: 1px; margin: 16px 0 12px !important;
}
.hero-title em {
  font-style: normal !important; color: var(--gold-2) !important;
  text-shadow: 0 0 26px rgba(200, 162, 76, .35);
}
.hero-slogan {
  font-size: clamp(14px, 1.7vw, 17px); color: rgba(244, 242, 231, .78);
  letter-spacing: .6px; line-height: 1.7; margin-bottom: 24px; font-weight: 600;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hs b {
  font-family: var(--mono); font-size: 26px; color: #F7F5EA; font-weight: 700;
  display: block; line-height: 1.1; letter-spacing: .5px;
}
.hs span { font-size: 11px; color: rgba(244, 242, 231, .55); letter-spacing: 2px; }

.hero-panel {
  position: relative; padding: clamp(20px, 2.6vw, 30px);
  border-left: 1px solid rgba(200, 162, 76, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  display: flex; flex-direction: column; gap: 10px;
}
.panel-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 3px;
  color: rgba(232, 205, 140, .62);
}
.hero-panel .rank-card {
  background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(232, 205, 140, .22);
  border-radius: 6px !important; padding: 12px !important; box-shadow: none !important;
}
.hero-panel .rank-info b { color: #F2EFE0 !important; }
.hero-panel .rank-info span { color: rgba(244, 242, 231, .62) !important; }
.hero-panel .rank-badge {
  border-radius: 4px !important; background: rgba(200, 162, 76, .12) !important;
  border: 1px solid rgba(200, 162, 76, .4); color: var(--gold-2) !important;
}
.hero-panel .rank-bar { background: rgba(255, 255, 255, .12) !important; }
.hero-panel .today-goal { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-panel .goal-item {
  background: rgba(255, 255, 255, .05) !important; box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 5px; flex: 1; min-width: 84px;
}
.hero-panel .goal-item b { color: var(--gold-2) !important; font-family: var(--mono); }
.hero-panel .goal-item span { color: rgba(244, 242, 231, .55) !important; }
.hero-side { gap: 8px !important; }
.hero-panel .daily-card {
  background: rgba(255, 255, 255, .05) !important; box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 5px; padding: 12px 14px !important;
}
.hero-panel .daily-card h3 { color: rgba(244, 242, 231, .6) !important; font-size: 11px !important; letter-spacing: 2px; font-family: var(--mono); }
.hero-panel .daily-card .big { color: #F7F5EA !important; font-family: var(--mono); font-size: 22px !important; }
.hero-panel .daily-card p { color: rgba(244, 242, 231, .6) !important; }

/* ------------------------------------------------------------------ 按钮 */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; letter-spacing: .4px; transition: .18s; border-radius: 5px;
  font-size: 14px; padding: 11px 20px; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #D6B267, var(--gold));
  color: #1A1505; border: 1px solid #E3C383;
  box-shadow: 0 8px 22px rgba(200, 162, 76, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(200, 162, 76, .36); }
.btn-ghost {
  background: rgba(255, 255, 255, .08); color: #F2EFE0;
  border: 1px solid rgba(244, 242, 231, .26);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(232, 205, 140, .6); color: #fff; }
.btn-primary.lg, .btn-ghost.lg { padding: 13px 24px; font-size: 15px; }
.btn-primary.sm, .btn-ghost.sm { padding: 8px 14px; font-size: 13px; }
.app-light .btn-ghost, #view-practice .btn-ghost, #view-result .btn-ghost,
#view-records .btn-ghost, #view-parent .btn-ghost, #view-read .btn-ghost, #view-review .btn-ghost {
  background: #fff; color: var(--green-900); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
#view-practice .btn-ghost:hover, #view-read .btn-ghost:hover, #view-result .btn-ghost:hover,
#view-records .btn-ghost:hover, #view-parent .btn-ghost:hover { border-color: var(--gold); color: #6B5320; }
.btn-primary:disabled, .btn-ghost:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* 兼容旧 pill-btn 命名（结算、弹层里仍可能用到） */
.pill-btn { border-radius: 5px !important; font-weight: 700; }
.pill-btn.primary { background: linear-gradient(180deg, #D6B267, var(--gold)) !important; color: #1A1505 !important; box-shadow: 0 8px 22px rgba(200, 162, 76, .28) !important; }
.pill-btn.ghost { background: #fff !important; color: var(--green-900) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow-sm) !important; }
.pill-btn.soft { background: var(--sun-soft) !important; color: #7A5E1C !important; }

/* ------------------------------------------------------------------ 区块标题 */
.section-head { margin: 30px 0 12px !important; align-items: center !important; }
.section-head.compact { margin-bottom: 10px !important; }
.section-head h2 {
  font-size: 17px !important; letter-spacing: 1.5px; font-weight: 800;
  display: flex; align-items: center; gap: 10px; text-transform: none;
}
.sec-no {
  font-family: var(--mono); font-size: 11px; color: var(--gold);
  border: 1px solid rgba(200, 162, 76, .45); border-radius: 3px; padding: 3px 6px;
  letter-spacing: 1px; font-weight: 700;
}
.section-head p { font-size: 12.5px !important; color: var(--muted) !important; margin-top: 6px; letter-spacing: .3px; }
.segmented { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 5px !important; box-shadow: none !important; padding: 2px !important; }
.seg { border-radius: 3px !important; font-size: 12.5px !important; padding: 6px 13px !important; color: var(--ink-2); }
.seg.active { background: var(--army-800) !important; color: #F2EFE0 !important; }

/* ------------------------------------------------------------------ 今日任务 */
.task-row { gap: 12px !important; }
.task-card {
  background: #fff !important; border: 1px solid var(--line) !important;
  border-left: 3px solid var(--gold) !important;
  border-radius: 8px !important; box-shadow: var(--shadow-sm) !important;
  padding: 18px 20px !important; transition: .2s;
}
.task-card:hover { transform: translateY(-2px) !important; border-color: var(--line) !important; border-left-color: var(--gold) !important; box-shadow: var(--shadow) !important; }
.task-card .tc-icon {
  border-radius: 6px !important; background: var(--green-100) !important;
  font-size: 22px !important; border: 1px solid rgba(20, 38, 28, .08);
}
.task-card.new .tc-icon { background: #EAF0E9 !important; }
.task-card.review .tc-icon { background: #F7EEDC !important; }
.task-card b { font-size: 15.5px !important; letter-spacing: .4px; }
.task-card p { color: var(--ink-2) !important; font-size: 12.5px !important; }
.task-card .tc-cta { color: var(--green-900) !important; font-family: var(--mono); font-size: 12px !important; letter-spacing: 1px; }

/* ------------------------------------------------------------------ 册别标签 */
.book-tabs { padding: 8px 0 12px !important; gap: 6px !important; }
.btab {
  border: 1px solid var(--line) !important; background: #fff !important;
  color: var(--ink-2) !important; border-radius: 4px !important;
  padding: 7px 12px !important; font-size: 12.5px !important; letter-spacing: .3px;
  transition: .15s;
}
.btab:hover { border-color: var(--gold) !important; color: var(--green-900) !important; }
.btab.on {
  background: var(--army-800) !important; border-color: var(--army-800) !important;
  color: #F2EFE0 !important; box-shadow: 0 4px 14px rgba(14, 26, 20, .18);
}
.btab small { color: inherit !important; opacity: .62; font-family: var(--mono); }

/* ------------------------------------------------------------------ 单元卡 */
.unit-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 12px !important; }
.unit-card {
  border-radius: 8px !important; border: 1px solid var(--line) !important;
  box-shadow: none !important; padding: 15px 16px !important; position: relative;
  background: linear-gradient(180deg, #fff, #FCFDFA) !important;
}
.unit-card:hover { border-color: rgba(200, 162, 76, .55) !important; box-shadow: var(--shadow-sm) !important; }
.unit-card h3 { font-size: 14px !important; letter-spacing: .4px; }
.unit-card h3 i {
  background: var(--green-100) !important; color: var(--green-900) !important;
  border-radius: 3px !important; font-family: var(--mono); letter-spacing: .5px;
}
.unit-card p { color: var(--muted) !important; font-size: 11.5px !important; letter-spacing: .3px; }
.chip {
  background: #F4F5F0 !important; border: 1px solid var(--line) !important;
  border-radius: 4px !important; font-size: 11.5px !important; font-family: var(--mono);
  color: var(--ink-2) !important; padding: 5px 8px !important;
}
.chip:hover { background: var(--sun-soft) !important; color: #6B5320 !important; border-color: var(--gold) !important; }
.chip.done { background: #EAF1EA !important; color: var(--green-900) !important; border-color: rgba(44, 90, 68, .28) !important; }

/* ------------------------------------------------------------------ 机制说明 */
.tips-card {
  background: #fff !important; border: 1px solid var(--line) !important;
  border-radius: 8px !important; box-shadow: none !important;
  padding: 20px 22px !important;
}
.tips-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.tips-icon {
  width: 34px; height: 34px; border-radius: 4px; display: grid; place-items: center;
  background: var(--army-800); color: var(--gold-2); font-size: 15px;
}
.tips-head b { font-size: 14.5px; letter-spacing: .5px; }
.tips-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tips-list li i {
  background: #fff !important; border: 1px solid rgba(200, 162, 76, .5) !important;
  color: #7A5E1C !important; font-family: var(--mono); font-size: 10px !important;
  border-radius: 3px !important; width: 24px !important; height: 24px !important;
}
.tips-list li b { letter-spacing: .5px; }
.tips-list li span { color: var(--ink-2); }

/* ------------------------------------------------------------------ 练习页 */
.practice-top { align-items: center; }
.round-btn {
  width: 38px; height: 38px; border-radius: 4px !important;
  background: var(--army-800) !important; color: #F2EFE0 !important;
  border: 1px solid rgba(200, 162, 76, .4) !important; box-shadow: none !important;
  font-size: 16px;
}
.round-btn:hover { background: var(--army-700) !important; }
.level-chip {
  background: #fff !important; border: 1px solid var(--line); border-radius: 4px !important;
  box-shadow: none !important; padding: 4px 12px 4px 4px !important;
}
.level-chip span {
  background: var(--army-800) !important; color: var(--gold-2) !important;
  border-radius: 3px !important; font-size: 11px !important; letter-spacing: 1px;
  font-family: var(--mono);
}
.level-chip b { font-size: 13px !important; letter-spacing: .3px; }
.hud-item {
  background: #fff !important; border: 1px solid var(--line); border-radius: 4px !important;
  box-shadow: none !important; min-width: 74px; padding: 5px 11px !important;
}
.hud-item span { font-family: var(--mono); letter-spacing: 1.4px; font-size: 9.5px !important; color: var(--muted) !important; }
.hud-item b { font-family: var(--mono); color: var(--army-800) !important; font-size: 16px !important; }
.hud-item i { font-family: var(--mono); }

.progress-line { height: 4px !important; background: #DDE1D7 !important; border-radius: 2px !important; overflow: hidden; }
.progress-line i { background: linear-gradient(90deg, var(--tech), var(--gold)) !important; box-shadow: 0 0 10px rgba(69, 207, 187, .5); }

.stage {
  background: #fff !important;
  border: 1px solid var(--line); border-radius: 8px !important;
  box-shadow: var(--shadow-sm) !important;
  position: relative; overflow: hidden;
}
.stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--army-800), var(--gold), var(--tech));
  opacity: .55;
}
.round-tip {
  background: rgba(20, 38, 28, .06) !important; color: var(--army-800) !important;
  border: 1px solid rgba(20, 38, 28, .08); border-radius: 3px !important;
  font-family: var(--mono); font-size: 11px !important; letter-spacing: 1.4px;
  padding: 4px 12px !important;
}
.word-area .lt { font-weight: 800 !important; letter-spacing: 1px; }
.word-area .lt.done { color: var(--green-700) !important; }
.word-area .lt.cur { color: var(--army-900) !important; }
.word-area .lt.cur::after { background: var(--gold) !important; height: 4px !important; }
.word-area .lt.err { color: #C0442E !important; }
.word-meta .ipa { font-family: var(--mono); color: var(--ink-2) !important; letter-spacing: .3px; }
.word-meta .pos { background: var(--sun-soft) !important; color: #7A5E1C !important; border-radius: 3px !important; }
.hint-bar kbd { border-radius: 3px !important; border: 1px solid var(--line) !important; }

.keyboard {
  background: #FCFDFA !important; border: 1px solid var(--line);
  border-radius: 8px !important; box-shadow: none !important;
  padding: 14px !important;
}
.kb-key {
  border-radius: 4px !important; border: 1px solid #DCDFD5 !important;
  box-shadow: 0 2px 0 #DCDFD5, inset 0 1px 0 #fff !important;
  color: var(--army-800) !important; font-weight: 700;
}
.kb-key.hl {
  background: var(--sun-soft) !important; border-color: var(--gold) !important;
  color: #6B5320 !important; box-shadow: 0 0 0 2px rgba(200, 162, 76, .22) !important;
}
.kb-key.press { background: #E7F0E8 !important; border-color: var(--green-500) !important; transform: translateY(2px); box-shadow: none !important; }
.kb-legend { color: var(--muted) !important; font-size: 11.5px !important; letter-spacing: .3px; }

/* ------------------------------------------------------------------ 拼读页 & 结算 */
.read-tools, .read-nav, .res-actions, .parent-actions { gap: 8px !important; }
.result-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px !important;
  box-shadow: var(--shadow-sm) !important; position: relative; overflow: hidden;
}
.result-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--army-800), var(--gold));
}
.res-item { background: #F7F8F3 !important; border: 1px solid var(--line); border-radius: 4px !important; }
.res-item b { font-family: var(--mono); color: var(--army-800) !important; }
.res-item span { font-family: var(--mono); letter-spacing: 1px; }
.reward { background: var(--sun-soft) !important; color: #6B5320 !important; border: 1px solid rgba(200, 162, 76, .45); border-radius: 4px !important; }
.chip-badge {
  background: linear-gradient(180deg, #FBF3DC, #F0E0B4) !important;
  border: 1px solid var(--gold) !important; border-radius: 4px !important;
  color: #5E4712 !important; letter-spacing: .5px;
}
.stars b { color: var(--gold) !important; }
.err-list { background: #FBF7F1 !important; border: 1px solid #EADFCF !important; border-radius: 6px !important; }
.err-list b { color: #8A5A22 !important; }

/* ------------------------------------------------------------------ 成绩 / 家长 */
.rec-summary .pcard, .parent-grid .pcard {
  background: #fff !important; border: 1px solid var(--line); border-radius: 8px !important;
  box-shadow: none !important;
}
.rec-summary .pcard h3, .parent-grid .pcard h3 { font-family: var(--mono); font-size: 11px !important; letter-spacing: 1.6px; color: var(--muted) !important; }
.kpi b { color: var(--army-800) !important; }
.rank-ladder { background: #fff !important; border: 1px solid var(--line); border-radius: 8px !important; box-shadow: none !important; }
.badge-wall .bd, .badge-wall > div {
  border-radius: 4px !important;
}
.badge-wall { gap: 8px !important; }

/* ------------------------------------------------------------------ 页脚 */
.site-foot {
  background: var(--army-900); color: rgba(244, 242, 231, .72);
  border-top: 1px solid rgba(200, 162, 76, .32);
  margin-top: 40px; padding: 0 !important;
  display: block !important;
  position: relative;
}
.foot-wrap {
  max-width: 1180px; margin: 0 auto; padding: 34px clamp(14px, 3vw, 28px) 26px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 300px;
  gap: 34px; align-items: start;
}
.foot-brand { max-width: 460px; }
.foot-logo { font-size: 16px; font-weight: 800; color: #F4F2E7; letter-spacing: .8px; }
.foot-logo span { color: var(--gold-2); font-size: 13px; margin-left: 2px; }
.foot-slogan { margin-top: 10px; font-size: 13px; line-height: 1.9; color: rgba(244, 242, 231, .68); letter-spacing: .3px; }
.foot-tags { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: rgba(244, 242, 231, .42); }
.foot-links { display: flex; gap: 38px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 9px; min-width: 120px; }
.foot-col b { font-size: 12px; color: var(--gold-2); letter-spacing: 2px; font-weight: 700; margin-bottom: 2px; }
.foot-col a { font-size: 12.5px; color: rgba(244, 242, 231, .72); cursor: pointer; transition: .16s; }
.foot-col a:hover { color: #fff; }
.foot-col .foot-note { font-size: 11.5px; color: rgba(244, 242, 231, .4); line-height: 1.6; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  max-width: 1180px; margin: 0 auto; padding: 16px clamp(14px, 3vw, 28px) 26px;
}
.copyright { font-size: 11.5px; line-height: 1.9; color: rgba(244, 242, 231, .55); letter-spacing: .3px; }
.copyright.sub { color: rgba(244, 242, 231, .34); margin-top: 4px; }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr !important; }
  .hero-panel { border-left: none; border-top: 1px solid rgba(200, 162, 76, .18); }
  .hero-panel .hero-side { display: grid; grid-template-columns: repeat(3, 1fr); }
  .task-row { grid-template-columns: 1fr !important; }
  .foot-wrap { gap: 26px; }
}
@media (max-width: 620px) {
  .nav-wrap { height: 58px; gap: 10px; }
  .brand-text b { font-size: 15px; }
  .brand-ed { display: none; }
  .brand-text i { letter-spacing: 2px; }
  .cta-mini { padding: 8px 12px; font-size: 12px; }
  .hero-copy { padding: 22px 18px; }
  .hero-stats { gap: 18px; margin-top: 20px; }
  .hs b { font-size: 21px; }
  .hero-panel .hero-side { grid-template-columns: 1fr; }
  .foot-wrap { padding-top: 26px; }
  .foot-links { gap: 22px; }
  .grade-track { gap: 5px; padding-left: 12px; padding-right: 12px; }
  .gchip { padding: 4px 8px; }
  .gchip b { font-size: 14px; }
  .gchip i { font-size: 9.5px; }
  .grade-group-label { letter-spacing: 1px; }
}

/* --- 细节修正 --- */
.hero-panel .hero-side .daily-card { flex: 0 0 auto; }
.hero-panel .hero-side { gap: 6px; }
.hero-panel .daily-card { padding: 10px 13px !important; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero-panel .daily-card h3 { margin-bottom: 0 !important; }
.hero-panel .daily-card .big { font-size: 19px !important; }
.hero-panel .daily-card p { font-size: 11.5px !important; margin-top: 0 !important; }
.ladder { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important; gap: 8px !important; }
.rung { flex: none !important; padding: 10px 6px !important; border-radius: 4px !important; background: #F7F8F3 !important; border: 1px solid var(--line); }
.rung.on { background: linear-gradient(180deg, #FBF3DC, #F2E3B8) !important; border-color: var(--gold) !important; box-shadow: 0 0 0 2px rgba(200,162,76,.18) !important; }
.rung .ico { color: var(--muted); }
.rung.on .ico { color: #7A5E1C; }
.wbadge { border-radius: 5px !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.wbadge.new { background: #FBF6E8 !important; border-color: var(--gold) !important; }
.wbadge .bi { color: var(--gold) !important; }
.rec-summary > div, .parent-grid > div { border-radius: 8px !important; }

@media (max-width: 620px) {
  .brand-ed { display: inline !important; font-size: 11px !important; }
  .brand-text b { font-size: 14px !important; }
  .hero-panel .goal-item { min-width: 0; flex: 1 1 30%; padding: 8px 10px !important; }
  .hero-panel .goal-item b { font-size: 15px !important; }
  .hero-panel .goal-item span { font-size: 10px !important; letter-spacing: .5px; }
  .hero-panel .daily-card { padding: 9px 11px !important; }
  .hero-panel .daily-card .big { font-size: 17px !important; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 1.8px; }
}

/* 听打遍：隐藏的字母用浅灰剪影，避免黑色方块压迫感 */
.word-area .lt.hide { color: transparent !important; text-shadow: 0 0 0 #DCE0D6 !important; }

/* ------------------------------------------------------------------ 关于页 */
.about-hero {
  background:
    radial-gradient(110% 130% at 10% 0%, rgba(70, 130, 99, .26), rgba(14, 26, 20, 0) 58%),
    linear-gradient(140deg, #122019, #0E1A14 62%, #10231B);
  border: 1px solid rgba(200, 162, 76, .26); border-radius: 10px;
  padding: clamp(26px, 4vw, 52px) clamp(24px, 4.4vw, 56px);
  position: relative; overflow: hidden;
}
.about-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 205, 140, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 205, 140, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 78%);
}
.about-eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 2.6px;
  color: rgba(232, 205, 140, .85); border: 1px solid rgba(200, 162, 76, .3);
  border-radius: 3px; padding: 5px 10px; position: relative;
}
.about-hero h1 {
  font-size: clamp(24px, 3.4vw, 38px); color: #F7F5EA; letter-spacing: 1px;
  margin: 18px 0 12px; font-weight: 800; position: relative;
}
.about-lead {
  font-size: clamp(14px, 1.6vw, 16.5px); line-height: 1.9; color: rgba(244, 242, 231, .78);
  max-width: 720px; letter-spacing: .3px;
}
.about-body {
  max-width: 820px; margin: 30px auto 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(22px, 3.4vw, 44px) clamp(20px, 3.6vw, 46px);
  box-shadow: var(--shadow-sm);
}
.about-body h2 {
  font-size: 17px; letter-spacing: 1px; margin: 30px 0 12px;
  display: flex; align-items: center; gap: 10px; color: var(--army-900);
}
.about-body h2:first-child { margin-top: 0; }
.about-body p { font-size: 14.5px; line-height: 2.05; color: #2B3A32; margin-bottom: 12px; letter-spacing: .2px; }
.about-body p b { color: var(--army-900); font-weight: 700; }
.about-list { margin: 6px 0 14px; padding: 0; list-style: none; }
.about-list li {
  font-size: 14px; line-height: 1.95; color: #2B3A32; padding: 10px 0 10px 16px;
  border-left: 2px solid rgba(200, 162, 76, .55); margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(246, 238, 214, .35), transparent 60%);
}
.about-list li b { color: var(--army-900); }
.about-steps { margin: 6px 0 14px; padding-left: 20px; }
.about-steps li { font-size: 14px; line-height: 1.95; color: #2B3A32; margin-bottom: 8px; }
.about-steps li b { color: var(--army-900); }
.about-quote {
  border-left: 3px solid var(--gold); background: #FBF7EC; padding: 14px 18px;
  border-radius: 0 6px 6px 0; font-size: 13.5px !important; color: #6B5320 !important;
}
.about-sign {
  margin-top: 22px; text-align: right; font-size: 13.5px !important;
  color: var(--ink-2) !important; line-height: 1.9;
}
.about-sign span { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.about-cta { display: flex; gap: 10px; justify-content: center; margin: 26px 0 6px; flex-wrap: wrap; }
.about-cta .btn-ghost { background: #fff; color: var(--green-900); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

@media (max-width: 620px) {
  .about-hero { padding: 22px 18px; }
  .about-body { padding: 18px 16px; margin-top: 18px; }
  .about-body p, .about-list li, .about-steps li { font-size: 13.5px; }
}

/* ---- 军需处 · 积分兑换 ---- */
.section-head.compact { margin: 30px 0 14px; }
.section-head.compact h3 { font-size: 17px; font-weight: 800; color: var(--army-900); letter-spacing: .5px; }
.section-head.compact p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.reward-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.shop-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.shop-card::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--gold), #8A6A22); }
.sc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sc-top b { font-size: 14px; color: var(--army-900); }
.sc-cost { font-family: var(--mono); font-size: 12px; color: #8A6A22; background: #FBF4E1; border: 1px solid #EBDCB0; padding: 2px 8px; border-radius: 4px; }
.shop-card p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.sc-foot span { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.reward.gold { color: #8A6A22; border-color: #EBDCB0; background: #FBF4E1; }
.wbadge.crest { border-color: #E3CE96; background: linear-gradient(180deg, #FFFDF5, #FBF2DC); }
.wbadge.crest .bi { color: var(--gold); }
.newround-card {
  margin: 16px 0 4px; padding: 16px 18px; border-radius: 10px;
  background: linear-gradient(100deg, #123326, #1B4A36); color: #E8F2EA;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid rgba(200,162,76,.5);
}
.newround-card b { font-size: 15px; color: var(--gold-l); letter-spacing: .5px; }
.newround-card span { font-size: 12.5px; opacity: .8; flex: 1; min-width: 180px; }

/* ------------------------------------------------ 音节拆分：分色 + 逐段朗读 */
.word-area.syllab { gap: 0; }
.word-area.syllab .lt { font-size: clamp(40px, 7.2vw, 96px); letter-spacing: .5px; }
.word-area .syl {
  display: inline-flex; align-items: center; position: relative;
  padding: 2px 0; border-radius: 4px;
  transition: background .18s, box-shadow .18s;
}
.word-area .syl + .syl { margin-left: .18em; }
.word-area .syl.s0 { color: #A9702A; }
.word-area .syl.s1 { color: #2C7A6B; }
.word-area .syl.s2 { color: #3B63A8; }
.word-area .syl.s3 { color: #805A96; }
.word-area .syl.s4 { color: #5B7A2E; }
.word-area .syl.s5 { color: #A34F5E; }
.word-area.syllab .syl .lt { color: inherit !important; }
.word-area.syllab .syl .lt.done { color: inherit !important; opacity: .5; }
.word-area.syllab .syl .lt.cur { color: inherit !important; }
.word-area.syllab .syl .lt.err { color: #C0442E !important; opacity: 1; }
.word-area .syl.active { border-bottom: 2px solid rgba(200, 162, 76, .5); }
.word-area .syl.spk .lt { text-shadow: 0 0 16px rgba(69, 207, 187, .55); }
.word-area .syl.spk { border-bottom: 2px solid rgba(69, 207, 187, .55); }
@keyframes sylPulse { from { filter: brightness(1); } to { filter: brightness(1.22); } }
.word-area .syl.spk { animation: sylPulse .75s ease-in-out infinite alternate; }

.syl-guide { display: none; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; margin: 2px 0 8px; }
.syl-guide.show { display: flex; }
.syl-guide .sg-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px;
  color: var(--muted); margin-right: 5px;
}
.syl-guide .sg {
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  padding: 1px 5px; border-radius: 3px; background: #F6F7F2;
  border: 1px solid rgba(20, 38, 28, .08);
}
.syl-guide .sg.s0 { color: #A9702A; }
.syl-guide .sg.s1 { color: #2C7A6B; }
.syl-guide .sg.s2 { color: #3B63A8; }
.syl-guide .sg.s3 { color: #805A96; }
.syl-guide .sg.s4 { color: #5B7A2E; }
.syl-guide .sg.s5 { color: #A34F5E; }
.syl-guide .sg-dot {
  display: inline-block; width: 3px; height: 3px; margin: 0 3px;
  border-radius: 50%; background: #C3CBBF;
}
@media (max-width: 620px) {
  .word-area.syllab .lt { font-size: clamp(34px, 7.4vw, 56px); }
  .word-area .syl + .syl { margin-left: .12em; }
  .word-area .syl { padding: 1px 0; }
  .syl-guide .sg { font-size: 11px; }
}

/* ------------------------------------------------------------------ 2.7.0 品牌说明 / 常见问题 / 页脚小程序码 */
.hero-intro {
  font-size: 13px; line-height: 1.95; color: rgba(244, 242, 231, .6);
  max-width: 540px; margin: -10px 0 22px; letter-spacing: .35px;
}
.about-hero .about-h1 {
  font-size: clamp(24px, 3.4vw, 38px); color: #F7F5EA; letter-spacing: 1px;
  margin: 18px 0 12px; font-weight: 800; position: relative;
}

.faq-list {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px clamp(16px, 2.8vw, 26px);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 14.5px; font-weight: 800; color: var(--army-900);
  letter-spacing: .3px; line-height: 1.6; display: flex; gap: 10px; margin: 0;
}
.faq-q i {
  font-family: var(--mono); font-style: normal; font-size: 11px; font-weight: 600;
  color: var(--gold); letter-spacing: 1px; flex: 0 0 auto; padding-top: 3px;
}
.faq-a {
  font-size: 13px; line-height: 1.95; color: #4A5350;
  margin: 8px 0 0; padding-left: 30px; letter-spacing: .25px;
}

.foot-qr {
  display: flex; flex-direction: column; gap: 18px;
  border-left: 1px solid rgba(200, 162, 76, .18); padding-left: 28px;
}
.qr-row { display: flex; gap: 14px; align-items: flex-start; }
.qr-frame {
  width: 122px; height: 122px; flex: 0 0 122px; padding: 5px;
  border: 1px dashed rgba(200, 162, 76, .5); border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.qr-frame img {
  width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 4px;
  background: #fff;
}
.qr-empty-tip {
  display: none; font-family: var(--mono); font-size: 10px; line-height: 1.8;
  letter-spacing: 1px; color: rgba(244, 242, 231, .52); text-align: center;
}
.qr-frame.qr-empty img { display: none; }
.qr-frame.qr-empty .qr-empty-tip { display: block; }
.qr-copy { max-width: 210px; }
.qr-copy b {
  font-size: 12px; color: var(--gold-2); letter-spacing: 2px; display: block; margin-bottom: 7px;
}
.qr-copy p {
  font-size: 12.5px; line-height: 1.85; color: rgba(244, 242, 231, .7); margin: 0;
}
.qr-copy i {
  display: block; margin-top: 8px; font-style: normal;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px;
  color: rgba(69, 207, 187, .8);
}

@media (max-width: 960px) {
  .foot-wrap { grid-template-columns: 1fr; gap: 22px; }
  .foot-qr { border-left: none; padding-left: 0; border-top: 1px solid rgba(200, 162, 76, .18); padding-top: 20px; }
  .foot-brand { max-width: 100%; }
}
@media (max-width: 620px) {
  .hero-intro { font-size: 12.5px; margin-bottom: 18px; }
  .faq-a { padding-left: 0; }
  .qr-row { gap: 12px; align-items: center; }
  .qr-frame { width: 104px; height: 104px; flex: 0 0 104px; }
  .qr-copy { max-width: none; flex: 1 1 auto; min-width: 0; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.foot-sub {
  font-size: 12px; letter-spacing: .6px; color: rgba(232, 205, 140, .8);
  margin-top: 7px;
}

/* ------------------------------------------------------------------ 页脚累计访客计数器 */
.visit-counter {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid rgba(200, 162, 76, .34);
  border-radius: 8px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(69, 207, 187, .10), transparent 62%),
    linear-gradient(180deg, rgba(200, 162, 76, .10), rgba(200, 162, 76, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 0 18px rgba(69, 207, 187, .06);
}
.vc-label {
  font-size: 11.5px; letter-spacing: 2.4px; color: rgba(244, 242, 231, .62);
  font-weight: 600;
}
.vc-num {
  font-family: var(--mono); font-size: 27px; line-height: 1;
  color: var(--gold-2); letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(200, 162, 76, .45);
  transition: transform .25s ease, text-shadow .25s ease;
  font-variant-numeric: tabular-nums;
}
.vc-num.vc-bump { transform: scale(1.06); text-shadow: 0 0 18px rgba(200, 162, 76, .7); }
.vc-unit { font-size: 11.5px; color: rgba(244, 242, 231, .55); letter-spacing: 1px; }
.vc-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-style: normal; font-size: 10px; letter-spacing: 1.4px;
  color: rgba(69, 207, 187, .55); font-family: var(--mono);
}
.vc-live.on { color: rgba(69, 207, 187, .9); }
.vc-dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(69, 207, 187, .5);
  box-shadow: 0 0 6px rgba(69, 207, 187, .5);
}
.vc-live.on .vc-dot {
  background: #45CFBB; box-shadow: 0 0 10px rgba(69, 207, 187, .9);
  animation: vcPulse 1.8s ease-in-out infinite;
}
@keyframes vcPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
.vc-raw { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 620px) {
  .vc-num { font-size: 24px; }
  .vc-live { margin-left: 0; }
}

/* ------------------------------------------------------------------ 熊猫标志（与小程序码同源） */
.brand-mark {
  width: 40px; height: 40px; padding: 0 !important;
  background: none !important; overflow: hidden;
  border: 1px solid rgba(200, 162, 76, .5) !important;
  border-radius: 9px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.brand-mark::after { display: none !important; }
.brand-mark img {
  width: 38px; height: 38px; display: block; border-radius: 8px;
  object-fit: cover;
}
.panda-ico {
  width: 1.5em; height: 1.5em; vertical-align: -.32em;
  border-radius: 24%; display: inline-block;
}
.result-panda .panda-ico.xl { width: 66px; height: 66px; vertical-align: 0; border-radius: 22%; }
.modal-art .panda-ico { width: 68px; height: 68px; vertical-align: 0; border-radius: 22%; }

/* ------------------------------------------------------------------ 账号中心 */
.acct-btn {
  height: 34px; padding: 0 14px; border-radius: 4px;
  background: rgba(200, 162, 76, .12); color: var(--gold-2);
  border: 1px solid rgba(200, 162, 76, .45);
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap; flex: 0 0 auto; transition: .18s;
}
.acct-btn:hover { background: rgba(200, 162, 76, .22); color: #FFF4D8; }
.acct-btn.on { background: rgba(69, 207, 187, .12); border-color: rgba(69, 207, 187, .45); color: #B7F4EA; }
.acct-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tech); box-shadow: 0 0 6px var(--tech); }

.acct-dlg {
  position: fixed; inset: 0; z-index: 9000; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(7, 14, 11, .72); backdrop-filter: blur(3px);
  color-scheme: dark;
}
.acct-dlg.show { display: flex; }
.acct-card {
  position: relative; width: min(420px, 100%); max-height: 90vh; overflow-y: auto;
  background: linear-gradient(160deg, #16261D 0%, #0E1A14 100%);
  border: 1px solid rgba(200, 162, 76, .32); border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .03);
  padding: 22px 22px 16px; color: #E9EFE4;
}
.acct-x {
  position: absolute; top: 10px; right: 12px; width: 30px; height: 30px;
  background: none; border: 0; color: #8FA294; font-size: 20px; line-height: 1; cursor: pointer;
}
.acct-x:hover { color: var(--gold-2); }
.acct-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.acct-head img { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(200, 162, 76, .35); background: #0B1510; }
.acct-head h3 { margin: 0; font-size: 17px; color: #F3F7EE; letter-spacing: .3px; }
.acct-head p { margin: 4px 0 0; font-size: 12px; color: #93A697; }

.acct-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.acct-tabs button {
  flex: 1; height: 34px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04); color: #A9BBAE; font-size: 13px; font-weight: 700;
}
.acct-tabs button.on { background: rgba(200, 162, 76, .16); border-color: rgba(200, 162, 76, .5); color: var(--gold-2); }

.acct-body { display: flex; flex-direction: column; gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld span { font-size: 12px; color: #9FB3A5; letter-spacing: .2px; }
.fld input, .fld select {
  height: 38px; padding: 0 12px; border-radius: 4px;
  background-color: #16261D; border: 1px solid rgba(255, 255, 255, .16);
  color: #F1F6EC; font-size: 14px; outline: none; transition: .16s;
  color-scheme: dark;
}
.fld input::placeholder { color: #76887B; }
.fld input:focus, .fld select:focus { border-color: rgba(69, 207, 187, .55); background-color: #1C3126; }
.fld select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #C8A24C 50%), linear-gradient(135deg, #C8A24C 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat, no-repeat;
}
.fld select option { background-color: #16261D; color: #F1F6EC; }

.acct-submit {
  margin-top: 6px; height: 40px; border-radius: 4px; border: 1px solid #E0C075;
  background: var(--gold); color: #1A1505; font-size: 14px; font-weight: 800; letter-spacing: .5px;
  transition: .18s;
}
.acct-submit:hover { background: var(--gold-2); }
.acct-submit:disabled { opacity: .7; cursor: default; }

.acct-ghost {
  width: 100%; height: 36px; border-radius: 4px; border: 1px dashed rgba(255, 255, 255, .18);
  background: transparent; color: #B9C9BD; font-size: 12.5px; font-weight: 600;
}
.acct-ghost:hover { border-color: rgba(200, 162, 76, .5); color: var(--gold-2); }
.acct-ghost.danger { border-color: rgba(214, 106, 96, .35); color: #D6857D; }
.acct-ghost.danger:hover { border-color: rgba(214, 106, 96, .7); color: #FFB3AB; }

.acct-tip, .acct-note { font-size: 11.5px; line-height: 1.7; color: #8CA093; margin: 4px 0 0; }
.acct-sec { border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 12px; margin-top: 4px; }
.acct-sec h4 { margin: 0 0 8px; font-size: 12px; color: var(--gold-2); font-weight: 700; letter-spacing: .6px; }

.acct-stat { display: flex; gap: 8px; margin-bottom: 12px; }
.acct-stat > div {
  flex: 1; padding: 10px 8px; border-radius: 6px; text-align: center;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07);
}
.acct-stat b { display: block; font-size: 19px; color: var(--gold-2); font-family: ui-monospace, monospace; }
.acct-stat i { display: block; margin-top: 2px; font-size: 11px; font-style: normal; color: #8CA093; }

.prof-list { display: flex; flex-direction: column; gap: 8px; }
.prof {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 6px; text-align: left;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); color: #DDE7DA;
}
.prof b { font-size: 13.5px; font-weight: 700; }
.prof i { font-style: normal; font-size: 11.5px; color: #8CA093; }
.prof.on { border-color: rgba(69, 207, 187, .5); background: rgba(69, 207, 187, .09); }
.prof.on i { color: #8FE6D9; }

.acct-toast {
  margin: 10px 0 0; min-height: 18px; font-size: 12px; text-align: center;
  color: #FFC9A8; opacity: 0; transition: .2s;
}
.acct-toast.show { opacity: 1; }

@media (max-width: 560px) {
  .acct-btn { padding: 0 10px; font-size: 12px; }
  .acct-card { padding: 18px 16px 14px; }
}

/* 账号中心 · 兑现码 */
.code-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.code-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(200,162,76,.08); border: 1px solid rgba(200,162,76,.25); }
.code-row b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #E8CD8C; font-size: 14px; letter-spacing: .5px; }
.code-row i { flex: 1; font-style: normal; color: #93A09A; font-size: 12px; }
.code-row span { font-size: 12px; color: #45CFBB; }
.acct-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 28px; letter-spacing: 2px; text-align: center; color: #E8CD8C; background: rgba(200,162,76,.1); border: 1px dashed rgba(200,162,76,.45); border-radius: 10px; padding: 18px 0; margin: 6px 0 10px; }

/* 家长页 · 兑现核销 */
.redeem-box { margin: 18px 0 4px; }
.redeem-card { background: rgba(14,26,20,.6); border: 1px solid rgba(200,162,76,.22); border-radius: 12px; padding: 16px 18px; }
.redeem-card h3 { font-size: 15px; color: #E8CD8C; margin: 0 0 8px; }
.redeem-tip { font-size: 13px; color: #B7C4BE; margin: 0 0 10px; }
.redeem-tip b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #E8CD8C; letter-spacing: .5px; }
.redeem-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.redeem-form input { flex: 1; min-width: 180px; background: rgba(255,255,255,.06); border: 1px solid rgba(200,162,76,.3); border-radius: 8px; color: #E8EFEA; font-size: 14px; padding: 10px 12px; letter-spacing: 1px; }
.redeem-form input:focus { outline: none; border-color: #C8A24C; }
.redeem-note { font-size: 12px; color: #7D8B84; margin: 10px 0 0; }

/* 顶栏常驻数据：积分 / 战功星 / 练习组数（独立 hud-pill，避免与训练页 .hud-item 的白底冲突） */
.top-hud { display: flex; align-items: center; gap: 6px; margin-right: 2px; color-scheme: dark; }
.hud-pill {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 5px 9px; border-radius: 4px;
  background-color: #122B20 !important;
  border: 1px solid rgba(200, 162, 76, .5) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 1px 0 rgba(0, 0, 0, .35);
}
.hud-pill em { font-style: normal; font-size: 11px; line-height: 1; color: #E8CD8C; }
.hud-pill i { font-style: normal; font-size: 11px; color: #B9CCC2; letter-spacing: .2px; }
.hud-pill b { font-size: 13px; font-weight: 800; color: #FFF9E8; letter-spacing: .3px; }

/* 兑现码撤销按钮 */
.code-btn {
  font-family: inherit; font-size: 12px; padding: 3px 8px; border-radius: 4px; cursor: pointer;
  background: transparent; border: 1px solid rgba(200, 162, 76, .5); color: #E8CD8C;
}
.code-btn:hover { background: rgba(200, 162, 76, .16); color: #FFF4D8; }
.code-btn.arm { border-color: #E07B5A; color: #FFC9A8; background: rgba(224, 123, 90, .1); }
.code-btn:disabled { opacity: .6; cursor: default; }
.code-row.void { opacity: .55; }
.code-row.void span { color: #93A09A; }

@media (max-width: 900px) { .hud-pill i { display: none; } }
@media (max-width: 620px) {
  .top-hud { gap: 3px; }
  .hud-pill { padding: 3px 5px; gap: 3px; }
  .hud-pill b { font-size: 11.5px; }
  .hud-pill em { font-size: 10px; }
}

/* ------------------------------------------------------------------ 听写单词 */
.dict-setup {
  border-radius: 12px; padding: 22px 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(69, 207, 187, .10), transparent 58%),
    linear-gradient(160deg, #16261D, #0F1C15 72%);
  border: 1px solid rgba(200, 162, 76, .24);
  box-shadow: 0 18px 44px rgba(14, 26, 20, .18);
  color-scheme: dark;
}
.dict-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dict-fields .fld label { font-size: 12px; color: #9FB3A5; letter-spacing: .3px; }
.dict-note {
  margin-top: 16px; display: flex; flex-direction: column; gap: 5px;
  font-size: 13px; line-height: 1.7; color: #B9CCC2;
}
.dict-note b { color: #E8CD8C; font-weight: 700; font-size: 13.5px; letter-spacing: .2px; }
.dict-start-row { margin-top: 16px; }
.dict-start-row .btn-primary { min-width: 210px; }
.dict-setup.collapsed { display: none; }

.dict-player {
  margin-top: 18px; border-radius: 12px; padding: 20px 22px 18px;
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(200, 162, 76, .10), transparent 55%),
    linear-gradient(170deg, #122B20, #0C1811 78%);
  border: 1px solid rgba(69, 207, 187, .22);
  box-shadow: 0 22px 54px rgba(14, 26, 20, .2);
  color-scheme: dark;
}
.dict-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dict-pos {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--mono); font-size: 22px; font-weight: 700; color: #FFF9E8;
}
.dict-pos b { font-size: 26px; color: var(--gold-2); }
.dict-pos i { font-style: normal; font-size: 14px; color: #7E9587; margin: 0 2px; }
.dict-pos span { font-size: 14px; color: #B9CCC2; }
.dict-phase {
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(69, 207, 187, .4); background: rgba(69, 207, 187, .1);
  color: #9FE7DB; font-size: 12px; font-weight: 700; letter-spacing: .4px;
}
.dict-unit { margin-left: auto; font-size: 12px; color: #8CA192; }

.dict-screen {
  position: relative; margin-top: 16px; padding: 34px 20px 30px;
  border-radius: 10px; min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(90% 80% at 50% 0%, rgba(69, 207, 187, .09), transparent 62%), #0A1410;
  border: 1px solid rgba(255, 255, 255, .07);
  text-align: center;
}
.dict-wave { display: flex; align-items: center; gap: 5px; height: 30px; }
.dict-wave i {
  display: block; width: 4px; height: 10px; border-radius: 2px;
  background: linear-gradient(180deg, #E8CD8C, #45CFBB);
  opacity: .45; transition: .3s;
}
.dict-wave.on i { opacity: 1; animation: dicwave 1s ease-in-out infinite; }
.dict-wave.on i:nth-child(2) { animation-delay: .12s; }
.dict-wave.on i:nth-child(3) { animation-delay: .24s; }
.dict-wave.on i:nth-child(4) { animation-delay: .36s; }
.dict-wave.on i:nth-child(5) { animation-delay: .48s; }
@keyframes dicwave {
  0%, 100% { height: 8px; }
  50% { height: 26px; }
}
.dict-answer {
  font-size: 14px; color: #6E8074; letter-spacing: .3px; line-height: 1.7;
  min-height: 30px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dict-answer.show { color: #F1F6EC; }
.dict-answer.show b { font-family: var(--mono); font-size: 40px; line-height: 1.1; color: var(--gold-2); letter-spacing: 1px; }
.dict-answer.show i { font-style: normal; font-size: 14px; color: #9FE7DB; }
.dict-answer.show span { font-size: 15px; color: #E4EEE6; }
.dict-status { font-size: 12.5px; color: #8CA192; letter-spacing: .3px; }

.dict-bar {
  margin-top: 18px; height: 8px; border-radius: 4px;
  background: rgba(255, 255, 255, .08); cursor: pointer; overflow: hidden;
}
.dict-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #C8A24C, #E8CD8C);
  border-radius: 4px; transition: width .3s ease;
}
.dict-controls { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.dicbtn {
  min-width: 92px; height: 40px; padding: 0 15px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(200, 162, 76, .32);
  color: #F1F6EC; font-size: 13px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer; transition: .16s; font-family: inherit;
}
.dicbtn:hover { background: rgba(200, 162, 76, .16); border-color: rgba(200, 162, 76, .62); }
.dicbtn:active { transform: translateY(1px); }
.dicbtn.main { min-width: 108px; background: var(--gold); border-color: #E0C075; color: #1A1505; }
.dicbtn.main:hover { background: var(--gold-2); }
.dicbtn.ghost { background: transparent; border-color: rgba(255, 255, 255, .16); color: #B9CCC2; font-weight: 600; }
.dicbtn.ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #F1F6EC; }
.dict-kbd { margin-top: 12px; font-size: 11.5px; color: #6E8074; letter-spacing: .3px; }

@media (max-width: 820px) {
  .dict-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dict-player { padding: 16px 16px 14px; }
  .dict-answer.show b { font-size: 32px; }
  .dict-unit { width: 100%; margin-left: 0; }
}
@media (max-width: 460px) {
  .dict-fields { grid-template-columns: 1fr; }
  .dict-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dicbtn { width: 100%; min-width: 0; padding: 0 10px; font-size: 12.5px; }
  .dicbtn.main { grid-column: 1 / -1; }
  .dict-controls .dicbtn:last-child { grid-column: 1 / -1; }
  .dict-start-row .btn-primary { width: 100%; min-width: 0; }
}

/* 窄屏顶栏：收起「进入训练」按钮与胶囊文字标签，保证三项数据常驻且不横向溢出 */
@media (max-width: 620px) {
  .cta-mini { display: none; }
  .top-actions { gap: 6px; }
  .acct-btn { padding: 0 9px; font-size: 12px; }
}
@media (max-width: 420px) {
  .brand-text b { font-size: 13.5px; }
  .brand-ed { display: none !important; }
  .acct-btn { min-width: 46px; white-space: nowrap; }
  .top-actions { gap: 4px; }
  .sound-btn { width: 30px; height: 30px; font-size: 13px; }
  .top-hud { gap: 2px; }
  .hud-pill { padding: 3px 3px; gap: 2px; }
  .hud-pill em { font-size: 9px; }
  .hud-pill b { font-size: 11px; }
}

/* 导航加入「听写单词」后收紧间距，避免六项导航换行 */
.nav-item { white-space: nowrap; flex: 0 0 auto; }
.cta-mini { white-space: nowrap; }
.brand-text b, .brand-text i { white-space: nowrap; }
@media (max-width: 1360px) {
  .nav-item { padding: 8px 9px; font-size: 12.5px; letter-spacing: .2px; }
  .main-nav { gap: 2px; margin-left: 2px; }
  .top-actions { gap: 8px; }
  .hud-pill { padding: 4px 8px; }
}

@media (max-width: 380px) {
  .brand-mark img { width: 32px; height: 32px; }
  .brand-text b { font-size: 12.5px; }
  .nav-wrap { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .hud-pill { padding: 2px 3px; gap: 1px; }
  .hud-pill em { font-size: 8px; }
  .hud-pill b { font-size: 10.5px; }
  .acct-btn { min-width: 40px; padding: 0 6px; }
}

/* 首页任务卡在 375px 窄屏超出列宽（网格项 min-content 撑开），顺手修正 */
@media (max-width: 700px) {
  .task-card { min-width: 0; }
  .task-card p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* ------------------------------------------------------------------ 大声朗读确认（电脑端） */
.rg-mask {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 24px;
  background: radial-gradient(600px 420px at 50% 0%, rgba(200, 162, 76, .12), transparent 70%), rgba(6, 16, 12, .88);
  backdrop-filter: blur(3px);
}
.rg-mask[hidden] { display: none; }
.rg-box {
  width: min(560px, 100%); padding: 24px 26px 22px;
  background: linear-gradient(180deg, #12251B, #0C1710);
  border: 1px solid rgba(200, 162, 76, .55); border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #F4F1E4; text-align: center;
}
.rg-tag {
  display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 11px; letter-spacing: 2px;
  color: var(--gold-2); border: 1px solid rgba(200, 162, 76, .5); background: rgba(200, 162, 76, .1);
}
.rg-head h3 { margin: 10px 0 6px; font-size: 20px; letter-spacing: .5px; color: #FFF9E8; }
.rg-head p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #A9BCAF; }
.rg-word {
  margin: 16px 0 4px; font-size: clamp(30px, 5.4vw, 46px); font-weight: 800;
  letter-spacing: 1px; color: #FFF9E8; transition: color .18s, transform .18s; word-break: break-word;
}
.rg-word.ok { color: #5BE3B4; transform: scale(1.06); }
.rg-sub { min-height: 20px; font-size: 13px; color: #93A99B; }
.rg-meter {
  position: relative; height: 20px; margin: 18px 0 6px; border-radius: 10px;
  background: #16261D; border: 1px solid rgba(255, 255, 255, .12); overflow: hidden;
}
.rg-zone { position: absolute; top: 0; bottom: 0; background: rgba(91, 227, 180, .13); border-left: 1px dashed rgba(91, 227, 180, .45); }
.rg-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, #C8A24C, #E8CD8C);
  border-radius: 10px 0 0 10px; transition: width .08s linear;
}
.rg-bar.hot { background: linear-gradient(90deg, #35C79B, #6BF0C0); box-shadow: 0 0 16px rgba(91, 227, 180, .55); }
.rg-mark { position: absolute; top: -3px; width: 2px; height: 26px; background: rgba(91, 227, 180, .8); }
.rg-stat { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #9FB4A5; }
.rg-stat span:last-child { color: var(--gold-2); }
.rg-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: center; flex-wrap: wrap; }
.rg-btn {
  flex: 1 1 160px; max-width: 220px; padding: 11px 16px; border-radius: 5px; font-size: 13px; font-weight: 700;
  background: rgba(200, 162, 76, .12); color: var(--gold-2); border: 1px solid rgba(200, 162, 76, .42); cursor: pointer;
  transition: .16s;
}
.rg-btn:hover { background: rgba(200, 162, 76, .22); border-color: rgba(232, 205, 140, .7); color: #FFF3D6; }
.rg-btn.ghost { background: transparent; color: #8FA396; border: 1px solid rgba(255, 255, 255, .16); font-weight: 600; }
.rg-btn.ghost:hover { color: #C8D5C9; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 460px) {
  .rg-box { padding: 20px 18px 18px; }
  .rg-btn { flex: 1 1 100%; max-width: none; }
}

/* ---- 听写结束：整组答案自查 ---- */
.dict-check { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(200, 162, 76, .35); scroll-margin-top: 104px; }
.dc-head h3 { margin: 0 0 6px; font-size: 15px; color: var(--gold-2); letter-spacing: .4px; }
.dc-head p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.7; color: #9FB3A5; }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dc-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(200, 162, 76, .18); transition: .16s;
}
.dc-row.is-ok { border-color: rgba(69, 207, 187, .48); background: rgba(69, 207, 187, .09); }
.dc-row.is-bad { border-color: rgba(210, 100, 63, .48); background: rgba(210, 100, 63, .09); }
.dc-no { flex: none; width: 20px; font-family: var(--mono); font-size: 11px; color: #7E9587; text-align: right; }
.dc-word { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dc-word b { font-family: var(--mono); font-size: 19px; letter-spacing: .5px; color: #F1F6EC; }
.dc-word i { font-style: normal; font-size: 12px; color: #9FE7DB; }
.dc-word em { font-style: normal; font-size: 13px; color: #C9D6CC; }
.dc-pick { flex: none; display: flex; gap: 6px; }
.dcy {
  padding: 6px 11px; border-radius: 8px; font-size: 12px; white-space: nowrap; cursor: pointer; transition: .15s;
  background: transparent; color: #B9CCC2; border: 1px solid rgba(200, 162, 76, .32);
}
.dcy:hover { border-color: var(--gold-2); color: #F1F6EC; }
.dcy.ok.on { background: rgba(69, 207, 187, .2); border-color: #45CFBB; color: #9FE7DB; font-weight: 700; }
.dcy.bad.on { background: rgba(210, 100, 63, .2); border-color: #D2643F; color: #F0B49E; font-weight: 700; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.dc-actions .dicbtn[disabled] { opacity: .45; cursor: not-allowed; }
.dc-actions[hidden] { display: none; }
.dict-check[hidden], .dc-result[hidden] { display: none; }
.dc-result { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(200, 162, 76, .25); }
.dcr-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.dcr-rate { font-family: var(--mono); font-size: 34px; line-height: 1; color: var(--gold-2); }
.dcr-sub { font-size: 12.5px; color: #9FB3A5; }
.dcr-cheer { font-size: 12.5px; color: #DCE5DD; }
.dcr-bad { margin-top: 10px; font-size: 12.5px; color: #C9D6CC; }
.dcr-bad.allok { color: #9FE7DB; }
.dcr-bad .ew { display: inline-block; margin: 4px 4px 0 0; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: #F0B49E; background: rgba(210, 100, 63, .16); }
.dcr-total { margin-top: 8px; font-size: 11.5px; color: #7E9587; }
.dcr-acts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
@media (max-width: 680px) {
  .dc-row { flex-wrap: wrap; }
  .dc-word { width: 100%; }
  .dc-pick { width: 100%; justify-content: flex-end; }
}
