/* ============================================================
 * B 版 · 温暖插画 / 卡片流风格
 *
 * 设计语言（与 A 版刻意对立）：
 *   · 暖色系：陶土橘、奶油、深咖，大量渐变与柔光
 *   · 大圆角（18–28px）、多层阴影、玻璃拟态
 *   · 卡片堆叠、悬浮、渐变描边 —— 有体积感
 *   · 底部常驻 Tab 导航，图标 + 文字
 *   · 数字用圆润无衬线，标题带轻微喜剧感
 *
 * 目标观感：像一本身边的小册子 App，亲和、好读、有温度
 * ============================================================ */

:root {
  /* 暖色主盘 */
  --clay-900: #2A1810;
  --clay-800: #3D2418;
  --clay-700: #5C3625;
  --clay-500: #B8562F;
  --clay-400: #D97042;
  --clay-300: #EE9268;

  --cream-50:  #FDF8F2;
  --cream-100: #FAEFE2;
  --cream-200: #F2DFC9;
  --cream-300: #E5C9A8;

  --sage-500: #6B8F71;
  --sage-400: #8CAE8F;

  --gold-500: #E8A33D;
  --gold-400: #F4BC5C;

  --ink:      #2A1810;
  --ink-70:   #6B5344;
  --ink-45:   #A08A78;

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* 阴影 */
  --sh-1: 0 2px 8px rgba(61, 36, 24, .06);
  --sh-2: 0 6px 20px rgba(61, 36, 24, .09);
  --sh-3: 0 14px 40px rgba(61, 36, 24, .14);

  --f: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: #1A100B;
  color: var(--ink);
  font-family: var(--f);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* ---------- 手机外框（在桌面浏览器上也像 App） ---------- */

.phone {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background: var(--cream-50);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.statusbar {
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.sb-icons { display: flex; align-items: center; gap: 4px; }
.sb-icons i {
  display: block;
  width: 3px;
  background: var(--ink);
  border-radius: 2px;
}
.sb-icons i:nth-child(1) { height: 4px; }
.sb-icons i:nth-child(2) { height: 6px; }
.sb-icons i:nth-child(3) { height: 8px; }
.sb-icons b {
  width: 20px;
  height: 10px;
  border: 1.4px solid var(--ink);
  border-radius: 3px;
  display: block;
  margin-left: 2px;
}

.stage {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 96px;
}
.stage::-webkit-scrollbar { width: 0; }

/* ---------- 底部 Tab ---------- */

.tabbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  height: 72px;
  background: rgba(253, 248, 242, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--cream-200);
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  z-index: 60;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--ink-45);
  cursor: pointer;
  transition: color 160ms ease;
}
.tab__icon {
  width: 22px;
  height: 22px;
  display: block;
}
.tab__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tab--on { color: var(--clay-500); }
.tab--on .tab__icon { transform: translateY(-1px); }

/* ---------- 通用组件 ---------- */

.card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.pill--free { background: #EAF5EC; color: var(--sage-500); }
.pill--done { background: #FDF3E3; color: #B87820; }
.pill--lock { background: var(--cream-100); color: var(--ink-45); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border: 0;
  border-radius: 999px;
  font-family: var(--f);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 140ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 140ms ease;
  letter-spacing: .01em;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--clay-500), var(--clay-400) 60%, var(--gold-500));
  color: #fff;
  box-shadow: 0 8px 22px rgba(184, 86, 47, .32);
}

.btn--soft {
  background: var(--cream-100);
  color: var(--clay-700);
}
.btn--soft:active { background: var(--cream-200); }

.btn--disabled {
  background: var(--cream-200);
  color: var(--ink-45);
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* ---------- 首页 ---------- */

.home-hero {
  padding: 12px 20px 0;
  position: relative;
}
.hero-card {
  border-radius: var(--r-xl);
  padding: 28px 24px 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 188, 92, .55) 0%, transparent 46%),
    radial-gradient(circle at 12% 92%, rgba(140, 174, 143, .35) 0%, transparent 48%),
    linear-gradient(150deg, var(--clay-800) 0%, var(--clay-700) 48%, var(--clay-500) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
/* 装饰纹样：右下角同心圆弧 */
.hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 24px rgba(255, 255, 255, .04);
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: 27px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}
.hero-sub {
  font-size: 13px;
  line-height: 1.65;
  opacity: .82;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.hero-stat { }
.hero-stat b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero-stat span {
  font-size: 10.5px;
  opacity: .7;
  letter-spacing: .04em;
}

/* ---------- 课程卡片 ---------- */

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 20px 14px;
}
.sec-head h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.sec-head span {
  font-size: 11.5px;
  color: var(--ink-45);
}

.course-card {
  margin: 0 20px 14px;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.course-card:active {
  transform: scale(.985);
  box-shadow: var(--sh-2);
}

.cc-cover {
  height: 132px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cc-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 36, 24, .5), transparent 55%);
}
.cc-num {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  z-index: 1;
}
.cc-body { padding: 16px 18px 18px; }
.cc-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-bottom: 7px;
}
.cc-sub {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-70);
  margin-bottom: 14px;
}
.cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- 详情页 ---------- */

