/* 鲲鹏AI英语学习平台 — ABCmouse 式布局：左侧导航栏 + 场景大卡片 + 底部菜单条 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --sky1: #6cb9ef; --sky2: #a8dcff; --grass: #7ac26b;
  --side-bg: #ffeFA8; --side-bg2: #fff6cd;
  --navblue: #2f80d3; --navblue2: #5aa7e8;
  --ink: #234; --ink2: #5b6b7d;
  --orange: #f5821f; --blue: #1f8de0; --purple: #8e44ad; --red: #e02f2f; --green: #3db54a;
  --yellow: #ffd23e;
  --card: #ffffff; --radius: 20px;
  --shadow: 0 5px 18px rgba(20, 60, 110, .22);
  --good: #26c281; --bad: #ff5e57; --brand: #f5821f;
}

html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Comic Sans MS", sans-serif;
  color: var(--ink); overflow-x: hidden;
  background:
    radial-gradient(ellipse 120px 50px at 18% 12%, rgba(255,255,255,.85) 60%, transparent 61%),
    radial-gradient(ellipse 160px 60px at 75% 8%, rgba(255,255,255,.8) 60%, transparent 61%),
    radial-gradient(ellipse 130px 50px at 50% 20%, rgba(255,255,255,.6) 60%, transparent 61%),
    linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 62%, #d2f0c0 78%, var(--grass) 100%);
  background-attachment: fixed;
}
body.quality-low * { box-shadow: none !important; animation: none !important; transition: none !important; }
body.quality-low { background: linear-gradient(180deg, var(--sky1), var(--sky2)); }

/* ---------- 整体布局：左侧栏 + 主区 ---------- */
#app { display: flex; min-height: 100vh; }
#app-main { flex: 1; padding: 18px 20px 120px; max-width: 980px; margin: 0 auto; width: 100%; }

/* ---------- 左侧导航栏（黄色） ---------- */
#sidebar {
  width: 104px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; z-index: 60;
  background: linear-gradient(180deg, var(--side-bg2), var(--side-bg));
  border-right: 4px solid #f3d96b; box-shadow: 4px 0 14px rgba(80, 60, 0, .12);
  display: flex; flex-direction: column; align-items: center; padding: 12px 8px;
  gap: 10px; overflow-y: auto;
}
.avatar-box {
  width: 76px; height: 76px; border-radius: 14px; background: #fff;
  border: 3px solid #f3d96b; display: flex; align-items: center; justify-content: center;
  font-size: 44px; cursor: pointer; flex-shrink: 0; overflow: hidden;
}
.avatar-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; }
.brand-box {
  background: #fff; border: 2px solid #f3d96b; border-radius: 10px; padding: 5px 4px;
  text-align: center; width: 84px; flex-shrink: 0; cursor: pointer;
}
.brand-box .tk { color: var(--red); font-weight: 900; font-size: 13px; }
.brand-box .nm { font-size: 11px; font-weight: 700; color: var(--ink2); }
.side-btn {
  width: 80px; border: 0; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(180deg, var(--navblue2), var(--navblue));
  border-radius: 16px; padding: 9px 4px 7px; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 3px 8px rgba(20, 80, 160, .35); transition: transform .15s;
}
.side-btn:hover { transform: scale(1.06); }
.side-btn .ic { font-size: 24px; line-height: 1; }
.side-btn .tx { font-size: 13px; font-weight: 800; }
.menu-btn { margin-top: auto; background: transparent; border: 0; cursor: pointer; text-align: center; flex-shrink: 0; padding-bottom: 4px; }
.menu-btn .bars { color: var(--green); font-size: 34px; font-weight: 900; line-height: .9; }
.menu-btn .tx { color: var(--green); font-weight: 900; font-size: 14px; }

