/* ============================================================
   你好法语 1 · 在线语音练习页面 —— 全局样式（校园公园版）
   皮克斯 3D 卡通风格 · 温馨 · 活泼 · 层层递进路线图
   色系：法国蓝 / 珊瑚红 / 蜜桃粉 / 奶白 / 天蓝 / 金
   ============================================================ */

:root {
  --bleu: #2E6BE6;          /* 法国蓝 · 主色（更明快） */
  --bleu-fonce: #1D4ED8;    /* 深蓝 · 悬停 */
  --bleu-nuit: #173CA8;
  --rouge: #F43F5E;         /* 珊瑚红 · 强调/易错点 */
  --rouge-fonce: #E11D48;
  --peche: #FDA4AF;         /* 蜜桃粉 · 温馨点缀 */
  --peche-clair: #FFE4E6;
  --creme: #FFF9EF;         /* 暖奶白 · 底色 */
  --ciel: #7DD3FC;          /* 天蓝 · 辅助 */
  --ciel-clair: #E0F2FE;
  --or: #FBBF24;            /* 金 · 点缀 */
  --or-clair: #FEF3C7;
  --lavande: #C4B5FD;       /* 薰衣草紫 · 装饰 */
  --vert: #34D399;          /* 正确反馈绿 */
  --vert-fonce: #059669;
  --encre: #3B3B52;         /* 正文深色 */
  --gris: #8A8FA3;          /* 次要文字 */

  --font-titre: "思源黑体", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-fr: "Constantia", "Cambria", "Georgia", serif;   /* 法语核心词 */
  --font-corps: "Microsoft YaHei", "PingFang SC", sans-serif;

  --radius: 22px;
  --radius-petit: 14px;
  --ombre: 0 6px 20px rgba(46, 107, 230, 0.10);
  --ombre-forte: 0 12px 32px rgba(46, 107, 230, 0.18);
  --ombre-douce: 0 4px 14px rgba(59, 59, 82, 0.08);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-corps);
  color: var(--encre);
  background: var(--creme);
  background-image:
    radial-gradient(circle at 10% 8%, rgba(125, 211, 252, 0.22) 0, transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(251, 191, 36, 0.20) 0, transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(253, 164, 175, 0.20) 0, transparent 30%),
    radial-gradient(circle at 6% 88%, rgba(196, 181, 253, 0.20) 0, transparent 30%);
  min-height: 100vh;
  line-height: 1.65;
}

a { color: var(--bleu); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   顶部 Madame GUO 主持栏
   ============================================================ */
.topbar {
  background: linear-gradient(120deg, var(--bleu-fonce) 0%, var(--bleu) 55%, #4f8bf0 100%);
  color: #fff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.28);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  flex: 0 0 auto;
  overflow: hidden;
}
.topbar .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.topbar .top-text { flex: 1 1 auto; min-width: 0; }
.topbar .top-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.15rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .top-sub { font-size: 0.78rem; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .btn-back {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.topbar .btn-back:hover { background: rgba(255,255,255,0.32); }

/* ============================================================
   页面容器
   ============================================================ */
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 96px;
}

/* ============================================================
   标题
   ============================================================ */
h1 { font-family: var(--font-titre); font-weight: 900; font-size: 1.75rem; color: var(--bleu-fonce); text-align: center; margin-bottom: 6px; }
.lead { text-align: center; color: var(--gris); margin-bottom: 22px; font-size: 0.95rem; }
h2.sec {
  font-family: var(--font-titre); font-weight: 900; font-size: 1.25rem; color: var(--bleu-fonce);
  margin: 26px 0 12px; padding-left: 14px; border-left: 6px solid var(--or);
  display: flex; align-items: center; gap: 8px;
}

/* ============================================================
   卡片
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 18px;
  margin-bottom: 16px;
}

/* ============================================================
   大按钮 / 图标导航
   ============================================================ */
.big-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 22px 14px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
  text-align: center;
  border: 2px solid transparent;
}
.big-btn:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); border-color: var(--ciel); }
.big-btn:active { transform: scale(0.97); }
.big-btn .icon { font-size: 2.4rem; line-height: 1; }
.big-btn .name { font-family: var(--font-titre); font-weight: 900; font-size: 1.05rem; color: var(--bleu-fonce); }
.big-btn .desc { font-size: 0.78rem; color: var(--gris); line-height: 1.4; }