.detail-cover {
  height: 210px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 24, 16, .82) 0%, rgba(42, 24, 16, .18) 52%, transparent 72%);
}
.detail-cover h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 21px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -.02em;
}

.back-fab {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  z-index: 3;
  box-shadow: var(--sh-1);
}

.detail-body { padding: 22px 20px 0; }
.detail-intro {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-70);
  margin-bottom: 24px;
}

/* 进度卡 */
.prog-card {
  background: linear-gradient(135deg, #fff, var(--cream-100));
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-1);
  margin-bottom: 24px;
  border: 1px solid var(--cream-200);
}
.prog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}
.prog-top span { font-size: 12.5px; color: var(--ink-70); font-weight: 600; }
.prog-top b {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--clay-500);
  line-height: 1;
}
.prog-top b i { font-size: 15px; font-style: normal; font-weight: 600; }

.prog-bar {
  height: 9px;
  background: var(--cream-200);
  border-radius: 999px;
  overflow: hidden;
}
.prog-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clay-500), var(--gold-400));
  transition: width 500ms cubic-bezier(.4, 0, .2, 1);
}
.prog-note {
  font-size: 11.5px;
  color: var(--ink-45);
  margin-top: 10px;
}

/* 课时列表 */
.lesson-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  margin-bottom: 24px;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--cream-100);
  cursor: pointer;
  transition: background 140ms ease;
}
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:active { background: var(--cream-50); }

.lr-idx {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--cream-100);
  color: var(--ink-70);
}
.lesson-row--done .lr-idx {
  background: linear-gradient(135deg, var(--sage-500), var(--sage-400));
  color: #fff;
}
.lr-main { flex: 1; min-width: 0; }
.lr-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 3px;
}
.lr-meta {
  font-size: 11px;
  color: var(--ink-45);
}
.lr-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}
.lr-play svg { width: 11px; height: 11px; fill: var(--clay-500); }

/* 考试入口 */
.exam-banner {
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(244, 188, 92, .5) 0%, transparent 50%),
    linear-gradient(135deg, var(--clay-700), var(--clay-500));
  color: #fff;
  box-shadow: 0 10px 28px rgba(184, 86, 47, .26);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.exam-banner--locked {
  background: var(--cream-100);
  color: var(--ink-45);
  box-shadow: none;
  cursor: default;
}
.exam-banner--locked .exam-btn { background: var(--cream-200); color: var(--ink-45); box-shadow: none; }
.exam-banner h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.exam-banner p {
  font-size: 12.5px;
  line-height: 1.6;
  opacity: .88;
  margin-bottom: 16px;
}
.exam-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--clay-700);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(42, 24, 16, .18);
}

/* ---------- 表单 ---------- */

