/* 鲲鹏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;
}
.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; }
.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; }
.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 { border-color: var(--good); background: #ebfaf3; }
.opt.wrong { border-color: var(--bad); background: #ffefee; animation: shake .3s; }
.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: #0d0d0d; overflow: hidden;
}
.tutor-meet .meet-remote {
  width: 100%; height: 100%; position: relative;
  background: linear-gradient(180deg, #1e3a5f, #0f172a);
  display: flex; align-items: center; justify-content: center;
}
.tutor-meet .meet-remote.talking { box-shadow: inset 0 0 0 3px rgba(38,194,129,.65); }
.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;
}
.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;
}
.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;
}
.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 .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; }
}