.grid-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-nav.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--bleu); color: #fff;
  border: none; border-radius: 30px;
  padding: 11px 20px; font-size: 0.95rem; font-weight: 700;
  font-family: var(--font-corps);
  cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(46,107,230,0.22);
}
.btn:hover { background: var(--bleu-fonce); }
.btn:active { transform: scale(0.96); }
.btn.outline { background: #fff; color: var(--bleu); border: 2px solid var(--bleu); box-shadow: none; }
.btn.outline:hover { background: var(--ciel-clair); }
.btn.gold { background: var(--or); color: #7a4e00; box-shadow: 0 3px 10px rgba(251,191,36,0.3); }
.btn.gold:hover { background: #f0b429; }
.btn.rouge { background: var(--rouge); box-shadow: 0 3px 10px rgba(244,63,94,0.28); }
.btn.rouge:hover { background: var(--rouge-fonce); }
.btn.small { padding: 7px 14px; font-size: 0.82rem; }

/* 播放/录音 圆按钮 */
.play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bleu); color: #fff;
  border: none; font-size: 1.3rem; cursor: pointer;
  box-shadow: var(--ombre);
  flex: 0 0 auto;
  transition: transform .1s, background .15s;
}
.play-btn:hover { background: var(--bleu-fonce); }
.play-btn:active { transform: scale(0.92); }
.play-btn.rec { background: var(--rouge); animation: pulse 1.2s infinite; }
.play-btn.slow { background: var(--ciel); color: #12407a; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(244,63,94,0.45);} 50% { box-shadow: 0 0 0 12px rgba(244,63,94,0);} }

/* ============================================================
   法语词 / 红色易错点标注
   ============================================================ */
.fr { font-family: var(--font-fr); font-weight: 700; }
.rouge { color: var(--rouge); font-weight: 900; }
.hl { color: var(--rouge); font-weight: 900; }
.hl-gold { color: #b77900; font-weight: 900; }
.big-fr { font-family: var(--font-fr); font-size: 1.6rem; font-weight: 700; color: var(--encre); line-height: 1.35; }

/* ============================================================
   跟读句卡
   ============================================================ */
.sentence {
  background: #fff;
  border-radius: var(--radius-petit);
  box-shadow: var(--ombre-douce);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.sentence .fr-text { flex: 1 1 auto; }
.sentence .zh { font-size: 0.82rem; color: var(--gris); margin-top: 2px; }
.sentence .btns { display: flex; gap: 8px; flex: 0 0 auto; }

/* ============================================================
   单词卡
   ============================================================ */
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.word-card {
  background: #fff; border-radius: var(--radius-petit); box-shadow: var(--ombre-douce);
  padding: 14px; text-align: center; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s, transform .1s;
}
.word-card:hover { border-color: var(--ciel); transform: translateY(-3px); }
.word-card .fr { font-size: 1.2rem; }
.word-card .zh { font-size: 0.8rem; color: var(--gris); }
.word-card.got { border-color: var(--vert); background: #F0FDF6; }

/* ============================================================
   变位表
   ============================================================ */
table.conj { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-petit); overflow: hidden; box-shadow: var(--ombre); }
table.conj th, table.conj td { padding: 11px 12px; text-align: center; border: 1px solid #E7ECF7; }
table.conj th { background: var(--bleu); color: #fff; font-family: var(--font-titre); }
table.conj td.fr { font-family: var(--font-fr); font-size: 1.05rem; }
table.conj tr:nth-child(even) td { background: #F7FAFF; }

/* 人称转盘格子 */
.pers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pers {
  background: #fff; border-radius: var(--radius-petit); box-shadow: var(--ombre-douce);
  padding: 14px 6px; text-align: center; cursor: pointer;
  font-family: var(--font-fr); font-weight: 700; font-size: 1.1rem;
  border: 2px solid transparent; transition: all .12s;
}
.pers:hover { border-color: var(--ciel); }
.pers.correct { background: #F0FDF6; border-color: var(--vert); }
.pers.wrong { background: #FFF1F2; border-color: var(--rouge); }

/* ============================================================
   数字格
   ============================================================ */
.num-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.num {
  background: #fff; border-radius: 10px; box-shadow: var(--ombre-douce);
  padding: 10px 4px; text-align: center; cursor: pointer;
  border: 2px solid transparent; transition: all .12s;
}
.num:hover { border-color: var(--ciel); }
.num .n { font-family: var(--font-fr); font-weight: 900; font-size: 1.25rem; color: var(--bleu); }
.num .w { font-family: var(--font-fr); font-size: 0.78rem; color: var(--encre); word-break: break-word; }
.num .w .hl { color: var(--rouge); }
.num.got { border-color: var(--vert); background: #F0FDF6; }

/* ============================================================
   语法题
   ============================================================ */
.quiz {
  background: #fff; border-radius: var(--radius-petit); box-shadow: var(--ombre-douce);
  padding: 16px; margin-bottom: 14px;
}
.quiz .q { font-weight: 700; margin-bottom: 10px; font-size: 1rem; }
.quiz .q .fr { font-family: var(--font-fr); }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  background: #F3F6FF; border: 2px solid #DDE6FA; border-radius: 30px;
  padding: 8px 16px; cursor: pointer; font-size: 0.95rem; font-weight: 600;
  transition: all .12s;
}
.opt:hover { border-color: var(--bleu); }
.opt.chosen-correct { background: #F0FDF6; border-color: var(--vert); color: var(--vert-fonce); }
.opt.chosen-wrong { background: #FFF1F2; border-color: var(--rouge); color: var(--rouge); }
.opt.show-correct { background: #F0FDF6; border-color: var(--vert); color: var(--vert-fonce); }

input.fill {
  border: none; border-bottom: 2px dashed var(--bleu);
  font-family: var(--font-fr); font-size: 1.05rem; padding: 2px 6px;
  width: 120px; text-align: center; background: transparent; outline: none;
}
input.fill.correct { border-color: var(--vert); color: var(--vert-fonce); background: #F0FDF6; }
input.fill.wrong { border-color: var(--rouge); color: var(--rouge); background: #FFF1F2; }

.feedback { margin-top: 10px; font-weight: 700; min-height: 1.4em; }
.feedback.ok { color: var(--vert-fonce); }
.feedback.no { color: var(--rouge); }

/* ============================================================
   Ma poche（法语错题口袋）
   ============================================================ */
.ma-poche {
  background: linear-gradient(135deg, var(--or), #f5c14f);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--ombre-forte);
  margin-bottom: 18px;
}
.ma-poche .poche-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.15rem; color: #6b4200; display: flex; align-items: center; gap: 8px; }
.ma-poche .poche-sub { font-size: 0.8rem; color: #6b4200; margin: 4px 0 10px; }
.poche-count { background: var(--rouge); color: #fff; border-radius: 20px; padding: 2px 10px; font-size: 0.8rem; font-weight: 900; }
.poche-list { display: flex; flex-wrap: wrap; gap: 8px; }
.poche-chip {
  background: #fff; border-radius: 20px; padding: 5px 12px;
  font-family: var(--font-fr); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: inline-flex; align-items: center; gap: 6px;
}
.poche-chip button { background: none; border: none; color: var(--rouge); cursor: pointer; font-size: 1rem; font-weight: 900; padding: 0 2px; }

/* ============================================================
   进度 / 分数
   ============================================================ */
.score-bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 14px 0; }
.star { font-size: 2rem; color: #E5E7EB; }
.star.on { color: var(--or); }

/* ============================================================
   提示气泡（Madame GUO 说话）
   ============================================================ */
.bubble {
  background: #fff; border-radius: 18px; box-shadow: var(--ombre);
  padding: 12px 16px; margin: 14px 0;
  position: relative;
  border: 2px solid var(--ciel);
}
.bubble .who { font-weight: 900; color: var(--bleu); font-family: var(--font-titre); }

/* ============================================================
   底部导航（手机）
   ============================================================ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #E7ECF7;
  display: flex; justify-content: space-around;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.06);
}
.bottom-nav a { text-align: center; color: var(--gris); font-size: 0.7rem; flex: 1; padding: 4px 0; }
.bottom-nav a .ic { font-size: 1.4rem; display: block; }
.bottom-nav a.active { color: var(--bleu); font-weight: 900; }

/* ============================================================
   单元 / 课 目录卡
   ============================================================ */
.unite-card { background: #fff; border-radius: var(--radius); box-shadow: var(--ombre); padding: 18px; margin-bottom: 18px; }
.unite-card .u-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.25rem; color: var(--bleu-fonce); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.unite-card .u-title .badge { background: var(--bleu); color: #fff; border-radius: 10px; padding: 3px 10px; font-size: 0.8rem; }
.unite-card.locked { opacity: 0.55; }
.unite-card.locked .u-title { color: var(--gris); }
.lecon-row {
  display: flex; align-items: center; gap: 12px;
  background: #F7FAFF; border-radius: var(--radius-petit);
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  transition: all .12s; border: 2px solid transparent;
}
.lecon-row:hover { border-color: var(--ciel); transform: translateX(4px); }
.lecon-row .l-num { background: var(--or); color: #7a4e00; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-weight: 900; flex: 0 0 auto; }
.lecon-row .l-title { font-family: var(--font-titre); font-weight: 900; color: var(--encre); }
.lecon-row .l-sub { font-size: 0.78rem; color: var(--gris); }
.lecon-row .l-arrow { margin-left: auto; color: var(--bleu); font-weight: 900; }
.lecon-row.disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================================
   场景横幅 banner（卡通校园场景 + 渐变遮罩）
   ============================================================ */
.scene-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre-forte);
  margin-bottom: 18px;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
}
.scene-banner > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.scene-banner .overlay {
  position: relative; z-index: 2;
  width: 100%;
  padding: 20px 22px;
  background: linear-gradient(to top, rgba(23,60,168,0.88) 0%, rgba(23,60,168,0.45) 60%, transparent 100%);
  color: #fff;
}
.scene-banner .overlay .t { font-family: var(--font-titre); font-weight: 900; font-size: 1.35rem; }
.scene-banner .overlay .s { font-size: 0.88rem; opacity: 0.95; }

/* ============================================================
   Madame GUO 主持人横幅（欢迎/引导）
   ============================================================ */
.host-banner {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(120deg, #fff 0%, #FFF4F5 60%, #FFE9EC 100%);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 18px;
  margin-bottom: 20px;
  border: 2px solid var(--peche);
}
.host-banner .host-img {
  width: 158px; height: 118px; flex: 0 0 auto;
  border-radius: 16px; overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(244,63,94,0.25);
}
.host-banner .host-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.host-banner .host-txt { flex: 1 1 auto; }
.host-banner .host-name { font-family: var(--font-titre); font-weight: 900; color: var(--bleu-fonce); font-size: 1.05rem; }
.host-banner .host-say { font-size: 0.9rem; color: var(--encre); margin-top: 3px; line-height: 1.55; }

/* ============================================================
   公园地图 / 跑道路线图（层层递进）
   ============================================================ */
.map {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--ombre);
  padding: 22px 18px 26px;
  margin-bottom: 20px;
  position: relative;
}
.map .map-title {
  font-family: var(--font-titre); font-weight: 900; font-size: 1.3rem;
  color: var(--bleu-fonce); text-align: center; margin-bottom: 4px;
}
.map .map-sub { text-align: center; color: var(--gris); font-size: 0.85rem; margin-bottom: 22px; }

/* 站点（跑道上的关卡点） */
.station {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  position: relative;
  border: 2px solid #E7ECF7;
  box-shadow: var(--ombre-douce);
  transition: transform .14s, box-shadow .14s, border-color .14s;
  cursor: pointer;
}
.station:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: var(--ciel); }
.station .st-num {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-fonce));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titre); font-weight: 900; font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(46,107,230,0.3);
}
.station .st-body { flex: 1 1 auto; min-width: 0; }
.station .st-name { font-family: var(--font-titre); font-weight: 900; font-size: 1.05rem; color: var(--encre); }
.station .st-desc { font-size: 0.8rem; color: var(--gris); }
.station .st-tag {
  flex: 0 0 auto;
  font-size: 0.72rem; font-weight: 800;
  border-radius: 20px; padding: 4px 12px; white-space: nowrap;
}
.station .st-tag.done { background: #F0FDF6; color: var(--vert-fonce); }
.station .st-tag.now { background: var(--or-clair); color: #b45309; }
.station .st-tag.locked { background: #F1F3F8; color: var(--gris); }
.station.done { border-color: var(--vert); }
.station.now { border-color: var(--or); box-shadow: 0 0 0 3px rgba(251,191,36,0.25), var(--ombre); }
.station.locked { opacity: 0.5; cursor: not-allowed; }
.station.locked:hover { transform: none; box-shadow: var(--ombre-douce); border-color: #E7ECF7; }

/* 站点之间的连接线（小箭头/虚线） */
.station-conn {
  width: 2px; height: 18px;
  margin: -6px 0 -6px 37px;
  background: repeating-linear-gradient(to bottom, var(--ciel) 0 6px, transparent 6px 12px);
  position: relative;
}

/* ============================================================
   首屏 hero（校门口欢迎）
   ============================================================ */
.hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--ombre-forte);
  margin-bottom: 22px;
  min-height: 210px;
  display: flex; align-items: flex-end;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .hero-txt {
  position: relative; z-index: 2; width: 100%;
  padding: 22px;
  background: linear-gradient(to top, rgba(23,60,168,0.92) 0%, rgba(23,60,168,0.5) 62%, transparent 100%);
  color: #fff;
}
.hero .hero-txt h1 { color: #fff; text-align: left; font-size: 1.6rem; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.hero .hero-txt p { font-size: 0.92rem; opacity: 0.96; margin-top: 4px; }

/* 锁定园区卡片 */
.zone-locked {
  background: #F5F6FA;
  border: 2px dashed #D6DAE6;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  text-align: center;
  color: var(--gris);
}
.zone-locked .z-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.05rem; color: #9AA0B0; }
.zone-locked .z-sub { font-size: 0.8rem; margin-top: 4px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .grid-nav.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .num-grid { grid-template-columns: repeat(5, 1fr); }
  .pers-grid { grid-template-columns: repeat(2, 1fr); }
  .big-fr { font-size: 1.35rem; }
  .sentence { flex-direction: column; align-items: stretch; }
  .sentence .btns { justify-content: flex-end; }
  .hero { min-height: 180px; }
  .hero .hero-txt h1 { font-size: 1.35rem; }
  .host-banner { flex-direction: column; text-align: center; }
  .station-conn { margin-left: 36px; }
}
@media (min-width: 769px) {
  .bottom-nav { display: none; }
  .grid-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   欢迎页（Madame GUO 自我介绍 + 三入口 + 密码）
   ============================================================ */
.welcome-hero {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(135deg, #fff 0%, #EFF6FF 55%, #E0F2FE 100%);
  border-radius: 26px;
  box-shadow: var(--ombre-forte);
  padding: 26px 26px;
  margin-bottom: 26px;
  border: 2px solid var(--ciel);
}
.welcome-hero .wh-img {
  width: 200px; height: 200px; flex: 0 0 auto;
  border-radius: 22px; overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(46,107,230,0.28);
}
.welcome-hero .wh-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.welcome-hero .wh-txt { flex: 1 1 auto; }
.welcome-hero .wh-hello { font-family: var(--font-fr); font-weight: 700; font-size: 1.15rem; color: var(--rouge); }
.welcome-hero .wh-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.7rem; color: var(--bleu-fonce); line-height: 1.25; margin: 4px 0 10px; }
.welcome-hero .wh-msg { font-size: 0.98rem; color: var(--encre); line-height: 1.8; }
.welcome-hero .wh-msg strong { color: var(--rouge); }

/* 三入口选择 */
.entree-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 10px; }
.epreuve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.tab-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.listen-list { display: flex; flex-direction: column; gap: 8px; }
.listen-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; box-shadow: var(--ombre); padding: 10px 14px; }
.listen-item .li-num { flex: 0 0 auto; min-width: 88px; font-weight: 800; color: var(--bleu-fonce); font-size: 0.9rem; }
.listen-item .li-theme { flex: 1 1 auto; min-width: 0; }
.listen-item .li-theme .zh { font-weight: 700; color: var(--encre); font-size: 0.9rem; }
.listen-item .li-theme .fr { font-family: var(--font-fr); color: var(--gris); font-size: 0.8rem; }
.listen-item .li-piste { flex: 0 0 auto; font-size: 0.72rem; color: var(--gris); background: var(--ciel); border-radius: 10px; padding: 2px 8px; font-weight: 800; }
.listen-item .li-play { flex: 0 0 auto; }
.epreuve-card { background: #fff; border-radius: 16px; box-shadow: var(--ombre); padding: 18px; border-top: 4px solid var(--bleu); }
.epreuve-card .ep-ic { font-size: 1.9rem; line-height: 1; }
.epreuve-card .ep-name { font-weight: 800; color: var(--bleu-fonce); margin: 8px 0 4px; }
.epreuve-card .ep-desc { font-size: 0.85rem; color: var(--gris); line-height: 1.55; }
.niveau-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.niveau-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 18px; box-shadow: var(--ombre); padding: 18px 20px; text-decoration: none; border-left: 5px solid var(--gris); transition: transform .15s ease, box-shadow .15s ease; }
.niveau-card:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.niveau-card .nv-badge { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 16px; background: linear-gradient(135deg, var(--bleu), var(--ciel)); color: #fff; font-family: var(--font-fr); font-weight: 900; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.niveau-card .nv-txt { flex: 1 1 auto; min-width: 0; }
.niveau-card .nv-title { font-family: var(--font-titre); font-weight: 900; color: var(--bleu-fonce); font-size: 1.05rem; }
.niveau-card .nv-desc { font-size: 0.85rem; color: var(--gris); line-height: 1.6; margin-top: 3px; }
.niveau-card .nv-desc .fr { color: var(--bleu); font-family: var(--font-fr); }
.niveau-card .nv-go { flex: 0 0 auto; font-weight: 800; font-size: 0.85rem; color: var(--gris); white-space: nowrap; }
.niveau-card.open { border-left-color: var(--vert); }
.niveau-card.open .nv-go { color: var(--vert); }
.entree-card {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: var(--ombre-forte); cursor: pointer;
  min-height: 260px; display: flex; align-items: flex-end;
  transition: transform .16s ease, box-shadow .16s ease;
  border: 3px solid transparent;
}
.entree-card:hover { transform: translateY(-6px); border-color: var(--or); }
.entree-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entree-card .ec-txt {
  position: relative; z-index: 2; width: 100%;
  padding: 46px 18px 16px;
  background: linear-gradient(to top, rgba(23,60,168,0.92) 0%, rgba(23,60,168,0.4) 70%, transparent 100%);
  color: #fff; text-align: center;
}
.entree-card .ec-txt .ec-name { font-family: var(--font-titre); font-weight: 900; font-size: 1.25rem; }
.entree-card .ec-txt .ec-sub { font-size: 0.78rem; opacity: 0.92; margin-top: 2px; }
.entree-card .ec-lock {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: rgba(255,255,255,0.9); color: var(--bleu-fonce);
  border-radius: 20px; padding: 4px 12px; font-size: 0.78rem; font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 密码弹窗 */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(23,60,168,0.45);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  padding: 26px 24px; width: 100%; max-width: 380px; text-align: center;
  animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .m-emoji { font-size: 2.6rem; }
.modal .m-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.3rem; color: var(--bleu-fonce); margin: 6px 0 4px; }
.modal .m-sub { font-size: 0.85rem; color: var(--gris); margin-bottom: 16px; }
.modal input {
  width: 100%; border: 2px solid #DDE6FA; border-radius: 14px;
  padding: 12px 14px; font-size: 1rem; text-align: center; outline: none;
  font-family: var(--font-fr); letter-spacing: 1px;
  transition: border-color .15s;
}
.modal input:focus { border-color: var(--bleu); }
.modal .m-err { color: var(--rouge); font-size: 0.82rem; font-weight: 700; min-height: 1.4em; margin-top: 6px; }
.modal .m-btns { display: flex; gap: 10px; margin-top: 10px; }
.modal .m-btns .btn { flex: 1; }

/* 建设中小贴士 */
.construction-hero { text-align: center; margin-bottom: 20px; }
.construction-hero .ch-emoji { font-size: 3rem; }
.construction-hero h1 { margin: 8px 0 6px; }
.construction-hero .lead { margin-bottom: 4px; }
.construction-card {
  background: #fff; border-radius: 26px; box-shadow: var(--ombre-forte);
  overflow: hidden; margin-bottom: 18px; border: 2px solid var(--or-clair);
}
.construction-card img { width: 100%; height: auto; display: block; }
.construction-card .cc-txt { padding: 18px 22px; text-align: center; }
.construction-card .cc-txt .cc-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.15rem; color: var(--bleu-fonce); }
.construction-card .cc-txt .cc-sub { font-size: 0.88rem; color: var(--gris); margin-top: 4px; }

/* ============================================================
   高中目录页（封面 + 九单元 + 每课说明）
   ============================================================ */
.cover-hero {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border-radius: 26px; box-shadow: var(--ombre-forte);
  padding: 22px; margin-bottom: 22px; border: 2px solid var(--ciel);
}
.cover-hero .cv-img {
  width: 150px; flex: 0 0 auto; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.cover-hero .cv-img img { width: 100%; height: auto; display: block; }
.cover-hero .cv-txt .cv-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.4rem; color: var(--bleu-fonce); }
.cover-hero .cv-txt .cv-sub { font-size: 0.9rem; color: var(--gris); margin-top: 6px; line-height: 1.7; }

.unit-card {
  background: #fff; border-radius: 22px; box-shadow: var(--ombre);
  padding: 18px; margin-bottom: 16px; border: 2px solid #E7ECF7;
}
.unit-card .uc-head {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.unit-card .uc-badge {
  background: linear-gradient(135deg, var(--bleu), var(--bleu-fonce));
  color: #fff; border-radius: 12px; padding: 6px 14px;
  font-family: var(--font-titre); font-weight: 900; font-size: 0.9rem; flex: 0 0 auto;
}
.unit-card .uc-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.2rem; color: var(--bleu-fonce); }
.unit-card .uc-zh { font-size: 0.85rem; color: var(--gris); font-weight: 600; }
.unit-card .uc-socio { font-size: 0.78rem; color: var(--gris); margin-top: 4px; }
.unit-card .uc-arrow { margin-left: auto; color: var(--bleu); font-size: 1.3rem; font-weight: 900; transition: transform .2s; }
.unit-card.open .uc-arrow { transform: rotate(90deg); }
.unit-card .unit-body { display: none; }
.unit-card.open .unit-body { display: block; }

.lecon-item { border-top: 1px dashed #E7ECF7; margin-top: 14px; padding-top: 6px; }
.lecon-item .li-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 4px; cursor: pointer;
}
.lecon-item .li-num { background: var(--or); color: #7a4e00; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; flex: 0 0 auto; }
.lecon-item .li-title { font-family: var(--font-titre); font-weight: 900; font-size: 1rem; color: var(--encre); }
.lecon-item .li-title .fr { font-family: var(--font-fr); }
.lecon-item .li-badge { font-size: 0.7rem; font-weight: 800; border-radius: 14px; padding: 2px 10px; flex: 0 0 auto; }
.lecon-item .li-badge.open { background: var(--vert); color: #fff; }
.lecon-item .li-badge.soon { background: #F1F3F8; color: var(--gris); }
.lecon-item .li-arrow { margin-left: auto; color: var(--bleu); }

/* 本课内容提要 按钮 */
.li-toggle {
  display: flex; align-items: center; gap: 6px; width: 100%;
  background: #F3F6FF; border: 1.5px dashed #DDE6FA; border-radius: 12px;
  padding: 9px 14px; margin: 2px 0 8px; cursor: pointer;
  font-family: var(--font-titre); font-weight: 800; font-size: 0.85rem; color: var(--bleu-fonce);
  transition: all .15s; text-align: left;
}
.li-toggle:hover { background: var(--ciel-clair); border-color: var(--bleu); }
.li-toggle .li-caret { margin-left: auto; transition: transform .2s; }
.lecon-item.open .li-toggle .li-caret { transform: rotate(180deg); }

.lecon-detail {
  display: none; padding: 6px 4px 14px 44px;
}
.lecon-item.open .lecon-detail { display: block; }
.detail-block { margin-bottom: 12px; }
.detail-block .db-tag {
  display: inline-block; font-family: var(--font-titre); font-weight: 900; font-size: 0.8rem;
  border-radius: 8px; padding: 2px 10px; margin-bottom: 6px;
}
.detail-block .db-tag.obj { background: var(--ciel-clair); color: #0c4a8a; }
.detail-block .db-tag.gram { background: #FEF3C7; color: #8a5a00; }
.detail-block .db-tag.pho { background: #EDE9FE; color: #5b21b6; }
.detail-block .db-tag.lex { background: #FFE4E6; color: #be123c; }
.detail-block .db-tag.sf { background: #D1FAE5; color: #065f46; }
.detail-block .db-list { font-size: 0.88rem; color: var(--encre); line-height: 1.7; }
.detail-block .db-list .fr { font-family: var(--font-fr); font-weight: 700; color: var(--bleu-fonce); }

@media (max-width: 768px) {
  .welcome-hero { flex-direction: column; text-align: center; padding: 22px 18px; }
  .welcome-hero .wh-img { width: 150px; height: 150px; }
  .welcome-hero .wh-title { font-size: 1.35rem; }
  .entree-grid { grid-template-columns: 1fr; }
  .epreuve-grid { grid-template-columns: 1fr; }
  .listen-item { flex-wrap: wrap; }
  .entree-card { min-height: 200px; }
  .cover-hero { flex-direction: column; text-align: center; }
  .cover-hero .cv-img { width: 120px; }
  .lecon-detail { padding-left: 8px; }
}

/* ============================================================
   成功庆祝弹层（Madame GUO 比心点赞）
   ============================================================ */
.celebrate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23,60,168,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .25s;
  backdrop-filter: blur(3px);
}
.celebrate-overlay.show { opacity: 1; }
.celebrate-box {
  background: linear-gradient(160deg, #fff 0%, #FFF4F5 55%, #FFE9EC 100%);
  border-radius: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  padding: 30px 26px; width: 100%; max-width: 420px; text-align: center;
  border: 3px solid var(--peche);
  animation: pop .28s ease;
  max-height: 88vh; overflow: auto;
}
.celebrate-box .celebrate-img {
  width: 190px; height: 190px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden;
  border: 5px solid #fff; box-shadow: 0 8px 24px rgba(244,63,94,0.3);
  animation: heart-beat 1.4s ease infinite;
}
.celebrate-box .celebrate-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.celebrate-box .celebrate-title { font-family: var(--font-titre); font-weight: 900; font-size: 1.35rem; color: var(--rouge); margin-bottom: 6px; }
.celebrate-box .celebrate-sub { font-size: 0.9rem; color: var(--encre); margin-bottom: 8px; line-height: 1.6; }
.celebrate-box .celebrate-stamp {
  background: var(--or-clair); border: 2px dashed var(--or);
  border-radius: 16px; padding: 12px 14px; margin: 10px 0 16px;
  font-size: 0.92rem; color: #8a5a00; font-weight: 700; line-height: 1.7;
}
.celebrate-box .btn { width: 100%; }
@keyframes heart-beat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.06); } 28% { transform: scale(1); } 42% { transform: scale(1.06); } }

/* 撒花（简单彩纸） */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 210; overflow: hidden; }
.confetti span {
  position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px;
  animation: fall linear infinite; opacity: 0.9;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ============================================================
   三大模块入口卡
   ============================================================ */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 10px; }
.module-card {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: var(--ombre-forte); cursor: pointer; min-height: 250px;
  display: flex; align-items: flex-end; transition: transform .16s, box-shadow .16s;
  border: 3px solid transparent;
}
.module-card:hover { transform: translateY(-6px); border-color: var(--or); }
.module-card .mc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.module-card .mc-txt {
  position: relative; z-index: 2; width: 100%; padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(23,60,168,0.94) 0%, rgba(23,60,168,0.45) 70%, transparent 100%);
  color: #fff; text-align: center;
}
.module-card .mc-emoji { font-size: 2rem; line-height: 1; }
.module-card .mc-name { font-family: var(--font-titre); font-weight: 900; font-size: 1.15rem; margin-top: 2px; }
.module-card .mc-name .fr { font-family: var(--font-fr); font-size: 0.9rem; font-weight: 700; opacity: .95; }
.module-card .mc-desc { font-size: 0.74rem; opacity: .92; margin-top: 2px; }
.module-card .mc-progress { position: absolute; top: 12px; left: 12px; z-index: 3; background: rgba(255,255,255,0.92); color: var(--bleu-fonce); border-radius: 20px; padding: 3px 12px; font-size: 0.76rem; font-weight: 900; }
.module-card .mc-done { position: absolute; top: 12px; right: 12px; z-index: 3; font-size: 1.3rem; }

/* ============================================================
   课程介绍 · 学习目标（中法双语标签块）
   ============================================================ */
.objectif-block { margin-bottom: 12px; }
.objectif-block .ob-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-titre); font-weight: 900; font-size: 0.85rem;
  border-radius: 10px; padding: 4px 12px; margin-bottom: 6px;
}
.objectif-block .ob-tag.obj { background: var(--ciel-clair); color: #0c4a8a; }
.objectif-block .ob-tag.gram { background: #FEF3C7; color: #8a5a00; }
.objectif-block .ob-tag.pho { background: #EDE9FE; color: #5b21b6; }
.objectif-block .ob-tag.lex { background: #FFE4E6; color: #be123c; }
.objectif-block .ob-tag.sf { background: #D1FAE5; color: #065f46; }
.objectif-block .ob-list { font-size: 0.9rem; color: var(--encre); line-height: 1.8; padding-left: 6px; }
.objectif-block .ob-list .fr { font-family: var(--font-fr); font-weight: 700; color: var(--bleu-fonce); }
.objectif-block .ob-list .zh { color: var(--gris); }

/* ============================================================
   温故知新 · 跑道（起点→终点）
   ============================================================ */
.track-wrap { position: relative; padding: 0 0 0 10px; }
.track-flag {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-titre); font-weight: 900; font-size: 1rem;
  padding: 6px 2px; margin: 4px 0;
}
.track-flag.start { color: var(--vert-fonce); }
.track-flag.finish { color: var(--rouge); margin-top: 8px; }

/* ============================================================
   闯关大冒险 · 爬山小人
   ============================================================ */
.mountain-wrap { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--ombre); padding: 12px; margin-bottom: 16px; overflow: hidden; }
.mountain-wrap svg { width: 100%; height: auto; min-height: 200px; display: block; }
.climber-burst { font-size: 1.4rem; opacity: 0; transition: opacity .3s; }
.climber-burst.show { opacity: 1; animation: pop .4s ease; }

/* 题型标签（闯关/查漏补缺） */
.type-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 900;
  border-radius: 14px; padding: 2px 10px; margin-right: 4px; vertical-align: middle;
}
.type-tag.écoute, .type-tag.ecoute { background: var(--ciel-clair); color: #0c4a8a; }
.type-tag.conjugaison { background: #FEF3C7; color: #8a5a00; }
.type-tag.vocabulaire { background: #FFE4E6; color: #be123c; }
.type-tag.grammaire { background: #EDE9FE; color: #5b21b6; }
.type-tag.nombres { background: #D1FAE5; color: #065f46; }

/* ============================================================
   查漏补缺 · 拼图
   ============================================================ */
.puzzle-wrap {
  position: relative;
  background-image: url('../assets/img/puzzle-trophee.png');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ombre);
  aspect-ratio: 2 / 1;
  min-height: 170px;
  margin-bottom: 10px;
}
.puzzle-grid {
  position: absolute; inset: 0;
  display: grid; gap: 4px; padding: 4px;
}
.puzzle-piece {
  border-radius: 6px; position: relative;
  background: #CBD5E1;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease, transform .35s ease;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.45);
}
.puzzle-piece .p-hint { font-size: 1.2rem; opacity: 0.9; }
.puzzle-piece.done { opacity: 0; transform: scale(0.82); pointer-events: none; }
.puzzle-reveal {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  font-family: var(--font-titre); font-weight: 900; font-size: 1.3rem; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4); text-align: center;
}

@media (max-width: 768px) {
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 200px; }
  .celebrate-box .celebrate-img { width: 140px; height: 140px; }
}