.form-wrap { padding: 24px 20px 0; }
.form-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.form-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-70);
  margin-bottom: 26px;
}

.fld { margin-bottom: 18px; }
.fld label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-70);
  margin-bottom: 7px;
}
.fld label em { color: var(--clay-500); font-style: normal; }
.fld input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--cream-200);
  border-radius: var(--r-md);
  background: #fff;
  padding: 0 18px;
  font-family: var(--f);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.fld input::placeholder { color: var(--ink-45); font-size: 14px; }
.fld input:focus {
  border-color: var(--clay-400);
  box-shadow: 0 0 0 4px rgba(217, 112, 66, .1);
}

/* ---------- 播放 ---------- */

.video-box {
  background: var(--clay-900);
  position: relative;
  overflow: hidden;
  /* aspect-ratio 兼容性太差（微信老内核不支持→高度塌成 0），
     改 padding-top 百分比，所有浏览器都认。 */
  height: 0;
  padding-top: 62.5%;   /* 16:10 */
}
.video-box video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: var(--clay-900);
}
.video-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  letter-spacing: .1em;
  background: rgba(42, 24, 16, .4);
}

.play-card {
  margin: -20px 20px 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-2);
}
.play-card h2 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.watch-row {
  display: flex;
  gap: 10px;
}
.watch-cell {
  flex: 1;
  background: var(--cream-50);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.watch-cell span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-45);
  margin-bottom: 4px;
}
.watch-cell b {
  font-size: 17px;
  font-weight: 800;
  color: var(--clay-500);
  letter-spacing: -.02em;
}

.next-card {
  margin: 16px 20px 0;
  background: var(--cream-100);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--clay-700);
}
.next-card:active { background: var(--cream-200); }

/* ---------- 考试 ---------- */

.exam-hero {
  margin: 12px 20px 0;
  border-radius: var(--r-xl);
  padding: 32px 26px;
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 188, 92, .55), transparent 45%),
    linear-gradient(145deg, var(--clay-800), var(--clay-500));
  color: #fff;
  box-shadow: var(--sh-3);
}
.exam-hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.exam-hero p { font-size: 13px; opacity: .85; line-height: 1.65; }

.exam-facts {
  display: flex;
  gap: 10px;
  margin: 18px 20px 0;
}
.fact {
  flex: 1;
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--sh-1);
}
.fact b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  color: var(--clay-500);
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* 历史记录 */
.hist-list { margin: 0 20px; }
.hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 9px;
  box-shadow: var(--sh-1);
}
.hist-left b { font-size: 13.5px; font-weight: 700; display: block; }
.hist-left span { font-size: 11px; color: var(--ink-45); }
.hist-score {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hist-score--pass { color: var(--sage-500); }
.hist-score--fail { color: var(--clay-500); }

/* ---------- 答题 ---------- */

.quiz-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(253, 248, 242, .94);
  backdrop-filter: blur(14px);
  padding: 14px 20px;
  border-bottom: 1px solid var(--cream-200);
}
.quiz-top-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-70);
  margin-bottom: 9px;
}
.quiz-prog {
  height: 7px;
  background: var(--cream-200);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-prog > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clay-500), var(--gold-400));
  transition: width 320ms ease;
}

.q-card {
  margin: 16px 20px 0;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-1);
}
.q-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--clay-500);
  background: var(--cream-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.q-stem {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.opt-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1.5px solid var(--cream-200);
  border-radius: var(--r-md);
  margin-bottom: 9px;
  cursor: pointer;
  transition: all 160ms ease;
  background: #fff;
}
.opt-row:last-child { margin-bottom: 0; }
.opt-row:active { background: var(--cream-50); }
.opt-row--on {
  border-color: var(--clay-400);
  background: linear-gradient(135deg, #FFF9F4, var(--cream-100));
  box-shadow: 0 3px 10px rgba(217, 112, 66, .13);
}
.opt-key {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-70);
  flex: 0 0 24px;
  transition: all 160ms ease;
}
.opt-row--on .opt-key {
  background: var(--clay-500);
  color: #fff;
}
.opt-txt {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-70);
  padding-top: 1px;
}
.opt-row--on .opt-txt { color: var(--ink); font-weight: 600; }

