/* ============================================================
   英语学习工作台 · 全局样式
   分区：设计令牌 → 基础 → 布局壳 → 通用组件 → 首页 → 落地页
        → 播放器 → 听读训练 → 查词弹层 → 写作 → 口语 → 词汇
        → 结果与动画 → 反馈与对话框 → 账号与经营 → 移动适配
   ============================================================ */

@import url("/speaking-studio.css");
/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg: #0e1116;
  --bg-soft: #151a22;
  --card: #1a212c;
  --card-hover: #202836;
  --line: #2a3341;
  --line-strong: #3d4a61;
  --text: #e8ecf3;
  --text-dim: #97a3b6;
  --text-faint: #5f6b7f;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, .14);
  --green: #3ecf8e;
  --green-soft: rgba(62, 207, 142, .13);
  --amber: #f5b83d;
  --amber-soft: rgba(245, 184, 61, .13);
  --red: #f26d6d;
  --red-soft: rgba(242, 109, 109, .12);
  --purple: #a78bfa;
  --purple-soft: rgba(167, 139, 250, .14);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, .13);
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .22);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --sans: -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.65 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
::selection { background: light-dark(rgba(220,227,239,0.350), rgba(79, 140, 255, .35)); }

/* 主题化滚动条：深色背景下不突兀 */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--line-strong); background-clip: content-box; }
*::-webkit-scrollbar-corner { background: transparent; }

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 3. 布局壳 ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 216px; flex: none; padding: 22px 14px; border-right: 1px solid var(--line);
  background: var(--bg-soft); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, light-dark(rgb(220,227,239), #4f8cff), light-dark(rgb(225,220,239), #a78bfa));
  box-shadow: 0 4px 14px rgba(79, 140, 255, .35);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: light-dark(rgb(76,76,76), #fff);
}
.brand b { font-size: 16px; letter-spacing: .3px; }
.brand small { display: block; color: var(--text-faint); font-size: 11px; font-weight: 400; margin-top: -2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-dim); font-weight: 500; text-align: left; width: 100%;
  transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.active {
  background: var(--accent-soft); color: var(--accent);
  box-shadow: inset 2.5px 0 0 var(--accent);
}
.nav-item .ico { width: 20px; text-align: center; font-size: 16px; }
.side .spacer { flex: 1; }
.side-status { padding: 10px 12px; font-size: 11px; color: var(--text-faint); line-height: 1.5; }
.side-status .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--text-faint); }
.side-status .dot.ok { background: var(--green); }

.main { flex: 1; min-width: 0; padding: 30px clamp(18px, 4vw, 48px) 80px; max-width: 1060px; }

/* 移动端底栏 */
.tabbar { display: none; }
@media (max-width: 760px) {
  .side { display: none; }
  .main { padding: 18px 14px 96px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: light-dark(rgba(242,244,247,0.960), rgba(21, 26, 34, .96)); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 48px; padding: 5px 0; color: var(--text-faint); font-size: 10px; border-radius: 8px;
    position: relative;
  }
  .tabbar button .ico { font-size: 19px; }
  .tabbar button.active { color: var(--accent); }
  .tabbar button.active::before {
    content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 2px; background: var(--accent);
  }
}

/* ---------- 4. 通用组件 ---------- */
.page-head { margin: 0 0 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: .2px; }
.page-head .sub { color: var(--text-dim); font-size: 13.5px; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--text-faint); text-transform: uppercase; margin: 26px 0 12px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.card.clickable { cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); text-align: left; width: 100%; display: block; }
.card.clickable:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-1px); }
.card.clickable:active { transform: translateY(0); }
.grid { display: grid; gap: 14px; }
.grid.cols2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.cols3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: var(--bg-soft); color: var(--text-dim); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip.blue { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chip.purple { background: var(--purple-soft); color: var(--purple); border-color: transparent; }
.chip.teal { background: var(--teal-soft); color: var(--teal); border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 11px; font-weight: 600; font-size: 14px;
  background: var(--accent); color: #fff; border: 1px solid transparent;
  transition: filter .15s var(--ease), transform .1s var(--ease), background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); filter: brightness(1.02); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); border-color: var(--line-strong); background: var(--card); filter: none; }