/* ---------- 底部弹出菜单条（绿色） ---------- */
#bottom-menu {
  position: fixed; left: 0; right: 0; bottom: -90px; height: 78px; z-index: 90;
  background: linear-gradient(180deg, #58c963, var(--green));
  box-shadow: 0 -6px 20px rgba(0, 80, 0, .3);
  display: flex; align-items: center; justify-content: center; gap: 38px;
  transition: bottom .25s ease-out; padding: 0 110px;
}
#bottom-menu.open { bottom: 0; }
.bm-item { border: 0; background: transparent; cursor: pointer; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bm-item .ic { font-size: 26px; }
.bm-item .tx { font-size: 13px; font-weight: 800; }
.bm-quality { display: flex; gap: 6px; align-items: center; }
.q-pill { border: 2px solid #fff; background: transparent; color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13px; cursor: pointer; }
.q-pill.on { background: #fff; color: var(--green); }

/* ---------- 搜索浮层 ---------- */
.search-overlay { position: fixed; inset: 0; background: rgba(10, 40, 80, .45); z-index: 95; display: none; align-items: flex-start; justify-content: center; padding-top: 16vh; }
.search-overlay.open { display: flex; }
.search-panel { background: #fff; border-radius: 18px; padding: 16px; display: flex; gap: 10px; width: min(520px, 88vw); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.search-panel input { flex: 1; border: 2px solid #cfe3f7; border-radius: 12px; padding: 10px 14px; font-size: 16px; outline: 0; }
.search-panel input:focus { border-color: var(--navblue); }

/* ---------- 通用 ---------- */
.screen { animation: fadein .3s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wiggle { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.page-title { display: flex; align-items: center; gap: 12px; margin: 4px 4px 16px; }
.page-title h1 { font-size: 23px; font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(20,60,110,.45); }
.page-title .sub { color: #eaf6ff; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(20,60,110,.45); }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: #fff7ea; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; }

.btn {
  border: 0; cursor: pointer; font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--navblue2), var(--navblue));
  border-radius: 999px; padding: 12px 28px; box-shadow: 0 5px 14px rgba(20,80,160,.35);
  transition: transform .15s;
}
.btn:hover { transform: scale(1.05); }
.btn.green { background: linear-gradient(180deg, #58c963, var(--green)); box-shadow: 0 5px 14px rgba(20,140,40,.35); }
.btn.blue { background: linear-gradient(180deg, var(--navblue2), var(--navblue)); }
.btn.orange { background: linear-gradient(180deg, #ff9d3f, var(--orange)); box-shadow: 0 5px 14px rgba(220,110,0,.35); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn.small { font-size: 14px; padding: 8px 18px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* 黄色「继续」按钮（截图样式） */
.continue-btn {
  border: 0; cursor: pointer; font-size: 19px; font-weight: 900; color: #4a3b00;
  background: linear-gradient(180deg, #ffe06b, var(--yellow));
  border-radius: 999px; padding: 13px 34px; box-shadow: 0 5px 14px rgba(180,140,0,.4);
  transition: transform .15s;
}
.continue-btn:hover { transform: scale(1.06); }

/* ---------- 场景大卡片（首页 2×2，截图样式） ---------- */
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 8px auto; }
.scene-card {
  border-radius: 24px; overflow: hidden; cursor: pointer; background: #fff;
  border: 6px solid var(--blue); box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s; position: relative;
}
.scene-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 36px rgba(20,60,110,.32); }
.scene-card .art {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 76px; letter-spacing: 6px;
}
.scene-card .label {
  padding: 10px; text-align: center; color: #fff; font-size: 21px; font-weight: 900;
}
.scene-card .badge { position: absolute; top: 10px; left: 12px; background: var(--yellow); color: #4a3b00; font-size: 13px; font-weight: 900; border-radius: 999px; padding: 4px 12px; transform: rotate(-6deg); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.scene-card.c-orange { border-color: var(--orange); } .scene-card.c-orange .label { background: var(--orange); }
.scene-card.c-blue { border-color: var(--blue); } .scene-card.c-blue .label { background: var(--blue); }
.scene-card.c-purple { border-color: var(--purple); } .scene-card.c-purple .label { background: var(--purple); }
.scene-card.c-red { border-color: var(--red); } .scene-card.c-red .label { background: var(--red); }
.scene-card.c-green { border-color: var(--green); } .scene-card.c-green .label { background: var(--green); }

/* ---------- 地图（我的乐园，截图样式） ---------- */
.map-board {
  position: relative; border-radius: 26px; border: 6px solid #5ea24e;
  background:
    radial-gradient(ellipse 200px 90px at 50% 42%, #8fd4f7 0%, #8fd4f7 60%, transparent 61%),
    radial-gradient(circle 36px at 18% 78%, #6db05c 0%, transparent 70%),
    linear-gradient(160deg, #93d57f, #7ac26b 70%, #67b357);
  box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 2.9; max-width: 880px; margin: 0 auto;
}
.map-node { position: absolute; transform: translate(-50%, -50%); text-align: center; cursor: pointer; transition: transform .15s; z-index: 2; }
.map-node:hover { transform: translate(-50%, -50%) scale(1.12); z-index: 3; }
.map-node .b { font-size: clamp(34px, 6.5vw, 58px); display: block; filter: drop-shadow(0 4px 4px rgba(0,60,0,.3)); }
.map-node .t {
  background: #fff; border: 2px solid #5ea24e; border-radius: 999px; padding: 3px 12px;
  font-size: clamp(11px, 1.7vw, 14.5px); font-weight: 900; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,40,0,.25);
}
.map-node .nb { position: absolute; top: -6px; right: -10px; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 900; padding: 2px 7px; }

/* ---------- 乐园双列模块（与小程序 module-grid 一致） ---------- */
.park-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 0;
  max-width: 880px; margin: 0 auto;
}
.park-mod {
  width: 48.5%; box-sizing: border-box; background: #fff; border-radius: 18px;
  overflow: hidden; border: 4px solid #ccc; box-shadow: var(--shadow);
  position: relative; cursor: pointer; transition: transform .15s;
}
.park-mod:hover { transform: translateY(-4px); }
.park-mod .mod-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 3px 10px;
}
.park-mod-art {
  height: 88px; display: flex; align-items: center; justify-content: center; font-size: 42px;
}
.park-mod-body { padding: 10px 12px 14px; }
.park-mod-name { font-size: 15px; font-weight: 900; color: #234; }
.park-mod-sub { font-size: 12px; color: var(--ink2); margin-top: 3px; }

/* ---------- 教室场景（我的乐园内页） ---------- */
.room-panel {
  border-radius: 26px; border: 6px solid #b8742a; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fdf3df 0%, #fbe7c4 55%, #e8c794 56%, #d9b27c 100%);
}
.chip-row { display: flex; gap: 8px; padding: 12px; background: linear-gradient(180deg, #2f80d3, #2a6db5); overflow-x: auto; }
.chip {
  border: 3px solid #fff; cursor: pointer; background: #fff; border-radius: 14px;
  padding: 8px 14px; text-align: center; flex-shrink: 0; transition: transform .15s;
  font-weight: 900; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 86px;
}
.chip:hover { transform: translateY(-3px); }
.chip .ic { font-size: 26px; }
.room-scene { padding: 26px 18px; text-align: center; }
.room-scene .figure { font-size: 84px; animation: wiggle 3s infinite; display: inline-block; }

/* ---------- 通用瓦片网格 ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile {
  background: var(--card); border-radius: var(--radius); padding: 18px 14px; text-align: center;
  cursor: pointer; box-shadow: var(--shadow); transition: transform .18s;
  position: relative; overflow: hidden; border: 3px solid #fff;
}
.tile:hover { transform: translateY(-5px) scale(1.02); }
.tile .icon { font-size: 46px; display: block; margin-bottom: 8px; }
.tile:hover .icon { animation: bounce .6s infinite; }
.tile .name { font-size: 16px; font-weight: 800; }
.tile .desc { font-size: 12.5px; color: var(--ink2); margin-top: 5px; line-height: 1.5; }
.tile .badge { position: absolute; top: 8px; right: 10px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
/* 幼儿点读/拼读真实词图：铺满图片区，加载失败回退 emoji */
.kpic { width: 100%; height: 120px; border-radius: 12px; overflow: hidden; background: #f3f6fa; margin-bottom: 8px; }
.kpic .kimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.kpic .icon { width: 100%; height: 100%; align-items: center; justify-content: center; margin: 0; }
.hero-1600 {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 3px solid #3b82f6;
  box-shadow: 0 8px 24px rgba(29, 78, 216, .18);
  transition: transform .2s;
}
.hero-1600:hover { transform: translateY(-3px); }

/* 蓝/绿分组面板（口语课，截图样式） */
.group-panel { border-radius: 22px; padding: 14px; margin-bottom: 18px; box-shadow: var(--shadow); }
.group-panel.gp-blue { background: linear-gradient(180deg, #3b93dd, #2a7cc4); }
.group-panel.gp-green { background: linear-gradient(180deg, #54c160, #3da34c); }
.group-panel h2 { color: #fff; font-size: 18px; margin: 2px 6px 12px; }
.group-panel .grid .tile { border-color: #fff; }

/* ---------- 任务 / 标签页 ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { border: 0; cursor: pointer; background: #fff; border-radius: 999px; padding: 9px 20px; font-weight: 800; font-size: 15px; box-shadow: var(--shadow); color: var(--ink2); }
.tab.active { background: linear-gradient(180deg, #ff9d3f, var(--orange)); color: #fff; }
.task-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.task-item .ticon { font-size: 32px; }
.task-item .tname { font-weight: 700; flex: 1; }
.task-item.done { opacity: .65; }
.task-item.done .tname { text-decoration: line-through; }

/* ---------- 单词学习（截图样式：大图框 + 左侧按钮 + 继续） ---------- */
.word-stage { max-width: 680px; margin: 0 auto; }
.word-pill {
  display: inline-block; background: linear-gradient(180deg, #f06548, #d94427); color: #fff;
  border: 3px solid #fff; border-radius: 16px; padding: 8px 22px; font-size: 26px; font-weight: 900;
  box-shadow: 0 4px 12px rgba(150,40,0,.35); margin-bottom: 12px;
}
.photo-frame {
  border: 6px solid #c8551f; border-radius: 26px; background: #fff; overflow: hidden;
  width: min(330px, 72vw); height: min(330px, 72vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 130px;
  box-shadow: 0 8px 24px rgba(100,40,0,.3);
}
.photo-frame img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.side-controls { display: flex; flex-direction: column; gap: 12px; }
.ctl-btn {
  border: 3px solid #fff; cursor: pointer; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(180deg, var(--navblue2), var(--navblue)); color: #fff; font-size: 24px;
  box-shadow: 0 4px 10px rgba(20,80,160,.4); transition: transform .15s;
}
.ctl-btn:hover { transform: scale(1.12); }
.ctl-btn.muted { opacity: 0.45; background: linear-gradient(180deg, #9eb8d0, #7a98b8); }
.word-under { text-align: center; font-size: 42px; font-weight: 800; margin-top: 14px; font-family: "Comic Sans MS", "PingFang SC", sans-serif; }
.word-zh-under { text-align: center; font-size: 18px; color: #fff; text-shadow: 0 1px 4px rgba(20,60,110,.5); margin-top: 4px; font-weight: 700; }
.word-ph-line { text-align: center; font-size: 17px; color: #ffe9b0; font-weight: 700; letter-spacing: .5px; margin-top: 4px; }
.study-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.continue-dock { display: flex; justify-content: flex-end; max-width: 680px; margin: 18px auto 0; }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.opt {
  background: #fff; border: 4px solid #e3ecf5; border-radius: 18px; padding: 14px 10px; cursor: pointer;
  text-align: center; transition: all .15s; font-weight: 800; font-size: 15px;
}
.opt:hover { border-color: var(--yellow); transform: translateY(-3px); }
.opt .opic { font-size: 50px; display: block; margin-bottom: 6px; }
.opt img.opic { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 6px; display: block; }
.opt.right, .opt.correct { border-color: var(--good); background: #ebfaf3; }
.opt.wrong { border-color: var(--bad); background: #ffefee; animation: shake .3s; }
.opt.sel { border-color: var(--yellow); background: #fff8e1; }
.hintbox { background: #fff8e1; border: 2px dashed #ffce54; border-radius: 14px; padding: 12px 16px; margin-top: 12px; font-size: 15px; text-align: left; }
.progressbar { height: 12px; background: rgba(255,255,255,.55); border-radius: 999px; overflow: hidden; margin: 8px 0 16px; }
.progressbar > div { height: 100%; background: linear-gradient(90deg, var(--yellow), #ffb13e); border-radius: 999px; transition: width .3s; }

/* ---------- 绘本阅读器（截图样式：底部播放条） ---------- */
.reader { max-width: 720px; margin: 0 auto; text-align: center; }
.book-page {
  background: #fff; border: 6px solid #2a5f9e; border-radius: 24px; padding: 28px 22px 20px;
  box-shadow: var(--shadow); min-height: 330px; display: flex; flex-direction: column; justify-content: center;
}
.book-page .rpic { font-size: 96px; margin-bottom: 14px; }
.book-page .ren { font-size: 26px; font-weight: 800; line-height: 1.6; color: #c92f4d; cursor: pointer; font-family: "Comic Sans MS", "PingFang SC", sans-serif; }
.book-page .rzh { font-size: 16px; color: var(--ink2); margin-top: 12px; }
.player-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  background: linear-gradient(180deg, #3b93dd, #2a7cc4); border: 3px solid #fff;
  border-radius: 999px; padding: 8px 16px; box-shadow: var(--shadow); color: #fff;
}
.player-bar .pb-btn { border: 0; cursor: pointer; background: var(--yellow); color: #4a3b00; border-radius: 999px; padding: 7px 14px; font-weight: 900; font-size: 14px; flex-shrink: 0; }
.player-bar input[type=range] { flex: 1; accent-color: var(--yellow); }
.player-bar .pb-label { font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.book-cover { font-size: 60px; text-align: center; display: block; margin-bottom: 8px; }

/* ---------- 学习路径 ---------- */
.path-list { position: relative; padding-left: 34px; }
.path-list::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; width: 6px; background: linear-gradient(#ffce54, #26c281); border-radius: 3px; }
.path-node { position: relative; margin-bottom: 16px; }
.path-node::before { content: ""; position: absolute; left: -28px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid #ffb13e; }
.path-node.current::before { background: var(--orange); box-shadow: 0 0 0 6px rgba(245,130,31,.3); }

/* ---------- 外教一对一 · 腾讯会议式双人视频 UI ---------- */
.tutor-meet {
  max-width: 820px; margin: 0 auto; background: #161616; color: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.tutor-meet .meet-top {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  background: rgba(0,0,0,.25);
}
.tutor-meet .meet-title { font-weight: 700; flex: 1; font-size: 15px; }
.tutor-meet .meet-timer { color: #aaa; font-size: 13px; font-variant-numeric: tabular-nums; }
.tutor-meet .meet-live { font-size: 11px; font-weight: 800; color: #ff4d4f; background: rgba(255,77,79,.15); padding: 3px 10px; border-radius: 999px; }
.tutor-meet .meet-stage {
  position: relative; aspect-ratio: 16/10; min-height: 320px;
  /* 浅色舞台底：与小程序一致，加载期不露黑底 */
  background: linear-gradient(180deg, #dbeafe, #eff6ff); overflow: hidden;
}
.tutor-meet .meet-remote {
  width: 100%; height: 100%; position: relative;
  background: linear-gradient(180deg, #e0ecfa, #f3f8ff);
  display: flex; align-items: center; justify-content: center;
}
.tutor-meet .meet-remote.talking { box-shadow: inset 0 0 0 3px rgba(167,139,250,.85); }
.tutor-meet .avatar-wrap {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transform-origin: 50% 92%; will-change: transform;
}
.tutor-meet .head-sway { animation: tutorHeadSway 6.5s ease-in-out infinite; }
@keyframes tutorHeadSway {
  0%   { transform: scale(1.04) rotate(-0.5deg) translate(-2px, 0); }
  25%  { transform: scale(1.04) rotate(0.25deg) translate(1px, -1px); }
  50%  { transform: scale(1.04) rotate(0.55deg) translate(2px, 0); }
  75%  { transform: scale(1.04) rotate(0.2deg) translate(1px, -1px); }
  100% { transform: scale(1.04) rotate(-0.5deg) translate(-2px, 0); }
}
.tutor-meet .head-nod {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transform-origin: 50% 90%; will-change: transform;
  animation: tutorHeadNod 9s ease-in-out infinite;
}
@keyframes tutorHeadNod {
  0%, 66% { transform: translateY(0) scaleY(1); }
  74%     { transform: translateY(5px) scaleY(0.997); }
  82%     { transform: translateY(0) scaleY(1); }
  88%     { transform: translateY(2px) scaleY(0.999); }
  94%, 100% { transform: translateY(0) scaleY(1); }
}
.tutor-meet .head-nod.nod-yes { animation: tutorNodYes 1s ease-in-out; }
@keyframes tutorNodYes {
  0%   { transform: translateY(0) rotate(0deg); }
  18%  { transform: translateY(10px) rotate(1.4deg); }
  36%  { transform: translateY(0) rotate(0deg); }
  54%  { transform: translateY(8px) rotate(1.2deg); }
  72%  { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.tutor-meet .frame {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .12s ease; will-change: opacity;
}
.tutor-meet .frame.on { opacity: 1; }
.tutor-meet .frame.listen-pose { transition: opacity .28s ease; }
/* 眨眼力学：闭合快(.06s)、睁开慢(.16s)，非对称节奏更像真人 */
.tutor-meet .frame.eyes { transition: opacity .16s ease-out; }
.tutor-meet .frame.eyes.on { transition: opacity .06s ease-in; }
/* 数字人口型视频(命中缓存时覆盖静图播放, 自带音轨) */
.tutor-meet .dh-video {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none; z-index: 6;
  background: transparent; transition: opacity .18s ease;
}
.tutor-meet .dh-video.on { opacity: 1; }
/* 方案A循环视频：介于帧头像(下)与口型视频(上)之间，playing 后淡入盖住帧动画 */
.tutor-meet .loop-video {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none; z-index: 4;
  background: transparent; transition: opacity .4s ease;
}
.tutor-meet .loop-video.on { opacity: 1; }
.tutor-meet .loop-video.nod-yes { animation: tutorNodYes 1s ease-in-out; }
.tutor-meet .loop-video.shake-no { animation: loopShakeNo 1.25s cubic-bezier(.36,.07,.19,.97); transform-origin: 50% 82%; }
@keyframes loopShakeNo {
  0%   { transform: translateX(0) rotate(0deg); }
  16%  { transform: translateX(-5px) rotate(-1.2deg); }
  38%  { transform: translateX(4px) rotate(1deg); }
  58%  { transform: translateX(-3px) rotate(-0.8deg); }
  76%  { transform: translateX(2px) rotate(0.5deg); }
  100% { transform: translateX(0) rotate(0deg); }
}
.tutor-meet .teacher-switch {
  position: absolute; right: 12px; top: 12px; z-index: 8;
  display: flex; flex-direction: column; gap: 8px;
}
.tutor-meet .ts-chip {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.42); color: #fff; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
}
.tutor-meet .ts-chip.on {
  background: rgba(99,102,241,.92); border-color: #fff;
  box-shadow: 0 0 0 2px rgba(167,139,250,.5);
}
.tutor-meet .ts-label { font-size: 9px; margin-top: 1px; opacity: .9; }
.tutor-meet .meet-remote.teacher-listening { box-shadow: inset 0 0 0 3px rgba(96,165,250,.5); }
.tutor-meet .head-listen-wrap { animation: none !important; }
.tutor-meet .head-listen {
  animation: none !important;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1);
}
.tutor-meet .head-listen-mike { transform: rotate(7deg) translate(6px, 2px) scale(1.03); }
.tutor-meet .head-listen-anna { transform: rotate(10deg) translate(9px, 3px) scale(1.04); }
.tutor-meet .listen-hand-overlay {
  position: absolute; right: 20%; top: 36%; width: 22%; height: 28%;
  z-index: 7; pointer-events: none;
  animation: tutorListenHandIn .4s cubic-bezier(.22, 1, .36, 1) forwards;
}
.tutor-meet .listen-hand-overlay.hidden { display: none; }
.tutor-meet .listen-hand-palm {
  position: absolute; right: 0; bottom: 8%;
  width: 72%; height: 58%;
  border-radius: 42% 48% 40% 55%;
  background: linear-gradient(145deg, rgba(235,190,165,.92), rgba(210,155,130,.88));
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transform: rotate(-18deg);
}
.tutor-meet .listen-hand-fingers {
  position: absolute; right: 6%; top: 0;
  width: 38%; height: 42%;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(160deg, rgba(240,198,172,.9), rgba(215,162,138,.85));
  transform: rotate(-8deg);
  box-shadow: 0 1px 6px rgba(0,0,0,.2);
}
@keyframes tutorListenHandIn {
  from { opacity: 0; transform: translateY(12px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tutor-meet .meet-remote img { width: 100%; height: 100%; object-fit: cover; }
.tutor-meet .remote-ph { font-size: 88px; }
.tutor-meet .remote-name {
  position: absolute; left: 14px; bottom: 72px; font-size: 13px; font-weight: 700;
  background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 6px; z-index: 9;
}
.tutor-meet .meet-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  font-size: 16px; line-height: 1.5; font-weight: 600; z-index: 9;
}
.tutor-meet .meet-caption .zh { display: block; font-size: 13px; opacity: .75; margin-top: 6px; font-weight: 400; }
.tutor-meet .meet-local {
  position: absolute; right: 16px; bottom: 16px; width: 140px; height: 180px;
  border-radius: 12px; overflow: hidden; border: 3px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 20px rgba(0,0,0,.5); background: linear-gradient(160deg, #3b82f6, #1d4ed8);
  display: flex; align-items: center; justify-content: center; font-size: 56px;
  /* 学生摄像头小窗置顶：必须高于外教 loop-video(z4)/dh-video(z6)，否则被外教画面盖住 */
  z-index: 10;
}
.tutor-meet .meet-local .local-name {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: 11px; padding: 6px; background: rgba(0,0,0,.55);
}
.tutor-meet .meet-local.speaking { border-color: #26c281; }
.tutor-meet .meet-chat {
  max-height: 120px; overflow-y: auto; padding: 10px 16px;
  background: rgba(255,255,255,.06); font-size: 13px; line-height: 1.55;
}
/* 大字幕档：视频缩小，聊天记录区放大到近半屏 */
.tutor-meet.subtitle-mode .meet-stage { aspect-ratio: auto; height: 220px; min-height: 180px; }
.tutor-meet.subtitle-mode .meet-chat { max-height: 46vh; font-size: 15px; }
/* 小窗时媒体保持大图高度并顶部对齐，只裁下半身，头像完整保留 */
.tutor-meet.subtitle-mode .avatar-wrap,
.tutor-meet.subtitle-mode .loop-video,
.tutor-meet.subtitle-mode .dh-video { height: 440px; top: 0; }
.tutor-meet .meet-chat .line-me { color: #ffb13e; text-align: right; }
.tutor-meet .meet-chat .line-ai { color: #b8d4ff; }
.tutor-meet .meet-toolbar {
  display: flex; justify-content: center; gap: 18px; padding: 16px;
  background: rgba(0,0,0,.35);
}
.tutor-meet .tb {
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tutor-meet .tb span { font-size: 10px; margin-top: 2px; opacity: .85; }
.tutor-meet .tb.active { background: #26c281; }
.tutor-meet .tb.danger { background: #ff4d4f; }
.tutor-meet .tb:disabled { opacity: .5; cursor: not-allowed; }

/* 旧版兼容 */
.tutor-wrap { max-width: 700px; margin: 0 auto; }
.tutor-head { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #4a69bd, #6a89cc); color: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.tutor-avatar { font-size: 54px; background: rgba(255,255,255,.2); border-radius: 50%; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tutor-avatar.talking { animation: bounce .5s infinite; }
.chat { background: #fff; border-radius: var(--radius); padding: 16px; min-height: 280px; max-height: 420px; overflow-y: auto; box-shadow: var(--shadow); margin: 14px 0; }
.msg { display: flex; margin-bottom: 12px; }
.msg .bubble { max-width: 78%; border-radius: 18px; padding: 10px 16px; font-size: 15.5px; line-height: 1.6; }
.msg.ai .bubble { background: #eef3ff; border-bottom-left-radius: 4px; }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { background: linear-gradient(180deg, #ff9d3f, var(--orange)); color: #fff; border-bottom-right-radius: 4px; }
.msg .zh { display: block; font-size: 12.5px; opacity: .7; margin-top: 4px; }

/* ---------- 游戏 ---------- */
.match-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; margin: 0 auto; }
.mcard { aspect-ratio: 1; background: linear-gradient(135deg, #6a89cc, #82ccdd); border: 3px solid #fff; border-radius: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; text-align: center; padding: 4px; transition: transform .2s; }
.mcard .inner { display: none; }
.mcard.flip { background: #fff; color: var(--ink); border-color: var(--yellow); }
.mcard.flip .inner { display: block; font-size: clamp(13px, 3.2vw, 17px); }
.mcard.flip .q { display: none; }
.mcard.matched { background: #ebfaf3; border-color: var(--good); pointer-events: none; opacity: .8; }
.mcard .q { font-size: 26px; }

/* ---------- 奖励 ---------- */
.reward-head { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.reward-stat { flex: 1; min-width: 130px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 16px; }
.reward-stat .num { font-size: 30px; font-weight: 900; color: var(--orange); }
.shop-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.shop-item .spic { font-size: 36px; }
.shop-item .sname { font-weight: 700; flex: 1; }

/* ---------- 特效 ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.confetti span { position: absolute; top: -30px; font-size: 24px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .2; } }
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  background: rgba(30,45,65,.93); color: #fff; border-radius: 999px; padding: 12px 26px;
  font-weight: 700; z-index: 998; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: pop .2s;
}

/* 页脚备案信息 */
.site-footer { text-align: center; color: rgba(255,255,255,.85); font-size: 12px; margin-top: 26px; text-shadow: 0 1px 3px rgba(20,60,110,.4); }
.site-footer a { color: #fff; }

/* ---------- 移动端 ---------- */
@media (max-width: 700px) {
  #sidebar { width: 76px; padding: 8px 4px; }
  .avatar-box { width: 58px; height: 58px; font-size: 32px; }
  .brand-box { width: 64px; }
  .side-btn { width: 62px; padding: 7px 2px 5px; }
  .side-btn .ic { font-size: 19px; } .side-btn .tx { font-size: 11px; }
  #app-main { padding: 12px 10px 130px; }
  .scene-grid { gap: 12px; }
  .scene-card .art { height: 100px; font-size: 52px; }
  .scene-card .label { font-size: 16px; padding: 7px; }
  #bottom-menu { gap: 16px; padding: 0 8px 0 84px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid.big { grid-template-columns: 1fr 1fr; }
  .word-under { font-size: 30px; }
  .study-row { gap: 10px; }
  .ctl-btn { width: 46px; height: 46px; font-size: 19px; }
}

/* ============================================================
   词表浏览 / 自选学习
   ============================================================ */
.tile-link {
  margin-top: 8px; width: 100%;
  background: rgba(99, 102, 241, .1); color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, .25); border-radius: 9px;
  padding: 6px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.tile-link:hover { background: rgba(99, 102, 241, .18); }
body.exam-pro .tile-link { background: rgba(129,140,248,.16); color: #c7d2fe; border-color: rgba(129,140,248,.35); }
.browse-bar { position: sticky; top: 8px; z-index: 6; }
.brow-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.brow {
  display: flex; align-items: center; gap: 12px;
  background: var(--card, #fff); border: 1px solid #e6ebf2; border-radius: 12px;
  padding: 10px 12px; cursor: pointer; transition: border-color .12s;
}
.brow:hover { border-color: #a5b4fc; }
.brow-ck {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
}
.brow-ck.on { background: #6366f1; border-color: #6366f1; }
.brow-pic { flex: 0 0 auto; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.brow-pic img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; }
.brow-main { flex: 1; min-width: 0; }
.brow-w { font-weight: 800; font-size: 16px; color: var(--ink, #1f2937); }
.brow-zh { font-size: 13px; color: var(--ink2, #6b7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow-tag { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.brow-spk { flex: 0 0 auto; background: none; border: none; font-size: 18px; cursor: pointer; padding: 4px; }
body.exam-pro .brow { background: rgba(30,41,59,.7); border-color: rgba(148,163,184,.18); }
body.exam-pro .brow-w { color: #f1f5f9; }
body.exam-pro .brow-zh { color: #94a3b8; }

/* ============================================================
   登录 / 注册 / 改密（强制登录后才进入学习端）
   ============================================================ */
body.pre-auth #sidebar,
body.pre-auth #bottom-menu { display: none !important; }
body.pre-auth #app-main { padding: 0 !important; margin: 0 !important; width: 100%; }
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(99,102,241,.28), transparent 60%),
    radial-gradient(800px 460px at 110% 0%, rgba(13,148,136,.22), transparent 55%),
    linear-gradient(180deg, #0f172a 0%, #131c33 45%, #1a2440 100%);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: rgba(30, 41, 59, .82);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .55);
  padding: 30px 26px 26px;
  backdrop-filter: blur(10px);
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-logo { font-size: 46px; line-height: 1; }
.auth-title { font-size: 23px; font-weight: 900; color: #fff; margin-top: 8px; letter-spacing: 1px; }
.auth-sub { font-size: 12.5px; color: #94a3b8; margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; }
.auth-l { font-size: 12.5px; color: #cbd5e1; margin: 12px 2px 6px; }
.auth-i {
  width: 100%; box-sizing: border-box;
  background: rgba(15, 23, 42, .7);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px; color: #f1f5f9;
  outline: none; transition: border-color .15s;
}
.auth-i:focus { border-color: #818cf8; }
.auth-i::placeholder { color: #64748b; }
select.auth-i { appearance: none; -webkit-appearance: none; }
.auth-msg { min-height: 18px; font-size: 13px; margin: 10px 2px 2px; }
.auth-msg.err { color: #fca5a5; }
.auth-msg.tip { color: #93c5fd; }
.auth-btn {
  margin-top: 16px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff; border: none; border-radius: 12px;
  padding: 13px; font-size: 16px; font-weight: 800; letter-spacing: 4px;
  cursor: pointer; transition: transform .12s, box-shadow .12s;
  box-shadow: 0 10px 24px rgba(67, 56, 202, .4);
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(67, 56, 202, .5); }
.auth-btn:disabled { opacity: .6; cursor: default; transform: none; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: #94a3b8; }
.auth-switch a { color: #a5b4fc; cursor: pointer; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.auth-dot { margin: 0 10px; color: #475569; }
/* 找回密码：验证码输入框 + 获取按钮一行 */
.auth-coderow { display: flex; gap: 8px; align-items: stretch; }
.auth-coderow .auth-i { flex: 1; }
.auth-codebtn {
  flex: 0 0 auto; white-space: nowrap; border: none; border-radius: 12px;
  padding: 0 14px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  background: rgba(99, 102, 241, .18); color: #c7d2fe;
}
.auth-codebtn:disabled { opacity: .55; cursor: default; }
.auth-note { text-align: center; margin-top: 18px; font-size: 12px; color: #64748b; }
.auth-note a { color: #818cf8; }

/* ============================================================
   考试中心「高端学术」主题（与中小学卡通界面区分，面向大学生/留学生）
   作用于 body.exam-pro（进入 #/exam* 自动启用）
   ============================================================ */
body.exam-pro #app-main {
  background:
    radial-gradient(1100px 520px at 18% -8%, rgba(99,102,241,.16), transparent 60%),
    radial-gradient(900px 480px at 110% 0%, rgba(13,148,136,.12), transparent 55%),
    linear-gradient(180deg, #0f172a 0%, #131c33 38%, #1a2440 100%);
}
body.exam-pro .page-title h1 { color: #f1f5f9; letter-spacing: .5px; }
body.exam-pro .page-title .sub { color: #94a3b8; }
body.exam-pro .site-footer { color: #64748b; }
body.exam-pro .site-footer a { color: #818cf8; }

/* 卡片：深色玻璃拟态 */
body.exam-pro .card {
  background: rgba(30, 41, 59, .72);
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .45);
  color: #e2e8f0;
  backdrop-filter: blur(6px);
}
body.exam-pro .card .desc,
body.exam-pro .card span[style*="--ink2"],
body.exam-pro .card div[style*="--ink2"] { color: #94a3b8 !important; }

/* 轨道/单元磁贴：低饱和、克制、专业 */
body.exam-pro .tile {
  background: linear-gradient(160deg, rgba(30,41,59,.92), rgba(15,23,42,.92));
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  color: #e2e8f0;
  box-shadow: 0 8px 22px rgba(2, 6, 23, .4);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.exam-pro .tile:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, .6);
  box-shadow: 0 14px 32px rgba(2, 6, 23, .55);
}
body.exam-pro .tile .name { color: #f1f5f9; font-weight: 800; letter-spacing: .3px; }
body.exam-pro .tile .desc { color: #94a3b8; }
body.exam-pro .tile .icon { filter: saturate(.85); }
body.exam-pro .grid.big { gap: 14px; }

/* 进度条：冷色金属质感 */
body.exam-pro .progressbar { background: rgba(148,163,184,.18) !important; height: 9px; }

/* 按钮：哑光、描边、专业 */
body.exam-pro .btn {
  background: rgba(51, 65, 85, .9);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 12px;
  font-weight: 700;
}
body.exam-pro .btn:hover { border-color: rgba(129,140,248,.7); }
body.exam-pro .btn.orange {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: transparent; color: #fff;
}
body.exam-pro .btn.ghost { background: transparent; color: #cbd5e1; }
body.exam-pro .continue-btn {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  border-radius: 12px; letter-spacing: .5px;
}

/* 顶部「考试中心」品牌条 */
body.exam-pro .exam-hero {
  border-radius: 18px; padding: 18px 20px; margin-bottom: 16px;
  background: linear-gradient(120deg, rgba(99,102,241,.22), rgba(13,148,136,.18));
  border: 1px solid rgba(148,163,184,.22);
  color: #e2e8f0;
}
body.exam-pro .exam-hero .eh-title { font-size: 19px; font-weight: 900; color: #fff; letter-spacing: .6px; }
body.exam-pro .exam-hero .eh-sub { font-size: 13px; color: #c7d2fe; margin-top: 5px; }

/* 选项/输入在深色下的可读性 */
body.exam-pro .opt {
  background: rgba(30,41,59,.85);
  border: 2px solid rgba(148,163,184,.2);
  color: #e2e8f0;
}
body.exam-pro .opt:hover { border-color: rgba(129,140,248,.7); }
body.exam-pro .opt.correct { background: rgba(16,185,129,.18); border-color: #10b981; color: #d1fae5; }
body.exam-pro .opt.wrong { background: rgba(239,68,68,.16); border-color: #ef4444; color: #fecaca; }
body.exam-pro .opt.sel { background: rgba(99,102,241,.2); border-color: #818cf8; }
body.exam-pro textarea {
  background: rgba(15,23,42,.7) !important; color: #e2e8f0 !important;
  border-color: rgba(148,163,184,.28) !important;
}
body.exam-pro textarea::placeholder { color: #64748b; }
body.exam-pro .word-pill { background: rgba(99,102,241,.2) !important; color: #c7d2fe !important; }
body.exam-pro h2, body.exam-pro h3 { color: #e2e8f0; }
body.exam-pro .tabs .tab { color: #94a3b8; }
body.exam-pro .tabs .tab.active { color: #fff; border-color: #818cf8; }
body.exam-pro .task-item {
  background: rgba(30,41,59,.7); border: 1px solid rgba(148,163,184,.16); color: #e2e8f0;
}
body.exam-pro .task-item.done { opacity: .65; }
body.exam-pro .badge { background: #6366f1; color: #fff; }

/* ---------- 情景学习闯关 ---------- */
.scene-opts { display: flex; flex-direction: column; gap: 12px; }
.scene-opt { background: #f3f6fb; border: 2px solid #e4ebf5; border-radius: 14px; padding: 16px; font-size: 17px; font-weight: 700; color: #2c3a4d; text-align: center; cursor: pointer; }
.scene-opt.inline { padding: 12px 24px; }
.scene-opt.right { background: #e6f9f0; border-color: #26c281; color: #1a9e63; }
.scene-opt.wrong { background: #fdecec; border-color: #e74c3c; color: #c0392b; }
.scene-buildline { min-height: 56px; background: #f3f6fb; border-radius: 12px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scene-buildpool { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.scene-tok { background: #fff; border: 2px solid #cfdbec; border-radius: 10px; padding: 9px 16px; font-size: 17px; font-weight: 700; color: #2c3a4d; cursor: pointer; }
.scene-tok.used { background: #2f80d3; color: #fff; border-color: #2f80d3; }

/* ===== 学习乐园：全屏美术地图 ===== */
.pk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pk-title { font-size: 20px; font-weight: 900; color: #2c3e50; }
.pk-chips { display: flex; gap: 8px; }
.pk-chip { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: #eef2f7; color: #34495e; cursor: pointer; }
.pk-chip.hot { background: linear-gradient(135deg,#ff7a59,#ff5a8a); color: #fff; }
.pk-mapwrap {
  margin: 0 -20px;                       /* 抵消 #app-main 左右内边距，地图铺满宽度 */
  height: calc(100vh - 190px); min-height: 380px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  background: #7ec8f0; border-radius: 0;
}
.pk-map { position: relative; height: 100%; width: calc((100vh - 190px) * 1.5); min-width: 570px; }
.pk-img { display: block; width: 100%; height: 100%; }
.pk-hotspot { position: absolute; width: 84px; height: 84px; transform: translate(-50%,-50%); cursor: pointer; z-index: 2; }
.pk-ring { position: absolute; inset: 0; border-radius: 16px; border: 2px solid transparent; transition: all .18s ease; }
.pk-hotspot:hover .pk-ring { border-color: rgba(255,255,255,.6); }
.pk-hotspot.hl { z-index: 5; }
.pk-hotspot.hl .pk-ring {
  border-color: #ffd54a; background: rgba(255,213,74,.18);
  box-shadow: 0 0 0 4px rgba(255,213,74,.45), 0 0 18px rgba(255,213,74,.9);
  transform: scale(1.12); animation: pk-pulse .9s ease-in-out infinite;
}
@keyframes pk-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(255,213,74,.45), 0 0 18px rgba(255,213,74,.7); }
  50% { box-shadow: 0 0 0 8px rgba(255,213,74,.15), 0 0 26px rgba(255,213,74,1); }
}
.pk-label { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: flex; flex-direction: column; align-items: center; }
.pk-name { font-size: 12px; font-weight: 900; color: #fff; background: rgba(44,62,80,.82); padding: 1px 9px; border-radius: 999px; }
.pk-sub { font-size: 10px; color: #2c3e50; background: rgba(255,255,255,.8); padding: 0 7px; border-radius: 999px; margin-top: 2px; }
.pk-tip { text-align: center; color: #fff; font-size: 13px; font-weight: 700; margin-top: 10px; background: rgba(44,62,80,.55); display: inline-block; padding: 6px 16px; border-radius: 999px; }
.park-map-screen { text-align: center; }
.park-map-screen .pk-head, .park-map-screen .pk-mapwrap { text-align: left; }
/* 满屏自适应：整张地图(3:2)在不裁切/不滚动前提下尽量放大，宽高都占满一屏，建筑全可见 */
/* 电脑端打破 #app-main 的 980px 手机宽限制，地图按一屏可用高度撑满 */
.park-mode #app-main { max-width: none; padding: 10px 16px 12px; }
.pk-mapwrap.fit {
  overflow: hidden; min-height: 0; margin: 0;
  height: calc(100vh - 104px);            /* 顶部内边距 + 标题 + 底部提示 之外的可视高度 */
  display: flex; align-items: center; justify-content: center;
  background: #7ec8f0; border-radius: 14px;
}
/* 高度优先：地图占满可用高度，宽度按 3:2 自动；超出容器宽时回退为按宽适配 → 两方向都不裁切 */
.pk-map.fit {
  height: 100%; width: auto; max-width: 100%;
  aspect-ratio: 3 / 2; min-width: 0;
}
.pk-mapwrap.fit .pk-img { width: 100%; height: 100%; display: block; }
@media (max-width: 560px) {
  .park-mode #app-main { padding: 8px 8px 10px; }
  .pk-mapwrap.fit { height: calc(100vh - 120px); }
}

/* 外教一对一：电脑端全屏对话窗，画面更大更清楚 */
@media (min-width: 701px) {
  body.tutor-mode #app-main { max-width: none; padding: 0; }
  body.tutor-mode .tutor-meet {
    max-width: none; margin: 0; height: 100vh; border-radius: 0; box-shadow: none;
    display: flex; flex-direction: column;
  }
  /* 舞台铺满, 内部把头像盒按原图 3:2 居中 → cover 正好显示整张「拿书」照, 不裁脸 */
  body.tutor-mode .tutor-meet .meet-stage {
    flex: 1 1 auto; aspect-ratio: auto; min-height: 0;
    display: flex; align-items: center; justify-content: center; background: #000;
  }
  body.tutor-mode .tutor-meet .meet-remote {
    width: auto; height: 100%; max-width: 100%; aspect-ratio: 3 / 2;
  }
  body.tutor-mode .tutor-meet .meet-chat { flex: 0 0 auto; max-height: 15vh; }
  body.tutor-mode .tutor-meet .meet-local { width: 168px; height: 210px; }
  body.tutor-mode .tutor-meet .meet-caption { font-size: 19px; padding: 18px 24px 22px; }
  body.tutor-mode .tutor-meet .meet-caption .zh { font-size: 15px; }
}
@media (max-width: 560px) {
  .pk-hotspot { width: 64px; height: 64px; }
  .pk-name { font-size: 11px; }
  .pk-sub { font-size: 9px; }
}

/* ---------- AI 情景实战（H5 combat） ---------- */
.cb-screen { display: flex; flex-direction: column; height: calc(100vh - 0px); max-height: 100vh; padding: 0; }
.cb-h { padding: 12px 16px 6px; }
.cb-h-title { font-weight: 900; color: #1f2d3d; font-size: 16px; }
.cb-h-tasks { font-size: 13px; color: #f5821f; font-weight: 800; margin-top: 3px; }
.cb-avatar { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: 46vh; padding: 6px 0 6px; }
.cb-face { width: 92%; max-width: 460px; flex: 1; min-height: 0; object-fit: contain; border-radius: 18px; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(40,80,160,.16); background: linear-gradient(180deg,#dbe7ff,#eef4ff); }
.cb-video { background: #0b1020; object-fit: cover; }
/* 宽屏（教师投屏/电脑）把数字人放更大、对话框更宽，避免「小到看不清」 */
@media (min-width: 720px) {
  .cb-avatar { height: 52vh; }
  .cb-face { max-width: 560px; }
  .cb-msgs { padding-left: 8%; padding-right: 8%; }
}
.cb-face.idle { animation: cb-breathe 4.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes cb-breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.012); } }
.cb-npc { font-size: 13px; color: #6b7a90; font-weight: 700; margin-top: 5px; }
.cb-prep { font-size: 12px; color: #f5821f; font-weight: 700; margin-top: 3px; animation: cb-prep-blink 1s ease-in-out infinite; }
@keyframes cb-prep-blink { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.cb-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px; }
.cb-msg { margin-bottom: 12px; display: flex; }
.cb-msg.user { justify-content: flex-end; }
.cb-bubble { max-width: 90%; border-radius: 14px; padding: 10px 14px; line-height: 1.45; word-break: break-word; overflow-wrap: anywhere; }
.cb-bubble.npc { background: #fff; box-shadow: 0 3px 12px rgba(40,80,160,.08); }
.cb-bubble.npc .en { font-size: 15px; font-weight: 800; color: #1f2d3d; }
.cb-bubble.npc .zh { font-size: 12px; color: #6b7a90; margin-top: 4px; }
.cb-bubble.user { background: #2f80d3; color: #fff; font-size: 15px; font-weight: 700; }
.cb-typing { text-align: center; color: #9aa7b8; font-size: 13px; padding: 8px; }
.cb-bar { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -3px 12px rgba(0,0,0,.06); }
.cb-tools { display: flex; gap: 16px; margin-bottom: 10px; }
.cb-tool { font-size: 13px; color: #2f80d3; font-weight: 800; cursor: pointer; }
.cb-rec { width: 100%; border: none; background: #f5821f; color: #fff; text-align: center; border-radius: 12px; padding: 16px; font-size: 16px; font-weight: 900; cursor: pointer; }
.cb-rec.on { background: #e74c3c; animation: cb-rec-pulse 1.2s ease-in-out infinite; }
.cb-rec.busy { background: #8a93a3; }
.cb-rec[disabled] { opacity: .8; cursor: default; }
@keyframes cb-rec-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(231,76,60,.5); } 50% { box-shadow: 0 0 0 10px rgba(231,76,60,0); } }

/* ===== 实战提升模块（realcombat.js） ===== */
.kpr-sect { margin-top: 18px; }
.kpr-sect-t { font-size: 16px; font-weight: 900; color: #1f2d3d; margin: 6px 4px 10px; }
.kpr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpr-cell { position: relative; background: #fff; border-radius: 16px; padding: 18px 8px; text-align: center; cursor: pointer; box-shadow: 0 4px 14px rgba(20,60,110,.08); transition: transform .12s; }
.kpr-cell:active { transform: scale(.96); }
.kpr-ic { display: block; font-size: 30px; }
.kpr-nm { display: block; font-size: 13px; font-weight: 800; color: #2c3a4d; margin-top: 6px; }
.kpr-badge { position: absolute; top: 8px; right: 10px; background: #f5821f; color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.kpr-select { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 15px; background: #fff; }
.kpr-textarea { width: 100%; box-sizing: border-box; margin-top: 12px; padding: 12px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 15px; line-height: 1.5; resize: vertical; }
.kpr-lv { display: inline-block; background: #e0f2fe; color: #0369a1; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
/* 打卡日历 */
.plan-cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.plan-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #eef2f8; color: #9aa7b8; font-size: 12px; font-weight: 700; }
.plan-day.on { background: #34d399; color: #fff; }
.plan-day.today { outline: 2px solid #f59e0b; outline-offset: -2px; color: #b45309; }
.plan-day.on.today { color: #fff; }
/* 徽章墙 */
.badge-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge-cell { text-align: center; opacity: .45; filter: grayscale(1); }
.badge-cell.on { opacity: 1; filter: none; }
.bc-ic { font-size: 30px; }
.bc-nm { font-size: 12px; font-weight: 700; color: #2c3a4d; margin-top: 2px; }
/* 首页 / 乐园：3 列紧凑大卡，12 个 4 行刚好满屏 */
.home-screen { display: flex; flex-direction: column; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; margin: 6px auto; width: 100%; box-sizing: border-box; }
.home-tile { position: relative; border-radius: 18px; overflow: hidden; cursor: pointer; background: #fff; border: 4px solid var(--blue); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.home-tile:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 30px rgba(20,60,110,.28); }
.home-tile:active { transform: scale(.97); }
.home-tile .ht-art { height: 118px; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.home-tile .ht-label { padding: 11px 6px; text-align: center; color: #fff; font-size: 17px; font-weight: 900; line-height: 1.2; }
.home-tile .ht-sub2 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); margin-top: 2px; }
.home-tile.c-orange { border-color: var(--orange); } .home-tile.c-orange .ht-label { background: var(--orange); }
.home-tile.c-blue { border-color: var(--blue); } .home-tile.c-blue .ht-label { background: var(--blue); }
.home-tile.c-purple { border-color: var(--purple); } .home-tile.c-purple .ht-label { background: var(--purple); }
.home-tile.c-red { border-color: var(--red); } .home-tile.c-red .ht-label { background: var(--red); }
.home-tile.c-green { border-color: var(--green); } .home-tile.c-green .ht-label { background: var(--green); }
.home-tile .badge { position: absolute; top: 6px; right: 6px; background: var(--yellow); color: #4a3b00; font-size: 11px; font-weight: 900; border-radius: 999px; padding: 2px 8px; box-shadow: 0 2px 6px rgba(0,0,0,.25); z-index: 2; }
.park-chips { display: flex; gap: 10px; }
/* 学生看板 / 我的账号 */
.acc-card { padding: 16px; }
.acc-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.acc-av { font-size: 46px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg,#bfe3ff,#8ec9f5); border-radius: 18px; }
.acc-nm { font-size: 19px; font-weight: 900; color: #2c3e50; }
.acc-role { font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); display: inline-block; padding: 1px 10px; border-radius: 999px; margin-top: 3px; }
.acc-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-top: 1px dashed #e6edf5; font-size: 14px; }
.acc-k { color: #64748b; font-weight: 700; } .acc-v { color: #2c3e50; font-weight: 800; }
.acc-act { text-align: center; padding: 18px 8px; cursor: pointer; font-weight: 800; color: #2c3e50; }
.acc-act .acc-ic { font-size: 30px; margin-bottom: 6px; }
.acc-act:active { transform: scale(.97); }
@media (max-width: 560px) {
  .home-grid { gap: 10px; }
  .home-tile .ht-art { height: 88px; font-size: 46px; }
  .home-tile .ht-label { font-size: 14px; padding: 8px 4px; }
}

/* ===== 学习路径地图（ABCmouse 蓝点小路） ===== */
.hjp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hjp-tab { font-size: 13px; font-weight: 800; color: #2563eb; background: #eaf2ff; border: 1.5px solid #cfe0ff;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.hjp-tab.on { color: #fff; background: #3aa0ff; border-color: #3aa0ff; }
.hjp-top { background: linear-gradient(135deg, #eafff1, #e0f0ff); }
.hjp-map { margin-top: 12px; border-radius: 18px; padding: 6px 4px 16px;
  background: linear-gradient(180deg, #cfeffe 0%, #e9fbe7 26%, #d8f3c6 100%); }
.hjp-unit { padding: 4px 6px 8px; }
.hjp-ubanner { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 2px solid #ffd98f; border-radius: 14px; padding: 8px 14px; margin: 10px 8px 6px;
  font-size: 14px; color: #7a5320; box-shadow: 0 3px 10px rgba(120,90,30,.12); }
.hjp-ucount { font-size: 12px; font-weight: 900; color: #16a34a; background: #eafff1; padding: 2px 10px; border-radius: 999px; }
/* 蜿蜒小路：中间一条虚线，蓝点左右交替 */
.hjp-track { position: relative; padding: 6px 0; }
.hjp-track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 0;
  border-left: 4px dashed #b9d6a0; transform: translateX(-50%); }
.hjp-dot { position: relative; width: 50%; box-sizing: border-box; padding: 10px 14px;
  display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.hjp-dot.left { margin-right: auto; }
.hjp-dot.right { margin-left: auto; }
.hjp-bub { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: #fff; border: 4px solid #9fd0ff; color: #1f6fc4;
  box-shadow: 0 4px 10px rgba(30,80,160,.18); transition: transform .12s; }
.hjp-dot:active .hjp-bub { transform: scale(.92); }
.hjp-dot .hjp-cap { margin-top: 6px; font-size: 12px; font-weight: 800; color: #34506b;
  background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 999px; }
.hjp-dot.done .hjp-bub { background: #22c55e; border-color: #16a34a; color: #fff; }
.hjp-dot.current .hjp-bub { border-color: #f59e0b; animation: hjpPulse 1.4s infinite; }
.hjp-dot.locked { opacity: .55; cursor: not-allowed; }
.hjp-dot.locked .hjp-bub { background: #eef2f7; border-color: #cbd5e1; color: #94a3b8; }
.hjp-dot.chest .hjp-bub { background: linear-gradient(160deg,#ffe9a8,#ffce4d); border-color: #f0b429; color: #8a5a00; }
.hjp-dot.chest.done .hjp-bub { background: #22c55e; border-color: #16a34a; color: #fff; }
.hjp-bus { position: absolute; top: -14px; right: 8px; font-size: 22px; }
@keyframes hjpPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,.5); } 50% { box-shadow: 0 0 0 10px rgba(245,158,11,0); } }
@media (min-width: 720px) { .hjp-bub { width: 66px; height: 66px; font-size: 30px; } }
.hjp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hjp-week-cell { text-align: center; background: #f1f6fc; border-radius: 10px; padding: 8px 3px; font-size: 11px; color: #475569; }
.hjp-week-cell b { display: block; font-size: 13px; color: #1f2937; margin-bottom: 3px; }
.hjp-week-cell.on { background: #dbeafe; color: #1d4ed8; outline: 2px solid #60a5fa; }

/* ===== 学习路径地图 v2：一页一单元 + 顶部按单元整册进度 ===== */
.hju-prog { background: linear-gradient(135deg, #eef6ff, #eafff1); }
.hju-pdots { display: flex; flex-wrap: wrap; gap: 7px; }
.hju-pdot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; cursor: pointer; background: #eef2f7; color: #94a3b8; border: 2px solid #dbe3ee; }
.hju-pdot.done { background: #22c55e; color: #fff; border-color: #16a34a; }
.hju-pdot.locked { background: #eef0f4; color: #b3bcc9; border-color: #e2e8f0; font-size: 11px; }
.hju-pdot.cur { outline: 3px solid #f59e0b; outline-offset: 1px; color: #b45309; }
.hju-pdot.done.cur { color: #fff; }
.hjm-unitbar { display: flex; align-items: center; gap: 10px; margin: 12px 2px 8px; }
.hjm-nav { width: 38px; height: 38px; border-radius: 50%; border: none; background: #3aa0ff; color: #fff;
  font-size: 22px; font-weight: 900; cursor: pointer; flex: 0 0 auto; }
.hjm-nav:disabled { background: #cbd5e1; cursor: not-allowed; }
.hjm-utitle { flex: 1; text-align: center; line-height: 1.3; }
.hjm-utitle b { font-size: 16px; color: #1f2937; display: block; }
.hjm-utitle span { font-size: 12px; color: #64748b; }
/* 地图：天空→草地 场景，蓝点沿白色小路落点 */
.hjm-map { position: relative; height: 64vh; min-height: 470px; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(255,236,140,.9), rgba(255,236,140,0) 16%),
    linear-gradient(180deg, #bfe7ff 0%, #d7f0ff 22%, #d9f3c2 46%, #bfe79a 100%);
  box-shadow: inset 0 0 0 3px #fff, 0 6px 18px rgba(40,80,160,.14); }
/* 实景背景图（每单元一张）：盖在渐变之上，加轻微遮罩让白色小路与蓝点更清晰 */
.hjm-map.hjm-scene { background-size: cover; background-position: center bottom; background-repeat: no-repeat; }
.hjm-map.hjm-scene::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 60%, rgba(255,255,255,0) 40%, rgba(20,40,70,.16) 100%),
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 26%); }
.hjm-road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hjm-map.hjm-scene .hjm-node { z-index: 2; }
.hjm-map.hjm-scene .hjm-road path:first-child { filter: drop-shadow(0 1px 2px rgba(30,60,110,.35)); }
.hjm-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
  cursor: pointer; width: 92px; }
.hjm-bub { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: #fff; border: 4px solid #7fc0ff; color: #1f6fc4; box-shadow: 0 4px 12px rgba(30,80,160,.25); transition: transform .12s; }
.hjm-node:active .hjm-bub { transform: scale(.9); }
.hjm-cap { margin-top: 5px; font-size: 12px; font-weight: 800; color: #2f4a63;
  background: rgba(255,255,255,.92); padding: 2px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.hjm-node.done .hjm-bub { background: #22c55e; border-color: #16a34a; color: #fff; }
.hjm-node.current .hjm-bub { border-color: #f59e0b; animation: hjpPulse 1.4s infinite; }
.hjm-node.locked { opacity: .6; }
.hjm-node.locked .hjm-bub { background: #f1f5f9; border-color: #cbd5e1; color: #94a3b8; }
.hjm-node.chest .hjm-bub { background: linear-gradient(160deg,#ffe9a8,#ffce4d); border-color: #f0b429; color: #8a5a00; }
.hjm-node.chest.done .hjm-bub { background: #22c55e; border-color: #16a34a; color: #fff; }
.hjm-node.next .hjm-bub { background: linear-gradient(160deg,#fecaca,#fb7185); border-color: #ef4444; color: #fff; }
.hjm-node.next.ready .hjm-bub { animation: hjpPulse 1.2s infinite; }
.hjm-walk { position: absolute; top: -16px; font-size: 22px; }
.hjm-hint { margin-top: 10px; font-size: 12px; color: #64748b; text-align: center; line-height: 1.5; }
@media (min-width: 720px) { .hjm-map { height: 600px; } .hjm-bub { width: 64px; height: 64px; font-size: 30px; } }
/* 本单元绘本 */
.hjr-cover { height: 150px; border-radius: 16px; background-size: cover; background-position: center; position: relative;
  margin-bottom: 12px; box-shadow: inset 0 0 0 3px #fff, 0 4px 12px rgba(40,80,160,.15); overflow: hidden; }
.hjr-cover-t { position: absolute; left: 14px; bottom: 12px; color: #fff; font-weight: 900; font-size: 19px;
  text-shadow: 0 2px 6px rgba(20,50,90,.6); }
.hjr-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hjr-wd { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: 26px;
  cursor: pointer; min-width: 58px; }
.hjr-wd b { font-size: 12px; color: #2f4a63; font-weight: 700; }
.hjr-line { padding: 14px 16px; }
.hjr-en { font-size: 18px; font-weight: 800; color: #1f2d3d; cursor: pointer; }
.hjr-zh { color: var(--ink2); margin-top: 4px; font-size: 14px; }
/* 情景实战舞台 */
.hjt-stage { position: relative; border-radius: 18px; overflow: hidden; min-height: 200px; padding: 14px;
  background-size: cover; background-position: center; box-shadow: inset 0 0 0 3px #fff, 0 6px 18px rgba(40,80,160,.15);
  display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.hjt-av { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); flex: 0 0 auto; background: #fff; }
.hjt-av-emo { display: flex; align-items: center; justify-content: center; font-size: 46px; }
.hjt-bubble { background: rgba(255,255,255,.96); border-radius: 16px; padding: 12px 14px; font-size: 16px;
  color: #1f2d3d; line-height: 1.5; box-shadow: 0 3px 10px rgba(20,50,90,.18); flex: 1; }
.hjt-name { font-weight: 900; color: #2f80d3; font-size: 13px; margin-bottom: 3px; }
.hjt-bz { color: var(--ink2); font-size: 13px; margin-top: 6px; }
.hjt-prog { text-align: center; color: #64748b; font-size: 12px; margin-top: 10px; }
/* 单元拼读卡 */
.hjp-ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hjp-ph-emo { font-size: 32px; flex: 0 0 auto; }
.hjp-ph-mid { flex: 1; min-width: 0; }
.hjp-ph-word { font-size: 22px; font-weight: 800; color: #1f2d3d; letter-spacing: .5px; }
.hjp-ph-zh { color: var(--ink2); font-size: 13px; margin-top: 2px; }
.hjp-ph-btns { display: flex; gap: 8px; flex: 0 0 auto; }

/* 新人介绍片：首页横幅 + 弹层 */
.intro-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 12px; cursor: pointer;
  background: linear-gradient(135deg,#fff4e0,#ffffff); border: 1px solid #ffe2b8; border-radius: 16px;
  box-shadow: 0 6px 22px rgba(245,130,31,.12); transition: transform .15s ease; }
.intro-banner:hover { transform: translateY(-2px); }
.ib-cover { width: 132px; height: 84px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.ib-text { min-width: 0; }
.ib-title { font-size: 17px; font-weight: 900; color: #d97706; }
.ib-sub { font-size: 13px; color: #7a6a52; margin-top: 4px; }

.intro-overlay { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  background: rgba(12,22,40,.72); padding: 20px; }
.iv-panel { position: relative; width: min(860px,96vw); background: #0b1220; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.iv-close { position: absolute; top: 10px; right: 14px; z-index: 2; color: #fff; font-size: 22px; cursor: pointer;
  width: 38px; height: 38px; line-height: 38px; text-align: center; background: rgba(0,0,0,.4); border-radius: 50%; }
.iv-video { width: 100%; display: block; max-height: 70vh; background: #000; }
.iv-soon img { width: 100%; display: block; }
.iv-soon-t { text-align: center; color: #fff; font-size: 18px; font-weight: 700; padding: 16px; }
.iv-cta { display: flex; gap: 12px; justify-content: center; padding: 16px; background: #fff; flex-wrap: wrap; }

/* ===== 外教姿态帧（LivePortrait 点头/摇头，与小程序同款时序） ===== */
.tutor-meet .frame.gesture { transition: opacity .12s ease; z-index: 3; }

/* ===== 学生摄像头小窗（一体机/电脑） ===== */
.tutor-meet .meet-local .local-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.tutor-meet .meet-local .cam-toggle { position: absolute; top: 6px; right: 6px; z-index: 3; width: 30px; height: 30px;
  border-radius: 50%; border: none; background: rgba(0,0,0,.5); color: #fff; font-size: 14px; cursor: pointer; }

/* ===== 场景讲解卡 + 讲解浮层（数字人视频 / 头像配音） ===== */
.scene-intro-card { display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: linear-gradient(135deg,#eef7ff,#dbeeff); border: 2px solid #bfe0ff; }
.scene-intro-card .si-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top;
  border: 3px solid #fff; box-shadow: 0 3px 10px rgba(40,80,160,.25); flex: 0 0 auto; }
.si-mask { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(12,22,40,.78); padding: 20px; }
.si-box { width: min(760px,96vw); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.si-head { padding: 14px 18px; font-weight: 900; color: #1f2d3d; background: linear-gradient(135deg,#eef7ff,#dbeeff); }
.si-stage { position: relative; background: #0b1220; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.si-stage video { width: 100%; display: block; max-height: 56vh; background: #000; }
.si-talk { padding: 26px 0 20px; text-align: center; }
.si-ava-wrap { position: relative; display: inline-block; }
.si-ava-wrap img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: top;
  border: 5px solid rgba(255,255,255,.85); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.si-wave { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.si-wave.on { opacity: 1; }
.si-wave i { width: 5px; height: 14px; border-radius: 3px; background: #34d399; animation: siWave 1s ease-in-out infinite; }
.si-wave i:nth-child(2) { animation-delay: .12s; } .si-wave i:nth-child(3) { animation-delay: .24s; }
.si-wave i:nth-child(4) { animation-delay: .36s; } .si-wave i:nth-child(5) { animation-delay: .48s; }
@keyframes siWave { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1.6); } }
.si-caption { padding: 14px 20px; color: #334155; font-size: 15px; line-height: 1.7; max-height: 130px; overflow-y: auto; }
.si-acts { display: flex; gap: 12px; justify-content: center; padding: 0 16px 18px; flex-wrap: wrap; }

/* ===== 情景对话跟读（#/dialog） ===== */
.dlg-line { display: flex; gap: 12px; align-items: flex-start; }
.dlg-line .dlg-who { flex: 0 0 76px; font-size: 13px; font-weight: 900; color: #64748b; padding-top: 4px; }
.dlg-line.dlg-b { background: linear-gradient(135deg,#f0fdf4,#dcfce7); }
.dlg-line.dlg-b .dlg-who { color: #16a34a; }

/* ===== 教师一体机「上课模式」：大屏全宽 + 放大字号/按钮，站在教室后排也看得清 ===== */
body.classroom #app-main { max-width: 1500px; padding: 24px 32px 140px; }
body.classroom { font-size: 18px; }
body.classroom .page-title h1 { font-size: 34px; }
body.classroom .page-title .sub { font-size: 18px; }
body.classroom .card { padding: 26px; border-radius: 24px; }
body.classroom .btn { font-size: 20px; padding: 16px 36px; }
body.classroom .btn.small { font-size: 17px; padding: 12px 24px; }
body.classroom .side-btn { width: 88px; padding: 12px 4px 10px; }
body.classroom .side-btn .ic { font-size: 30px; }
body.classroom .side-btn .tx { font-size: 15px; }
body.classroom .side-btn.cls-on { background: linear-gradient(180deg,#34d399,#059669); }
body.classroom #sidebar { width: 116px; }
body.classroom .ren { font-size: 24px !important; }
body.classroom .rzh { font-size: 17px; }
body.classroom .tile .icon { font-size: 44px; }
body.classroom .tile .name { font-size: 18px; }
body.classroom .kpr-grid { grid-template-columns: repeat(4, 1fr); }
body.classroom .hm-grid { grid-template-columns: repeat(6, 1fr); }
body.classroom .home-grid { max-width: 1100px; }
body.classroom .dlg-line .ren { font-size: 26px !important; }
body.classroom .dlg-line .dlg-who { flex-basis: 92px; font-size: 15px; }
body.classroom .si-box { width: min(1100px,96vw); }
body.classroom .si-caption { font-size: 20px; max-height: 180px; }
body.classroom .si-stage video { max-height: 64vh; }
body.classroom .cb-face { max-width: 720px; }
body.classroom .cb-avatar { height: 56vh; }
body.classroom .cb-bubble.npc .en { font-size: 20px; }
body.classroom .cb-bubble.npc .zh { font-size: 15px; }
body.classroom .cb-bubble.user { font-size: 20px; }
body.classroom .cb-rec { font-size: 20px; padding: 20px; }
body.classroom .meet-caption { font-size: 24px !important; }
body.classroom .meet-caption .zh { font-size: 18px !important; }
body.classroom .tutor-meet .meet-chat { font-size: 16px; max-height: 18vh; }
body.classroom .tutor-meet .tb { width: 64px; height: 64px; font-size: 24px; }
body.classroom .tutor-meet .meet-local { width: 220px; height: 275px; }
/* 上课模式滚动条更粗，触屏好拖 */
body.classroom ::-webkit-scrollbar { width: 12px; height: 12px; }
body.classroom ::-webkit-scrollbar-thumb { background: rgba(47,128,211,.45); border-radius: 8px; }

/* ============ 课堂模式（大屏领读 #/classroom/<unit>）============ */
.cls-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cls-unit { background: #f4f8fd; border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: .15s; }
.cls-unit:hover { border-color: #2f80d3; background: #eef6ff; }
.cls-unit .cu-nm { font-weight: 800; font-size: 15px; }
.cls-unit .cu-sub { font-size: 12px; color: var(--ink2); margin-top: 4px; }
body.classroom-mode #sidebar, body.classroom-mode #bottom-menu, body.classroom-mode #kpFbBtn { display: none !important; }
body.classroom-mode #app-main { max-width: none; padding: 0; }
.cls-stage { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: linear-gradient(160deg, #0f2a4a, #123a63 55%, #0d3050); color: #fff; }
.cls-top { display: flex; align-items: center; gap: 14px; padding: 16px 22px; font-size: 15px; }
.cls-tag { background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 16px; font-weight: 800; }
.cls-idx { color: #9fc3ea; font-weight: 700; }
.cls-x { margin-left: auto; background: rgba(255,255,255,.12); color: #cfe3f7; border: none; border-radius: 999px; padding: 8px 18px; font-size: 14px; cursor: pointer; }
.cls-bar { height: 6px; background: rgba(255,255,255,.12); margin: 0 22px; border-radius: 3px; overflow: hidden; }
.cls-bar > div { height: 100%; background: linear-gradient(90deg, #4ade80, #22d3ee); border-radius: 3px; transition: width .3s; }
.cls-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 6vw; cursor: pointer; }
.cls-en { font-weight: 900; line-height: 1.35; text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.cls-zh { font-size: clamp(17px, 2.6vw, 30px); color: #a9c8e8; margin-top: 22px; font-weight: 600; }
.cls-hint { font-size: 13px; color: rgba(255,255,255,.35); margin-top: 40px; }
.cls-ctl { display: flex; gap: 14px; justify-content: center; padding: 20px 22px 30px; flex-wrap: wrap; }
.cls-btn { background: rgba(255,255,255,.13); color: #fff; border: 2px solid transparent; border-radius: 16px; padding: 16px 26px; font-size: 17px; font-weight: 800; cursor: pointer; transition: .15s; }
.cls-btn:hover { background: rgba(255,255,255,.22); }
.cls-btn.on { border-color: #4ade80; color: #4ade80; }
.cls-btn.main { background: linear-gradient(135deg, #22c55e, #16a34a); padding: 16px 44px; box-shadow: 0 8px 24px rgba(34,197,94,.35); }

/* ============ 首次引导（谁在学习→目标→学习科学）============ */
.ob-screen { max-width: 760px; margin: 0 auto; padding-top: 26px; }
.ob-head { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 26px; }
.ob-logo { width: 34px; height: 34px; border-radius: 9px; }
.ob-dots { margin-left: auto; display: flex; gap: 7px; }
.ob-dot { width: 26px; height: 7px; border-radius: 4px; background: #dde7f2; transition: .2s; }
.ob-dot.on { background: linear-gradient(90deg, #6366f1, #3b82f6); }
.ob-q { font-size: 26px; margin: 0 0 18px; font-weight: 900; }
.ob-note { color: var(--ink2); font-size: 14px; margin: -8px 0 16px; }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ob-card { background: #fff; border: 2.5px solid #e6edf6; border-radius: 18px; padding: 20px 18px; cursor: pointer; transition: .15s; }
.ob-card:hover { border-color: #93b8e8; transform: translateY(-2px); }
.ob-card.on { border-color: #3b82f6; background: #eff6ff; }
.ob-ic { font-size: 34px; }
.ob-nm { font-weight: 900; font-size: 17px; margin-top: 8px; }
.ob-sub { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.ob-back { margin-top: 18px; color: var(--ink2); font-size: 14px; cursor: pointer; }
.ob-sci { display: flex; flex-direction: column; gap: 12px; }
.ob-sci-row { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: 0 4px 14px rgba(20,60,110,.06); }
.ob-sci-row .ob-nm { margin-top: 0; font-size: 15px; }
.ob-go { margin-top: 22px; width: 100%; font-size: 17px; }

/* 学习路径：学段一级导航（小学/初中/高中） */
.hjp-stages { display: flex; gap: 10px; margin-bottom: 10px; }
.hjp-press .hjp-stage.on { background: linear-gradient(135deg, #f59e0b, #f97316); }
/* 配音小演员提示条 */
.dub-tip { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #f1f5f9;
  color: #41546e; font-weight: 700; font-size: 14px; text-align: center; }
.dub-tip.rec { background: #fef2f2; color: #dc2626; animation: dubPulse 1.2s infinite; }
@keyframes dubPulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

/* 英语神射手 */
.hp-court { position: relative; height: 320px; border-radius: 16px; overflow: hidden;
  background-size: cover; background-position: center; }
.hp-player { position: absolute; left: 12%; bottom: 6px; height: 46%; transition: .2s; }
.hp-ball { position: absolute; left: 20%; bottom: 22%; font-size: 34px; z-index: 3; }
.hp-ball.fly-t4 { animation: hpFlyT4 1.1s cubic-bezier(.3,.7,.4,1) forwards; }
.hp-ball.fly-t3 { animation: hpFlyT3 1.1s cubic-bezier(.3,.7,.4,1) forwards; }
.hp-ball.fly-t2 { animation: hpFlyT2 1.1s cubic-bezier(.3,.7,.4,1) forwards; }
.hp-ball.fly-t1 { animation: hpFlyT1 1.1s cubic-bezier(.3,.7,.4,1) forwards; }
@keyframes hpFlyT4 { 40% { transform: translate(180px, -190px) rotate(240deg); }
  100% { transform: translate(300px, -60px) rotate(480deg); } }
@keyframes hpFlyT3 { 40% { transform: translate(150px, -150px) rotate(240deg); }
  100% { transform: translate(240px, -20px) rotate(480deg); } }
@keyframes hpFlyT2 { 40% { transform: translate(110px, -110px) rotate(200deg); }
  100% { transform: translate(180px, 10px) rotate(380deg); } }
@keyframes hpFlyT1 { 40% { transform: translate(60px, -70px) rotate(160deg); }
  100% { transform: translate(100px, 20px) rotate(280deg); } }
.hp-flash { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 4; }
.hp-score { background: rgba(255,255,255,.94); border-radius: 18px; padding: 14px 30px; text-align: center;
  font-size: 42px; font-weight: 900; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: hpPop .35s; }
.hp-score small { font-size: 16px; }
.hp-score div { font-size: 16px; margin-top: 2px; }
.hp-score.t4 { color: #d97706; } .hp-score.t3 { color: #16a34a; }
.hp-score.t2 { color: #2563eb; } .hp-score.t1 { color: #64748b; }
@keyframes hpPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 5; background: #000; }
.hp-chip { display: inline-block; min-width: 26px; padding: 3px 8px; margin: 2px; border-radius: 999px;
  background: #eef2f7; color: #64748b; font-weight: 800; font-size: 13px; text-align: center; }
.hp-chip.cur { outline: 2px solid #f59e0b; }
.hp-chip.t4 { background: #fef3c7; color: #b45309; } .hp-chip.t3 { background: #dcfce7; color: #15803d; }
.hp-chip.t2 { background: #dbeafe; color: #1d4ed8; } .hp-chip.t1 { background: #f1f5f9; color: #64748b; }
.hjp-stage { font-size: 15px; font-weight: 900; color: #41546e; background: #fff; border: 2px solid #dbe6f2;
  border-radius: 999px; padding: 8px 22px; cursor: pointer; transition: .15s; }
.hjp-stage.on { color: #fff; background: linear-gradient(135deg, #6366f1, #3b82f6); border-color: transparent; }
