/* ============ IELTS Daily ============ */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #4f46e5;        /* 主色加深，提升存在感 */
  --accent-soft: #eef2ff;
  --sp: #f59e0b;   /* 口语 */
  --li: #3b82f6;   /* 听力 */
  --re: #10b981;   /* 阅读 */
  --ok: #22c55e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 10px 28px rgba(17, 24, 39, .08);
  --shadow-hover: 0 4px 10px rgba(17, 24, 39, .06), 0 18px 40px rgba(17, 24, 39, .13);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  cursor: pointer; user-select: none;
}
.brand-logo {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 16px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(99, 102, 241, .28);
}
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.brand-tag {
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 2px 9px; border-radius: 999px;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-btn {
  border: none; background: transparent; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: all .18s; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
}
.nav-btn:hover { color: var(--text); background: #eef0f7; }
.nav-btn.active { background: var(--accent); color: #fff; }
.nav-more { position: relative; }
.nav-chev { flex-shrink: 0; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 156px; padding: 6px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
  display: flex; flex-direction: column; gap: 2px;
}
.nav-dropdown .nav-btn { width: 100%; text-align: left; justify-content: space-between; }

/* 朗读倍速下拉 */
.rate-dropdown { min-width: 112px; align-items: stretch; }
.rate-opt {
  border: none; background: transparent; padding: 7px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer;
  text-align: center; transition: all .15s;
}
.rate-opt:hover { background: #eef0f7; color: var(--text); }
.rate-opt.on { background: var(--accent); color: #fff; }

.container { max-width: 1080px; margin: 0 auto; padding: 28px 24px 60px; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(229,231,235,.7);
}
.section-title { font-size: 18px; margin: 30px 0 14px; }

/* ---------- Hero：金句 + 右侧打卡/累计 ---------- */
.hero { padding: 0; overflow: hidden; }
.hero-body {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding: 26px 28px;
  background: linear-gradient(100deg, #f7f8ff, #fdf4ff);
}
/* 每日电影氛围图铺底（左白右透渐变遮罩，保证左侧文字可读） */
.hero-body::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-bg, none);
  background-size: cover; background-position: center 40%;
  opacity: .55; filter: saturate(1.2);
}
.hero-body::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .87) 42%,
    rgba(250, 250, 255, .74) 100%);
}
.hero-left { flex: 1 1 0; min-width: 0; }
.hero-date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.hero-date span:first-child { font-size: 14px; font-weight: 700; color: var(--accent); }
.hero-movie {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #7c3aed;
  background: rgba(124, 58, 237, 0.08); padding: 2px 11px 2px 3px; border-radius: 999px;
}
.hero-movie-thumb {
  width: 23px; height: 23px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(124, 58, 237, .22);
}
.hero h1 { font-size: 22px; margin-bottom: 8px; line-height: 1.4; }
.hero-sub { color: var(--muted); font-size: 14px; line-height: 1.6; }
.hero-goal { color: #7c6f9c; font-size: 13px; font-weight: 600; margin-top: 10px; }

/* 打卡 + 累计时长：右侧上下对称，与文案同一行 */
.hero-stats {
  flex: 0 0 296px; display: flex; flex-direction: column; gap: 10px;
}
.hs-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; border-radius: 14px;
  background: rgba(255,255,255,.88); border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15,23,42,.05);
}
.hs-row.streak-row { background: linear-gradient(135deg, #fff7ed, #fff); border-color: #fed7aa; }
.hs-row.time-row { background: linear-gradient(135deg, #eef2ff, #fff); border-color: #c7d2fe; }
.hs-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hs-icon svg { display: block; }
/* 仅进度环需要从 12 点起始，火苗等图标不旋转 */
.hs-icon svg.ring-svg { transform: rotate(-90deg); }
.hs-icon .track { stroke: #e2e8f0; }
.hs-icon .bar { transition: stroke-dashoffset .6s ease; }
.hs-info { flex: 1; min-width: 0; }
.hs-label { font-size: 14px; font-weight: 600; color: var(--text); }
.hs-label b { font-size: 17px; font-variant-numeric: tabular-nums; }
.hs-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hs-dots { display: flex; gap: 5px; margin-top: 6px; }
.hs-dots .wd {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #94a3b8; background: #e2e8f0;
}
.hs-dots .wd.on { background: #f97316; color: #fff; }
.hs-dots .wd.today { box-shadow: inset 0 0 0 2px var(--accent); }

/* 第三行：三板块今日进度条（无数据也显示空槽，避免右侧空洞） */
.hs-row.goal-row {
  padding: 10px 14px;
  background: linear-gradient(135deg, #f8fafc, #fff); border-color: #e2e8f0;
}
.hs-bars { margin-top: 6px; display: grid; gap: 5px; }
.hs-bar { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: var(--muted); }
.hs-bar .hb-name { width: 26px; flex-shrink: 0; }
.hs-bar .hb-track { flex: 1; height: 6px; border-radius: 999px; background: #eef1f7; overflow: hidden; }
.hs-bar .hb-fill { display: block; height: 100%; border-radius: 999px; min-width: 0; transition: width .7s cubic-bezier(.2, .8, .3, 1); }
.hs-bar .hb-val {
  width: 40px; text-align: right; font-variant-numeric: tabular-nums;
  font-size: 10.5px; color: #a3aec2;
}
.hs-bar.done .hb-val { color: var(--ok); }
.hs-bar .hb-ok { color: var(--ok); font-size: 11px; }

/* 火焰：连续天数越高越"旺" */
.hs-icon.flame-lv2 svg { animation: flame-sway 1.6s ease-in-out infinite; }
.hs-icon.flame-lv3 svg { animation: flame-sway 1.1s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(249, 115, 22, .55)); }
@keyframes flame-sway {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.08); }
}

/* ---------- 每日彩蛋任务 ---------- */
.hero-egg-row { margin-top: 14px; max-width: 520px; }
.egg-box {
  border: 1px dashed #f0abfc; background: linear-gradient(135deg, #fdf4ff, #fff);
  border-radius: 12px; overflow: hidden;
}
.egg-box.done { border-color: var(--ok); background: linear-gradient(135deg, #f0fdf4, #fff); }
.egg-main {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 11px 14px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: #7c3aed; font-family: inherit;
  text-align: left;
}
.egg-box.done .egg-main { color: #15803d; }
.egg-icon { font-size: 17px; flex-shrink: 0; }
.egg-title { flex: 1; min-width: 0; line-height: 1.45; }
.egg-arrow { color: #c4b5fd; font-size: 12px; }
.egg-body { padding: 0 14px 13px; }
.egg-desc { font-size: 12.5px; color: #6b7280; margin-bottom: 10px; line-height: 1.55; }
.egg-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 成就徽章墙 ---------- */
.bdg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 26px; flex-wrap: wrap;
}
.bdg-title { font-size: 20px; font-weight: 800; }
.bdg-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.bdg-count {
  font-size: 14px; font-weight: 800; color: var(--accent);
  background: rgba(99,102,241,.1); padding: 8px 16px; border-radius: 999px;
}
.bdg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px; margin-top: 18px;
}
.bdg-card {
  --bc: #94a3b8;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 12px 14px; text-align: center;
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .18s;
}
.bdg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* 图标圆形底座：按徽章主题色着色 */
.bdg-card .bdg-icon {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; font-size: 29px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--bc) 22%, #fff), color-mix(in srgb, var(--bc) 7%, #fff));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bc) 34%, transparent);
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.bdg-card:hover .bdg-icon { transform: scale(1.1) rotate(-6deg); }
.bdg-card .bdg-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.bdg-card.locked .bdg-avatar { filter: grayscale(1); opacity: .7; }
.bdg-card .bdg-name { font-size: 14px; font-weight: 800; margin-top: 10px; }
.bdg-card .bdg-desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.bdg-card .bdg-date { font-size: 11px; color: #94a3b8; margin-top: 8px; }
.bdg-card.locked { background: #f8fafc; opacity: .66; }
.bdg-card.locked .bdg-icon {
  background: #eef1f6; box-shadow: inset 0 0 0 1.5px #dfe4ed;
}
.bdg-card.locked .bdg-icon > * { filter: grayscale(1); }
/* 刚解锁：脉冲高亮 */
.bdg-card.just-unlocked { animation: bdg-unlock .85s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bdg-unlock {
  0%   { transform: scale(.84); box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); }
  55%  { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
  100% { transform: scale(1); box-shadow: var(--shadow); }
}

/* ---------- 徽章解锁弹窗 ---------- */
.badge-popup {
  position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.45); opacity: 0; transition: opacity .3s; pointer-events: none;
}
.badge-popup.show { opacity: 1; }
.bp-card {
  background: #fff; border-radius: 20px; padding: 30px 42px; text-align: center;
  border: 3px solid #f59e0b; box-shadow: 0 24px 60px rgba(0,0,0,.3);
  transform: scale(.82); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.badge-popup.show .bp-card { transform: scale(1); }
.bp-icon { font-size: 64px; line-height: 1; }
.bp-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
/* 解锁瞬间：头像 / 图标由灰度暗淡 → 彩色点亮 */
.badge-popup.show .bp-icon { animation: bp-reveal .9s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes bp-reveal {
  0%   { filter: grayscale(1) brightness(.65); transform: scale(.55) rotate(-12deg); }
  60%  { filter: grayscale(.2) brightness(1.05); transform: scale(1.1) rotate(4deg); }
  100% { filter: grayscale(0) brightness(1); transform: scale(1) rotate(0); }
}
.badge-popup.show .bp-card { animation: bp-glow 1.6s ease-out; }
@keyframes bp-glow {
  0%   { box-shadow: 0 24px 60px rgba(0, 0, 0, .3), 0 0 0 0 rgba(245, 158, 11, .55); }
  100% { box-shadow: 0 24px 60px rgba(0, 0, 0, .3), 0 0 0 26px rgba(245, 158, 11, 0); }
}
.bp-name { font-size: 22px; font-weight: 800; margin-top: 14px; }
.bp-desc { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- 连击展示 ---------- */
.combo-strip {
  display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 800; color: #ea580c;
  background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fed7aa;
  padding: 4px 12px; border-radius: 999px; animation: combo-pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes combo-pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- 彩带 ---------- */
.confetti {
  position: fixed; top: -12px; z-index: 998; width: 9px; height: 16px;
  animation: confetti-fall linear forwards; pointer-events: none;
}
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: .6; }
}

/* ---------- 计划卡片 ---------- */
.plan {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.task-card {
  position: relative; padding: 22px 22px 20px; display: flex; align-items: center; gap: 16px;
  cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc, #6366f1) 5%, #fff), #fff 58%);
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s;
}
/* 任务卡片用留白和进度环表达层级，不再使用厚重侧边色条 */
.task-card::before {
  content: none;
}
.task-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.task-card:hover .ring { transform: scale(1.05); }
.task-card.done { border-color: var(--ok); background: linear-gradient(135deg, #f0fdf4, #fff 70%); }
.task-card.done::before { background: var(--ok); }
.task-card.done::after {
  content: "✓ 已完成"; position: absolute; top: 12px; right: -34px;
  background: var(--ok); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 40px; transform: rotate(38deg);
}
.ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; transition: transform .2s cubic-bezier(.2, .8, .3, 1); }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--line); }
.ring .bar { transition: stroke-dashoffset .6s ease; }
.ring .ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.ring .ring-icon { font-size: 22px; line-height: 1; }
.ring .ring-time { font-size: 11px; font-weight: 700; color: var(--muted); }
.task-info { min-width: 0; }
.task-info .t-name { font-weight: 800; font-size: 17px; }
.task-info .t-title { font-size: 13px; color: var(--muted); margin-top: 2px; }
.task-info .t-status { font-size: 12px; font-weight: 700; margin-top: 6px; }
.t-status.going { color: var(--muted); }
.t-status.near { color: var(--sp); }
.t-status.done { color: var(--ok); }
.done-pop { animation: pop .5s cubic-bezier(.2,2,.4,1); }
@keyframes pop { 0%{transform:scale(0)} 60%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* ---------- 阅读区 ---------- */
.reader { margin-top: 30px; }
.reader-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 24px 0;
}
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1;
  transition: all .15s;
}
.date-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.date-btn:disabled { opacity: .35; cursor: not-allowed; }
.date-select {
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px;
  font-size: 14px; font-weight: 600; background: #fff; color: var(--text);
  cursor: pointer; font-family: inherit;
}
.readonly-badge {
  font-size: 12px; font-weight: 700; color: var(--sp);
  background: #fffbeb; border: 1px solid #fde68a; padding: 4px 12px; border-radius: 999px;
}
.timer-pill {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  font-size: 13px; font-weight: 700; color: #047857;
  background: #ecfdf5; border: 1px solid #a7f3d0; padding: 5px 14px; border-radius: 999px;
}
.timer-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  animation: blink 1.2s infinite;
}
/* 暂停 / 空闲 / 后台：灰色并停止闪烁 */
.timer-pill.is-paused { color: #64748b; background: #f1f5f9; border-color: #cbd5e1; }
.timer-pill.is-paused .dot { background: #94a3b8; animation: none; }
.timer-btn {
  margin-left: 4px; border: 1px solid #a7f3d0; background: #fff; color: #047857;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; cursor: pointer;
}
.timer-btn:hover { background: #d1fae5; }
.timer-pill.is-paused .timer-btn { border-color: #cbd5e1; color: #475569; }
.timer-pill.is-paused .timer-btn:hover { background: #e2e8f0; }
@keyframes blink { 50% { opacity: .25; } }
.readall-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; font-size: 13px; font-weight: 700; color: #7c3aed;
  background: #f5f3ff; border: 1px solid #ddd6fe; padding: 6px 14px; border-radius: 999px;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.readall-btn:hover { background: #ede9fe; border-color: #c4b5fd; }
.readall-btn.speaking { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.readall-btn.speaking:hover { background: #fef3c7; }
.readall-btn + .timer-pill { margin-left: 0; }

/* ---------- 首页：计划提示 + 入口按钮 ---------- */
.plan-hint { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.t-enter {
  display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700;
  color: var(--accent); opacity: .7; transition: opacity .18s, transform .18s;
}
.task-card:hover .t-enter { opacity: 1; transform: translateX(3px); }
.home-entry { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }
.home-entry .btn { padding: 11px 22px; font-size: 14px; }

/* ---------- 练习视图顶栏 ---------- */
.practice-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px; margin-bottom: 16px;
  background: #fff; border: 1px solid rgba(229,231,235,.7); border-radius: 16px;
  box-shadow: var(--shadow);
}
.pb-title { font-size: 15px; font-weight: 800; color: var(--text); }
.pb-title b { color: var(--accent); }
.pb-tip { margin-left: auto; font-size: 12px; color: var(--muted); }

/* 练习页当前板块实时进度条 */
.practice-progress {
  margin: -6px 0 18px; padding: 12px 20px;
  background: linear-gradient(90deg, #f8fafc, #fff);
  border: 1px solid var(--line); border-radius: 14px;
}
.pp-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px; font-size: 13px;
}
.pp-label { font-weight: 800; color: var(--text); }
.pp-label b { color: var(--accent); }
.pp-meta { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-track {
  height: 8px; border-radius: 999px; background: #eef1f7; overflow: hidden;
}
.pp-fill {
  display: block; height: 100%; border-radius: 999px; min-width: 0;
  background: linear-gradient(90deg, #818cf8, #6366f1);
  transition: width .7s cubic-bezier(.2, .8, .3, 1);
}
.practice-progress.done .pp-fill { background: linear-gradient(90deg, #34d399, #10b981) !important; }
.practice-progress.done .pp-meta { color: var(--ok); }
@media (max-width: 640px) { .practice-progress { margin: 0 0 14px; } }

.tabs { display: flex; gap: 8px; padding: 16px 24px 0; border-bottom: 1px solid var(--line); }
.tab-btn {
  display: flex; align-items: center; gap: 6px;
  border: none; background: transparent; padding: 10px 20px 12px;
  font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: all .15s;
  font-family: inherit;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--c, var(--accent)); border-bottom-color: var(--c, var(--accent)); }
.tab-btn .tab-time {
  font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  background: #f3f4f6; color: var(--muted); font-variant-numeric: tabular-nums;
}
.tab-btn.active .tab-time { background: color-mix(in srgb, var(--c, var(--accent)) 14%, #fff); color: var(--c, var(--accent)); }
.tab-btn .tab-check { color: var(--ok); }

.article-meta { padding: 18px 28px 0; }
.article-meta .a-sub { color: var(--muted); font-size: 13px; }
.article-meta .a-title { font-weight: 800; font-size: 19px; margin-top: 2px; }

article { padding: 14px 28px 36px; font-size: 15.5px; }
article h3 {
  font-size: 18px; margin: 30px 0 12px; padding-left: 12px;
  border-left: 4px solid var(--c, var(--accent)); line-height: 1.4;
}
article h4 { font-size: 16px; margin: 22px 0 10px; color: #374151; }
article h5 { font-size: 15px; margin: 18px 0 8px; }
article p { margin: 10px 0; }
article ol, article ul { margin: 10px 0 10px 24px; }
article li { margin: 6px 0; }
article strong { font-weight: 700; }
article u {
  text-decoration: none; font-weight: 600;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--c, var(--accent)) 28%, transparent) 0);
  border-bottom: 2px solid color-mix(in srgb, var(--c, var(--accent)) 55%, transparent);
}

/* 听力歌词同步：带 data-start 的英文句（v12.7） */
article p[data-start] {
  padding: 5px 12px;
  margin: 9px -12px;
  border-radius: 10px;
  scroll-margin-top: 88px;
  transition: background .28s ease, box-shadow .28s ease, transform .28s ease;
}
article p[data-start].is-current {
  background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent);
  box-shadow: inset 3px 0 0 var(--c, var(--accent));
}
article p[data-start].is-current u { font-weight: 800; }
article p[data-start].is-current strong { font-weight: 800; }
article table {
  width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px;
  border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line);
}
article th { background: color-mix(in srgb, var(--c, var(--accent)) 10%, #fff); }
article th, article td {
  border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top;
}
article tr:first-child th { font-weight: 700; color: var(--c, var(--accent)); }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.empty { color: var(--muted); padding: 60px 20px; text-align: center; }
.empty .big { font-size: 42px; margin-bottom: 10px; }

/* ---------- 口语逐句翻译（每个对话独立开关，默认折叠） ---------- */
.spk-dialog { margin: 12px 0 22px; }
.spk-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px dashed #e8eaf0;
}
.spk-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--text); flex: 1; }
.spk-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.spk-toggle, .blk-read {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  border: 1px solid #e5e7eb; background: #fff; color: #6b7280;
  cursor: pointer; font-family: inherit; transition: all .15s; line-height: 1.2;
  white-space: nowrap;
}
.spk-toggle:hover { border-color: #f59e0b; color: #b45309; background: #fffbeb; }
.spk-toggle.on { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.blk-read { border-color: #ddd6fe; background: #f5f3ff; color: #7c3aed; }
.blk-read:hover { background: #ede9fe; border-color: #c4b5fd; }
.blk-read.on { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.blk-read-wrap { margin: 2px 0 8px; }
.spk-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  padding: 8px 12px; margin: 4px 0; border-radius: 10px;
  background: #fafafa; border: 1px solid #f0f0f0;
}
.spk-line[data-who="B"] { background: #f4f6fb; }
.spk-who {
  flex: none; min-width: 26px; text-align: center; font-weight: 800; font-size: 12.5px;
  color: var(--c, #f59e0b); background: #fff; border: 1px solid #e5e7eb;
  border-radius: 7px; padding: 2px 7px;
}
.spk-en { flex: 1 1 240px; font-size: 15px; color: var(--text); line-height: 1.55; }
.spk-cn {
  flex-basis: 100%; font-size: 13px; color: #6b7280; line-height: 1.55;
  padding-left: 38px; display: none;
}
.spk-dialog.cn-on .spk-cn { display: block; }


/* ---------- 统计视图 ---------- */
.stats-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.stat-card { padding: 24px 26px; }
.stat-card h2 { font-size: 16px; margin-bottom: 18px; }
.stat-total-num { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-total-num small { font-size: 16px; color: var(--muted); font-weight: 600; }
.stat-total-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.bar-row .b-name { width: 70px; font-size: 13px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.bar-row .b-track { flex: 1; height: 14px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.bar-row .b-fill { height: 100%; border-radius: 999px; transition: width .8s ease; }
.bar-row .b-val { width: 72px; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.week-chart-wrap { overflow-x: auto; }
.week-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.week-legend .lg { display: flex; align-items: center; gap: 5px; }
.week-legend .sw { width: 10px; height: 10px; border-radius: 3px; }
#stat-records { margin-top: 16px; padding: 24px 26px; }
#stat-records h2 { font-size: 16px; margin-bottom: 14px; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rec-table th, .rec-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.rec-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.rec-table td { font-variant-numeric: tabular-nums; }
.rec-table .r-done { color: var(--ok); font-weight: 700; }
.rec-table .r-doing { color: var(--sp); font-weight: 600; }
.rec-table .r-none { color: #d1d5db; }

.footer { text-align: center; color: #9ca3af; font-size: 12px; padding: 26px 0 34px; }

/* ============ 响应式：主页面 Hero ============ */

/* ---------- 导航徽标 ---------- */
.nav-badge {
  display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 5px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; text-align: center; vertical-align: 1px;
}
.nav-btn.active .nav-badge { background: #fff; color: var(--accent); }

/* ---------- 通用按钮 ---------- */
.btn {
  border: none; border-radius: 10px; padding: 10px 20px; font-size: 14px;
  font-weight: 700; cursor: pointer; font-family: inherit; transition: all .15s;
}
.primary-btn { background: var(--accent, #6366f1); color: #fff; }
.primary-btn:hover { filter: brightness(1.08); }
.ghost-btn {
  background: #f3f4f6; color: #374151; border: 1px solid var(--line);
}
.ghost-btn:hover { background: #e5e7eb; }
.ghost-btn.danger { color: #dc2626; }
.ghost-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============ 每日互动练习 ============ */
.practice-box { padding: 0 28px 30px; }
.quiz-card {
  border: 1.5px solid color-mix(in srgb, var(--c, #6366f1) 35%, transparent);
  background: color-mix(in srgb, var(--c, #6366f1) 4%, #fff);
  border-radius: 14px; padding: 20px 22px;
}
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quiz-title { font-weight: 800; font-size: 16px; }
.quiz-done-badge {
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
}
.quiz-done-badge.g-S { background: #fef9c3; color: #a16207; border-color: #fde047; }
.quiz-done-badge.g-A { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.quiz-done-badge.g-B { background: #fff7ed; color: #c2410c; border-color: #fdba74; }
.quiz-done-badge.g-C { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.quiz-rubric { font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.q-item { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.q-item:first-child { border-top: none; padding-top: 0; }
.q-prompt { font-size: 15px; font-weight: 600; line-height: 1.55; }
.q-no {
  display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px;
  background: var(--c, #6366f1); color: #fff; font-size: 12px; font-weight: 800;
}
.q-opts { margin-top: 10px; display: grid; gap: 8px; }
.opt-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: all .13s; background: #fff; font-size: 14.5px; min-height: 44px;
}
.opt-text { flex: 1; min-width: 0; line-height: 1.55; word-break: break-word; overflow-wrap: anywhere; }
.opt-row:hover { border-color: var(--c, #6366f1); }
.opt-row.picked {
  border-color: var(--c, #6366f1);
  background: color-mix(in srgb, var(--c, #6366f1) 9%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #6366f1) 15%, transparent);
}
.opt-row.big { font-size: 15.5px; }
.opt-row.right { border-color: var(--ok); background: #f0fdf4; }
.opt-row.wrong { border-color: #ef4444; background: #fef2f2; }
.opt-letter {
  flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px; border-radius: 7px;
  background: #f3f4f6; color: #374151; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.opt-row.picked .opt-letter { background: var(--c, #6366f1); color: #fff; }
.opt-row.right .opt-letter { background: var(--ok); color: #fff; }
.opt-row.wrong .opt-letter { background: #ef4444; color: #fff; }
.blank-input {
  width: 100%; margin-top: 10px; padding: 11px 14px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit;
  outline: none; transition: border .15s;
}
.blank-input:focus { border-color: var(--c, #6366f1); }
.blank-input.big { font-size: 16px; }
.quiz-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.q-item.fb { border-radius: 10px; padding: 14px 16px; border-top: none; }
.q-item.fb.ok { background: #f0fdf4; }
.q-item.fb.bad { background: #fef2f2; }
.fb-rows { margin-top: 10px; display: grid; gap: 5px; }
.fb-row { font-size: 14px; font-weight: 600; }
.fb-row.ok { color: #15803d; }
.fb-row.bad { color: #dc2626; }
.fb-explain { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.all-done-note {
  margin-top: 14px; padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3;
}
.all-done-note a { color: var(--accent); font-weight: 800; }

/* ============ 听力视频内嵌播放 ============ */
.video-box { margin: 0 0 18px; padding: 14px 16px; border: 1.5px solid color-mix(in srgb, var(--c, #3b82f6) 30%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--c, #3b82f6) 4%, #fff); }
.video-head { font-weight: 800; font-size: 14px; margin-bottom: 10px; color: var(--c, #3b82f6); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.video-frame video::cue {
  background: rgba(0, 0, 0, .72); color: #fff; font-size: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
/* 视频加载状态提示（起播后淡出） */
.video-loading {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #e5e7eb; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  background: rgba(0, 0, 0, .5);
  pointer-events: none;
  transition: opacity .35s ease;
}
.video-loading .vl-switch { pointer-events: auto; }
.video-loading.hide { opacity: 0; pointer-events: none; }
.vl-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  animation: vlspin .8s linear infinite;
}
@keyframes vlspin { to { transform: rotate(360deg); } }
.video-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.video-links a { color: var(--accent); font-weight: 700; text-decoration: none; }
.video-links a:hover { text-decoration: underline; }
.vl-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 字幕语言切换栏 */
.video-subs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.vs-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.vs-btn { border: 1.5px solid #d1d5db; background: #fff; color: #4b5563; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; }
.vs-btn:hover:not(:disabled) { border-color: var(--accent, #3b82f6); color: var(--accent, #3b82f6); }
.vs-btn.on { background: color-mix(in srgb, var(--c, #3b82f6) 12%, #fff); border-color: var(--c, #3b82f6); color: var(--c, #3b82f6); }
.vs-btn:disabled { opacity: .45; cursor: not-allowed; }
.video-tip { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; font-size: 12.5px; line-height: 1.5; }

/* 音频模式封面卡（v12.11）：video-frame 内的氛围卡，含播放键/进度条/时间，加载快于视频 */
#listen-audio { display: none; }
.listen-cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background:
    radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--c, #3b82f6) 30%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--c, #3b82f6) 26%, #0f172a), #0f172a 58%, color-mix(in srgb, var(--c, #3b82f6) 10%, #111827));
  color: #fff;
  padding: 18px;
  text-align: center;
}
.listen-cover .lc-emoji { font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.listen-cover .lc-title {
  font-size: 15px; font-weight: 800; line-height: 1.35;
  max-width: 92%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.listen-cover .lc-play {
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  font-size: 22px; line-height: 1;
  color: #fff;
  background: color-mix(in srgb, var(--c, #3b82f6) 85%, #0f172a);
  box-shadow: 0 6px 18px rgba(59, 130, 246, .45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.listen-cover .lc-play:hover { transform: scale(1.08); }
.listen-cover .lc-progress {
  width: 78%; height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer; position: relative; overflow: hidden;
}
.listen-cover .lc-progress .lc-bar {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: #fff;
  transition: width .15s linear;
}
.listen-cover .lc-time { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; letter-spacing: .5px; }

/* 听力悬浮暂停/播放键（v12.7）：随滚动固定右下，半透明不遮挡视野 */
.listen-float {
  position: fixed;
  right: 20px;
  bottom: 122px;             /* 位于小小白宠物上方，互不遮挡 */
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: #fff;
  background: color-mix(in srgb, var(--accent, #3b82f6) 82%, #0f172a);
  box-shadow: 0 6px 20px rgba(59, 130, 246, .4), 0 2px 6px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 85;               /* 高于小小白(80)，低于遮罩(200) */
  opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(.88);
  transition: opacity .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), background .2s ease;
}
.listen-float.show { opacity: .9; pointer-events: auto; transform: translateY(0) scale(1); }
.listen-float:hover { opacity: 1; transform: scale(1.1); }
.listen-float.playing {
  opacity: .62;
  box-shadow: 0 4px 14px rgba(59, 130, 246, .22);
}
.listen-float.playing:hover { opacity: .95; }
@media (prefers-reduced-motion: reduce) {
  .listen-float { transition: opacity .2s ease; }
}

/* ============ 口语随练随读 · AI 跟读评分 ============ */
.follow-box { padding: 0 28px 30px; }
.fl-list { margin-top: 14px; display: grid; gap: 12px; }
.fl-item {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.fl-item.listening { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .16); }
.fl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fl-speaker {
  font-size: 12px; font-weight: 800; color: #fff; background: #f59e0b;
  border-radius: 999px; padding: 2px 11px;
}
.fl-time { font-size: 12px; color: #9ca3af; font-weight: 600; }
.fl-en { margin-top: 9px; font-size: 15.5px; font-weight: 600; line-height: 1.9; color: #1f2937; }
.wd-chip {
  display: inline-block; padding: 1px 4px; margin: 1px 1px; border-radius: 6px;
  font-size: 15px; font-weight: 700; line-height: 1.5;
}
.wd-chip.good { color: #15803d; background: #f0fdf4; }
.wd-chip.bad { color: #b91c1c; background: #fee2e2; cursor: pointer; border-bottom: 2px solid #dc2626; }
.wd-chip.bad:hover { filter: brightness(.94); }
.fl-extra { margin-top: 7px; font-size: 12.5px; color: #9ca3af; font-style: italic; }
.fl-listen { margin-top: 9px; font-size: 13px; font-weight: 700; color: #b45309; animation: pulse 1.1s ease infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.fl-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fl-actions .btn { min-height: 40px; }
.fl-score { margin-left: auto; font-size: 14px; font-weight: 800; padding: 4px 14px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.fl-score.g-S { background: #fef9c3; color: #a16207; border: 1px solid #fde047; }
.fl-score.g-A { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
.fl-score.g-B { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.fl-score.g-C { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.wc-legend-good { color: #15803d; }
.wc-legend-bad { color: #b91c1c; }

/* ============ 口语跟读：原文内 part 精选块 ============ */
.fl-pick { margin: 16px 0 20px; }
.fl-part {
  border: 1px solid color-mix(in srgb, #4b8dff 38%, var(--line)); border-radius: 12px;
  background: linear-gradient(180deg, #fffbeb, #fff); padding: 14px 16px 16px;
}
.fl-part-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fl-part-title { font-size: 13.5px; font-weight: 800; color: #b45309; }
.fl-part-legend { font-size: 11.5px; color: #9ca3af; font-weight: 600; display: inline-flex; align-items: center; flex-wrap: wrap; }
.fl-part-legend .lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 3px 0 8px; }
.fl-part-legend .lg-good { background: #16a34a; }
.fl-part-legend .lg-bad { background: #dc2626; }
.fl-part-legend .lg-play { background: #9ca3af; }
.fl-avg { margin-left: auto; font-size: 12px; font-weight: 800; color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 999px; padding: 3px 12px; }

/* ============ 每周闯关 ============ */
.chal-hero { padding: 24px 28px; background: linear-gradient(135deg, #fff7ed, #fef2f2 60%, #fff); }
.chal-title { font-size: 24px; font-weight: 800; }
.chal-meta { color: var(--muted); margin-top: 6px; font-size: 14px; }
.chal-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.chal-level { padding: 22px; transition: transform .18s, box-shadow .18s; }
.chal-level:not(.locked):hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(17,24,39,.12); }
.chal-level.locked { opacity: .62; }
.cl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl-name { font-weight: 800; font-size: 17px; }
.cl-stars { font-size: 14px; letter-spacing: 1px; }
.cl-lock { font-size: 18px; }
.cl-desc { color: var(--muted); font-size: 13px; margin: 8px 0 6px; }
.cl-res { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.chal-level .btn { width: 100%; margin-top: 6px; }
.chal-banner {
  margin-top: 16px; padding: 20px 24px; text-align: center; font-weight: 700;
  background: linear-gradient(135deg, #f0fdf4, #fff); border-color: #bbf7d0; font-size: 15px;
}
.chal-quiz { margin-top: 16px; padding: 24px 28px; }
.cq-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cq-lv { font-weight: 800; font-size: 15px; color: var(--c, #6366f1); }
.cq-prog { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cq-bar { height: 8px; background: #f3f4f6; border-radius: 999px; margin: 12px 0 18px; overflow: hidden; }
.cq-bar-fill { height: 100%; background: var(--c, #6366f1); border-radius: 999px; transition: width .4s ease; }
.cq-prompt { font-size: 17px; font-weight: 700; line-height: 1.55; margin-bottom: 6px; }
.cq-feedback { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.cq-feedback.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.cq-feedback.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.chal-result { margin-top: 16px; padding: 34px 28px; text-align: center; }
.chal-result.fail { background: linear-gradient(135deg, #fef2f2, #fff); }
.cr-stars { font-size: 34px; letter-spacing: 3px; }
.cr-score { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 6px; }
.cr-grade { font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.cr-wrong { font-size: 13.5px; color: var(--muted); margin: 12px 0 4px; }
.chal-result .quiz-actions { justify-content: center; }

/* ============ 错题集 ============ */
.wb-head-card { padding: 22px 26px; }
.wb-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wb-title { font-size: 22px; font-weight: 800; }
.wb-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.wb-actions { display: flex; gap: 8px; }
#wb-summary { margin-top: 18px; }
.wb-empty-sum { font-size: 14px; color: var(--muted); background: #f8fafc; border: 1px dashed var(--line); border-radius: 12px; padding: 16px; }
.wb-sum-grid { display: flex; gap: 26px; align-items: flex-start; }
.wb-sum-side { position: relative; text-align: center; flex-shrink: 0; }
.wb-sum-side .track { stroke: #f3f4f6; }
.wb-sum-ring-lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.wb-sum-ring-lbl span { font-size: 11px; color: var(--muted); font-weight: 600; }
.wb-sum-main { flex: 1; min-width: 0; }
.wb-sum-title { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.wb-sum-types { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.wb-chip {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #f3f4f6; color: #374151;
}
.wb-sum-sug { font-size: 13px; color: #7c6f9c; line-height: 1.7; }
.wb-tabs { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.wb-tab {
  border: 1px solid var(--line); background: #fff; padding: 7px 16px;
  border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted);
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.wb-tab.active { background: #111827; color: #fff; border-color: #111827; }
.wb-tab-c {
  font-size: 11px; font-weight: 800; margin-left: 5px; padding: 0 6px;
  border-radius: 999px; background: #fee2e2; color: #b91c1c;
}
.wb-tab.active .wb-tab-c { background: #fff; color: #111827; }
#wb-list { margin-top: 16px; display: grid; gap: 12px; }
.wb-item { padding: 18px 22px; }
.wb-item.mastered { opacity: .65; }
.wbi-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wbi-sec { color: #fff; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.wbi-src { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.wbi-type { font-size: 12px; color: #9ca3af; }
.wbi-mastered { font-size: 12px; font-weight: 800; color: var(--ok); }
.wbi-prompt { font-weight: 700; font-size: 15px; margin-top: 10px; line-height: 1.5; }
.wbi-answers { margin-top: 8px; display: grid; gap: 4px; }
.wbi-actions { display: flex; gap: 8px; margin-top: 12px; }
.wb-empty { padding: 60px 20px; text-align: center; color: var(--muted); font-weight: 700; }
.wb-empty small { font-weight: 500; color: #9ca3af; }

/* ============ 打卡日历 / 今日练习统计 ============ */
.stats-grid.two-eq { grid-template-columns: 1fr 1fr; margin-top: 16px; }
.stats-grid.two-eq .card { padding: 24px 26px; }
.stats-grid.two-eq .card h2 { font-size: 16px; margin-bottom: 16px; }
#stat-checkin, #stat-quiz, #stat-databackup { margin-top: 16px; padding: 24px 26px; }
#stat-databackup h2 { font-size: 16px; margin-bottom: 12px; }
.checkin-hero { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.streak-big { display: flex; align-items: center; gap: 6px; font-size: 30px; color: #c2410c; }
.streak-big b { font-size: 36px; font-variant-numeric: tabular-nums; }
.streak-sub { font-size: 12.5px; color: var(--muted); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #374151; border-radius: 9px;
  background: #f5f6fa; font-variant-numeric: tabular-nums;
}
.cal-cell.pad { background: transparent; }
.cal-cell.on {
  background: linear-gradient(160deg, #fb923c, #ea580c); color: #fff; font-weight: 800;
}
.cal-cell.today { outline: 2.5px solid #6366f1; outline-offset: 1px; }
.cal-cell.future { opacity: .38; }
.cal-legend { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.qs-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; font-weight: 600;
}
.qs-row:last-of-type { border-bottom: none; }
.qs-none { color: #9ca3af; font-weight: 600; font-size: 13px; }
.qs-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.qs-score.g-S { color: #a16207; }
.qs-score.g-A { color: #1d4ed8; }
.qs-score.g-B { color: #c2410c; }
.qs-score.g-C { color: #b91c1c; }
.qs-alldone { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #3730a3; background: #eef2ff; padding: 10px 14px; border-radius: 10px; }
.qs-alldone.dim { color: var(--muted); background: #f8fafc; font-weight: 600; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: #111827; color: #fff; font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 100; animation: rise .35s ease;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- 点击查词卡片 ---------- */
.dict-pop {
  position: fixed; z-index: 90; max-width: 320px; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(17, 24, 39, .18); padding: 12px 14px;
  font-size: 13.5px; animation: dp-in .18s ease;
}
@keyframes dp-in { from { opacity: 0; transform: translateY(4px); } }
.dp-word { font-size: 16.5px; font-weight: 800; color: var(--text); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dp-phon { font-size: 12.5px; font-weight: 500; color: #9ca3af; font-family: "Segoe UI", sans-serif; }
.dp-speak, .vb-speak {
  border: 1px solid #e5e7eb; background: #f3f4f6; color: var(--text);
  width: 26px; height: 26px; border-radius: 50%; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0; line-height: 1;
}
.dp-speak:hover, .vb-speak:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.vb-speak { width: 24px; height: 24px; font-size: 12px; align-self: center; }
.dp-pos { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--accent);
  background: #eef2ff; border-radius: 6px; padding: 1px 8px; }
.dp-cn { margin-top: 7px; line-height: 1.55; color: var(--text); }
.dp-cn.muted { color: var(--muted); }
.dp-save { margin-top: 10px; border: 1px solid var(--accent); background: #eef2ff; color: var(--accent);
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.dp-save:hover { background: var(--accent); color: #fff; }

/* ---------- 生词本 ---------- */
.vb-head { padding: 22px 24px; margin-bottom: 16px; }
.vb-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vb-title { font-size: 22px; font-weight: 800; }
.vb-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.vb-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dict-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.dict-toggle input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.vb-tip { margin-top: 12px; background: #fef9ec; border: 1px solid #fde68a; color: #92400e;
  font-size: 12.5px; padding: 9px 12px; border-radius: 10px; line-height: 1.5; }
.vb-item { padding: 16px 20px; margin-bottom: 12px; position: relative; }
.vb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vb-w { font-size: 17px; font-weight: 800; color: var(--text); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vb-def { margin-top: 6px; color: var(--text); line-height: 1.55; }
.vb-pos { display: inline-block; margin-right: 6px; font-size: 12px; font-weight: 700; color: var(--accent);
  background: #eef2ff; border-radius: 6px; padding: 1px 7px; vertical-align: 1px; }
.vb-meta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.vb-del { border: 1px solid #fecaca; background: #fef2f2; color: #dc2626; font-size: 12.5px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.vb-del:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.empty-tip { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 2; }

@media (max-width: 760px) {
  .plan { grid-template-columns: 1fr; }
  .stats-grid, .stats-grid.two-eq { grid-template-columns: 1fr; }
  .hero-body { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px 20px; }
  .hero h1 { font-size: 20px; }
  .hero-stats { flex: none; width: 100%; }
  .hs-dots { flex-wrap: wrap; }
  .practice-bar { gap: 10px; padding: 12px 14px; }
  .pb-tip { margin-left: 0; width: 100%; }
  .home-entry { flex-direction: column; }
  .home-entry .btn { width: 100%; }
  .article-meta, article { padding-left: 18px; padding-right: 18px; }
  .practice-box { padding-left: 16px; padding-right: 16px; }
  .follow-box { padding-left: 16px; padding-right: 16px; }
  .chal-levels { grid-template-columns: 1fr; }
  .wb-sum-grid { flex-direction: column; align-items: center; }
  .wb-sum-main { width: 100%; }
  .wb-head-row { flex-direction: column; }
  .bdg-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bdg-head { padding: 18px 16px; }
  .vb-head { padding: 18px 16px; }
  .vb-head-row { flex-direction: column; }
  .dict-pop { max-width: 260px; }
  .egg-actions { flex-direction: column; }
  .egg-actions .btn { width: 100%; }
  .cal-grid { gap: 4px; }
  .xiaobai-pet { left: 16px !important; right: auto !important; }
  .xb-panel { right: 0; left: auto; transform-origin: bottom left; }
}

/* ---------- 顶栏响应式 ---------- */
@media (max-width: 760px) {
  .topbar-inner { padding: 9px 14px; gap: 10px; }
  .brand-tag { display: none; }
  .nav { gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { padding: 7px 11px; font-size: 13px; }
}
@media (max-width: 430px) {
  .brand-name { font-size: 16px; }
  .brand-logo { width: 27px; height: 27px; font-size: 14px; }
}

/* ============ 暖焰进度系统 v2 ============ */
:root {
  --flame: #f97316;
  --flame-hot: #ef4444;
  --ember: #f59e0b;
  --speaking-c: #f97316;
  --listening-c: #e7a51a;
  --reading-c: #0f9f8a;
}
.hs-dots .wd.on {
  background: linear-gradient(145deg, #fb923c, #ea580c) !important;
  color: #fff !important;
  box-shadow: 0 2px 7px rgba(234,88,12,.22);
}
.hs-dots .wd.today {
  box-shadow: inset 0 0 0 2px #f97316, 0 0 0 2px rgba(249,115,22,.16) !important;
}
.hs-row.streak-row { background: linear-gradient(135deg, #fff7ed, rgba(255,255,255,.78)) !important; border-color: #fed7aa !important; }
.hs-row.time-row { background: linear-gradient(135deg, #fffaf0, rgba(255,255,255,.78)) !important; border-color: #f5d48b !important; }
.hs-row.goal-row { background: linear-gradient(135deg, #f7fbfa, rgba(255,255,255,.78)) !important; }
.hs-bar .hb-track { background: #edf0f2 !important; }
.hs-bar .hb-fill { background: var(--sc, var(--flame)) !important; }
.hs-bar:nth-child(1) .hb-fill { background: linear-gradient(90deg, #fdba74, #f97316) !important; }
.hs-bar:nth-child(2) .hb-fill { background: linear-gradient(90deg, #f7c75e, #d8940d) !important; }
.hs-bar:nth-child(3) .hb-fill { background: linear-gradient(90deg, #5cc9b6, #0f9f8a) !important; }
.hs-bar.done .hb-fill { background: linear-gradient(90deg, #4ade80, #16a34a) !important; }
.task-card { border-color: color-mix(in srgb, var(--sc) 26%, #d8dee5) !important; background: linear-gradient(145deg, color-mix(in srgb, var(--sc) 11%, #fff), #fff 70%) !important; }
.task-card::before { content: "" !important; background: var(--sc) !important; }
.task-card .t-name, .task-card .t-enter { color: color-mix(in srgb, var(--sc) 72%, #17202b) !important; }
.task-card .ring .bar { stroke: var(--sc) !important; }
.task-card.done .ring .bar { stroke: #22a06b !important; }
.task-card.done { border-color: #86cfa8 !important; background: linear-gradient(145deg, #effaf3, #fff 70%) !important; }

/* ---------- 练习挑战卡 ---------- */
.quiz-kicker { color: var(--c); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.quiz-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; }
.sfx-toggle { border: 1px solid color-mix(in srgb, var(--c) 28%, #dce2e8); background: rgba(255,255,255,.76); color: var(--c); border-radius: 999px; padding: 5px 10px; font: 700 12px inherit; cursor: pointer; white-space: nowrap; }
.sfx-toggle:hover { background: color-mix(in srgb, var(--c) 10%, #fff); }
.quiz-progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 12px; }
.quiz-progress-label b { color: var(--c); }
.quiz-mini-track { height: 5px; background: color-mix(in srgb, var(--c) 10%, #fff); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.quiz-mini-track span { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); border-radius: inherit; transition: width .25s ease; }
.q-focus { display: inline-block; margin-right: 7px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-size: 11px; font-weight: 800; vertical-align: 2px; }
.feedback-summary { margin: 12px 0 2px; padding: 10px 13px; border-radius: 10px; background: color-mix(in srgb, var(--c) 9%, #fff); color: color-mix(in srgb, var(--c) 72%, #1f2937); font-size: 13px; font-weight: 800; }
.q-item.fb { animation: feedback-rise .42s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--feedback-i, 0) * 110ms); }
.fb-evidence { margin-top: 7px; padding-top: 7px; border-top: 1px dashed rgba(25,32,42,.12); color: #7b8794; font-size: 12px; line-height: 1.5; font-weight: 600; }
@keyframes feedback-rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.q-item.fb.ok { box-shadow: inset 4px 0 0 #f59e0b; }
.q-item.fb.bad { box-shadow: inset 4px 0 0 #ef4444; animation-name: feedback-shake; }
@keyframes feedback-shake { 0% { opacity: 0; transform: translateX(9px); } 55% { transform: translateX(-3px); } 100% { opacity: 1; transform: translateX(0); } }
.quiz-card.done { background: linear-gradient(145deg, color-mix(in srgb, var(--c) 7%, #fff), #fff 72%) !important; }
.quiz-card.done .q-item.fb.ok { background: #fffaf0; }
.quiz-card.done .q-item.fb.bad { background: #fff6f4; }
@media (prefers-reduced-motion: reduce) {
  .q-item.fb { animation: none; }
  .hs-icon.flame-lv2 svg, .hs-icon.flame-lv3 svg { animation: none; }
}

/* ============ 深海钴蓝最终层 ============ */
:root {
  --bg: #eef3fa;
  --paper: #f7faff;
  --card: rgba(255,255,255,.94);
  --card-solid: #fff;
  --text: #10233f;
  --muted: #60708a;
  --muted-2: #8292aa;
  --line: #d8e1ee;
  --line-strong: #b8c9e0;
  --accent: #2458c6;
  --accent-2: #4b8dff;
  --accent-soft: #e5edff;
  --sp: #2f6fff;
  --li: #4b8dff;
  --re: #75aaff;
  --ok: #1e9bd7;
  --danger: #c2415a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,35,63,.04), 0 14px 32px rgba(31,72,132,.09);
  --shadow-hover: 0 6px 14px rgba(31,72,132,.08), 0 22px 46px rgba(31,72,132,.16);
  --focus: 0 0 0 4px rgba(47,111,255,.22);
}
html { background: #eef3fa; }
body {
  background: radial-gradient(circle at 88% -10%, rgba(85,139,255,.16), transparent 32rem), linear-gradient(180deg,#f4f7fc 0%,#eef3fa 52%,#eaf1fa 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body::before { opacity: 0; }
button:focus-visible, select:focus-visible, input:focus-visible, .brand:focus-visible { outline: 3px solid rgba(47,111,255,.38); outline-offset: 3px; box-shadow: none; }
::selection { background: #c9dbff; color: #10233f; }
::-webkit-scrollbar-track { background: #e8eef7; }
::-webkit-scrollbar-thumb { background: #a8bbd8; border-color: #e8eef7; }
.topbar { background: rgba(248,251,255,.88); border-bottom-color: rgba(181,198,223,.72); box-shadow: 0 8px 24px rgba(36,88,198,.05); }
.topbar-inner { max-width: 1180px; padding: 12px 28px; }
.brand-logo { background: linear-gradient(145deg,#193b91,#2f6fff); box-shadow: 0 5px 14px rgba(36,88,198,.28); }
.brand-name { color: #10233f; letter-spacing: -.02em; }
.brand-tag { color: #2458c6; background: #e5edff; }
.nav-btn { color: #60708a; }
.nav-btn:hover { color: #173a78; background: #e6eefb; }
.nav-btn.active { background: #193f9e; box-shadow: 0 6px 16px rgba(25,63,158,.24); }
.nav-dropdown { background: rgba(255,255,255,.97); border-color: #cfdbec; box-shadow: var(--shadow-hover); }
.rate-opt.on { background: #2458c6; }
.container { max-width: 1180px; padding: 36px 28px 72px; }
.card { border-color: rgba(203,216,234,.86); box-shadow: var(--shadow); }
.section-title { color: #10233f; font-size: 20px; letter-spacing: -.02em; margin-top: 38px; }
.hero { border: 0; box-shadow: 0 16px 42px rgba(31,72,132,.14); }
.hero-body { min-height: 330px; padding: 38px 40px; background: radial-gradient(circle at 86% 12%,rgba(128,190,255,.36),transparent 20rem),linear-gradient(122deg,#f8fbff 0%,#edf4ff 52%,#dceaff 100%); }
.hero-body::before { opacity: .24; filter: saturate(.9) contrast(1.02); }
.hero-body::after { background: linear-gradient(102deg,rgba(248,251,255,.96),rgba(241,247,255,.72) 58%,rgba(224,237,255,.48)); }
.hero-left { max-width: 660px; }
.hero-date span:first-child, .hero-goal { color: #2458c6; }
.hero h1 { max-width: 650px; color: #10233f; font-size: clamp(28px,3.2vw,45px); line-height: 1.12; letter-spacing: -.045em; }
.hero-sub { max-width: 60ch; color: #506583; font-size: 15px; }
.hero-movie { color: #2458c6; background: rgba(229,237,255,.84); }
.hero-stats { flex-basis: 320px; gap: 12px; }
.hs-row, .hs-row.streak-row, .hs-row.time-row, .hs-row.goal-row { background: rgba(255,255,255,.8); border-color: #d4e0f0; box-shadow: 0 5px 18px rgba(46,83,138,.07); }
.hs-dots .wd.on { background: #2f6fff; }
.hs-dots .wd.today { box-shadow: inset 0 0 0 2px #2458c6; }
.hs-bar .hb-track { background: #dce6f4; }
.hs-bar .hb-fill { background: #4b8dff !important; }
.hs-bar.done .hb-fill { background: #1e9bd7 !important; }
.hs-bar.done .hb-val, .hs-bar .hb-ok { color: #1486b8; }
.egg-box { border-color: #a8c5ff; background: rgba(237,244,255,.82); }
.egg-box.done { border-color: #8cc9e5; background: rgba(232,247,255,.84); }
.egg-main, .egg-box.done .egg-main, .egg-arrow { color: #2458c6; }
.plan-hint { color: #657894; }
.task-card { border-color: #d4e0f0; background: rgba(255,255,255,.9); box-shadow: 0 10px 26px rgba(38,78,132,.08); }
.task-card:hover { border-color: #9bb8eb; }
.task-card.done { border-color: #9bd2e8; background: linear-gradient(135deg,#eefaff,#fff 72%); }
.task-card.done::before { background: #1e9bd7; }
.t-status.near, .t-status.done, .t-enter { color: #1486b8; }
.btn { min-height: 42px; border-radius: 999px; font-weight: 750; }
.primary-btn { background: #193f9e; box-shadow: 0 8px 18px rgba(25,63,158,.23); }
.primary-btn:hover { background: #12327f; }
.ghost-btn { background: rgba(255,255,255,.7); color: #29466e; border-color: #cbd9eb; }
.ghost-btn:hover { background: #eaf1fc; border-color: #94b2e4; color: #173a78; }
.practice-bar, .reader, .wb-head-card, .vb-head, .bdg-head, .chal-hero, .stat-card { border-color: #d4e0f0; }
.timer-pill { color: #1486b8; background: #e8f8ff; border-color: #9bd2e8; }
.timer-pill .dot { background: #1e9bd7; }
.timer-btn { border-color: #9bd2e8; color: #1486b8; background: #fff; }
.practice-progress { background: #e7f5fb; border-color: #a6d9eb; }
.pp-fill, .practice-progress.done .pp-fill { background: linear-gradient(90deg,#2f6fff,#1e9bd7) !important; }
.tab-btn.active { color: #2458c6; border-bottom-color: #2458c6; }
.tab-btn.active .tab-time { background: #e5edff; color: #2458c6; }
.sc-hero, .sc-daily-banner { border-color: #d4e0f0; background: linear-gradient(135deg,rgba(255,255,255,.92),rgba(231,240,255,.86)); }
.sc-card-cover { background: linear-gradient(135deg,#dce9fb,#edf4ff); }
.sc-bubble.you, .sc-bubble.you.great { background: #e8f1ff; border-color: #b8cdf1; }
.sc-daily-banner { border-color: #a9c2ee; }
.xiaobai-pet .xb-name { color: #193f9e; }
.xb-mood-fill { background: linear-gradient(90deg,#5b94ff,#193f9e); }
.footer { color: #7183a0; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; } }
@media (max-width: 760px) { .container { padding: 24px 14px 58px; } .topbar-inner { padding: 10px 14px; } .hero-body { padding: 28px 20px; } .hero h1 { font-size: 30px; } .task-card { min-height: 128px; padding: 18px; } }

/* ============ 深海钴蓝视觉系统 v1 ============
   统一学习工具的视觉语言：冷白内容面、深墨文字、单一钴蓝行动色。
   业务状态与板块区分只使用同一蓝色家族的明度变化，避免首页出现多套品牌色。
*/
:root {
  --bg: #eef3fa;
  --card: #ffffff;
  --text: #10233f;
  --muted: #60708a;
  --line: #d8e1ee;
  --accent: #2458c6;
  --accent-soft: #e5edff;
  --sp: #2f6fff;
  --li: #4b8dff;
  --re: #75aaff;
  --ok: #1e9bd7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,35,63,.04), 0 14px 32px rgba(31,72,132,.09);
  --shadow-hover: 0 6px 14px rgba(31,72,132,.08), 0 22px 46px rgba(31,72,132,.16);
}

::selection { background: #c9dbff; color: #10233f; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #e8eef7; }
::-webkit-scrollbar-thumb { background: #a8bbd8; border: 2px solid #e8eef7; border-radius: 999px; }
*:focus-visible { outline: 3px solid rgba(47,111,255,.38); outline-offset: 3px; }

body {
  background:
    radial-gradient(circle at 88% -10%, rgba(85,139,255,.16), transparent 32rem),
    linear-gradient(180deg, #f4f7fc 0%, var(--bg) 52%, #eaf1fa 100%);
}

.topbar {
  background: rgba(248,251,255,.86);
  border-bottom-color: rgba(181,198,223,.72);
  box-shadow: 0 8px 24px rgba(36,88,198,.05);
}
.topbar-inner { max-width: 1180px; padding: 12px 28px; }
.brand-logo {
  background: linear-gradient(145deg, #193b91, #2f6fff);
  box-shadow: 0 5px 14px rgba(36,88,198,.28);
}
.brand-name { color: #10233f; letter-spacing: -.02em; }
.brand-tag { color: #2458c6; background: #e5edff; }
.nav { gap: 6px; }
.nav-btn { color: #60708a; }
.nav-btn:hover { color: #173a78; background: #e6eefb; }
.nav-btn.active { background: #193f9e; box-shadow: 0 6px 16px rgba(25,63,158,.24); }
.nav-dropdown { background: rgba(255,255,255,.96); border-color: #cfdbec; box-shadow: var(--shadow-hover); }
.rate-opt.on { background: #2458c6; }

.container { max-width: 1180px; padding: 36px 28px 72px; }
.card { border-color: rgba(203,216,234,.86); box-shadow: var(--shadow); }
.section-title { color: #10233f; font-size: 20px; letter-spacing: -.02em; margin-top: 38px; }

.hero { border: 0; box-shadow: 0 16px 42px rgba(31,72,132,.14); }
.hero-body {
  min-height: 330px;
  padding: 38px 40px;
  background:
    radial-gradient(circle at 86% 12%, rgba(128,190,255,.36), transparent 20rem),
    linear-gradient(122deg, #f8fbff 0%, #edf4ff 52%, #dceaff 100%);
}
.hero-body::before { opacity: .24; filter: saturate(.9) contrast(1.02); }
.hero-body::after { background: linear-gradient(102deg, rgba(248,251,255,.96), rgba(241,247,255,.72) 58%, rgba(224,237,255,.48)); }
.hero-left { max-width: 660px; }
.hero-date span:first-child { color: #2458c6; }
.hero h1 { max-width: 650px; color: #10233f; font-size: clamp(28px, 3.2vw, 45px); line-height: 1.12; letter-spacing: -.045em; }
.hero-sub { max-width: 60ch; color: #506583; font-size: 15px; }
.hero-goal { color: #2458c6; }
.hero-movie { color: #2458c6; background: rgba(229,237,255,.84); }
.hero-stats { flex-basis: 320px; gap: 12px; }
.hs-row { background: rgba(255,255,255,.76); border-color: #d4e0f0; box-shadow: 0 5px 18px rgba(46,83,138,.07); }
.hs-row.streak-row, .hs-row.time-row, .hs-row.goal-row { background: rgba(255,255,255,.78); border-color: #d4e0f0; }
.hs-dots .wd.on { background: #2f6fff; }
.hs-dots .wd.today { box-shadow: inset 0 0 0 2px #2458c6; }
.hs-bar .hb-track { background: #dce6f4; }
.hs-bar .hb-fill { background: #4b8dff !important; }
.hs-bar.done .hb-fill { background: #1e9bd7 !important; }
.hs-bar.done .hb-val, .hs-bar .hb-ok { color: #1486b8; }

.egg-box { border-color: #a8c5ff; background: rgba(237,244,255,.78); }
.egg-box.done { border-color: #8cc9e5; background: rgba(232,247,255,.82); }
.egg-main, .egg-box.done .egg-main { color: #2458c6; }
.egg-arrow { color: #76a1e9; }

.plan-hint { color: #657894; }
.plan { gap: 18px; }
.task-card { border-color: #d4e0f0; background: rgba(255,255,255,.88); box-shadow: 0 10px 26px rgba(38,78,132,.08); }
.task-card::before { background: var(--sc, var(--accent)); }
.task-card:hover { border-color: #9bb8eb; }
.task-card.done { border-color: #9bd2e8; background: linear-gradient(135deg, #eefaff, #fff 72%); }
.task-card.done::before { background: #1e9bd7; }
.t-status.near, .t-status.done { color: #1486b8; }
.t-enter { color: #2458c6; }

.btn { min-height: 42px; border-radius: 999px; font-weight: 750; }
.primary-btn { background: #193f9e; box-shadow: 0 8px 18px rgba(25,63,158,.23); }
.primary-btn:hover { background: #12327f; box-shadow: 0 11px 24px rgba(25,63,158,.3); }
.ghost-btn { background: rgba(255,255,255,.7); color: #29466e; border-color: #cbd9eb; }
.ghost-btn:hover { background: #eaf1fc; border-color: #94b2e4; color: #173a78; }

.practice-bar { background: rgba(255,255,255,.88); border-color: #d4e0f0; }
.timer-pill { color: #1486b8; background: #e8f8ff; border-color: #9bd2e8; }
.timer-pill .dot { background: #1e9bd7; }
.timer-btn { border-color: #9bd2e8; color: #1486b8; background: #fff; }
.timer-btn:hover { background: #e8f8ff; }
.practice-progress { background: #e7f5fb; border-color: #a6d9eb; }
.pp-fill, .practice-progress.done .pp-fill { background: linear-gradient(90deg, #2f6fff, #1e9bd7) !important; }
.practice-progress.done .pp-meta { color: #1486b8; }
.tabs { border-bottom-color: #d4e0f0; }
.tab-btn.active { color: #2458c6; border-bottom-color: #2458c6; }
.tab-btn.active .tab-time { background: #e5edff; color: #2458c6; }

.reader, .wb-head-card, .vb-head, .bdg-head, .chal-hero, .stat-card { border-color: #d4e0f0; }
.readonly-badge { color: #2458c6; background: #e5edff; border-color: #b8cdf1; }
.footer { color: #7183a0; }

.sc-hero, .sc-daily-banner { border-color: #d4e0f0; background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(231,240,255,.86)); }
.sc-card-cover { background: linear-gradient(135deg, #dce9fb, #edf4ff); }
.sc-bubble.you, .sc-bubble.you.great { background: #e8f1ff; border-color: #b8cdf1; }
.sc-daily-banner { border-color: #a9c2ee; }

.xiaobai-pet .xb-name { color: #193f9e; }
.xb-mood-fill { background: linear-gradient(90deg, #5b94ff, #193f9e); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 920px) {
  .topbar-inner { padding-left: 22px; padding-right: 22px; }
  .hero-body { padding: 30px; }
}

@media (max-width: 760px) {
  .container { padding: 24px 14px 58px; }
  .topbar-inner { padding: 10px 14px; }
  .hero-body { padding: 28px 20px; }
  .hero h1 { font-size: 30px; }
  .task-card { min-height: 128px; padding: 18px; }
  .home-entry { margin-top: 18px; }
}

/* ============ 小小白 · 学习伙伴宠物 ============ */
.xiaobai-pet {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 80;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  user-select: none;
}
.xb-anchor {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 86px;
  height: 86px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.xb-avatar {
  position: absolute;
  inset: 0;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.xb-avatar:hover { transform: scale(1.08); }
.xb-avatar-active { transform: scale(1.12); }
.xb-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: url(#xb-shadow);
}

/* 通用动画：呼吸浮动 */
.xb-state-idle .xb-body { animation: xb-breathe 2.8s ease-in-out infinite; }
@keyframes xb-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

/* 开心：跳跃 */
.xb-state-happy { animation: xb-jump .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes xb-jump {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-16px) scale(1.05); }
}

/* 欢呼：举手 + 摇摆 */
.xb-state-cheer .xb-hand-l { animation: xb-wave-l 1s ease-in-out infinite; }
.xb-state-cheer .xb-hand-r { animation: xb-wave-r 1s ease-in-out infinite; }
.xb-state-cheer .xb-body { animation: xb-bounce 1s ease-in-out infinite; }
@keyframes xb-wave-l {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(-18deg); }
}
@keyframes xb-wave-r {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(18deg); }
}
@keyframes xb-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 学习：点头 */
.xb-state-study .xb-body { animation: xb-nod 2.2s ease-in-out infinite; }
@keyframes xb-nod {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(2deg); }
}

/* 困倦：打盹 */
.xb-state-sleepy .xb-body { animation: xb-doze 2.5s ease-in-out infinite; }
.xb-state-sleepy .xb-zzz { animation: xb-zzz-float 2s ease-in-out infinite; }
@keyframes xb-doze {
  0%, 100% { transform: rotate(0) translateY(0); }
  50% { transform: rotate(-3deg) translateY(2px); }
}
@keyframes xb-zzz-float {
  0%, 100% { opacity: .6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

/* 惊讶：抖动 */
.xb-state-surprise { animation: xb-shake .35s ease-in-out; }
@keyframes xb-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* 难过：下垂 */
.xb-state-sad .xb-body { transform: translateY(4px); }
.xb-state-sad .xb-hand-l,
.xb-state-sad .xb-hand-r { transform: translateY(8px); }

/* 吃：咀嚼 */
.xb-state-eat .xb-mouth-smile { animation: xb-chew .6s ease-in-out infinite; }
.xb-state-eat .xb-food { animation: xb-eat-move 1s ease-in-out infinite; }
@keyframes xb-chew {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.75); }
}
@keyframes xb-eat-move {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, 2px); }
}

/* 气泡 */
.xb-bubble {
  position: absolute;
  right: 92px;
  bottom: 50px;
  min-width: 160px;
  max-width: 260px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 8px 24px rgba(17,24,39,.14);
  border: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.55;
  color: #374151;
  z-index: 2;
  animation: xb-pop-in .28s cubic-bezier(.34,1.56,.64,1);
}
.xb-bubble-out { animation: xb-pop-out .28s ease forwards; }
@keyframes xb-pop-in {
  from { opacity: 0; transform: scale(.75) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes xb-pop-out {
  to { opacity: 0; transform: scale(.85) translateY(6px); }
}
.xb-bubble-tail {
  position: absolute;
  right: -7px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  transform: rotate(-45deg);
}

/* 展开面板 */
.xb-panel {
  position: absolute;
  right: 92px;
  bottom: 0;
  width: 210px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(17,24,39,.16);
  border: 1px solid #e5e7eb;
  animation: xb-pop-in .28s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
}
.xb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.xb-name { font-size: 15px; font-weight: 800; color: #1f2937; }
.xb-lv {
  font-size: 11px; font-weight: 800; color: var(--accent);
  background: #eef2ff; padding: 2px 8px; border-radius: 999px;
}
.xb-mood-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.xb-mood-fill {
  height: 100%;
  width: 60%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width .4s ease;
}
.xb-mood-lbl {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 10px;
}
.xb-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.xb-btn {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 10px;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.xb-btn:hover {
  background: #eef2ff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.xb-tip {
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}
.xb-close {
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  display: none;
  transition: transform .2s;
}
.xb-anchor:has(.xb-panel:not([hidden])) .xb-close { display: block; }

/* 装饰元素过渡 */
.xb-eyes, .xb-mouth, .xb-glasses, .xb-food, .xb-stars, .xb-zzz {
  transition: opacity .2s;
}
.xb-hand {
  transform-origin: center center;
  transition: transform .2s;
}

/* 移动端适配 */
@media (max-width: 760px) {
  .xb-anchor { width: 72px; height: 72px; right: 12px; bottom: 12px; }
  .xb-bubble { right: 78px; max-width: 210px; font-size: 12px; }
  .xb-panel { right: 78px; width: 190px; }
}

/* ============ 账号系统 ============ */
.acc-bar { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.acc-btn { white-space: nowrap; font-size: 13px; }
.acc-user {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft);
}
.acc-user b { color: var(--accent); font-size: 13px; }
.acc-sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; }
.acc-sync-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.acc-menu-wrap { position: relative; }
.acc-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 120;
  background: var(--card); border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12); min-width: 210px; padding: 6px; overflow: hidden;
}
.acc-menu-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 9px 12px; font-size: 13px; color: var(--text); cursor: pointer; border-radius: 8px;
}
.acc-menu-item:hover { background: var(--accent-soft); }
.acc-menu-item.danger { color: #dc2626; }
.acc-menu-item.danger:hover { background: #fef2f2; }
.acc-menu-hint { font-size: 11px; color: var(--muted); cursor: default; border-bottom: 1px solid var(--border, #e5e7eb); border-radius: 0; margin-bottom: 4px; }
.acc-menu-hint:hover { background: none; }

/* 登录/注册模态框 */
.acc-modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.acc-modal {
  position: relative; background: var(--card); border-radius: 18px; width: 100%; max-width: 380px;
  padding: 28px 26px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.acc-modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1;
}
.acc-modal h3 { margin: 0 0 4px; font-size: 20px; color: var(--text); }
.acc-modal-sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.acc-field { display: block; margin-bottom: 14px; }
.acc-field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.acc-field input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border, #d1d5db);
  border-radius: 10px; font-size: 14px; background: #fff; color: var(--text); outline: none;
}
.acc-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.acc-submit { width: 100%; margin-top: 6px; }
.acc-switch { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.acc-switch a { color: var(--accent); font-weight: 600; text-decoration: none; margin-left: 4px; }
.acc-error {
  margin-top: 12px; padding: 9px 12px; background: #fef2f2; color: #dc2626;
  border-radius: 8px; font-size: 13px; border: 1px solid #fecaca;
}
@media (max-width: 760px) {
  .acc-bar { margin-left: 4px; }
  .acc-user { display: none; }
}

/* =====================================================================
 * 沉浸式场景对话（scenes.js）
 * ===================================================================== */
#view-scenes { padding-bottom: 40px; }

/* ---- 场景列表头 ---- */
.sc-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 26px; margin: 6px 0 20px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff);
}
.sc-hero-icon { font-size: 40px; }
.sc-hero-body { flex: 1; }
.sc-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; color: var(--text); }
.sc-sub { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.6; }
.sc-progress-card {
  text-align: center; background: #fff; border-radius: 12px;
  padding: 12px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.sc-progress-label { font-size: 12px; color: #6b7280; }
.sc-progress-num { font-size: 22px; font-weight: 800; color: var(--accent); }

/* ---- 场景卡片网格 ---- */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sc-card {
  background: var(--card); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.sc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(79,70,229,.12); }
.sc-card.done { border-color: #22c55e; }
.sc-card-cover {
  height: 132px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; background: linear-gradient(135deg, #eef2ff, #dbeafe);
  background-size: cover; background-position: center; position: relative; overflow: hidden;
}
.sc-card-cover.has-img { font-size: 0; }
.sc-card-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.sc-card-cover-img.loaded { opacity: 1; }
.sc-card-cover.has-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
}
.sc-card-cover-icon { position: relative; z-index: 1; }
.sc-card-cover.has-img .sc-card-cover-icon {
  position: absolute; bottom: 8px; left: 10px; font-size: 26px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
.sc-card.done .sc-card-cover { background: linear-gradient(135deg, #dcfce7, #d1fae5); }
.sc-card-body { padding: 14px 16px 16px; }
.sc-card-tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.sc-tag {
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 9px;
}
.sc-tag-done { color: #16a34a; background: #dcfce7; }
.sc-card-title { font-size: 17px; font-weight: 800; color: var(--text); }
.sc-card-en { font-size: 13px; color: #6b7280; margin: 2px 0 6px; }
.sc-card-tagline { font-size: 12px; color: #9ca3af; margin-bottom: 10px; }
.sc-card-points { font-size: 12px; color: #d97706; font-weight: 600; margin-bottom: 12px; }
.sc-card-btn {
  display: block; text-align: center; padding: 9px; border-radius: 9px;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--accent);
}
.sc-card.done .sc-card-btn { background: #22c55e; }

/* ---- 对话界面 ---- */
.sc-chat-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 4px; margin-bottom: 6px;
}
.sc-chat-title { font-size: 16px; font-weight: 800; color: var(--text); flex: 1; }
.sc-cn-toggle {
  flex: none; border: 1px solid var(--line); background: #fff; color: #6b7280;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.sc-cn-toggle:hover { border-color: var(--accent); color: var(--accent); }
.sc-cn-toggle.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.sc-chat-progress { display: flex; align-items: center; gap: 8px; }
.sc-progress-bar { width: 120px; height: 8px; background: #eef0f7; border-radius: 99px; overflow: hidden; }
.sc-progress-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.sc-chat-progress span { font-size: 12px; color: #6b7280; }

.sc-chat-stage {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; min-height: 380px; max-height: 560px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.sc-chat-stage::-webkit-scrollbar { width: 8px; }
.sc-chat-stage::-webkit-scrollbar-thumb { background: #e0e3ee; border-radius: 4px; }

/* 气泡 */
.sc-bubble {
  max-width: 82%; padding: 12px 16px; border-radius: 14px;
  animation: scPop .25s ease;
}
@keyframes scPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sc-bubble.npc { align-self: flex-start; background: #f3f4f8; border-top-left-radius: 4px; }
.sc-bubble.npc.broadcast { background: #fef3c7; }
.sc-bubble.you {
  align-self: flex-end; background: var(--accent-soft);
  border-top-right-radius: 4px; border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff);
}
.sc-bubble.you.great { background: #dcfce7; border-color: #22c55e; }
.sc-bubble-who { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.sc-bubble.you .sc-bubble-who { color: #16a34a; }
.sc-bubble-en { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.55; }
.sc-bubble-cn { font-size: 13px; color: #6b7280; margin-top: 5px; line-height: 1.5; display: none; }
.sc-chat-stage.cn-on .sc-bubble-cn { display: block; }
.sc-bubble-audio {
  display: inline-block; margin-top: 8px; font-size: 12px; cursor: pointer;
  color: var(--accent); background: #fff; border-radius: 6px; padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff);
}
.sc-bubble-audio:hover { background: var(--accent-soft); }

/* 用户选项 */
.sc-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.sc-hint { font-size: 12px; color: #9ca3af; margin-bottom: 2px; }
.sc-choice {
  display: flex; gap: 12px; align-items: center; text-align: left;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 11px 14px; cursor: pointer; transition: border-color .15s, background .15s;
  width: 100%;
}
.sc-choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.sc-choice:disabled { cursor: default; opacity: .86; }
.sc-choice.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.sc-choice-picked { margin-left: auto; flex: none; font-size: 11px; font-weight: 800; color: var(--accent); }
.sc-choice-letter {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
  color: var(--accent); background: var(--accent-soft);
}
.sc-choice-text { display: flex; flex-direction: column; gap: 2px; }
.sc-choice-en { font-size: 14px; font-weight: 700; color: var(--text); }
.sc-choice-cn { font-size: 12.5px; color: #6b7280; display: none; }
.sc-chat-stage.cn-on .sc-choice-cn { display: block; }

/* 重点词 */
.sc-vocab { margin-top: 18px; }
.sc-vocab-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.sc-vocab-hint { font-size: 11px; font-weight: 400; color: #9ca3af; }
.sc-vocab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-vchip {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px;
  transition: border-color .15s, background .15s;
}
.sc-vchip:hover { border-color: var(--accent); background: var(--accent-soft); }
.sc-vchip-w { font-weight: 700; color: var(--text); font-size: 13px; }
.sc-vchip-pos { font-size: 10px; color: #9ca3af; font-weight: 600; }
.sc-vchip-cn { font-size: 12px; color: #6b7280; }

/* ---- 完成结果页 ---- */
.sc-result { text-align: center; padding: 40px 30px; }
.sc-result-icon { font-size: 56px; margin-bottom: 10px; }
.sc-result-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.sc-result-sub { color: #6b7280; margin: 0 0 24px; }
.sc-result-stats { display: flex; justify-content: center; gap: 20px; margin-bottom: 22px; }
.sc-stat {
  background: var(--accent-soft); border-radius: 12px; padding: 14px 22px; min-width: 90px;
}
.sc-stat b { display: block; font-size: 22px; color: var(--accent); }
.sc-stat span { font-size: 12px; color: #6b7280; }
.sc-result-points { font-size: 16px; font-weight: 800; color: #d97706; margin-bottom: 20px; }
.sc-result-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.sc-result-tip { font-size: 13px; color: #9ca3af; }
.sc-choice-feedback { margin: 4px 0 2px; padding: 16px; border-radius: 14px; border: 1px solid #dbe4f2; background: #f8fbff; text-align: left; animation: scPop .25s ease; }
.sc-choice-feedback.is-great { border-color: #86efac; background: #f0fdf4; }
.sc-choice-feedback.is-ok { border-color: #fcd34d; background: #fffbeb; }
.sc-feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 800; color: var(--text); }
.sc-feedback-head b { color: #15803d; font-size: 12px; }
.is-ok .sc-feedback-head b { color: #a16207; }
.sc-feedback-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.sc-feedback-grid div { padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.72); }
.sc-feedback-grid span { display: block; color: #6b7280; font-size: 11px; margin-bottom: 4px; }
.sc-feedback-grid strong { display: block; color: var(--text); font-size: 13px; }
.sc-choice-feedback p { margin: 0; color: #4b5563; font-size: 13px; line-height: 1.6; }
.sc-feedback-better { margin-top: 11px; padding-top: 10px; border-top: 1px dashed rgba(100,116,139,.25); color: #475569; font-size: 12px; line-height: 1.5; }
.sc-feedback-better b { color: var(--accent); }
.sc-next-btn { align-self: flex-end; margin-top: 2px; }
.sc-review { margin-top: 28px; text-align: left; }
.sc-review-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; color: var(--text); font-size: 16px; font-weight: 800; }
.sc-review-title span { color: #9ca3af; font-size: 12px; font-weight: 500; }
.sc-review-item { margin: 10px 0; padding: 15px 16px; border: 1px solid #e5e7eb; border-top: 3px solid #f59e0b; border-radius: 12px; background: #fff; }
.sc-review-item.is-best { border-top-color: #22c55e; }
.sc-review-kicker { color: #b45309; font-size: 11px; font-weight: 800; }
.is-best .sc-review-kicker { color: #15803d; }
.sc-review-context { margin: 8px 0 11px; color: #6b7280; font-size: 12px; line-height: 1.5; }
.sc-review-line { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 12px; }
.sc-review-line span { color: #9ca3af; min-width: 48px; }
.sc-review-line b { color: var(--text); font-size: 13px; line-height: 1.5; }
.sc-review-line em { color: #475569; font-style: normal; font-weight: 700; }
.sc-review-item p { margin: 10px 0 0; color: #4b5563; font-size: 12.5px; line-height: 1.6; }
.sc-review-better { margin-top: 10px; padding: 9px 10px; border-radius: 8px; background: var(--accent-soft); color: #475569; font-size: 12px; line-height: 1.5; }
.sc-review-better b { color: var(--accent); }

@media (max-width: 760px) {
  .sc-hero { flex-direction: column; text-align: center; }
  .sc-progress-card { align-self: stretch; }
  .sc-bubble { max-width: 92%; }
  .sc-feedback-grid { grid-template-columns: 1fr; }
  .sc-review-title { display: block; }
  .sc-review-title span { display: block; margin-top: 3px; }
}

/* ---- 每日场景横幅（今日推荐，含 AI 插画） ---- */
.sc-daily-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 18px; padding: 20px 24px; cursor: pointer;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  border: 1px solid #f59e0b; border-radius: 14px;
  transition: transform .18s, box-shadow .18s;
}
.sc-daily-banner:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245,158,11,.22); }
.sc-daily-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-daily-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,15,6,.66), rgba(20,15,6,.18));
}
.sc-daily-left { position: relative; z-index: 1; }
.sc-daily-btn { position: relative; z-index: 1; flex: none; }
.sc-daily-tag {
  display: inline-block; font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #f97316, #f59e0b); border-radius: 999px;
  padding: 3px 10px; margin-bottom: 6px;
}
.sc-daily-title { font-size: 20px; font-weight: 800; color: #b45309; }
.sc-daily-en { font-size: 13px; color: #d97706; margin: 2px 0; font-weight: 600; }
.sc-daily-tagline { font-size: 12.5px; color: #92400e; }
.sc-daily-banner.has-img .sc-daily-title { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.sc-daily-banner.has-img .sc-daily-en { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.sc-daily-banner.has-img .sc-daily-tagline { color: rgba(255,255,255,.92); text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.sc-tag-daily { color: #b45309; background: #fef3c7; }
@media (max-width: 640px) {
  .sc-daily-banner { flex-direction: column; align-items: flex-start; }
  .sc-daily-overlay { background: linear-gradient(180deg, rgba(20,15,6,.62), rgba(20,15,6,.28)); }
}

/* =====================================================================
 * 2026-09-02 Professional visual refresh
 * 视觉目标：干净、克制、有质感，像成熟的英语学习产品，而不改变功能结构。
 * ===================================================================== */
:root {
  --bg: #eef1f4;
  --paper: #fbfaf7;
  --card: rgba(255, 255, 255, .92);
  --card-solid: #ffffff;
  --text: #19202a;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: rgba(25, 32, 42, .1);
  --line-strong: rgba(25, 32, 42, .16);
  --accent: #1b4d3e;
  --accent-2: #b7791f;
  --accent-soft: #e8f1ed;
  --sp: #b7791f;
  --li: #226c8c;
  --re: #2f7d5c;
  --ok: #18805b;
  --danger: #c2413b;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,.72) inset, 0 18px 46px rgba(35, 48, 66, .09);
  --shadow-hover: 0 1px 0 rgba(255,255,255,.82) inset, 0 24px 60px rgba(35, 48, 66, .14);
  --focus: 0 0 0 4px rgba(27, 77, 62, .14);
}

html {
  background: #eef1f4;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -10%, rgba(183, 121, 31, .16), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(34, 108, 140, .13), transparent 28%),
    linear-gradient(180deg, #f7f6f1 0%, #eef1f4 42%, #edf1f1 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(25,32,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,32,42,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 76%);
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
.brand:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.topbar {
  background: rgba(250, 249, 245, .82);
  border-bottom: 1px solid rgba(25, 32, 42, .11);
  box-shadow: 0 10px 34px rgba(25, 32, 42, .06);
  backdrop-filter: blur(18px) saturate(1.12);
}

.topbar-inner {
  max-width: 1180px;
  padding: 12px 24px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), transparent),
    linear-gradient(135deg, #173f35, #246b56);
  box-shadow: 0 10px 24px rgba(27, 77, 62, .24);
}

.brand-name {
  font-size: 17px;
  letter-spacing: 0;
}

.brand-tag,
.acc-user,
.xb-lv,
.nav-badge,
.sc-tag,
.wb-chip,
.quiz-done-badge,
.readonly-badge,
.timer-pill,
.bdg-count {
  border: 1px solid rgba(27, 77, 62, .12);
}

.brand-tag {
  color: var(--accent);
  background: rgba(232, 241, 237, .86);
}

.nav {
  gap: 6px;
}

.nav-btn {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 10px;
  color: #536071;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(25,32,42,.08);
}

.nav-btn.active {
  background: #173f35;
  color: #fff;
  box-shadow: 0 12px 24px rgba(27, 77, 62, .22);
}

.nav-dropdown,
.acc-menu,
.dict-pop,
.xb-panel,
.xb-bubble {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(25, 32, 42, .1);
  box-shadow: 0 20px 52px rgba(25, 32, 42, .16);
  backdrop-filter: blur(16px);
}

.container {
  max-width: 1180px;
  padding: 34px 24px 70px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(25, 32, 42, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: rgba(25, 32, 42, .15);
}

.section-title {
  position: relative;
  margin: 34px 0 10px;
  color: #222b36;
  font-size: 17px;
  letter-spacing: 0;
}

.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.plan-hint {
  margin: 0 0 16px;
  color: #788293;
}

.hero {
  border-radius: 18px;
}

.hero-body {
  min-height: 260px;
  align-items: stretch;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(250, 249, 245, .96), rgba(238, 244, 241, .9)),
    #fff;
}

.hero-body::before {
  opacity: .32;
  filter: saturate(.88) contrast(1.05);
  background-position: center 38%;
}

.hero-body::after {
  background:
    linear-gradient(90deg, rgba(250,249,245,.98) 0%, rgba(250,249,245,.94) 42%, rgba(250,249,245,.56) 100%),
    linear-gradient(180deg, transparent, rgba(25,32,42,.05));
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-date {
  margin-bottom: 12px;
}

.hero-date span:first-child {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
}

.hero-movie {
  color: #8a5b16;
  background: rgba(183, 121, 31, .12);
  border: 1px solid rgba(183, 121, 31, .16);
}

.hero-movie-thumb {
  box-shadow: 0 0 0 2px rgba(255,255,255,.8);
}

.hero h1 {
  max-width: 660px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.26;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 650px;
  color: #485467;
  font-size: 15px;
}

.hero-goal {
  color: #52605a;
}

.hero-stats {
  flex-basis: 318px;
  justify-content: center;
}

.hs-row,
.egg-box,
.practice-bar,
.practice-progress,
.quiz-card,
.fl-item,
.fl-part,
.video-box,
.sc-chat-stage,
.sc-choice,
.sc-vchip,
.empty-tip,
.wb-empty-sum {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(25, 32, 42, .1);
  box-shadow: 0 1px 0 rgba(255,255,255,.82) inset;
}

.hs-row {
  padding: 13px 15px;
  border-radius: 12px;
}

.hs-row.streak-row,
.hs-row.time-row,
.hs-row.goal-row,
.chal-hero,
.chal-result.fail,
.task-card.done,
.egg-box.done {
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.54)),
    linear-gradient(135deg, color-mix(in srgb, var(--sc, var(--accent)) 10%, transparent), transparent);
  border-color: rgba(25, 32, 42, .1);
}

.hs-label,
.task-info .t-name,
.article-meta .a-title,
.quiz-title,
.wb-title,
.vb-title,
.bdg-title,
.chal-title,
.sc-title {
  color: #1c2530;
  letter-spacing: 0;
}

.hs-sub,
.task-info .t-title,
.article-meta .a-sub,
.wb-sub,
.vb-sub,
.bdg-sub,
.chal-meta,
.sc-sub,
.sc-card-en,
.sc-card-tagline {
  color: var(--muted);
}

.hs-dots .wd {
  background: rgba(25,32,42,.08);
  color: #7b8798;
}

.hs-dots .wd.on {
  background: #b7791f;
}

.hs-dots .wd.today {
  box-shadow: inset 0 0 0 2px #173f35;
}

.plan {
  gap: 18px;
}

.task-card {
  min-height: 160px;
  padding: 22px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72)),
    linear-gradient(135deg, color-mix(in srgb, var(--sc, var(--accent)) 12%, #fff), #fff);
  border-color: rgba(25,32,42,.1);
}

.task-card::before {
  top: 16px;
  left: 18px;
  right: auto;
  width: 38px;
  height: 3px;
  border-radius: 99px;
}

.task-card:hover,
.bdg-card:hover,
.sc-card:hover,
.chal-level:not(.locked):hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.task-card.done::after {
  top: 14px;
  right: -36px;
  background: #18805b;
}

.ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 0 0 1px rgba(25,32,42,.07);
}

.ring .track,
.hs-icon .track {
  stroke: rgba(25, 32, 42, .1);
}

.task-info .t-name {
  font-size: 18px;
}

.t-enter {
  color: var(--accent);
}

.home-entry {
  margin-top: 24px;
}

.btn,
.acc-btn,
.sc-card-btn,
.sc-cn-toggle,
.timer-btn,
.readall-btn,
.spk-toggle,
.blk-read,
.vs-btn,
.wb-tab,
.rate-opt,
.vb-del,
.dp-save,
.date-btn {
  border-radius: 10px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.btn:hover,
.acc-btn:hover,
.sc-card-btn:hover,
.timer-btn:hover,
.readall-btn:hover,
.spk-toggle:hover,
.blk-read:hover,
.vs-btn:hover:not(:disabled),
.wb-tab:hover,
.rate-opt:hover,
.vb-del:hover,
.dp-save:hover,
.date-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn {
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid rgba(25, 32, 42, .12);
  font-weight: 750;
}

.primary-btn,
.sc-card-btn,
.sc-cn-toggle.on,
.wb-tab.active,
.dp-save:hover,
.rate-opt.on {
  background: #173f35;
  color: #fff;
  border-color: #173f35;
  box-shadow: 0 12px 26px rgba(27, 77, 62, .2);
}

.primary-btn:hover {
  filter: none;
  background: #1f5c49;
}

.ghost-btn,
.date-btn,
.date-select,
.timer-btn,
.readall-btn,
.spk-toggle,
.blk-read,
.vs-btn,
.wb-tab,
.rate-opt,
.dp-save {
  background: rgba(255, 255, 255, .76);
  color: #344054;
  border-color: rgba(25, 32, 42, .12);
}

.ghost-btn:hover,
.date-btn:hover:not(:disabled),
.date-select:hover,
.timer-btn:hover,
.readall-btn:hover,
.spk-toggle:hover,
.blk-read:hover,
.vs-btn:hover:not(:disabled),
.wb-tab:hover,
.rate-opt:hover,
.dp-save:hover {
  background: #f7f5ef;
  border-color: rgba(27, 77, 62, .26);
  color: var(--accent);
}

.ghost-btn.danger,
.vb-del,
.acc-menu-item.danger {
  color: var(--danger);
}

.reader {
  border-radius: 18px;
  overflow: hidden;
}

.reader-head {
  padding: 18px 26px 0;
}

.tabs {
  gap: 4px;
  padding: 16px 26px 0;
  border-bottom-color: rgba(25,32,42,.1);
}

.tab-btn {
  padding: 12px 16px;
  border-radius: 10px 10px 0 0;
  color: #667085;
}

.tab-btn:hover {
  background: rgba(255,255,255,.6);
}

.tab-btn.active {
  color: var(--c, var(--accent));
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,0));
  border-bottom-color: currentColor;
}

.tab-btn .tab-time,
.wb-tab-c {
  background: rgba(25,32,42,.06);
}

.article-meta {
  padding: 22px 32px 0;
}

article {
  padding: 16px 32px 40px;
  color: #25303d;
  font-size: 16px;
  line-height: 1.78;
}

article h3 {
  color: #173f35;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 23px;
}

article h4 {
  color: #26323f;
}

article p[data-start] {
  border-left-width: 1px;
  border-radius: 10px;
}

article p[data-start].is-current {
  background: rgba(229, 237, 255, .9);
}

/* Full listening transcript and full reading edition */
.listen-transcript { margin-top: 18px; }
.transcript-hint, .reading-note {
  padding: 12px 14px;
  border: 1px solid #cbd9eb;
  border-radius: 12px;
  background: #f4f8ff;
  color: #506583;
}
.listen-line { margin: 0 0 2px; }
.listen-line p { margin: 0; }
.listen-line p[data-start] {
  padding: 7px 10px;
  border-left: 3px solid transparent;
  border-radius: 8px;
  transition: background .18s ease, border-color .18s ease;
}
.listen-line p[data-start].is-current {
  border-left-color: var(--accent);
  background: #e5edff;
  color: #173a78;
}
.listen-cn, .reading-cn { color: #60708a; font-size: .94em; margin: 0 10px 8px !important; }
.reading-full { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.reading-full h3 { margin-bottom: 8px; }
.reading-full h4 { margin-bottom: 8px; }
.reading-note { margin: 24px 0 8px; }

article table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(25,32,42,.08);
}

article th,
article td {
  border-color: rgba(25,32,42,.08);
}

article th {
  background: rgba(232, 241, 237, .88);
}

.practice-bar,
.practice-progress {
  border-radius: 14px;
}

.pp-track,
.bar-row .b-track,
.cq-bar,
.sc-progress-bar,
.xb-mood-bar,
.cal-cell {
  background: rgba(25, 32, 42, .08);
}

.pp-fill,
.cq-bar-fill,
.sc-progress-bar i {
  background: linear-gradient(90deg, var(--accent), #2f7d5c);
}

.timer-pill {
  color: #176649;
  background: rgba(232, 241, 237, .94);
  border-color: rgba(24, 128, 91, .18);
}

.timer-btn {
  color: #176649;
}

.readonly-badge,
.readall-btn.speaking,
.fl-avg,
.combo-strip,
.vb-tip,
.video-tip,
.sc-daily-tag,
.sc-tag-daily {
  color: #8a5b16;
  background: rgba(183, 121, 31, .11);
  border-color: rgba(183, 121, 31, .22);
}

.quiz-card {
  border-radius: 14px;
  padding: 20px 22px;
}

.q-item {
  border-top-color: rgba(25,32,42,.1);
}

.q-no,
.opt-letter,
.sc-choice-letter {
  background: rgba(232, 241, 237, .88);
  color: var(--accent);
}

.opt-row,
.blank-input,
.acc-field input {
  border-color: rgba(25,32,42,.12);
  border-radius: 10px;
}

.opt-row:hover,
.opt-row.picked,
.sc-choice:hover,
.sc-vchip:hover {
  border-color: color-mix(in srgb, var(--c, var(--accent)) 44%, #fff);
  background: color-mix(in srgb, var(--c, var(--accent)) 8%, #fff);
}

.opt-row.right,
.q-item.fb.ok,
.cq-feedback.ok,
.all-done-note {
  background: rgba(232, 241, 237, .9);
}

.opt-row.wrong,
.q-item.fb.bad,
.cq-feedback.bad,
.acc-error {
  background: #fff1f0;
}

.video-box,
.listen-cover,
.fl-item,
.fl-part {
  border-radius: 14px;
}

.listen-cover {
  box-shadow: inset 0 -120px 120px rgba(12, 18, 28, .54);
}

.listen-float {
  background: #173f35;
  box-shadow: 0 18px 42px rgba(27, 77, 62, .3);
}

.fl-en,
.spk-en,
.sc-bubble-en,
.sc-choice-en {
  color: #202a36;
}

.spk-line {
  border-radius: 10px;
  background: rgba(255,255,255,.76);
}

.spk-line[data-who="B"] {
  background: rgba(247,245,239,.78);
}

.wd-chip {
  border-radius: 8px;
}

.stats-grid,
.chal-levels {
  gap: 18px;
}

.stat-card,
.stats-grid.two-eq .card,
#stat-records,
#stat-checkin,
#stat-quiz,
#stat-databackup,
.wb-head-card,
.vb-head,
.bdg-head,
.chal-quiz,
.chal-result,
.chal-level,
.wb-item,
.vb-item {
  border-radius: 14px;
}

.stat-total-num,
.cr-score,
.streak-big b,
.sc-progress-num,
.sc-stat b {
  color: var(--accent);
  letter-spacing: 0;
}

.streak-big {
  color: var(--accent);
}

.rec-table th,
.rec-table td {
  border-bottom-color: rgba(25,32,42,.08);
}

.bdg-grid,
.sc-grid {
  gap: 18px;
}

.bdg-card,
.sc-card {
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  border-color: rgba(25,32,42,.1);
  box-shadow: 0 1px 0 rgba(255,255,255,.78) inset;
}

.bdg-card.locked {
  background: rgba(247, 248, 247, .78);
}

.bdg-card .bdg-icon {
  border-radius: 16px;
}

.badge-popup {
  background: rgba(25, 32, 42, .48);
  backdrop-filter: blur(8px);
}

.bp-card,
.acc-modal {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 28px 70px rgba(25,32,42,.28);
}

.wb-tab.active .wb-tab-c {
  color: #173f35;
}

.wb-item.mastered,
.chal-level.locked,
.bdg-card.locked {
  opacity: .7;
}

.vb-tip {
  border-radius: 12px;
}

.toast {
  background: #173f35;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 42px rgba(27, 77, 62, .32);
}

.dict-pop {
  border-radius: 14px;
}

.dp-pos,
.vb-pos {
  background: rgba(232, 241, 237, .92);
  color: var(--accent);
  border: 1px solid rgba(27, 77, 62, .12);
}

.xiaobai-pet {
  filter: drop-shadow(0 20px 38px rgba(25,32,42,.18));
}

.xb-avatar {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(25,32,42,.1);
}

.xb-btn {
  background: rgba(247,245,239,.72);
  border-color: rgba(25,32,42,.1);
  border-radius: 10px;
}

.xb-btn:hover {
  background: rgba(232, 241, 237, .9);
  border-color: rgba(27,77,62,.24);
  color: var(--accent);
}

/* Joker Bear companion: keep it in the same floating UI layer as the site. */
.xiaobai-pet {
  /* The pet itself contains a fixed-position child.  Keep this wrapper a
     real viewport layer; a zero-sized filtered wrapper can clip fixed
     descendants in Chromium, leaving the DOM present but invisible. */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 92;
  pointer-events: none;
  filter: none;
}

.xb-anchor {
  width: 112px;
  height: 112px;
  right: clamp(24px, 3vw, 48px);
  bottom: clamp(24px, 3vh, 48px);
  pointer-events: auto;
}

.xb-avatar {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  cursor: grab;
  touch-action: none;
}

.xb-avatar:active,
.xb-is-dragging .xb-avatar { cursor: grabbing; }

.xb-drag-ready .xb-sprite-window { transform: scale(1.04); }

.xb-is-dragging {
  z-index: 94;
}

.xb-is-dragging .xb-sprite-window {
  filter: drop-shadow(0 15px 12px rgba(25,32,42,.26));
}

.xb-anchor,
.xb-avatar,
.xb-sprite-window {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Petdex JokeBear pack: native image crop avoids browser-specific canvas loss. */
.xb-avatar .xb-svg {
  display: none;
}

.xb-sprite-window {
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 112px;
  height: 122px;
  display: block;
  filter: drop-shadow(0 8px 7px rgba(25,32,42,.22));
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.xb-sprite-sheet {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 896px;
  max-width: none;
  height: auto;
  transform: translate(0, 0);
  will-change: transform;
}

@keyframes xb-sprite-arrive {
  0% { opacity: .72; transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); }
}

.xb-sprite-arrive { animation: xb-sprite-arrive .18s ease-out; }

.xb-svg {
  filter: url(#xb-shadow);
}

.xb-body,
.xb-hand,
.xb-ear,
.xb-collar,
.xb-book {
  transform-box: fill-box;
  transform-origin: center;
}

.xb-state-idle .xb-joker-mark {
  animation: xb-mark-glint 3.4s ease-in-out infinite;
}

@keyframes xb-mark-glint {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

.xb-state-happy .xb-bow-l,
.xb-state-happy .xb-bow-r,
.xb-state-cheer .xb-bow-l,
.xb-state-cheer .xb-bow-r {
  animation: xb-bow-wiggle .7s ease-in-out infinite;
}

@keyframes xb-bow-wiggle {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(8deg); }
}

.xb-state-study .xb-glasses {
  animation: xb-focus-glow 1.8s ease-in-out infinite;
}

@keyframes xb-focus-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(27,77,62,0)); }
  50% { filter: drop-shadow(0 0 5px rgba(27,77,62,.32)); }
}

.xb-state-surprise .xb-ear-l {
  animation: xb-ear-pop-l .38s ease;
}

.xb-state-surprise .xb-ear-r {
  animation: xb-ear-pop-r .38s ease;
}

@keyframes xb-ear-pop-l {
  50% { transform: rotate(-12deg) scale(1.08); }
}

@keyframes xb-ear-pop-r {
  50% { transform: rotate(12deg) scale(1.08); }
}

.xb-state-sad .xb-joker-mark {
  opacity: .45;
}

.xb-state-sleepy .xb-ground {
  animation: xb-shadow-nap 2.5s ease-in-out infinite;
}

@keyframes xb-shadow-nap {
  0%, 100% { transform: scaleX(1); opacity: .12; }
  50% { transform: scaleX(.86); opacity: .08; }
}

.xb-bubble,
.xb-panel {
  z-index: 93;
  color: #25303d;
  border-color: rgba(25, 32, 42, .1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,249,245,.93));
}

.xb-bubble {
  right: 120px;
  bottom: 58px;
  max-width: min(286px, calc(100vw - 142px));
  border-radius: 16px 16px 6px 16px;
}

.xb-bubble::before {
  content: "";
  position: absolute;
  inset: 8px auto auto 10px;
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #173f35, #b7791f);
  opacity: .22;
}

.xb-bubble-text {
  padding-top: 6px;
}

.xb-bubble-tail {
  background: rgba(250,249,245,.96);
  border-color: rgba(25, 32, 42, .1);
}

.xb-panel {
  right: 120px;
  width: 226px;
  border-radius: 16px;
}

.xb-name {
  color: #173f35;
}

.xb-mood-fill {
  background: linear-gradient(90deg, #b7791f, #173f35);
}

.xb-close {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(25,32,42,.1);
}

.listen-float {
  z-index: 91;
  right: 28px;
  bottom: 132px;
}

@media (max-width: 760px) {
  .xiaobai-pet {
    left: auto !important;
    right: 0 !important;
  }

  .xb-anchor {
    width: 96px;
    height: 96px;
    right: 16px;
    bottom: 16px;
  }

  .xb-sprite-window {
    width: 96px;
    height: 104px;
    bottom: -4px;
  }

  .xb-sprite-sheet {
    width: 768px;
  }

  .xb-bubble {
    right: 104px;
    bottom: 42px;
    max-width: min(226px, calc(100vw - 112px));
    font-size: 12px;
  }

  .xb-panel {
    right: 104px;
    width: min(210px, calc(100vw - 112px));
  }

  .listen-float {
    right: 20px;
    bottom: 104px;
  }
}

.sc-hero {
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.62)),
    linear-gradient(135deg, rgba(34,108,140,.12), rgba(27,77,62,.1));
}

.sc-card-cover {
  height: 148px;
  background: linear-gradient(135deg, #e8f1ed, #edf3f4);
}

.sc-card-cover.has-img::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.38) 100%);
}

.sc-card-btn {
  border-radius: 10px;
}

.sc-chat-stage {
  border-radius: 16px;
}

.sc-bubble {
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}

.sc-bubble.npc {
  background: rgba(247,245,239,.92);
}

.sc-bubble.you {
  background: rgba(232, 241, 237, .94);
  border-color: rgba(27,77,62,.14);
}

.sc-bubble.you.great {
  background: rgba(231, 246, 238, .96);
}

.sc-bubble-audio {
  border-radius: 8px;
}

.sc-daily-banner {
  border-radius: 16px;
  border-color: rgba(183,121,31,.26);
  background:
    linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.38)),
    linear-gradient(135deg, rgba(183,121,31,.22), rgba(27,77,62,.1));
}

.sc-daily-overlay {
  background: linear-gradient(90deg, rgba(17, 24, 39, .7), rgba(17, 24, 39, .18));
}

.footer {
  color: #8a94a3;
}

@media (max-width: 920px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-body {
    flex-direction: column;
  }

  .hero-stats {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan,
  .chal-levels {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .stats-grid.two-eq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 22px 14px 58px;
  }

  .topbar-inner {
    padding: 10px 14px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-tag {
    display: none;
  }

  .nav-btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .hero-body {
    min-height: 0;
    padding: 24px 18px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .task-card {
    min-height: 136px;
  }

  .reader-head,
  .tabs,
  .article-meta,
  article,
  .practice-box,
  .follow-box {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab-btn {
    flex: 0 0 auto;
  }

  .pb-tip {
    width: 100%;
    margin-left: 0;
  }

  .wb-actions,
  .vb-actions,
  .home-entry,
  .quiz-actions,
  .sc-result-actions {
    width: 100%;
  }

  .wb-actions .btn,
  .vb-actions .btn,
  .home-entry .btn,
  .quiz-actions .btn,
  .sc-result-actions .btn {
    flex: 1 1 150px;
  }

  .rec-table {
    min-width: 560px;
  }

  #stat-records {
    overflow-x: auto;
  }
}

/* Final theme authority: keep this after legacy refresh layers. */
:root { --bg:#eef3fa; --card:rgba(255,255,255,.94); --text:#10233f; --muted:#60708a; --line:#d8e1ee; --accent:#2458c6; --accent-soft:#e5edff; --sp:#2f6fff; --li:#4b8dff; --re:#75aaff; --ok:#1e9bd7; --danger:#c2415a; --radius:16px; --shadow:0 1px 2px rgba(16,35,63,.04),0 14px 32px rgba(31,72,132,.09); --shadow-hover:0 6px 14px rgba(31,72,132,.08),0 22px 46px rgba(31,72,132,.16); --focus:0 0 0 4px rgba(47,111,255,.22); }
html { background:#eef3fa; }
body { background:radial-gradient(circle at 88% -10%,rgba(85,139,255,.16),transparent 32rem),linear-gradient(180deg,#f4f7fc 0%,#eef3fa 52%,#eaf1fa 100%); color:var(--text); }
body::before { opacity:0; }
.topbar { background:rgba(248,251,255,.88); border-bottom-color:rgba(181,198,223,.72); box-shadow:0 8px 24px rgba(36,88,198,.05); }
.brand-logo { background:linear-gradient(145deg,#193b91,#2f6fff); box-shadow:0 5px 14px rgba(36,88,198,.28); }
.brand-name { color:#10233f; }
.brand-tag { color:#2458c6; background:#e5edff; }
.nav-btn { color:#60708a; }
.nav-btn:hover { color:#173a78; background:#e6eefb; }
.nav-btn.active { background:#193f9e; box-shadow:0 6px 16px rgba(25,63,158,.24); }
.nav-dropdown { background:rgba(255,255,255,.97); border-color:#cfdbec; }
.container { max-width:1180px; padding:36px 28px 72px; }
.hero { border:0; box-shadow:0 16px 42px rgba(31,72,132,.14); }
.hero-body { min-height:330px; padding:38px 40px; background:radial-gradient(circle at 86% 12%,rgba(128,190,255,.36),transparent 20rem),linear-gradient(122deg,#f8fbff 0%,#edf4ff 52%,#dceaff 100%); }
.hero-body::before { opacity:.24; }
.hero-body::after { background:linear-gradient(102deg,rgba(248,251,255,.96),rgba(241,247,255,.72) 58%,rgba(224,237,255,.48)); }
.hero h1 { color:#10233f; font-size:clamp(28px,3.2vw,45px); line-height:1.12; letter-spacing:-.045em; }
.hero-sub { color:#506583; font-size:15px; }
.hero-date span:first-child,.hero-goal,.hero-movie,.t-enter { color:#2458c6; }
.hero-movie { background:rgba(229,237,255,.84); }
.hs-row,.hs-row.streak-row,.hs-row.time-row,.hs-row.goal-row { background:rgba(255,255,255,.8); border-color:#d4e0f0; }
.hs-dots .wd.on { background:#2f6fff; }
.hs-bar .hb-track { background:#dce6f4; }
.hs-bar .hb-fill { background:#4b8dff !important; }
.hs-bar.done .hb-fill { background:#1e9bd7 !important; }
.hs-bar.done .hb-val,.hs-bar .hb-ok { color:#1486b8; }
.egg-box { border-color:#a8c5ff; background:rgba(237,244,255,.82); }
.egg-box.done { border-color:#8cc9e5; background:rgba(232,247,255,.84); }
.egg-main,.egg-box.done .egg-main { color:#2458c6; }
.task-card { border-color:#d4e0f0; background:rgba(255,255,255,.9); box-shadow:0 10px 26px rgba(38,78,132,.08); }
.task-card:hover { border-color:#9bb8eb; }
.task-card.done { border-color:#9bd2e8; background:linear-gradient(135deg,#eefaff,#fff 72%); }
.task-card.done::before { background:#1e9bd7; }
.t-status.near,.t-status.done { color:#1486b8; }
.btn { min-height:42px; border-radius:999px; font-weight:750; }
.primary-btn { background:#193f9e; box-shadow:0 8px 18px rgba(25,63,158,.23); }
.primary-btn:hover { background:#12327f; }
.ghost-btn { background:rgba(255,255,255,.7); color:#29466e; border-color:#cbd9eb; }
.ghost-btn:hover { background:#eaf1fc; border-color:#94b2e4; color:#173a78; }
.practice-bar,.reader,.wb-head-card,.vb-head,.bdg-head,.chal-hero,.stat-card { border-color:#d4e0f0; }
.timer-pill { color:#1486b8; background:#e8f8ff; border-color:#9bd2e8; }
.timer-pill .dot { background:#1e9bd7; }
.practice-progress { background:#e7f5fb; border-color:#a6d9eb; }
.pp-fill,.practice-progress.done .pp-fill { background:linear-gradient(90deg,#2f6fff,#1e9bd7) !important; }
.tab-btn.active { color:#2458c6; border-bottom-color:#2458c6; }
.tab-btn.active .tab-time { background:#e5edff; color:#2458c6; }
.sc-hero,.sc-daily-banner { border-color:#d4e0f0; background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(231,240,255,.86)); }
.sc-card-cover { background:linear-gradient(135deg,#dce9fb,#edf4ff); }
.sc-bubble.you,.sc-bubble.you.great { background:#e8f1ff; border-color:#b8cdf1; }
.xiaobai-pet .xb-name { color:#193f9e; }
.xb-mood-fill { background:linear-gradient(90deg,#5b94ff,#193f9e); }
.footer { color:#7183a0; }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; } }
@media (max-width:760px) { .container { padding:24px 14px 58px; } .topbar-inner { padding:10px 14px; } .hero-body { padding:28px 20px; } .hero h1 { font-size:30px; } .task-card { min-height:128px; padding:18px; } }

@media (max-width: 430px) {
  .hero h1 {
    font-size: 22px;
  }

  .task-card {
    align-items: flex-start;
  }

  .ring {
    width: 66px;
    height: 66px;
  }
}
/* 阅读：每篇文章结束后就地完成两道理解题 */
.inline-reading-quiz { margin: 22px 0 34px; padding: 18px; border: 1px solid color-mix(in srgb, var(--c, #0f9f8a) 28%, #dfe8e5); border-radius: 18px; background: linear-gradient(145deg, #f8fffc, #ffffff); }
.inline-quiz-title { color: var(--c, #0f9f8a); font-weight: 800; margin-bottom: 8px; }
.inline-quiz-result { min-height: 24px; margin-top: 10px; font-weight: 700; color: #0f766e; }