/* ---------- 成绩 ---------- */

.result-hero {
  margin: 12px 20px 0;
  border-radius: var(--r-xl);
  padding: 36px 26px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
}
.result-hero--pass {
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, .22), transparent 46%),
    linear-gradient(145deg, #4A7350, var(--sage-500));
}
.result-hero--fail {
  background:
    radial-gradient(circle at 80% 12%, rgba(244, 188, 92, .5), transparent 46%),
    linear-gradient(145deg, var(--clay-700), var(--clay-500));
}
.result-emoji { font-size: 40px; margin-bottom: 12px; }
.result-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.result-score {
  font-size: 62px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.result-score small {
  font-size: 20px;
  font-weight: 600;
  opacity: .75;
}
.result-note {
  font-size: 12.5px;
  opacity: .86;
  margin-top: 14px;
  line-height: 1.6;
}

.review-card {
  margin: 12px 20px 0;
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--sh-1);
  border-left: 4px solid var(--sage-500);
}
.review-card--no { border-left-color: var(--clay-500); }
.rv-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-45);
  margin-bottom: 9px;
}
.rv-head .ok { color: var(--sage-500); }
.rv-head .no { color: var(--clay-500); }
.rv-stem {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 9px;
}
.rv-ans {
  font-size: 11.5px;
  color: var(--ink-45);
}
.rv-ans b { color: var(--ink-70); font-weight: 700; }

/* ---------- 我的 ---------- */

.me-hero {
  padding: 30px 20px 24px;
  background: linear-gradient(180deg, var(--cream-100), transparent);
}
.me-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay-500), var(--gold-400));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(184, 86, 47, .3);
}
.me-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.me-sub {
  font-size: 12.5px;
  color: var(--ink-70);
  margin-top: 5px;
}

.me-stats {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}
.ms {
  flex: 1;
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--sh-1);
}
.ms b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--clay-500);
  letter-spacing: -.02em;
}
.ms span { font-size: 10.5px; color: var(--ink-45); }

.my-course {
  margin: 12px 20px 0;
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--sh-1);
  cursor: pointer;
}
.myc-cover {
  width: 58px;
  height: 58px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  flex: 0 0 58px;
}
.myc-body { flex: 1; min-width: 0; }
.myc-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.myc-bar {
  height: 6px;
  background: var(--cream-200);
  border-radius: 999px;
  overflow: hidden;
}
.myc-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--clay-500), var(--gold-400));
  border-radius: 999px;
}
.myc-pct {
  font-size: 11px;
  color: var(--ink-45);
  margin-top: 5px;
}

/* ---------- toast ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translate(-50%, 10px) scale(.96);
  background: rgba(42, 24, 16, .94);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all 200ms cubic-bezier(.34, 1.56, .64, 1);
  z-index: 999;
  max-width: 82%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(42, 24, 16, .3);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* ============================================================
 * 静音提示（B 版：胶囊、暖色、柔和）
 * ============================================================ */

.unmute-pill {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(253, 248, 242, .95);
  color: var(--clay-700);
  font-family: var(--f);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(42, 24, 16, .35);
  backdrop-filter: blur(10px);
  animation: pillIn 300ms cubic-bezier(.34, 1.56, .64, 1) both;
  z-index: 5;
}
.unmute-pill[hidden] { display: none; }
.unmute-pill:active { transform: translateX(-50%) scale(.95); }

@keyframes pillIn {
  from { opacity: 0; transform: translate(-50%, 10px) scale(.9); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}


/* 静音时额外提示（B 版：柔和、暖色） */
.tap-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f);
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  pointer-events: none;
  white-space: nowrap;
  z-index: 4;
}
.tap-hint[hidden] { display: none; }
