:root {
  --bg: #f4f7ff;
  --card: #ffffff;
  --ink: #1f2a45;
  --ink-2: #5a6684;
  --ink-3: #8d97ae;
  --line: #e6ebf7;
  --brand: #4f8cff;
  --brand-2: #6ee7d1;
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(43, 74, 145, 0.08);
  --shadow-lg: 0 18px 50px rgba(43, 74, 145, 0.16);
}

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

html, body {
  margin: 0; padding: 0; min-height: 100%;
  background:
    radial-gradient(900px 500px at 10% -10%, #dce8ff 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 0%, #d9fff5 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.hidden { display: none !important; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

.app { max-width: 1040px; margin: 0 auto; padding: 0 18px 60px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 12px;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(244,247,255,.92), rgba(244,247,255,.55) 70%, transparent);
}
.brand { font-weight: 800; font-size: 19px; letter-spacing: .5px; display: flex; align-items: baseline; gap: 8px; }
.brand span { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.topbar .spacer { flex: 1; }
.stats { display: flex; align-items: center; gap: 8px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgba(43,74,145,.05);
  display: flex; align-items: center; gap: 5px;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 13px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 17px; box-shadow: 0 4px 12px rgba(43,74,145,.05);
  transition: transform .15s, box-shadow .15s;
}
.icon-btn:active { transform: scale(.94); }

/* ---------- views ---------- */
.view { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, #4f8cff 0%, #6b7bff 45%, #7c5cff 100%);
  color: #fff; border-radius: 28px; padding: 28px 26px 24px; margin: 8px 0 22px;
  box-shadow: 0 20px 50px rgba(79,140,255,.32);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); border-radius: 50%;
}
.hero-emoji { font-size: 46px; line-height: 1; margin-bottom: 10px; }
.hero h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: .5px; }
.hero p { margin: 0 0 18px; opacity: .9; font-size: 13.5px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

.btn {
  border-radius: 14px; padding: 12px 20px; font-size: 15px; font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.btn.primary { background: #fff; color: #3b5bdb; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn.ghost { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn.soft { background: #eef3ff; color: #3b5bdb; }
.btn.line { background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); }

/* ---------- daily ---------- */
.daily {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.daily .ring { width: 46px; height: 46px; flex: none; }
.daily .txt b { font-size: 15px; }
.daily .txt p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }

.section-title { font-size: 16px; margin: 0 0 12px; color: var(--ink-2); font-weight: 800; letter-spacing: .3px; }

/* ---------- unit grid ---------- */
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.unit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  text-align: left; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.unit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.unit-card:active { transform: scale(.985); }
.unit-card .bg {
  position: absolute; right: -30px; bottom: -34px; font-size: 96px; opacity: .08; transform: rotate(-8deg);
}
.unit-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.unit-card .badge {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none;
}
.unit-card h3 { margin: 0; font-size: 16px; }
.unit-card .sub { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.unit-card .meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.unit-card .stars { color: #f5b822; letter-spacing: 1px; font-size: 12px; }
.progress { height: 7px; border-radius: 9px; background: #eef2fb; overflow: hidden; margin-top: 12px; }
.progress > i { display: block; height: 100%; border-radius: 9px; transition: width .5s ease; }

/* ---------- unit view ---------- */
.unit-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.unit-head .badge { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; }
.unit-head h2 { margin: 0; font-size: 20px; }
.unit-head p { margin: 3px 0 0; font-size: 13px; color: var(--ink-3); }

.tabs { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 18px; box-shadow: var(--shadow); }
.tab { flex: 1; padding: 11px 8px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink-3); transition: .18s; }
.tab.active { background: linear-gradient(135deg, #4f8cff, #6b7bff); color: #fff; box-shadow: 0 6px 16px rgba(79,140,255,.3); }

.panel { animation: fadeUp .3s ease both; }

/* ---------- cards ---------- */
.practice-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow);
}
.en { font-size: 26px; font-weight: 800; line-height: 1.45; letter-spacing: .2px; }
.en .tok { transition: color .2s, background .2s; border-radius: 6px; padding: 0 2px; }
.en .tok.ok { color: #15803d; background: #dcfce7; }
.en .tok.miss { color: #b45309; background: #fef3c7; }
.cn { margin-top: 10px; font-size: 15px; color: var(--ink-3); }

.speak-row { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- mic ---------- */
.mic-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26px 0 6px; }
.mic {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff, #7c5cff);
  color: #fff; font-size: 38px; display: grid; place-items: center;
  box-shadow: 0 16px 36px rgba(79,140,255,.4);
  transition: transform .15s, box-shadow .2s;
  position: relative;
}
.mic:active { transform: scale(.94); }
.mic::before, .mic::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(124,92,255,.55); opacity: 0;
}
.mic.listening { background: linear-gradient(135deg, #ff5c8a, #ff8a3d); box-shadow: 0 16px 40px rgba(255,92,138,.45); }
.mic.listening::before { animation: pulse 1.4s ease-out infinite; }
.mic.listening::after { animation: pulse 1.4s ease-out .5s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.mic-hint { font-size: 13px; color: var(--ink-3); min-height: 18px; }
.heard { font-size: 13px; color: var(--ink-2); background: #f6f8ff; border-radius: 12px; padding: 10px 14px; margin-top: 8px; max-width: 100%; word-break: break-word; }

/* ---------- score ---------- */
.score-box { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.score-ring { width: 92px; height: 92px; flex: none; }
.score-txt b { font-size: 16px; display: block; }
.score-txt p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ---------- words ---------- */
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.word-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow); transition: transform .16s, border-color .16s;
  display: flex; flex-direction: column; gap: 6px; text-align: left;
}
.word-card:hover { transform: translateY(-2px); border-color: #c9d8ff; }
.word-card .w { font-size: 17px; font-weight: 800; }
.word-card .c { font-size: 12.5px; color: var(--ink-3); }
.word-card .ipa { font-size: 11.5px; color: #8d97ae; }
.word-card .row { display: flex; gap: 8px; margin-top: 8px; }
.chip { font-size: 11.5px; padding: 6px 10px; border-radius: 999px; background: #f2f5fd; color: var(--ink-2); font-weight: 700; }
.chip.done { background: #dcfce7; color: #15803d; }

/* ---------- dialog ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; max-height: 54vh; overflow-y: auto; padding-right: 4px; }
.bubble { max-width: 82%; padding: 14px 16px; border-radius: 18px; font-size: 15.5px; line-height: 1.55; animation: fadeUp .25s ease both; }
.bubble.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #4f8cff, #6b7bff); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 10px 24px rgba(79,140,255,.28); }
.bubble .cn { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; }
.bubble.me .cn { color: rgba(255,255,255,.8); }
.bubble .spk { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; opacity: .6; margin-bottom: 4px; letter-spacing: .5px; }

/* ---------- chat view ---------- */
.chat-shell { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 62vh; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 50vh; padding: 4px; }
.chat-input { display: flex; gap: 8px; align-items: center; }
.chat-input input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px;
  font-family: inherit; outline: none; transition: border-color .15s;
}
.chat-input input:focus { border-color: #9db8ff; }
.mini-mic { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg,#4f8cff,#7c5cff); color:#fff; font-size:20px; display:grid; place-items:center; flex:none; }
.mini-mic.listening { background: linear-gradient(135deg,#ff5c8a,#ff8a3d); }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(20,30,60,.42); backdrop-filter: blur(6px); padding: 20px;
  animation: fadeIn .2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  background: #fff; border-radius: 26px; padding: 26px 26px 0; width: 100%; max-width: 460px;
  box-shadow: 0 30px 80px rgba(20,30,60,.3); max-height: 86vh; overflow-y: auto;
  animation: pop .25s cubic-bezier(.2,.9,.3,1.3) both;
}
@keyframes pop { from { transform: scale(.92); opacity: .01; } 99% { opacity: 1; } to { transform: none; opacity: 1; } }
.sheet h3 { margin: 0 0 4px; font-size: 19px; }
.sheet .sub { margin: 0 0 18px; font-size: 13px; color: var(--ink-3); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px;
  font-size: 14px; font-family: inherit; outline: none; background: #fbfcff;
}
.field input:focus, .field select:focus { border-color: #9db8ff; }
.sheet-actions {
  display: flex; gap: 10px; margin-top: 20px;
  position: sticky; bottom: 0; background: #fff;
  padding: 12px 0 22px;
}
.sheet-actions .btn { flex: 1; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch:last-of-type { border-bottom: none; }
.switch .lbl b { font-size: 14px; }
.switch .lbl p { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); }
.toggle { width: 52px; height: 30px; border-radius: 999px; background: #dfe6f5; position: relative; transition: .2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: .2s; }
.toggle.on { background: linear-gradient(135deg,#4f8cff,#6b7bff); }
.toggle.on::after { left: 25px; }

/* ---------- record ---------- */
.rec-area {
  display: flex; align-items: center; gap: 14px; margin-top: 18px;
  background: #f7f9ff; border: 1px dashed #d7e2fb; border-radius: 18px; padding: 14px 16px;
}
.rec-btn {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: #fff; border: 2px solid #ff5c8a; color: #ff5c8a; font-size: 22px;
  display: grid; place-items: center; transition: .2s;
}
.rec-btn.recording { background: #ff5c8a; color: #fff; animation: recPulse 1.2s infinite; }
@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,92,138,.35); }
  50% { box-shadow: 0 0 0 12px rgba(255,92,138,0); }
}
.rec-info b { display: block; font-size: 14px; }
.rec-info span { font-size: 12px; color: var(--ink-3); }

/* ---------- report ---------- */
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rep-card { background: #f7f9ff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; }
.rep-card b { font-size: 19px; display: block; }
.rep-card span { font-size: 11.5px; color: var(--ink-3); }
.rep-h { font-size: 13px; color: var(--ink-2); margin: 20px 0 10px; font-weight: 800; }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 150px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 3px; }
.bar-num { font-size: 10px; color: var(--ink-3); height: 12px; }
.bar-track { flex: 1; width: 100%; background: #eef2fb; border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.bar-track i { display: block; width: 100%; border-radius: 8px; background: linear-gradient(180deg, #4f8cff, #6b7bff); transition: height .5s ease; }
.bar-lbl { font-size: 10px; color: var(--ink-3); }
.bar-sub { font-size: 9.5px; color: var(--ink-3); height: 12px; }
.rep-units { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.rep-unit { display: flex; align-items: center; }
.rep-unit span { width: 118px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weak-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.weak-list li { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.weak-list li span { color: #b45309; font-size: 11px; }
.weak-list small { color: var(--ink-3); }

/* ---------- 冒险地图 ---------- */
.map {
  position: relative; height: 640px; border-radius: 30px; overflow: hidden;
  border: 1px solid #d7e6f8;
  background:
    radial-gradient(520px 180px at 18% 0%, rgba(255,255,255,.9), transparent 70%),
    linear-gradient(180deg, #cfe8ff 0%, #e8f5ff 40%, #d9f3e6 66%, #c2ead3 100%);
  box-shadow: var(--shadow);
}
.map-deco { position: absolute; inset: 0; overflow: hidden; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .9; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud.c1 { width: 110px; height: 34px; left: 6%; top: 5%; }
.cloud.c1::before { width: 50px; height: 50px; left: 12px; top: -22px; }
.cloud.c1::after { width: 36px; height: 36px; left: 56px; top: -14px; }
.cloud.c2 { width: 80px; height: 26px; right: 8%; top: 12%; opacity: .8; }
.cloud.c2::before { width: 40px; height: 40px; left: 10px; top: -18px; }
.cloud.c2::after { width: 28px; height: 28px; left: 42px; top: -10px; }
.cloud.c3 { width: 70px; height: 22px; left: 12%; bottom: 10%; opacity: .65; }
.cloud.c3::before { width: 34px; height: 34px; left: 8px; top: -15px; }
.island { position: absolute; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #b9ecc6, #8ed6a9); opacity: .5; }
.island.i1 { width: 190px; height: 86px; right: 4%; top: 44%; }
.island.i2 { width: 220px; height: 96px; left: 2%; bottom: 6%; }
.map-path { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .18s ease;
}
.map-node:hover { transform: translate(-50%, -50%) scale(1.07); }
.map-node:active { transform: translate(-50%, -50%) scale(.97); }
.node-btn {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font-size: 34px; background: #fff; border: 4px solid var(--c, #4f8cff);
  box-shadow: 0 10px 24px rgba(43,74,145,.18);
}
.map-node.done .node-btn { background: var(--c); }
.map-node.current .node-btn { animation: nodePulse 2.2s ease-in-out infinite; }
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(43,74,145,.18), 0 0 0 0 rgba(79,140,255,.5); }
  50% { box-shadow: 0 10px 24px rgba(43,74,145,.18), 0 0 0 16px rgba(79,140,255,0); }
}
.node-label {
  font-size: 12.5px; font-weight: 800; background: rgba(255,255,255,.94);
  padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(43,74,145,.12);
  white-space: nowrap;
}
.node-stars { font-size: 11px; color: #f5b822; letter-spacing: 1px; }
.map-mascot { position: absolute; width: 78px; transform: translate(-50%, -50%); pointer-events: none; }
.map-tip {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-size: 12.5px; color: #3b5bdb; background: rgba(255,255,255,.92);
  padding: 8px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(43,74,145,.12);
  white-space: nowrap; max-width: 92%;
}

/* ---------- 单词卡 ---------- */
.fc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.fc-close {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px;
  background: #f2f5fd; color: var(--ink-3); font-size: 13px; display: grid; place-items: center;
}
.fc { text-align: center; padding: 4px 2px 0; }
.fc-word { font-size: 31px; font-weight: 900; letter-spacing: .3px; line-height: 1.25; }
.fc-ipa { color: #7b8aa8; font-size: 14px; margin-top: 6px; }
.fc-cn { font-size: 16px; color: var(--ink-2); margin-top: 8px; font-weight: 600; }
.fc-ex {
  margin-top: 16px; background: #f7f9ff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; font-size: 14px; text-align: left; line-height: 1.6;
}
.fc-excn { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.fc-tag {
  display: inline-block; font-size: 10.5px; background: #e8f0ff; color: #3b5bdb;
  padding: 1px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px;
}

/* ---------- mascot ---------- */
.mascot { display: block; overflow: visible; animation: mascotFloat 3.8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes mascotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.mascot.pop { animation: mascotBounce .65s cubic-bezier(.3,1.4,.5,1); }
@keyframes mascotBounce {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-16px) scale(1.05); }
  60% { transform: translateY(0) scale(.97); }
  100% { transform: translateY(0) scale(1); }
}
.hero-emoji { cursor: pointer; margin-bottom: 4px; }
.hero-emoji .mascot { width: 112px; height: 112px; }
.hero-level { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; color: rgba(255,255,255,.95); flex-wrap: wrap; }
#lvChip { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.38); padding: 4px 11px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.lv-bar { flex: 1; min-width: 90px; height: 8px; border-radius: 9px; background: rgba(255,255,255,.26); overflow: hidden; }
.lv-bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #ffe27a, #ffb347); transition: width .7s ease; }
.lv-tip { opacity: .85; white-space: nowrap; }
.mascot-sm { width: 80px; height: 80px; flex: none; }
.mascot-sm > svg { width: 100%; height: 100%; }
.mascot-xs { width: 20px; height: 20px; display: inline-block; vertical-align: -4px; }
.mascot-xs > svg { width: 100%; height: 100%; animation: none; }

/* ---------- award ---------- */
.award {
  position: fixed; inset: 0; z-index: 115; display: grid; place-items: center;
  background: rgba(20,30,60,.46); backdrop-filter: blur(7px); padding: 20px;
}
.award-card {
  background: #fff; border-radius: 28px; padding: 26px 26px 22px; text-align: center;
  max-width: 340px; width: 100%; box-shadow: 0 30px 80px rgba(20,30,60,.35);
  animation: pop .3s cubic-bezier(.2,.9,.3,1.3) both;
}
.award-card h3 { margin: 8px 0 6px; font-size: 21px; }
.award-card p { margin: 0 0 20px; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.award-card .btn { width: 100%; }
#awardMascot svg { width: 118px; height: 118px; margin: 0 auto; }

/* ---------- encouragement ---------- */
.praise { font-size: 15.5px; font-weight: 800; color: #3b5bdb; margin-top: 6px; }
.praise-en { font-size: 13px; color: var(--ink-3); margin-top: 2px; font-style: italic; }
.fly-praise {
  position: fixed; z-index: 130; transform: translate(-50%, 0);
  font-weight: 900; font-size: 24px; color: #ff5c8a; pointer-events: none;
  text-shadow: 0 2px 12px rgba(255,255,255,.9), 0 0 2px #fff;
  animation: flyUp 1.3s ease-out forwards;
}
@keyframes flyUp {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.7); }
  18% { opacity: 1; transform: translate(-50%, -14px) scale(1.1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -84px) scale(1); }
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: #1f2a45; color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 120; max-width: 86vw; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty { text-align: center; color: var(--ink-3); padding: 40px 10px; font-size: 14px; }

/* ---------- words head ---------- */
.words-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.words-chips { display: flex; gap: 8px; flex: none; }

/* ---------- 外教剧场 ---------- */
.tutor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sc-card {
  position: relative; overflow: hidden; text-align: left; border-radius: 22px; padding: 18px 18px 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column; gap: 8px;
}
.sc-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff));
}
.sc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.sc-card:active { transform: scale(.985); }
.sc-top { display: flex; align-items: center; gap: 12px; }
.sc-icon {
  width: 50px; height: 50px; border-radius: 16px; flex: none; display: grid; place-items: center;
  font-size: 26px; background: color-mix(in srgb, var(--c) 14%, #fff);
}
.sc-card h3 { margin: 0; font-size: 16px; }
.sc-card .sc-cn { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.sc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sc-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f2f5fd; color: var(--ink-2); }
.sc-tag.lv { background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 78%, #000); }
.sc-goal { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 4px 0 0; }
.sc-go { margin-top: 6px; align-self: flex-start; font-size: 12.5px; font-weight: 800; color: var(--c); }
.tutor-note { margin: 16px 0 0; font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.6; }
.tutor-note b { color: var(--ink-2); font-weight: 800; }

/* ---------- AI 外教 ---------- */
.ai-banner {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 22px; margin-bottom: 20px;
  background: linear-gradient(135deg, #4f8cff, #7c5cff);
  color: #fff; box-shadow: 0 16px 34px rgba(79,140,255,.32);
  transition: transform .18s, box-shadow .18s;
}
.ai-banner:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(79,140,255,.4); }
.ai-banner:active { transform: scale(.985); }
.ai-banner .ai-ava { width: 54px; height: 54px; border-radius: 18px; flex: none; display: grid; place-items: center; font-size: 30px; background: rgba(255,255,255,.2); }
.ai-banner .ai-txt { flex: 1; min-width: 0; }
.ai-banner b { font-size: 16px; display: block; }
.ai-banner p { margin: 3px 0 0; font-size: 12.5px; opacity: .9; }
.ai-banner .ai-go { flex: none; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); padding: 7px 12px; border-radius: 999px; }

.ai-warn {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; line-height: 1.5;
}
.ai-warn .chip { margin-left: auto; background: #fef3c7; color: #92400e; }

.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ai-persona {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 16px;
  border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .16s, border-color .16s;
}
.ai-persona:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.ai-persona .ai-ava { width: 50px; height: 50px; border-radius: 16px; flex: none; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.ai-persona .ai-txt { flex: 1; min-width: 0; }
.ai-persona b { font-size: 15px; }
.ai-persona p { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.ai-persona .ai-go { font-size: 12px; font-weight: 800; color: var(--c); flex: none; white-space: nowrap; }

.ai-starters { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-starters .chip { background: #f2f5fd; }

/* ---------- 地图上的密码塔 ---------- */
.map-node.code-node .node-btn {
  width: 66px; height: 66px; font-size: 26px; border-style: dashed; background: #fbfdff;
  box-shadow: 0 8px 20px rgba(43,74,145,.14);
}
.map-node.code-node .node-label { font-size: 11px; padding: 2px 9px; }
.map-node.code-node .node-stars { font-size: 10px; }

.tutor-stage { animation: fadeUp .3s ease both; }
.teacher-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, #fff), #fff);
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 14px;
}
.teacher-ava {
  width: 66px; height: 66px; border-radius: 20px; flex: none; display: grid; place-items: center;
  font-size: 38px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 22%, transparent);
}
.teacher-ava.talking { animation: talkBounce .5s ease-in-out infinite alternate; }
@keyframes talkBounce { from { transform: translateY(0); } to { transform: translateY(-4px) scale(1.04); } }
.teacher-info { flex: 1; min-width: 0; }
.teacher-info b { font-size: 16px; display: block; }
.teacher-info small { font-size: 12px; color: var(--ink-3); }
.teacher-info p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.tutor-goal { font-size: 12.5px; color: var(--ink-2); background: #fff; border: 1px dashed color-mix(in srgb, var(--c) 30%, var(--line)); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.tutor-goal b { color: var(--c); }

.mission-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mission-bar .track { flex: 1; height: 9px; border-radius: 9px; background: #eef2fb; overflow: hidden; }
.mission-bar .track i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #4f8cff, #6ee7d1); transition: width .5s ease; }
.mission-bar .cnt { font-size: 12px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }

.tut-chat { display: flex; flex-direction: column; gap: 12px; max-height: 42vh; overflow-y: auto; padding: 4px 2px; margin-bottom: 12px; }
.tutor-eval { text-align: center; padding: 8px 0 2px; }
.tutor-eval .stars { font-size: 30px; letter-spacing: 4px; color: #f5b822; margin: 6px 0; }
.tutor-eval h3 { margin: 6px 0 4px; }
.tutor-eval p { color: var(--ink-3); font-size: 13px; margin: 0; line-height: 1.6; }

/* ---------- 听音选词 ---------- */
.quiz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.quiz-head .cnt { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.quiz-play {
  width: 100%; margin: 10px 0 18px; padding: 22px; border-radius: 20px;
  background: linear-gradient(135deg, #4f8cff, #6b7bff); color: #fff;
  font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 14px 30px rgba(79,140,255,.32); transition: transform .15s;
}
.quiz-play:active { transform: scale(.97); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt {
  padding: 15px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 800; color: var(--ink); transition: .15s; text-align: center; word-break: break-word;
}
.quiz-opt:hover { border-color: #9db8ff; background: #f7faff; }
.quiz-opt.correct { background: #dcfce7; border-color: #86efac; color: #15803d; }
.quiz-opt.wrong { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; animation: shake .4s; }
.quiz-opt:disabled { cursor: default; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.combo-pop {
  position: fixed; left: 50%; top: 30%; transform: translateX(-50%); z-index: 130;
  font-size: 30px; font-weight: 900; color: #ff5c8a; pointer-events: none;
  text-shadow: 0 2px 14px rgba(255,255,255,.9); animation: comboPop .9s ease-out forwards;
}
@keyframes comboPop { 0%{opacity:0;transform:translateX(-50%) scale(.5)} 25%{opacity:1;transform:translateX(-50%) scale(1.15)} 100%{opacity:0;transform:translateX(-50%) scale(1) translateY(-40px)} }

/* ---------- 底部导航 ---------- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(43,74,145,.08);
}
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0; border-radius: 14px; color: var(--ink-3); font-size: 11px; font-weight: 700; transition: .15s;
}
.tabbar button i { font-size: 20px; font-style: normal; line-height: 1; }
.tabbar button.on { color: var(--brand); background: #eef3ff; }

/* ---------- 微调 ---------- */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 60%);
  transform: translateX(-110%); animation: heroSheen 7s ease-in-out infinite;
}
@keyframes heroSheen { 0%, 70% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }
.hero > * { position: relative; z-index: 1; }
.map-node.current .node-btn { box-shadow: 0 10px 24px rgba(43,74,145,.18), 0 0 0 6px rgba(79,140,255,.12); }

/* ---------- 外教剧场 v2 ---------- */
.scene-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, #fff), color-mix(in srgb, var(--c) 8%, #fff));
  border: 1px solid color-mix(in srgb, var(--c) 24%, var(--line));
}
.scene-banner .sb-emoji {
  width: 56px; height: 56px; border-radius: 18px; flex: none; display: grid; place-items: center;
  font-size: 30px; background: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 25%, transparent);
}
.scene-banner b { font-size: 16px; display: block; }
.scene-banner p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.scene-banner .chip { margin-left: auto; flex: none; background: #fff; }

.mission-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.mchip {
  font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px;
  background: #f2f5fd; color: var(--ink-3); border: 1px solid transparent; transition: .2s;
}
.mchip.cur { background: color-mix(in srgb, var(--c, #4f8cff) 16%, #fff); color: color-mix(in srgb, var(--c, #4f8cff) 80%, #000); border-color: color-mix(in srgb, var(--c, #4f8cff) 40%, transparent); animation: chipPulse 1.8s ease-in-out infinite; }
.mchip.done { background: #dcfce7; color: #15803d; }
.mchip.skip { background: #f1f5f9; color: #94a3b8; text-decoration: line-through; }
@keyframes chipPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.tut-task { font-size: 13px; color: var(--ink-2); background: #fff; border: 1px dashed color-mix(in srgb, var(--c, #4f8cff) 35%, var(--line)); border-radius: 14px; padding: 10px 14px; margin-bottom: 6px; }
.tut-task b { color: var(--c, #4f8cff); }

.tut-type { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.tut-type input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px;
  font-size: 14px; font-family: inherit; outline: none; background: #fbfcff; transition: border-color .15s;
}
.tut-type input:focus { border-color: #9db8ff; }
.tut-type .icon-btn { width: 44px; height: 44px; border-radius: 14px; background: #eef3ff; border: none; color: #3b5bdb; font-size: 17px; flex: none; }

.tut-missions { list-style: none; padding: 0; margin: 14px auto 0; max-width: 300px; text-align: left; display: flex; flex-direction: column; gap: 7px; }
.tut-missions li { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.tut-missions li i { font-style: normal; }
.tut-missions li.ok { color: #15803d; font-weight: 700; }
.tut-missions li.skip { color: #94a3b8; text-decoration: line-through; }

/* ---------- 单词密码 ---------- */
.promo-card {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.promo-emoji { font-size: 30px; flex: none; }
.promo-txt { flex: 1; min-width: 0; }
.promo-txt b { font-size: 15px; display: block; }
.promo-txt p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.promo-card .btn { flex: none; padding: 10px 16px; font-size: 13.5px; }

.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.code-card {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line); transition: .15s;
}
.code-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); background: color-mix(in srgb, var(--c) 5%, #fff); transform: translateY(-2px); }
.code-ico { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.code-ico.big { width: 56px; height: 56px; font-size: 30px; }
.code-body { min-width: 0; }
.code-body b { font-size: 13.5px; display: block; }
.code-f { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-n { font-size: 10.5px; color: color-mix(in srgb, var(--c) 75%, #000); font-weight: 800; }

.code-hero {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line));
}
.code-hero b { font-size: 15px; }
.code-hero .code-f { font-size: 13px; }

.code-pairs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.code-pair {
  display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 5%, #fff); border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; flex-wrap: wrap;
}
.code-pair .cp-a { color: color-mix(in srgb, var(--c) 80%, #000); }
.code-pair .cp-plus, .code-pair .cp-eq { color: var(--ink-3); font-weight: 800; }
.code-pair .cp-b { color: var(--ink-2); }
.code-pair .cp-word {
  padding: 4px 10px; border-radius: 10px; background: #fff; border: 1.5px solid color-mix(in srgb, var(--c) 45%, var(--line));
  color: color-mix(in srgb, var(--c) 80%, #000); font-weight: 800; font-size: 14px;
}
.code-pair .cp-word:active { transform: scale(.95); }
.code-pair .cp-cn { font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-left: auto; }

.code-stem {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px; border-radius: 18px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c) 8%, #fff); border: 1px dashed color-mix(in srgb, var(--c) 35%, var(--line));
  font-size: 22px;
}
.code-stem b { font-weight: 900; color: var(--ink); }
.code-stem .plus, .code-stem .eq { color: var(--ink-3); }
.code-stem .q { color: color-mix(in srgb, var(--c) 80%, #000); }
.code-stem .ans { color: color-mix(in srgb, var(--c) 80%, #000); min-width: 90px; text-align: center; }

/* ---------- 单词训练 ---------- */
.unit-pick { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.unit-pick-card {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: .15s;
}
.unit-pick-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); background: color-mix(in srgb, var(--c) 5%, #fff); }
.unit-pick-card .up-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 21px; background: color-mix(in srgb, var(--c) 13%, #fff); }
.unit-pick-card b { font-size: 14px; display: block; }
.unit-pick-card p { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); }

.train-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.train-mode {
  padding: 16px 10px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  text-align: center; transition: .15s; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.train-mode:hover { transform: translateY(-2px); border-color: #9db8ff; background: #f7faff; }
.train-mode .tm-ico { font-size: 26px; }
.train-mode b { font-size: 14px; }
.train-mode p { margin: 0; font-size: 11px; color: var(--ink-3); line-height: 1.4; }

.train-prompt {
  font-size: 28px; font-weight: 900; text-align: center; padding: 24px 12px;
  background: #f7f9ff; border: 1px solid var(--line); border-radius: 18px; margin: 8px 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; word-break: break-word;
}
.mini-say { width: 40px; height: 40px; border-radius: 12px; background: #eef3ff; color: #3b5bdb; font-size: 18px; flex: none; }

.dict-hint { font-size: 13px; color: var(--ink-2); text-align: center; margin: 4px 0 14px; line-height: 1.6; }
.dict-hint b { color: var(--ink); }
.dict-answer { color: #15803d; font-size: 15px; }
.dict-row { display: flex; gap: 8px; align-items: stretch; }
.dict-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px;
  font-size: 17px; font-family: inherit; outline: none; background: #fbfcff; min-width: 0;
}
.dict-row input:focus { border-color: #9db8ff; }
.dict-row input.good { border-color: #86efac; background: #dcfce7; color: #15803d; }
.dict-row input.bad { border-color: #fca5a5; background: #fee2e2; color: #b91c1c; }
.dict-row .btn { flex: none; padding: 12px 18px; }

@media (max-width: 640px) {
  .app { padding: 0 14px 84px; }
  .tabbar { display: flex; }
  .quiz-options { grid-template-columns: 1fr; }
  .hero { padding: 22px 18px; border-radius: 24px; }
  .hero h1 { font-size: 20px; }
  .en { font-size: 21px; }
  .brand span { display: none; }
  .practice-card { padding: 20px 18px; }
  .bubble { max-width: 90%; }
  .map { height: 560px; border-radius: 24px; }
  .node-btn { width: 70px; height: 70px; font-size: 26px; border-width: 3px; }
  .node-label { font-size: 11px; padding: 2px 8px; }
  .map-mascot { width: 58px; }
  .fc-word { font-size: 26px; }
  .fc-ipa { font-size: 13px; }
  .code-grid { grid-template-columns: 1fr; }
  .scene-banner { padding: 14px 14px; border-radius: 18px; }
  .scene-banner .sb-emoji { width: 48px; height: 48px; font-size: 26px; }
  .code-stem { font-size: 18px; }
  .code-pair .cp-cn { margin-left: 0; width: 100%; }
  .train-prompt { font-size: 23px; padding: 18px 10px; }
  .train-mode { padding: 13px 8px 11px; }
  .words-head { flex-wrap: wrap; }
  .words-head .section-title { width: 100%; }
  .ai-banner { padding: 14px; border-radius: 18px; }
  .ai-banner .ai-ava { width: 46px; height: 46px; font-size: 26px; }
  .ai-persona { padding: 13px; }
  .map-node.code-node .node-btn { width: 54px; height: 54px; font-size: 22px; }
}