.btn.green { background: var(--green); color: light-dark(#fff, #06281a); }
.btn.subtle { background: var(--card); border-color: var(--line); color: var(--text); }
.btn.small { padding: 6px 13px; font-size: 13px; border-radius: var(--radius-sm); }
.btn.danger { background: var(--red-soft); color: var(--red); }

.input, textarea.input {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 13px; color: var(--text); outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; line-height: 1.7; }

.empty { text-align: center; color: var(--text-faint); padding: 40px 20px; font-size: 14px; }
.spin {
  width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -4px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; align-items: center; gap: 10px; color: var(--text-dim); padding: 22px; justify-content: center; }

#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: light-dark(rgb(242,244,247), #262f3e); border: 1px solid var(--line-strong); color: var(--text);
  padding: 11px 20px; border-radius: 12px; box-shadow: var(--shadow); font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 100;
  max-width: min(90vw, 480px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { border-color: light-dark(rgba(209,159,159,0.500), rgba(242, 109, 109, .5)); }
@media (max-width: 760px) { #toast { bottom: 86px; } }

/* ---------- 5. 首页 ---------- */
.hero {
  border-radius: 18px; padding: 26px 28px; margin-bottom: 20px;
  background:
    radial-gradient(circle at 88% -20%, light-dark(rgba(225,220,239,0.160), rgba(167, 139, 250, .16)), transparent 45%),
    linear-gradient(120deg, light-dark(rgba(220,227,239,0.160), rgba(79, 140, 255, .16)), light-dark(rgba(225,220,239,0.100), rgba(167, 139, 250, .10)) 55%, light-dark(rgba(220,239,237,0.080), rgba(45, 212, 191, .08)));
  border: 1px solid light-dark(rgba(159,176,209,0.250), rgba(79, 140, 255, .25));
  position: relative; overflow: hidden;
}
.hero h1 { margin: 1px 0 4px; font-size: 28px; }
.hero p { margin: 0; color: var(--text-dim); }
.eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.daily-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.daily-score { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.daily-score strong { font-size: 27px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.daily-score span { color: var(--text-faint); font-size: 11px; }
.daily-progress { height: 4px; border-radius: 4px; margin-top: 16px; overflow: hidden; background: light-dark(rgba(225,228,234,0.170), rgba(151, 163, 182, .17)); }
.daily-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width .25s var(--ease); }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.plan-item {
  display: flex; align-items: center; gap: 14px; background: light-dark(rgba(243,244,247,0.500), rgba(14, 17, 22, .5));
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; width: 100%; text-align: left;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.plan-item:hover { border-color: var(--accent); background: light-dark(rgba(220,227,239,0.070), rgba(79, 140, 255, .07)); }
.plan-item .idx {
  width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.plan-copy { min-width: 0; flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; align-items: center; }
.plan-stage { padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; }
.plan-item .t { font-weight: 600; }
.plan-reason { grid-column: 1/-1; color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.plan-item .m { color: var(--text-faint); font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.plan-item .m b { color: var(--accent); font-size: 16px; }

.home-habit { margin-bottom: 20px; }
.habit-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 15px; }
.habit-head h2 { margin: 0; font-size: 17px; }
.habit-head p { margin: 1px 0 0; color: var(--text-dim); font-size: 12px; }
.habit-status { padding: 4px 10px; border-radius: 999px; color: var(--amber); background: var(--amber-soft); font-size: 11px; white-space: nowrap; }
.habit-status.done { color: var(--green); background: var(--green-soft); }
.habit-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.habit-day { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-faint); font-size: 11px; }
.habit-day i {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-soft);
  display: grid; place-items: center; color: transparent; font-style: normal; font-size: 12px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.habit-day small { font-size: 10px; }
.habit-day.active { color: var(--text-dim); }
.habit-day.active i { border-color: light-dark(rgba(159,209,186,0.500), rgba(62, 207, 142, .5)); background: var(--green-soft); color: var(--green); }
.habit-day.today i { box-shadow: 0 0 0 2px var(--accent-soft); border-color: var(--accent); }

/* 到期前进步报告 */
.expiry-card {
  margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  border-color: light-dark(rgba(171,159,209,0.450), rgba(167, 139, 250, .45));
  background: linear-gradient(115deg, light-dark(rgba(225,220,239,0.120), rgba(167, 139, 250, .12)), light-dark(rgba(243,244,247,0.400), rgba(14, 17, 22, .4)));
}
.expiry-card h2 { margin: 6px 0; }
.expiry-card p { margin: 0; color: var(--text-dim); font-size: 13.5px; max-width: 560px; line-height: 1.7; }
.expiry-action { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.expiry-action small { color: var(--text-faint); font-size: 11px; white-space: nowrap; }

/* 进步轨迹 */
.trajectory-card { margin-top: 18px; }
.trace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 4px; }
.trace-row {
  display: flex; flex-direction: column; gap: 8px; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: light-dark(rgba(243,244,247,0.450), rgba(14, 17, 22, .45));
}
.trace-meta { display: flex; flex-direction: column; gap: 4px; }
.trace-name { font-weight: 600; font-size: 14px; }
.trace-range { color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.trace-delta { margin-top: 2px; }
.trace-chip { display: inline-block; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.trace-chip.up { background: var(--green-soft); color: var(--green); }
.trace-chip.down { background: var(--red-soft); color: var(--red); }
.trace-chip.muted { background: var(--bg-soft); color: var(--text-faint); }
.spark-wrap { display: block; min-height: 42px; }
.spark { width: 100%; height: 42px; display: block; }
.spark-empty { display: flex; align-items: center; height: 42px; color: var(--text-faint); font-size: 12px; }
.vocab-strip {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line); color: var(--text-dim); font-size: 13px;
}
.vocab-strip b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.home-offer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-bottom: 20px;
  border-color: light-dark(rgba(171,159,209,0.350), rgba(167, 139, 250, .35));
  background: linear-gradient(115deg, var(--card), light-dark(rgba(225,220,239,0.080), rgba(167, 139, 250, .08)));
}
.home-offer h2 { margin: 3px 0; font-size: 18px; }
.home-offer p { margin: 0; max-width: 630px; color: var(--text-dim); font-size: 12.5px; }
.home-offer-action { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.home-offer-action b { font-size: 19px; font-variant-numeric: tabular-nums; }
.home-offer-action span { color: var(--text-faint); font-size: 10.5px; }
.home-offer-action .btn { margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 15px 17px; }
.stat .k { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.stat .v { font-size: 23px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.stat-level { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }

.module-card {
  display: flex; align-items: baseline; gap: 14px; width: 100%; text-align: left;
  padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; box-shadow: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.module-card:hover { background: var(--card); }
.module-card:first-child { border-top: 1px solid var(--line); }
.module-title { font-weight: 600; font-size: 15px; flex: none; min-width: 84px; }
.module-desc { color: var(--text-dim); font-size: 13.5px; flex: 1; }
.module-note { font-size: 12px; color: var(--text-faint); flex: none; }

.activity-row { display: flex; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: baseline; }
.activity-row:last-child { border-bottom: 0; }
.activity-row .when { color: var(--text-faint); font-size: 12px; flex: none; width: 74px; }
@media (max-width: 620px) {
  .hero { padding: 21px 18px; }
  .hero h1 { font-size: 24px; }
  .daily-heading { align-items: center; }
  .plan-item { align-items: flex-start; padding: 12px; gap: 10px; }
  .plan-item .m { align-self: center; font-size: 0; gap: 0; }
  .plan-item .m b { font-size: 18px; }
  .habit-head { align-items: flex-start; }
  .habit-days { gap: 3px; }
  .habit-day i { width: 25px; height: 25px; }
  .home-offer { grid-template-columns: 1fr; gap: 14px; }
  .home-offer-action { align-items: flex-start; }
}
@media (max-width: 760px) {
  .trace-grid { grid-template-columns: 1fr; }
  .expiry-card { flex-direction: column; align-items: flex-start; }
}

/* 首次引导、游客横幅、继续上次 */
.quickstart-card {
  margin-bottom: 18px;
  border-color: rgba(79, 140, 255, .4);
  background: linear-gradient(120deg, rgba(79, 140, 255, .12), rgba(45, 212, 191, .07));
}
.quickstart-card h2 { margin: 6px 0 4px; font-size: 20px; }
.quickstart-card p { margin: 0 0 14px; color: var(--text-dim); font-size: 13.5px; }
.quickstart-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.continue-card {
  margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-color: rgba(62, 207, 142, .4);
  background: linear-gradient(110deg, rgba(62, 207, 142, .1), rgba(14, 17, 22, .3));
}
.continue-card h2 { margin: 4px 0 2px; font-size: 17px; }
.continue-card p { margin: 0; color: var(--text-dim); font-size: 12.5px; }
.guest-banner {
  margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-color: rgba(245, 184, 61, .45);
  background: linear-gradient(110deg, rgba(245, 184, 61, .1), rgba(14, 17, 22, .3));
}
.guest-banner strong { font-size: 15px; }
.guest-banner p { margin: 4px 0 0; color: var(--text-dim); font-size: 12.5px; max-width: 620px; line-height: 1.6; }
.guest-banner-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
@media (max-width: 620px) {
  .quickstart-actions .btn { flex: 1; }
  .guest-banner-actions { width: 100%; }
  .guest-banner-actions .btn { flex: 1; }
}

/* 学习分享卡片对话框 */
.share-dialog { width: min(480px, calc(100vw - 28px)); }
.share-dialog canvas { width: 100%; height: auto; border-radius: 12px; margin-top: 14px; border: 1px solid var(--line); }

/* ---------- 6. 落地页 ---------- */
.public-landing { display: flex; flex-direction: column; gap: 54px; padding-bottom: 20px; }
.landing-hero {
  min-height: 430px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 34px; align-items: center;
  padding: 46px; border: 1px solid light-dark(rgba(159,176,209,0.320), rgba(79, 140, 255, .32)); border-radius: 22px;
  background:
    radial-gradient(circle at 80% 8%, light-dark(rgba(225,220,239,0.180), rgba(167, 139, 250, .18)), transparent 36%),
    linear-gradient(130deg, light-dark(rgba(220,227,239,0.130), rgba(79, 140, 255, .13)), light-dark(rgba(242,244,247,0.700), rgba(21, 26, 34, .7)));
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
}
.landing-hero h1 { max-width: 720px; margin: 8px 0 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1.13; letter-spacing: -.8px; text-wrap: balance; }
.landing-hero-copy > p { max-width: 690px; color: var(--text-dim); font-size: 16px; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0 10px; align-items: center; }
.landing-primary { min-width: 170px; box-shadow: 0 6px 20px rgba(79, 140, 255, .35); }
.landing-actions .btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); padding-left: 2px; padding-right: 2px; }
.landing-actions .btn.ghost:hover { color: var(--text); border-color: transparent; background: transparent; }
.landing-assurance { color: var(--text-faint) !important; font-size: 12px !important; }
.landing-plan {
  padding: 24px 26px; margin-bottom: 18px; border: 1px solid var(--line); border-top: 3px solid var(--purple); border-radius: 17px;
  background: var(--card); box-shadow: none;
}
.landing-price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0; }
.landing-price strong { font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.landing-price span { color: var(--text-dim); }
.landing-plan ul, .landing-boundary ul { margin: 16px 0 20px; padding-left: 20px; color: var(--text-dim); }
.landing-plan li, .landing-boundary li { margin: 7px 0; }
.landing-plan .btn { width: auto; }
.landing-section-head { max-width: 760px; margin-bottom: 20px; }
.landing-section-head h2 { margin: 5px 0 7px; font-size: 28px; line-height: 1.25; text-wrap: balance; }
.landing-section-head p { color: var(--text-dim); margin: 0; }
.landing-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.landing-step {
  min-height: 180px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.landing-step:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.landing-step > span { color: var(--accent); font: 700 12px/1 var(--sans); letter-spacing: 1px; }
.landing-step h3 { margin: 23px 0 6px; font-size: 17px; }
.landing-step p { margin: 0; color: var(--text-dim); font-size: 13px; }
.landing-sample { scroll-margin-top: 20px; padding: 30px; border: 1px solid light-dark(rgba(159,209,202,0.300), rgba(45, 212, 191, .3)); border-radius: 18px; background: linear-gradient(115deg, light-dark(rgba(220,239,237,0.070), rgba(45, 212, 191, .07)), var(--bg-soft)); }
.sample-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; }
.sample-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: light-dark(rgba(243,244,247,0.650), rgba(14, 17, 22, .65)); }
.sample-input blockquote { margin: 20px 0 12px; padding-left: 15px; border-left: 2px solid var(--text-faint); color: var(--text-dim); font-family: var(--serif); font-size: 17px; }
.sample-input small { color: var(--text-faint); }
.sample-feedback h3 { margin: 16px 0 8px; }
.sample-feedback p { color: var(--text-dim); }
.sample-revision { display: grid; gap: 3px; margin-top: 16px; padding: 13px 15px; border-radius: 10px; background: var(--teal-soft); }
.sample-revision b { color: var(--teal); font-size: 12px; }
.sample-revision span { font-size: 13px; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.boundary-grid h3 { margin: 14px 0 4px; }
.paid-boundary { border-color: light-dark(rgba(171,159,209,0.350), rgba(167, 139, 250, .35)); }
.resource-note { margin: 14px 0 0; padding: 14px 16px; border-radius: 11px; background: var(--bg-soft); color: var(--text-faint); font-size: 12px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { padding: 15px 2px; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 600; transition: color .15s var(--ease); }
.faq-list summary:hover { color: var(--accent); }
.faq-list p { margin: 9px 0 0; color: var(--text-dim); }
.faq-list p a { margin-left: 8px; }
.landing-legal { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0 30px; font-size: 13px; }
.landing-final { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 27px; border-radius: 15px; background: var(--accent-soft); border: 1px solid light-dark(rgba(159,176,209,0.300), rgba(79, 140, 255, .3)); }
.landing-final h2 { margin: 0 0 3px; font-size: 20px; }
.landing-final p { margin: 0; color: var(--text-dim); font-size: 13px; }
.public-back { display: block; margin: 18px auto 0; color: var(--text-dim); font-size: 13px; }
.public-back:hover { color: var(--accent); }
@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; padding: 34px; }
  .landing-hero h1 { font-size: clamp(34px, 8vw, 48px); }
  .landing-plan { max-width: 540px; }
  .landing-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .public-landing { gap: 38px; }
  .landing-hero { min-height: 0; padding: 25px 20px; border-radius: 17px; }
  .landing-hero h1 { font-size: 34px; }
  .landing-hero-copy > p { font-size: 14px; }
  .landing-actions .btn { width: 100%; }
  .landing-plan { padding: 20px; }
  .landing-section-head h2 { font-size: 24px; }
  .landing-steps, .sample-grid, .boundary-grid { grid-template-columns: 1fr; }
  .landing-step { min-height: 0; }
  .landing-step h3 { margin-top: 13px; }
  .landing-sample { padding: 20px 16px; }
  .landing-final { align-items: flex-start; flex-direction: column; }
  .landing-final .btn { width: 100%; }
}

/* ---------- 7. 播放器 ---------- */
.player { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.player .play-btn {
  width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--accent); color: light-dark(rgb(76,76,76), #fff);
  display: grid; place-items: center; font-size: 16px; transition: filter .15s var(--ease), transform .1s var(--ease);
  box-shadow: 0 4px 12px rgba(79, 140, 255, .3);
}
.player .play-btn:hover { filter: brightness(1.15); }
.player .play-btn:active { transform: scale(.96); }
.player .play-btn:disabled { opacity: .5; }
.player .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; cursor: pointer; }
.player .bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--teal)); border-radius: 3px; }
.player .time { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; flex: none; }

/* ---------- 8. 听读训练 ---------- */
.q-list { display: flex; flex-direction: column; gap: 14px; }
.q-item { padding: 15px 17px; }
.q-item .q-label { font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.q-item .instruction { font-size: 11px; color: var(--amber); letter-spacing: .5px; font-weight: 700; }
.opt-row { display: flex; flex-direction: column; gap: 7px; }
.opt {
  text-align: left; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); transition: border-color .12s var(--ease), background .12s var(--ease), color .12s var(--ease);
  color: var(--text-dim); width: 100%;
}
.opt:hover { border-color: var(--line-strong); color: var(--text); }
.opt.picked { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.opt.correct { border-color: var(--green); background: var(--green-soft); color: var(--text); }
.opt.wrong { border-color: var(--red); background: var(--red-soft); color: var(--text); }
.tfng-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tfng-row .opt { width: auto; flex: none; }

.verdict { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: 13.5px; flex-wrap: wrap; }
.verdict .tag { font-weight: 700; }
.verdict .tag.ok { color: var(--green); }
.verdict .tag.no { color: var(--red); }
.explain { margin-top: 9px; padding: 11px 14px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-dim); }
.explain .quote { color: var(--text); font-style: italic; font-family: var(--serif); display: block; margin-top: 6px; }
.explain mark { background: light-dark(rgba(239,233,220,0.300), rgba(245, 184, 61, .3)); color: var(--text); border-radius: 3px; padding: 0 2px; }

.transcript p { margin: 0 0 4px; font-size: 16px; line-height: 1.85; font-family: var(--serif); }
.transcript .zh { color: var(--text-faint); font-size: 13px; font-family: var(--sans); margin: 0 0 16px; }
.passage-text p { margin: 0 0 14px; font-size: 16px; line-height: 1.9; font-family: var(--serif); }
.passage-text .para-tag { color: var(--text-faint); font-weight: 700; font-family: var(--sans); font-size: 12px; margin-right: 8px; }
.passage-text .zh { color: var(--text-faint); font-size: 13px; font-family: var(--sans); line-height: 1.7; margin: -8px 0 14px; }
.passage-text mark { background: light-dark(rgba(239,233,220,0.280), rgba(245, 184, 61, .28)); color: var(--text); border-radius: 3px; padding: 0 1px; scroll-margin: 120px; }

.reading-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.reading-layout .sticky-col { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding-right: 4px; }
@media (max-width: 900px) { .reading-layout { grid-template-columns: 1fr; } .reading-layout .sticky-col { position: static; max-height: none; } }

.timer-pill { font-variant-numeric: tabular-nums; }

/* ---------- 9. 点词查词弹层 ---------- */
.w { cursor: pointer; border-bottom: 1px dashed transparent; transition: color .1s var(--ease), border-color .1s var(--ease); border-radius: 2px; }
.w:hover { color: var(--accent); border-bottom-color: var(--accent); }

#popover {
  position: absolute; z-index: 60; width: min(340px, calc(100vw - 24px));
  background: light-dark(rgb(242,244,247), #212a38); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px 18px; font-size: 13.5px;
}
#popover .term { font-size: 18px; font-weight: 700; font-family: var(--serif); }
#popover .family { color: var(--text-faint); font-size: 12px; margin: 1px 0 8px; }
#popover .meaning { color: var(--text); font-weight: 600; margin-bottom: 5px; }
#popover .def { color: var(--text-dim); margin-bottom: 7px; }
#popover .colls { color: var(--teal); font-size: 12.5px; margin-bottom: 7px; }
#popover .ex { color: var(--text-dim); font-style: italic; font-family: var(--serif); border-left: 2px solid var(--line); padding-left: 10px; margin-bottom: 12px; }
#popover .row { display: flex; gap: 8px; }

/* ---------- 10. 写作 ---------- */
.band-badge {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 800; flex: none;
  font-variant-numeric: tabular-nums;
}
.band-badge.big {
  width: 84px; height: 84px; font-size: 32px; border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 6px 20px rgba(0, 0, 0, .25);
}
.crit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.crit .name { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.crit .band { font-size: 21px; font-weight: 800; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.crit .comment { font-size: 13px; color: var(--text-dim); }
.issue { padding: 11px 14px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); margin-top: 9px; font-size: 13.5px; }
.issue .q { font-family: var(--serif); font-style: italic; color: var(--red); }
.issue .fix { color: var(--green); }
.issue .sev { float: right; }
.editor-meta { display: flex; align-items: center; gap: 14px; color: var(--text-faint); font-size: 13px; margin-top: 8px; flex-wrap: wrap; }
.draft-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.writing-prompt-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* 写作首页三种入口：看一例 / 练一段 / 写全文 */
.writing-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0 4px; }
.writing-start-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-align: left;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.writing-start-card:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-2px); }
.writing-start-ico { font-size: 20px; }
.writing-start-title { font-size: 17px; font-weight: 700; }
.writing-start-desc { color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.writing-start-note { color: var(--text-faint); font-size: 11.5px; }

/* 题库按 Task 1 / Task 2 分组 */
.writing-group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
.writing-group-head h2 { margin: 0; font-size: 17px; }
.writing-group-head span { color: var(--text-faint); font-size: 12.5px; }

/* 看一例：教学示例 */
.writing-example-picker {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px;
}
.writing-example-pick {
  min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.writing-example-pick:hover { border-color: var(--line-strong); background: var(--card-hover); transform: translateY(-1px); }
.writing-example-pick.active { border-color: var(--accent); background: var(--accent-soft); }
.writing-example-pick strong { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.writing-example-pick > span:last-child { color: var(--text-faint); font-size: 11.5px; }
.writing-example-pick-num { color: var(--accent); font-size: 11px; font-weight: 700; }
.writing-example-notice { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--amber); margin-bottom: 14px; }
.writing-example-notice p { margin: 0; color: var(--text-dim); font-size: 13px; }
.writing-example-notice .writing-example-note { color: var(--text-faint); font-size: 12px; }
.writing-example-original { font-family: var(--serif); line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.writing-example-summary { margin: 0 0 4px; }
.writing-revision { display: flex; flex-direction: column; gap: 12px; }
.writing-rev-row { display: flex; gap: 12px; align-items: flex-start; }
.writing-rev-row p { margin: 0; font-family: var(--serif); line-height: 1.8; }
.writing-rev-row.before p { color: var(--text-dim); }
.writing-rev-tag {
  flex: none; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
  background: var(--bg-soft); color: var(--text-dim); border: 1px solid var(--line);
}
.writing-rev-row.after .writing-rev-tag { background: var(--green-soft); color: var(--green); border-color: transparent; }
.writing-rev-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 13px; }

/* 练一段：结构引导模板 */
.writing-paragraph-note { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--amber); margin-bottom: 14px; }
.writing-paragraph-note p { margin: 0; color: var(--text-dim); font-size: 13px; }
.writing-para-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.writing-para-controls label { display: flex; flex-direction: column; gap: 5px; flex: 1 1 220px; min-width: 0; font-size: 12px; color: var(--text-faint); }
.writing-para-intro { margin: 10px 0 0; color: var(--text-dim); font-size: 13px; }
.writing-frames { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.writing-frame {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.writing-frame:hover { border-color: var(--accent); background: var(--accent-soft); }
.writing-frame-tag { font-size: 11px; font-weight: 700; color: var(--accent); }
.writing-frame-text { font-family: var(--serif); font-size: 13.5px; color: var(--text-dim); }
.writing-checklist { display: grid; gap: 10px; }
.writing-check { display: flex; align-items: flex-start; gap: 10px; color: var(--text-dim); font-size: 13.5px; cursor: pointer; }
.writing-check input { margin-top: 3px; flex: none; accent-color: var(--accent); }
.writing-para-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* 结果首屏：一个主要发现 + 原文证据 + 马上能做的动作 */
.writing-focus { border-left: 3px solid var(--accent); background: linear-gradient(120deg, var(--accent-soft), transparent 65%), var(--card); margin-bottom: 14px; }
.writing-focus-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.writing-focus-headline { margin: 8px 0 0; font-size: 19px; line-height: 1.5; }
.writing-focus-evidence {
  margin: 12px 0 4px; padding: 10px 14px; border-left: 2px solid var(--amber); border-radius: 8px;
  background: var(--bg-soft); font-family: var(--serif); font-style: italic; line-height: 1.8; overflow-wrap: anywhere;
}
.writing-focus-evidence-label { font-size: 11.5px; color: var(--text-faint); }
.writing-focus-action { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 1.6; }
.writing-focus-action .chip { flex: none; margin-top: 2px; }
.writing-focus-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 760px) {
  .writing-start { grid-template-columns: 1fr; }
  .writing-para-controls label { flex-basis: 100%; }
  .writing-rev-row { flex-direction: column; gap: 6px; }
  .writing-example-picker { grid-template-columns: 1fr; }
  .writing-focus-actions .btn { flex: 1 1 100%; }
}

/* ---------- 11. 口语 ---------- */
.rec-zone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rec-btn {
  width: 64px; height: 64px; border-radius: 50%; flex: none; font-size: 24px;
  background: var(--accent); color: light-dark(rgb(76,76,76), #fff); display: grid; place-items: center; transition: .2s var(--ease);
  box-shadow: 0 0 0 0 rgba(79, 140, 255, .4);
}
.rec-btn.recording { background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 109, 109, .45); }
  70% { box-shadow: 0 0 0 16px rgba(242, 109, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 109, 109, 0); }
}
.rec-hint { color: var(--text-dim); font-size: 13.5px; }
.rec-hint b { color: var(--text); font-variant-numeric: tabular-nums; }

.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; position: relative; }
.bubble.ai { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.user { align-self: flex-end; background: var(--accent); color: light-dark(rgb(76,76,76), #fff); border-bottom-right-radius: 5px; }
.bubble .hint { margin-top: 7px; font-size: 12.5px; color: var(--amber); }
.bubble .speak { position: absolute; left: -34px; top: 50%; transform: translateY(-50%); opacity: .55; font-size: 15px; }
.bubble .speak:hover { opacity: 1; }
.cue-card { background: var(--bg-soft); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 16px 20px; font-family: var(--serif); }
.cue-card ul { margin: 8px 0 0; padding-left: 20px; }
.turn-feedback { border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 12px; }

/* ---------- 12. 词汇 ---------- */
/* 证据可视化：统一视觉语言，不使用奖励货币 */
.vocabulary-hero {
  margin-top: 20px; padding: 26px; display: flex; gap: 25px; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(110deg, var(--green-soft), var(--bg-soft));
}
.vocabulary-hero h2 { font-size: 24px; margin: 9px 0; text-wrap: balance; }
.vocabulary-hero p { margin: 0; color: var(--text-dim); font-size: 13px; }
.usage-kicker { font-size: 10px; letter-spacing: 2px; color: var(--teal); font-weight: 600; }
.vocabulary-total { display: flex; flex-direction: column; align-items: center; min-width: 85px; }
.vocabulary-total strong { font-size: 37px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vocabulary-total span { font-size: 11px; color: var(--text-dim); }

.mastery-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; margin: 14px 0 20px; overflow: hidden; }
.mastery-step { padding: 17px; text-align: left; border-right: 1px solid var(--line); transition: background .15s var(--ease); }
.mastery-step:last-child { border: 0; }
.mastery-step:hover { background: var(--card); }
.mastery-label { font-size: 12px; color: var(--text-dim); display: block; }
.mastery-step strong { display: block; font-size: 27px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.mastery-step small { font-size: 10px; color: var(--text-dim); display: block; }
.mastery-track { display: block; height: 3px; margin: 6px 0 11px; background: var(--line); overflow: hidden; border-radius: 5px; }
.mastery-track i { display: block; height: 100%; background: var(--accent); }
.produced .mastery-track i, .secured .mastery-track i { background: var(--green); }

.vocab-note { font-size: 12px; color: var(--text-dim); line-height: 1.8; }
.vocab-filters, .vocab-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.vocab-filters > .input { flex: 1; min-width: 160px; }
.vocab-filters > .topic-filter { max-width: 170px; }
.vocab-list { padding-top: 0; padding-bottom: 0; }
.personal-word { border-bottom: 1px solid var(--line); }
.personal-word:last-child { border: 0; }
.personal-word summary { cursor: pointer; }
.personal-word .vocab-row { border: 0; flex-wrap: wrap; }
.word-history { padding: 0 0 18px; }
.word-history p { font-size: 13px; }
.word-history h4 { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.word-history .collocation { color: var(--teal); }
.word-history blockquote, .usage-example blockquote {
  font-family: var(--serif); margin: 12px 0; padding: 8px 14px; border-left: 2px solid var(--teal);
  color: var(--text); line-height: 1.8; overflow-wrap: anywhere;
}
.usage-example { padding: 12px 0; border-top: 1px solid var(--line); }
.usage-example p { font-size: 13px; margin: 8px 0; }
.usage-example .btn { margin-left: 8px; }
.usage-card, .vocabulary-suggestions { margin: 18px 0; }
.usage-card h3 { font-size: 17px; margin: 8px 0; }
.usage-other { font-size: 13px; color: var(--text-dim); }
.usage-other summary { cursor: pointer; }

.review-invitation { padding: 30px; }
.review-invitation h2 { margin: 12px 0; font-size: 25px; }
.review-invitation p { color: var(--text-dim); font-size: 14px; max-width: 560px; }
.review-invitation .btn { margin: 8px 0; }
.review-progress { display: flex; align-items: center; gap: 12px; margin: 10px 0; color: var(--text-dim); font-size: 12px; }
.review-progress progress { flex: 1; min-width: 30px; height: 5px; accent-color: var(--teal); }
.review-card { padding: 30px; }
.review-card h2 { font-size: 20px; margin: 18px 0; }
.review-card .quiz-input { max-width: 340px; margin: 12px 0; }
.vocab-choices { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.vocab-choice {
  padding: 15px; text-align: left; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-soft); line-height: 1.7;
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.vocab-choice:hover { border-color: var(--line-strong); }
.vocab-choice[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
.dictation-play { display: flex; align-items: center; gap: 18px; padding: 20px; background: var(--bg-soft); border-radius: 10px; margin: 20px 0; }
.dictation-play .speak { font-size: 27px; padding: 8px; }
.dictation-play span { color: var(--text-dim); font-size: 13px; }
.review-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-summary span, .review-summary small { color: var(--text-dim); font-size: 12px; }

.quiz-sentence { font-size: 19px; line-height: 1.8; font-family: var(--serif); }
.quiz-sentence .blank { display: inline-block; min-width: 90px; border-bottom: 2px solid var(--accent); text-align: center; color: var(--accent); font-weight: 700; }
.vocab-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.vocab-row:last-child { border-bottom: 0; }
.vocab-row .term { font-weight: 700; font-family: var(--serif); font-size: 15.5px; width: 150px; flex: none; }
.vocab-row .mean { color: var(--text-dim); font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-track { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress-track > i { display: block; height: 100%; border-radius: 4px; background: var(--green); }

@media (max-width: 760px) {
  .vocabulary-hero { padding: 20px; gap: 10px; }
  .vocabulary-hero h2 { font-size: 20px; }
  .vocabulary-total { min-width: 55px; }
  .vocabulary-total strong { font-size: 30px; }
  .mastery-strip { grid-template-columns: 1fr 1fr; }
  .mastery-step { border-bottom: 1px solid var(--line); }
  .mastery-step:nth-child(2) { border-right: 0; }
  .mastery-step:nth-child(3) { border-bottom: 0; }
  .review-card, .review-invitation { padding: 20px; }
  .vocab-filters > .topic-filter { max-width: none; }
  .usage-example .btn { margin: 10px 0 0; }
  .review-progress { gap: 6px; }
}

/* ---------- 13. 结果与动画 ---------- */
.back-row { margin-bottom: 16px; }
.result-banner { display: flex; align-items: center; gap: 18px; }
.result-banner .score { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.result-banner .score small { font-size: 16px; color: var(--text-dim); font-weight: 500; }

.fade-in { animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 14. 反馈与对话框 ---------- */
.feedback-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  padding: 10px 16px; border: 1px solid light-dark(rgba(159,176,209,0.550), rgba(79, 140, 255, .55)); border-radius: 999px;
  background: light-dark(rgba(242,244,248,0.960), rgba(20, 25, 35, .96)); color: var(--text);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .35); font-weight: 700;
  transition: border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.feedback-fab:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.feedback-dialog {
  width: min(560px, calc(100vw - 28px)); padding: 24px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); color: var(--text); box-shadow: var(--shadow-lg);
  overscroll-behavior: contain;
}
.feedback-dialog::backdrop { background: light-dark(rgba(241,244,249,0.720), rgba(3, 6, 12, .72)); backdrop-filter: blur(3px); }
.feedback-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.feedback-dialog h2 { margin: 9px 0 0; }
.feedback-dialog > p { color: var(--text-dim); line-height: 1.7; }
.feedback-close {
  font-size: 20px; line-height: 1; color: var(--text-dim);
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.feedback-close:hover { background: var(--card-hover); color: var(--text); }
.feedback-form { display: flex; flex-direction: column; gap: 14px; }
.feedback-privacy { margin: 0; color: var(--text-faint); font-size: 12px; line-height: 1.6; }
.feedback-admin-row p { white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-admin-row a { display: inline-block; margin-top: 7px; }
.membership-dialog .account-actions { margin-top: 18px; }
.site-footer { margin-top: 34px; padding: 18px 4px 0; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 11px; text-align: center; }
.site-footer a { color: var(--text-dim); }
@media (max-width: 760px) {
  .feedback-fab { right: 14px; bottom: 76px; }
  .feedback-dialog { padding: 20px; }
}

/* ---------- 15. 账号与经营 ---------- */
.account-page, .account-public { display: flex; flex-direction: column; gap: 18px; }
.account-hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: 24px; padding: 30px;
  border: 1px solid light-dark(rgba(159,176,209,0.300), rgba(79, 140, 255, .3)); border-radius: 18px;
  background: linear-gradient(125deg, light-dark(rgba(220,227,239,0.150), rgba(79, 140, 255, .15)), light-dark(rgba(225,220,239,0.080), rgba(167, 139, 250, .08)));
}
.account-hero h1 { font-size: 30px; line-height: 1.3; margin: 12px 0 8px; }
.account-hero p, .muted { color: var(--text-dim); }
.commercial-points { display: flex; flex-direction: column; gap: 12px; }
.commercial-points > div {
  display: flex; flex-direction: column; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 12px; background: light-dark(rgba(243,244,247,0.450), rgba(14, 17, 22, .45));
}
.commercial-points span { font-size: 12px; color: var(--text-dim); }
.auth-card { max-width: 560px; width: 100%; margin: 0 auto; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin: -4px 0 20px; }
.auth-tabs button { padding: 10px 14px; color: var(--text-dim); border-bottom: 2px solid transparent; transition: color .15s var(--ease), border-color .15s var(--ease); }
.auth-tabs button.active { color: var(--accent); border-color: var(--accent); }
.account-form { display: flex; flex-direction: column; gap: 14px; }
.account-field { display: flex; flex-direction: column; gap: 5px; }
.account-field > span { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.terms-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--text-dim); }
.terms-check input { margin-top: 5px; }
.legal-links a { white-space: nowrap; }
.account-footnote, .small-copy { font-size: 12px; color: var(--text-faint); }
.recovery-card { border-color: light-dark(rgba(209,192,159,0.450), rgba(245, 184, 61, .45)); }
.recovery-card h2 { margin: 10px 0 4px; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 16px 0; }
.recovery-grid code { padding: 9px 12px; border-radius: 8px; background: var(--bg-soft); font-size: 14px; letter-spacing: .08em; }
.account-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.account-heading { justify-content: space-between; }
.membership-title { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.membership-title h2 { margin: 8px 0 2px; }
.plan-price, .membership-current-price { font-size: 28px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-features { display: flex; gap: 8px; flex-wrap: wrap; margin: 15px 0; }
.plan-features span { padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.section-title { font-size: 19px; margin: 4px 0 10px; }
.quota-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.quota-card { display: flex; flex-direction: column; gap: 6px; }
.quota-card span { font-size: 12px; color: var(--text-dim); }
.quota-card b { font-size: 20px; font-variant-numeric: tabular-nums; }
.order-row, .admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.order-row:last-of-type, .admin-row:last-child { border-bottom: 0; }
.order-row small, .admin-row small, .support-row small { display: block; color: var(--text-faint); font-size: 11px; overflow-wrap: anywhere; }
.order-amount { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-amount .chip { margin-left: 8px; }
.order-actions { grid-column: 1/-1; display: flex; gap: 8px; flex-wrap: wrap; }
.refund-box { width: 100%; }
.refund-box textarea { margin: 8px 0; }
.refund-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.refund-state small { width: 100%; }
.refund-state-note { color: var(--text-dim); font-size: 13px; }
.refund-list { margin-top: 18px; }
.support-form { display: grid; grid-template-columns: 170px 1fr; gap: 10px; }
.support-form textarea, .support-form button { grid-column: 1/-1; }
.ticket-list { margin-top: 18px; }
.support-row { padding: 12px 0; border-top: 1px solid var(--line); }
.support-row p { margin: 6px 0; }
.support-row blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--bg-soft); color: var(--text-dim); }
.inline-form { display: flex; gap: 8px; margin: 10px 0; }
.compact-form { max-width: 520px; margin: 12px 0; }
.account-page details { margin-top: 12px; }
.account-page summary { cursor: pointer; color: var(--accent); }
.delete-details summary { color: var(--red); }
.danger-zone { padding-top: 10px; }
.terms-update { border-color: light-dark(rgba(209,192,159,0.450), rgba(245, 184, 61, .45)); }
.payment-form-host { position: fixed; inset: 0; z-index: 1000; background: light-dark(rgb(230,230,230), #fff); color: light-dark(rgb(17,17,17), #111); display: grid; place-items: center; }
.admin-panel { display: flex; flex-direction: column; gap: 12px; }
.admin-row textarea { margin-bottom: 8px; }
.account-legal { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; padding: 16px; color: var(--text-faint); font-size: 11px; }
.empty.compact { padding: 18px; }
.recovery-input { text-transform: uppercase; letter-spacing: .08em; }

.business-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.business-head h3 { margin: 0; font-size: 18px; }
.business-head p { margin: 2px 0 0; color: var(--text-faint); font-size: 11px; }
.funnel-steps { display: flex; gap: 8px; align-items: stretch; margin: 18px 0; overflow-x: auto; padding-bottom: 4px; }
.funnel-step { display: flex; flex: 1 0 125px; flex-direction: column; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.funnel-step span, .funnel-step small { color: var(--text-dim); font-size: 11px; }
.funnel-step b { font-size: 25px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.funnel-arrow { align-self: center; color: var(--accent); font-size: 18px; }
.business-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
.business-metrics > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 9px; background: light-dark(rgba(243,244,247,0.480), rgba(14, 17, 22, .48)); }
.business-metrics span { color: var(--text-faint); font-size: 10.5px; }
.business-metrics b { font-size: 13px; }
.module-usage { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.module-usage > span:first-child, .module-usage small { color: var(--text-faint); font-size: 11px; margin-right: 3px; }
.resource-usage { margin-top: 12px; }
.resource-usage summary { cursor: pointer; color: var(--accent); }
.resource-usage .quota-grid { margin-top: 10px; }
.quota-card small { color: var(--text-faint); font-size: 10px; }
@media (max-width: 760px) {
  .account-hero { grid-template-columns: 1fr; padding: 22px; }
  .account-hero h1 { font-size: 25px; }
  .recovery-grid { grid-template-columns: 1fr; }
  .membership-title { flex-direction: column; }
  .support-form { grid-template-columns: 1fr; }
  .support-form textarea, .support-form button { grid-column: auto; }
  .order-row, .admin-row { grid-template-columns: 1fr; }
  .order-amount { text-align: left; }
  .inline-form { flex-direction: column; }
  .tabbar button { min-width: 0; }
  .tabbar button:nth-child(6), .tabbar button:nth-child(7) { font-size: 9px; }
  .business-head { flex-direction: column; }
  .funnel-steps { flex-direction: column; }
  .funnel-step { flex-basis: auto; }
  .funnel-arrow { transform: rotate(90deg); align-self: center; }
  .business-metrics { grid-template-columns: 1fr 1fr; }
}

/* A quieter home: subjects as a paper-style list, practice first. */
.home-subjects { display: flex; flex-direction: column; margin-bottom: 26px; }
.home-records { margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-records > summary { padding: 18px 4px; cursor: pointer; font-weight: 600; }
.home-records > summary span { margin-left: 16px; color: var(--text-faint); font-size: 12px; font-weight: 400; }
.home-records > .card { margin: 0 0 16px; }
.home-offer { box-shadow: none; }
.home-offer .eyebrow { display: none; }
.resource-note summary { cursor: pointer; padding: 8px 0; }
@media (max-width: 600px) {
  .module-card { padding: 13px 14px; }
  .home-records > summary span { display: block; margin: 6px 0 0 18px; }
}

/* Display preferences are independent: theme controls color, mode controls detail. */
:root { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa; --bg-soft: #eef2f7; --card: #ffffff; --card-hover: #f0f4fa;
  --line: #d5dce7; --line-strong: #9aa9bf;
  --text: #192538; --text-dim: #4c5e75; --text-faint: #617086;
  --accent: #245ed0; --accent-soft: #e8effe;
  --green: #137b50; --green-soft: #e3f4eb;
  --amber: #8b600d; --amber-soft: #fff3d8;
  --red: #b73939; --red-soft: #fde9e9;
  --purple: #7150bb; --purple-soft: #f0eafa;
  --teal: #137d75; --teal-soft: #e2f3f1;
  --shadow-sm: 0 2px 10px #1a35500a; --shadow: 0 10px 30px #1a355010; --shadow-lg: 0 24px 80px #1a355020;
}
:root[data-theme="light"] .logo { color: #fff; background: linear-gradient(135deg,#245ed0,#7150bb); }
:root[data-theme="light"] :is(.bubble.user,.play-btn,.rec-btn) { color: #fff; }
:root[data-theme="light"] :is(.reading-library,.reading-studio) { --text-faint: #617086; }
.workspace { flex: 1; min-width: 0; max-width: 1060px; }
.workspace .main { max-width: none; padding-top: 12px; }
.appearance-bar { display: flex; justify-content: flex-end; gap: 16px; padding: 14px clamp(18px,4vw,48px) 0; }
.appearance-bar label { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12px; }
.appearance-bar select { min-height: 44px; padding: 7px 26px 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--text); font-size: 13px; cursor: pointer; }
:root:not([data-mode="full"]) .full-only { display: none; }
:root[data-mode="full"] .module-desc { max-width: none; }
@media (max-width: 1000px) and (min-width: 761px) {
  .side { width: 185px; padding-inline: 10px; }
  .brand { padding-inline: 0; }
  .workspace .main { padding-inline: 20px; }
  .appearance-bar { padding-inline: 20px; }
}
@media (max-width: 760px) {
  .workspace { width: 100%; }
  .appearance-bar { justify-content: space-between; padding: 10px 14px 0; gap: 12px; }
  :root[data-mode="full"] .home-subjects { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace .main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .tabbar { padding-bottom: env(safe-area-inset-bottom); }
  .feedback-fab { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Navigation stays discoverable on compact screens, even above long content. */
.mobile-menu { display: none; }
.material-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 18px; }
.material-pager[hidden] { display: none; }
.material-pager span { color: var(--text-dim); font-size: 13px; }
.material-pager button { min-height: 44px; }
.reading-library > .section-label,.library-result-count { scroll-margin-top: 85px; }
@media (max-width: 1000px) {
  .side { display: none; }
  .appearance-bar { position: sticky; top: 0; z-index: 45; align-items: center; justify-content: space-between; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 14px; }
  .mobile-menu { display: block; }
  .mobile-menu summary { cursor: pointer; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 14px; }
  .mobile-menu nav { position: absolute; left: 14px; top: calc(100% + 4px); width: min(300px,calc(100vw - 28px)); padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
  .mobile-menu .nav-item { width: 100%; text-align: left; min-height: 44px; }
  .reading-mobile-switch { top: 62px; }
  .appearance-bar label { gap: 5px; }
  .appearance-bar select { padding-right: 10px; }
  .reading-pack { padding: 16px !important; }
  .reading-pack-skills { display: none; }
  .library-material { padding: 16px; }
}

/* Server-priced offers and optional exam date. */
.price-was { text-decoration: line-through; color: var(--text-faint); font-weight: 500; font-size: 14px; }
.promo-chip { color: var(--purple); background: var(--purple-soft); }
.price-row, .landing-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.promo-details, .price-daily, .price-anchor { font-size: 12px; color: var(--text-faint); overflow-wrap: anywhere; }
.exam-date-row, .exam-date-row label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.exam-date-row { margin: 14px 0; }
.exam-date-row input { width: auto; min-width: 0; max-width: 100%; }
.exam-date-row a { color: var(--accent); font-size: 13px; }
.exam-soon, .habit-status.streak-warning { color: var(--amber); }
.home-offer-action, .expiry-action { min-width: 0; }
.inline-form > .input { min-width: 0; }
.membership-pricing { overflow-wrap: anywhere; }
.membership-pricing ul { padding-left: 20px; }
.email-code-row { display: flex; align-items: flex-end; gap: 10px; }
.email-code-row .account-field { flex: 1; min-width: 0; }
.email-code-row button { min-height: 44px; flex: none; }
.email-binding { max-width: 520px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }

/* ---------- P0 成人首次体验：演示示例、第一课、欢迎页 ---------- */
/* 落地页视觉主角：作答 → 证据 → 修正 → 验证 的教学示例（非真实成绩）。 */
.landing-demo {
  padding: 22px; border: 1px solid var(--line); border-radius: 16px;
  background: light-dark(rgba(255,255,255,0.72), rgba(14, 17, 22, .55));
  box-shadow: var(--shadow-sm);
}
.landing-demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.landing-demo-head .eyebrow { margin: 0; }
.landing-demo-head p { margin: 0; color: var(--text-faint); font-size: 12px; }
.demo-question { margin: 14px 0 10px; font-weight: 600; font-size: 15px; }
.demo-num { color: var(--accent); font-weight: 700; margin-right: 6px; }
.demo-passage {
  margin: 0; padding: 12px 16px; border-left: 3px solid var(--text-faint);
  background: var(--bg-soft); border-radius: 8px; color: var(--text-dim);
  font-family: var(--serif); font-size: 15px; line-height: 1.75;
}
.demo-passage mark { background: var(--teal-soft); color: var(--teal); padding: 0 3px; border-radius: 3px; }
.demo-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.demo-steps li { display: flex; gap: 10px; align-items: baseline; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.demo-step {
  flex: none; min-width: 42px; padding: 1px 7px; border-radius: 6px; text-align: center;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .3px;
}

/* 欢迎页：成人（书面 · 方法）与儿童（轻任务 · 玩）一眼可分。 */
html[data-route="welcome"] .welcome-cards { gap: clamp(16px, 3vw, 24px); }
html[data-route="welcome"] .welcome-card {
  position: relative; min-height: 0; padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line); border-top: 0; border-radius: 18px; background: var(--card);
}
html[data-route="welcome"] .welcome-card.kids { border-left: 4px solid var(--teal); }
html[data-route="welcome"] .welcome-card.adult { border-left: 4px solid var(--accent); }
html[data-route="welcome"] .welcome-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: none; color: var(--text-faint); }
html[data-route="welcome"] .welcome-card.kids .welcome-tag { color: var(--teal); }
html[data-route="welcome"] .welcome-card.adult .welcome-tag { color: var(--accent); }
html[data-route="welcome"] .welcome-card h2 { font-weight: 700; }
html[data-route="welcome"] .welcome-story-art {
  display: block; width: 100%; min-height: 168px; margin: 2px 0 6px;
  border-radius: 12px; background: #d9eef7 url('/assets/kids-picnic-adventure-v1.webp') 58% 53% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(25, 63, 54, .1);
}
html[data-route="welcome"] .welcome-study-art {
  display: block; position: relative; overflow: hidden; width: 100%; height: 168px; margin: 2px 0 6px;
  border: 1px solid #9ab6e5; border-radius: 12px;
  background: radial-gradient(circle at 80% 0%, #d7e4ff 0, transparent 47%),
    linear-gradient(125deg, #eaf1ff, #bad1fa);
}
html[data-route="welcome"] .welcome-study-art::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(#5679b51a 1px, transparent 1px), linear-gradient(90deg, #5679b51a 1px, transparent 1px);
  background-size: 22px 22px;
}
html[data-route="welcome"] .welcome-study-paper {
  display: flex; flex-direction: column; gap: 7px; position: absolute; top: 15px; left: 9%;
  width: 61%; height: 140px; padding: 13px 15px; transform: rotate(-4deg);
  background: #fffdf9; border: 1px solid #d9dfed; border-radius: 5px;
  box-shadow: 0 12px 24px #1a3f7840; color: #243658;
}
html[data-route="welcome"] .welcome-study-kicker { color: #3e68b9; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
html[data-route="welcome"] .welcome-study-greeting { font: italic 12px var(--serif); }
html[data-route="welcome"] .welcome-study-line { display: block; width: 82%; height: 4px; border-radius: 3px; background: #cbd6e7; }
html[data-route="welcome"] .welcome-study-line.long { width: 94%; }
html[data-route="welcome"] .welcome-study-line.short { width: 57%; }
html[data-route="welcome"] .welcome-study-underline { display: block; width: 48%; height: 6px; border-bottom: 2px solid #e5a74b; }
html[data-route="welcome"] .welcome-study-feedback {
  display: flex; flex-direction: column; gap: 2px; position: absolute; right: 5%; bottom: 13px;
  width: 48%; padding: 9px 11px; border: 1px solid #b9cbee; border-radius: 9px;
  background: #f7faff; box-shadow: 0 9px 20px #1a3f7830; color: #426295;
  font-size: 9px; line-height: 1.3;
}
html[data-route="welcome"] .welcome-study-feedback strong { color: #1d3e7d; font-size: 14px; }
html[data-route="welcome"] .welcome-card p { font-size: 14px; }
html[data-route="welcome"] .welcome-card ul { font-size: 13.5px; }
html[data-route="welcome"] .welcome-cta {
  margin-top: 8px; align-self: stretch; text-align: center; padding: 11px 14px;
  border-radius: 10px; font-weight: 600; font-size: 14px;
  background: var(--bg-soft); color: var(--text); border: 1px solid var(--line);
}
html[data-route="welcome"] .welcome-card.kids .welcome-cta { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
html[data-route="welcome"] .welcome-card.adult .welcome-cta { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* 首页新人引导：一个明确的 5 分钟第一课。 */
.first-lesson {
  margin-bottom: 22px; padding: 26px 28px;
  border: 1px solid light-dark(rgba(159,176,209,0.300), rgba(79, 140, 255, .35)); border-radius: 16px;
  background: linear-gradient(120deg, light-dark(rgba(220,227,239,0.140), rgba(79, 140, 255, .10)), light-dark(rgba(243,244,247,0.700), rgba(14, 17, 22, .55)));
  display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap;
}
.first-lesson-copy { max-width: 640px; }
.first-lesson-copy h2 { margin: 6px 0 4px; font-size: 22px; }
.first-lesson-copy p { margin: 0 0 6px; color: var(--text-dim); font-size: 14px; }
.first-lesson-action { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 210px; }
.first-lesson-cta { min-height: 48px; font-size: 15px; padding: 12px 26px; }

@media (max-width: 620px) {
  /* 手机端保持单一主 CTA 与清楚层级。 */
  .landing-actions { flex-direction: column; align-items: stretch; }
  .landing-actions .btn { width: 100%; }
  .landing-actions .btn.ghost { width: auto; border-color: transparent; padding-left: 2px; }
  .landing-demo { padding: 18px 16px; }
  .first-lesson { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 18px; }
  .first-lesson-action { min-width: 0; width: 100%; }
  .first-lesson-cta { width: 100%; }
}
