/* 聊天教练 · 网页版样式 v4(轻量导航 · 三步向导 · 统一规范) */
:root {
  --primary: #4A6CF7;
  --primary-light: #6A87F9;
  --primary-press: #3A5AE6;
  --primary-soft: #EEF2FE;
  --bg: #F5F6FA;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --text-2: #666666;
  --text-3: #999999;
  --line: #EEEEEE;
  --warm: #B26A00;
  --warm-bg: #FFF7EC;
  --green: #2E7D4F;
  --green-bg: #F0F9F3;
  --danger: #FF6B6B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 12px rgba(26, 26, 26, 0.05);
  --shadow-lg: 0 8px 28px rgba(74, 108, 247, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  background: #E9EBF3;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(31, 36, 48, 0.08);
}

/* ============ 顶部栏(轻量) ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #EEEEEE;
  color: #1A1A1A;
}
.topbar-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-back {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; color: #1A1A1A;
  cursor: pointer; border-radius: 50%;
  transition: background .15s, transform .1s;
  margin-left: -8px;
}
.topbar-back:active { background: #F0F1F5; transform: scale(.92); }
.topbar-right {
  display: flex; align-items: center; gap: 8px;
  min-width: 34px; justify-content: flex-end;
}
.topbar-act {
  font-size: 13px; color: #4A6CF7; font-weight: 600;
  padding: 5px 10px; cursor: pointer; border-radius: 8px;
  transition: background .15s;
}
.topbar-act:active { background: #EEF2FE; }

/* ============ 视图切换 ============ */
.view { display: none; padding-bottom: 20px; }
.view.active { display: block; animation: viewIn .28s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-view { display: none; height: calc(100vh - 52px); flex-direction: column; padding-bottom: 0; }
.chat-view.active { display: flex; }

/* ============ 首页 Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 28px 34px;
  background: linear-gradient(155deg, #4E5FE8 0%, #6C7DF7 50%, #8B9AFF 100%);
  border-radius: 0 0 30px 30px;
  color: #fff;
  text-align: center;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .5;
  pointer-events: none;
}
.hero-glow-1 { width: 220px; height: 220px; background: rgba(255,255,255,.28); top: -90px; right: -60px; }
.hero-glow-2 { width: 160px; height: 160px; background: rgba(255,214,120,.35); bottom: -70px; left: -40px; }
.hero-emoji {
  position: relative;
  width: 64px; height: 64px; margin: 0 auto 14px;
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(31,36,48,.18);
}
.hero-title { position: relative; font-size: 32px; font-weight: 800; letter-spacing: 3px; text-shadow: 0 2px 12px rgba(31,36,48,.15); }
.hero-sub { position: relative; margin-top: 8px; font-size: 13.5px; opacity: .92; letter-spacing: .5px; }
.hero-badges { position: relative; margin-top: 18px; display: flex; justify-content: center; gap: 8px; }
.hero-badge {
  font-size: 11.5px; padding: 5px 14px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ============ 卡片与入口 ============ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  margin: 12px 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.6);
}
.entry {
  display: flex; align-items: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.entry:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(31,36,48,.08); }
.entry:active { transform: scale(.98); }
.entry-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(145deg, var(--primary-soft), #EAEEFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; flex-shrink: 0;
  box-shadow: inset 0 1px 0 #fff;
}
.entry-body { flex: 1; margin-left: 14px; }
.entry-title { font-size: 17px; font-weight: 700; }
.entry-desc { font-size: 12.5px; color: var(--text-3); margin-top: 3px; line-height: 1.55; }
.entry-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); color: #A8ADC7;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.foot-note { margin: 22px 30px; font-size: 11.5px; color: #B4B9CB; text-align: center; line-height: 1.9; }

/* ============ 区块与选项 ============ */
.section-title { font-size: 15px; font-weight: 700; margin: 22px 18px 12px; }
.section-title .tip { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 8px; }

.opt-list { padding: 0 14px; }
.option {
  display: flex; align-items: center;
  background: var(--card); border-radius: var(--radius-sm);
  padding: 15px 16px; margin-bottom: 10px;
  border: 2px solid transparent; cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color .15s, background .15s, transform .12s;
}
.option:active { transform: scale(.985); }
.option.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 4px 16px rgba(91,108,255,.12); }
.option-name { font-size: 15px; font-weight: 600; }
.option-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.option-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #D8DBE8; margin-left: auto; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.option.selected .option-dot {
  border-color: var(--primary); background: var(--primary);
  box-shadow: inset 0 0 0 5px var(--primary-soft);
  animation: popIn .25s ease;
}
@keyframes popIn { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ============ 按钮 ============ */
.btn-primary {
  background: linear-gradient(135deg, #5B6CFF, #7A8CFF);
  color: #fff; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-align: center;
  padding: 15px 0; cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .12s, opacity .12s;
}
.btn-primary:active { transform: scale(.97); }
.btn-primary.disabled { opacity: .5; pointer-events: none; }
.btn-ghost {
  background: #EEF1FB; color: var(--primary);
  border-radius: 999px; font-size: 14px; font-weight: 600;
  text-align: center; padding: 12px 0; cursor: pointer;
  transition: background .15s;
}
.btn-ghost:active { background: #E2E7F8; }
.footer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(245,246,251,.98) 70%, rgba(245,246,251,0));
}
.footer-spacer { height: 96px; }
.main-btn { margin: 16px 16px; }
.sample-btn { margin-top: 12px; font-size: 13px; padding: 10px 0; }

/* ============ 状态与输入 ============ */
.state-box { padding: 54px 24px; text-align: center; color: var(--text-3); font-size: 14px; }
.state-emoji { font-size: 44px; margin-bottom: 12px; display: block; animation: floatY 2.4s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.tip-text { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.fmt-text { margin-top: 10px; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.fmt-demo {
  margin-top: 5px; background: #F7F8FC; border-radius: 10px;
  padding: 9px 12px; color: #6A7089; white-space: pre-line;
  font-size: 12.5px;
}
.area {
  margin-top: 13px; width: 100%; height: 140px;
  background: #F7F8FC; border: 1.5px solid transparent; border-radius: 12px;
  padding: 13px; font-size: 14px; line-height: 1.65;
  font-family: inherit; resize: vertical; outline: none;
  transition: border-color .15s, background .15s;
}
.area:focus { border-color: var(--primary); background: #FBFBFF; }
.field-label { margin-top: 15px; font-size: 13px; color: #6A7089; font-weight: 500; }
.field {
  margin-top: 6px; width: 100%;
  background: #F7F8FC; border: 1.5px solid transparent; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; outline: none;
  transition: border-color .15s;
}
.field:focus { border-color: var(--primary); background: #FBFBFF; }

/* ============ 聊天页 ============ */
.chat-head {
  display: flex; align-items: center;
  padding: 10px 14px; background: #fff;
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.head-tag { background: var(--primary-soft); color: var(--primary); font-size: 12px; border-radius: 8px; padding: 4px 10px; font-weight: 600; }
.head-tip { flex: 1; text-align: center; font-size: 11px; color: #B0B5C6; }
.head-end { font-size: 13px; color: var(--danger); cursor: pointer; padding: 4px 8px; font-weight: 600; }

.chat-scroll {
  flex: 1; overflow-y: auto; padding: 16px 12px 20px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(91,108,255,.04), transparent),
    #F0F1F7;
}
.chat-body { display: flex; flex-direction: column; }
.msg { display: flex; align-items: flex-end; margin-bottom: 16px; }
.msg-user { flex-direction: row-reverse; }
.msg-girl { flex-direction: row; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  background: linear-gradient(145deg, #E7EBFF, #D4DCFF);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(31,36,48,.08);
}
.msg-user .avatar { background: linear-gradient(145deg, #FFEFD6, #FFE3B8); margin-left: 8px; }
.msg-girl .avatar { margin-right: 8px; }

.msg-main { display: flex; flex-direction: column; max-width: 74%; }
.msg-user .msg-main { align-items: flex-end; }
.msg-girl .msg-main { align-items: flex-start; }

.bubble {
  padding: 11px 14px; border-radius: 16px;
  font-size: 15px; line-height: 1.6; word-break: break-all; white-space: pre-wrap;
}
.msg-user .bubble {
  background: linear-gradient(135deg, #5B6CFF, #6E7EFF);
  color: #fff; border-bottom-right-radius: 5px;
  box-shadow: 0 3px 10px rgba(91,108,255,.25);
}
.msg-girl .bubble {
  background: #fff; color: var(--text);
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 5px rgba(31,36,48,.06);
}
.msg-time { font-size: 10px; color: #B0B5C6; margin-top: 4px; padding: 0 4px; }

.typing { display: flex; align-items: center; padding: 13px 15px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #C7CBDA; margin: 0 3px;
  animation: blink 1.2s infinite ease-in-out;
}
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.chat-inputbar {
  display: flex; align-items: center;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: #fff; flex-shrink: 0;
  border-top: 1px solid var(--line);
}
.chat-input {
  flex: 1; background: #F4F5FA; border: none; border-radius: 999px;
  padding: 11px 18px; font-size: 15px; outline: none; font-family: inherit;
  transition: background .15s;
}
.chat-input:focus { background: #EDEFFA; }
.send-btn {
  margin-left: 10px; background: linear-gradient(135deg, #5B6CFF, #7A8CFF);
  color: #fff; font-size: 15px; font-weight: 700; border-radius: 999px;
  padding: 10px 20px; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(91,108,255,.3);
  transition: transform .12s;
}
.send-btn:active { transform: scale(.94); }
.send-btn.disabled { opacity: .5; pointer-events: none; }

/* ============ 复盘 ============ */
.session-info { margin: 16px 16px 0; font-size: 13px; color: var(--text-3); text-align: center; }
.score-card { text-align: center; padding: 26px 18px; }
.score-ring {
  width: 132px; height: 132px; border-radius: 50%;
  margin: 0 auto; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(91,108,255,.18);
}
.score-ring-inner {
  width: 104px; height: 104px; border-radius: 50%;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-num { font-size: 44px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.score-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.score-overall { margin-top: 16px; font-size: 14px; color: var(--text-2); text-align: left; line-height: 1.75; }

.cmt-card { margin-top: 0; margin-bottom: 12px; }
.cmt-head { display: flex; align-items: center; justify-content: space-between; }
.cmt-round { font-size: 12px; color: var(--primary); font-weight: 700; letter-spacing: 1px; }
.cmt-tag { font-size: 10.5px; color: var(--green); background: var(--green-bg); border-radius: 999px; padding: 3px 10px; }
.cmt-quote { margin-top: 8px; font-size: 14.5px; font-weight: 600; }
.cmt-feedback { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.75; }
.cmt-better {
  margin-top: 10px; font-size: 13px; color: var(--green);
  background: var(--green-bg); border-radius: 12px;
  padding: 10px 12px; line-height: 1.65;
}
.cmt-better-label { font-weight: 700; margin-right: 5px; }

.next-card { font-size: 14px; color: var(--text-2); line-height: 1.85; }
.cheer-card {
  font-size: 14.5px; color: var(--warm); background: var(--warm-bg);
  line-height: 1.85; text-align: center; font-weight: 600;
  border: 1px solid #FBE9D0;
}

/* ============ 分析结果 ============ */
.res-label { font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.res-text { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.res-tags { margin-top: 10px; display: flex; }
.res-tag { font-size: 12px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.res-item { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-top: 5px; }
.res-good { color: var(--green); }
.res-bad { color: #C0392B; }

/* ============ 建议 ============ */
.chips { display: flex; flex-wrap: wrap; padding: 0 14px; }
.chip {
  font-size: 13px; color: #6A7089; background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 17px; margin: 0 8px 9px 0; cursor: pointer;
  transition: all .15s;
}
.chip:active { transform: scale(.95); }
.chip.selected {
  color: var(--primary); border-color: var(--primary);
  background: var(--primary-soft); font-weight: 600;
  box-shadow: 0 3px 10px rgba(91,108,255,.14);
}
.item-card { margin-top: 12px; }
.item-head { display: flex; align-items: center; justify-content: space-between; }
.item-style {
  font-size: 12.5px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border-radius: 8px; padding: 4px 10px;
}
.item-copy {
  font-size: 13px; color: #fff; background: linear-gradient(135deg, #5B6CFF, #7A8CFF);
  border-radius: 999px; padding: 6px 18px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(91,108,255,.25);
  transition: transform .12s;
}
.item-copy:active { transform: scale(.94); }
.item-text { margin-top: 11px; font-size: 15px; line-height: 1.75; }
.item-note { margin-top: 7px; font-size: 12px; color: var(--text-3); }

/* 滚动条 */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #D4D8E8; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #B9BFD9; }

/* ===== 历史记录 ===== */
.hist-card { padding: 12px 14px; cursor: pointer; }
.hist-card:active { transform: scale(.99); }
.hist-top { display: flex; justify-content: space-between; align-items: center; }
.hist-time { font-size: 12px; color: #9AA0B5; }
.hist-score { font-size: 12px; font-weight: 700; color: #5B6CFF; }
.hist-meta { font-size: 14px; font-weight: 600; margin: 4px 0 2px; }
.hist-preview { font-size: 12px; color: #9AA0B5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 教训提醒条 ===== */
.lessons-bar { margin: 8px 12px 0; padding: 10px 12px; background: rgba(255,184,74,.1); border: 1px solid rgba(255,184,74,.35); border-radius: 12px; }
.lessons-head { font-size: 13px; font-weight: 700; color: #B7791F; margin-bottom: 6px; }
.lessons-tip { font-weight: 400; font-size: 11px; color: #C89B5A; margin-left: 6px; }
.lesson-item { font-size: 12px; color: #8A6A33; margin: 4px 0; line-height: 1.5; }
.lesson-quote { font-weight: 600; }

/* ===== 建议教学讲解 ===== */
.item-why { margin-top: 8px; padding: 8px 10px; background: rgba(91,108,255,.08); border-radius: 8px; font-size: 12px; color: #5B6CFF; line-height: 1.6; }

/* ===== 成长地图(推塔) ===== */
.map-stats { display: flex; justify-content: space-around; padding: 14px 8px; }
.map-stat { text-align: center; }
.map-stat-num { font-size: 22px; font-weight: 800; color: #5B6CFF; }
.map-stat-label { font-size: 11px; color: #9AA0B5; margin-top: 2px; }
.map-road { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 12px; }
.map-node { flex: 1 1 40%; min-width: 130px; background: #fff; border: 1px solid #ECEEF6; border-radius: 14px; padding: 14px 10px; text-align: center; transition: transform .15s; }
.map-node:active { transform: scale(.97); }
.map-node.lit { border-color: #C9D2FF; background: linear-gradient(180deg, #F5F7FF 0%, #fff 100%); }
.map-tower { font-size: 30px; line-height: 1.2; }
.map-name { font-size: 13px; font-weight: 700; margin-top: 6px; }
.map-stars { margin-top: 4px; letter-spacing: 2px; }
.map-star { color: #DDE1EF; font-size: 14px; }
.map-star.on { color: #FFB84A; }
.map-score { font-size: 11px; color: #5B6CFF; margin-top: 4px; font-weight: 600; }
.map-score.dim { color: #C4C9DA; font-weight: 400; }
.map-reward { text-align: center; padding: 16px; font-size: 14px; font-weight: 600; color: #5B6CFF; }
.map-reward.win { color: #2E7D4F; }
.map-reward-sub { font-size: 12px; color: #9AA0B5; font-weight: 400; margin-top: 6px; line-height: 1.6; }

/* ===== 复盘战斗文案 ===== */
.battle-line { margin-top: 12px; font-size: 13px; font-weight: 700; color: #FF8A3D; text-align: center; line-height: 1.5; }

/* =====================================================
   聊天教练 v3 UI 升级
   ===================================================== */

/* ===== 顶部 VIP 角标 ===== */
.topbar-vip {
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #FFB84A, #FF8A3D);
  border-radius: 999px; padding: 5px 14px;
  box-shadow: 0 3px 10px rgba(255,138,61,.4);
  animation: vipPulse 2s ease-in-out infinite;
}
@keyframes vipPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ===== 首页状态卡 ===== */
.status-row {
  display: flex; justify-content: space-around;
  margin: 14px 14px 4px;
  padding: 14px 8px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 18px rgba(91,108,255,.08);
}
.status-item { text-align: center; flex: 1; }
.status-num { font-size: 22px; font-weight: 800; color: #5B6CFF; line-height: 1.2; }
.status-label { font-size: 10.5px; color: #9AA0B5; margin-top: 2px; }
.status-item.vip-glow .status-num { background: linear-gradient(135deg,#FFB84A,#FF8A3D); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 520px; margin: 0 auto;
  display: flex; 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));
  z-index: 60;
}
.tab-item {
  flex: 1; text-align: center; padding: 4px 0;
  border-radius: 14px; cursor: pointer;
  transition: all .18s;
}
.tab-item:active { transform: scale(.94); }
.tab-icon { font-size: 21px; line-height: 1.3; transition: transform .2s; }
.tab-label { font-size: 10.5px; color: #9AA0B5; margin-top: 1px; font-weight: 500; }
.tab-item.active { background: var(--primary-soft); }
.tab-item.active .tab-icon { transform: translateY(-1px) scale(1.08); }
.tab-item.active .tab-label { color: var(--primary); font-weight: 700; }
.tabbar-spacer { height: 66px; }

/* ===== 我的页 ===== */
.me-card { text-align: center; padding: 24px 18px; background: linear-gradient(160deg, #fff 0%, #F5F7FF 100%); }
.me-avatar {
  width: 68px; height: 68px; margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #E7EBFF, #D4DCFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(91,108,255,.2);
}
.me-name { font-size: 17px; font-weight: 800; }
.me-stats { display: flex; justify-content: space-around; margin-top: 16px; }
.me-stat { text-align: center; flex: 1; }
.me-stat-num { font-size: 19px; font-weight: 800; color: #5B6CFF; }
.me-stat-label { font-size: 10.5px; color: #9AA0B5; margin-top: 2px; }
.about-card { font-size: 14px; font-weight: 600; color: var(--text-2); }

/* ===== VIP 卡 ===== */
.vip-card { background: linear-gradient(160deg, #FFF9EE 0%, #FFF3E0 100%); border: 1px solid #FBE9D0; }
.vip-title { font-size: 16px; font-weight: 800; color: #B7791F; }
.vip-sub { font-size: 12.5px; color: #C89B5A; margin-top: 4px; line-height: 1.6; }
.vip-card.vip-active { background: linear-gradient(160deg, #F0FFF5 0%, #E3F7EA 100%); border-color: #CDEEDB; }
.vip-card.vip-active .vip-title { color: #2E7D4F; }
.vip-card.vip-active .vip-sub { color: #5DA27A; }
.vip-input-row { display: flex; align-items: center; gap: 8px; }
.vip-input { flex: 1; margin-top: 10px !important; }
.vip-btn { margin-top: 10px !important; padding: 12px 20px !important; font-size: 14px !important; flex-shrink: 0; }
.vip-msg { margin-top: 8px; font-size: 12.5px; min-height: 18px; }
.vip-msg.ok { color: #2E7D4F; }
.vip-msg.err { color: #C0392B; }

/* ===== 聊天气泡微调 ===== */
.chat-scroll { padding-bottom: 24px; }
.bubble { box-shadow: 0 2px 8px rgba(31,36,48,.07); }

/* ===== 复盘卡片微调 ===== */
.score-card { background: linear-gradient(180deg, #FBFBFF 0%, #fff 100%); }

/* ===== 虚拟陪聊 ===== */
.entry-chatbot { border: 1.5px solid rgba(255,138,61,.35); background: linear-gradient(135deg, #fff 0%, #FFF9F0 100%); }
.entry-chatbot .entry-icon { background: linear-gradient(145deg, #FFEFD6, #FFE3B8); }
.option-emoji { font-size: 26px; margin-right: 12px; flex-shrink: 0; }

/* ===== 聊天页返回按钮 ===== */
.head-back {
  font-size: 24px; font-weight: 700; color: var(--text-2);
  width: 32px; height: 32px; line-height: 28px;
  border-radius: 50%; text-align: center;
  cursor: pointer; margin-right: 6px; flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.head-back:active { background: #EEF1FB; transform: scale(.92); }

/* =====================================================
   聊天教练 v3.1 按压反馈升级
   ===================================================== */
/* 统一按压反馈:所有可点元素 */
.card, .option, .chip, .tab-item, .btn-primary, .btn-ghost, .item-copy, .entry, .head-end, .head-back, .send-btn, .sample-btn {
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease, border-color .12s ease;
}
.card:active, .option:active, .chip:active, .entry:active { transform: scale(.97); }
.tab-item:active { transform: scale(.92); }
.btn-primary:active, .btn-ghost:active { transform: scale(.96); filter: brightness(.94); }
.send-btn:active { transform: scale(.9); filter: brightness(.92); }
.item-copy:active, .head-end:active, .head-back:active, .sample-btn:active { transform: scale(.92); filter: brightness(.9); }

/* 关键按钮:按下的"弹回"感 */
@keyframes pressPop {
  0% { transform: scale(.94); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.btn-primary.pressed, .send-btn.pressed { animation: pressPop .28s ease; }

/* =====================================================
   聊天教练 v4.1 三步向导 + 轻量导航配套
   ===================================================== */

/* ===== 步骤条 ===== */
.steps {
  display: flex; justify-content: center; align-items: flex-start;
  padding: 16px 24px 4px; gap: 0; height: 64px;
}
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-item::before {
  content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px;
  background: #D9D9D9; z-index: 0;
}
.step-item:first-child::before { display: none; }
.step-item.done::before { background: #4A6CF7; }
.step-circle {
  width: 26px; height: 26px; border-radius: 50%;
  background: #D9D9D9; color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 1; transition: all .2s;
}
.step-item.cur .step-circle { background: #4A6CF7; box-shadow: 0 0 0 4px rgba(74,108,247,.15); }
.step-item.done .step-circle { background: #4A6CF7; }
.step-label { font-size: 12px; color: #999999; margin-top: 6px; }
.step-item.cur .step-label { color: #4A6CF7; font-weight: 700; }
.step-item.done .step-label { color: #666666; }
.step-title { margin: 16px 18px 12px; }

/* ===== 场景 2 列网格 ===== */
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scene-card {
  background: #FFFFFF; border: 1.5px solid #EEEEEE; border-radius: 14px;
  padding: 14px 12px; cursor: pointer;
  transition: all .15s;
}
.scene-card:active { transform: scale(.97); }
.scene-card.selected { border-color: #4A6CF7; background: #EEF2FE; box-shadow: 0 4px 14px rgba(74,108,247,.12); }
.scene-emoji { font-size: 24px; line-height: 1.2; }
.scene-name { font-size: 14px; font-weight: 700; color: #1A1A1A; margin-top: 6px; }
.scene-desc {
  font-size: 11px; color: #999999; margin-top: 2px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== 三步向导底部按钮 ===== */
.setup-footer { display: flex; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
.setup-footer .btn-ghost { flex: 0 0 96px; }
.setup-footer .btn-primary { flex: 1; }

/* =====================================================
   聊天教练 v4.2 复盘/建议/地图 新版样式
   ===================================================== */

/* ===== 聊天复盘页 ===== */
.analyze-wrap { display: flex; flex-direction: column; padding: 0 16px; }
.analyze-tip { font-size: 14px; color: #333333; padding: 16px 2px; line-height: 1.7; }
.analyze-area {
  min-height: 220px; height: calc(100vh - 340px); max-height: 60vh;
  margin-top: 0; font-size: 16px; color: #1A1A1A;
  background: #FFFFFF; border: 1.5px solid #EEEEEE;
}
.analyze-area::placeholder { color: #999999; }
.analyze-area:focus { border-color: #4A6CF7; }
.analyze-err { color: #E5484D; font-size: 12.5px; margin-top: 8px; padding: 0 2px; }
.analyze-links { display: flex; justify-content: flex-end; padding: 10px 2px 4px; }
.link-btn {
  font-size: 14px; color: #4A6CF7; cursor: pointer;
  padding: 4px 2px; font-weight: 500;
}
.link-btn:active { opacity: .7; }

/* ===== 回复建议页 ===== */
.suggest-tip { font-size: 14px; color: #333333; padding: 16px 18px 10px; line-height: 1.7; }
.suggest-area {
  height: 140px; margin: 0 16px; font-size: 16px; color: #1A1A1A;
  background: #FFFFFF; border: 1.5px solid #EEEEEE;
}
.suggest-area::placeholder { color: #999999; }
.suggest-area:focus { border-color: #4A6CF7; }
.suggest-title { margin: 18px 18px 10px; }
.suggest-chips { display: flex; padding: 0 16px; gap: 12px; }
.suggest-chips .chip { flex: 1; text-align: center; margin: 0; }

/* ===== 成长地图 v4 ===== */
.map-hero {
  padding: 24px 20px 18px; text-align: center;
  background: linear-gradient(160deg, #F5F7FF 0%, #FFFFFF 100%);
  border-bottom: 1px solid #EEEEEE;
}
.map-hero-title { font-size: 20px; font-weight: 800; color: #1A1A1A; }
.map-hero-sub { font-size: 12.5px; color: #666666; margin-top: 6px; }
.map-progress { display: flex; gap: 4px; justify-content: center; margin-top: 14px; }
.map-seg { width: 26px; height: 6px; border-radius: 3px; background: #E3E5EC; transition: background .3s; }
.map-seg.on { background: #4A6CF7; }
.map-reward-preview {
  display: inline-block; margin-top: 14px;
  font-size: 12px; font-weight: 700; color: #4A6CF7;
  background: #EEF2FE; border-radius: 999px; padding: 5px 14px;
}
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
.map-card {
  background: #FFFFFF; border: 1.5px solid #EEEEEE; border-radius: 14px;
  padding: 14px 10px; text-align: center; cursor: pointer;
  transition: all .15s;
}
.map-card:active { transform: scale(.97); }
.map-card.lit { border-color: #C9D6FE; background: linear-gradient(180deg, #F5F8FF 0%, #fff 100%); }
.map-card.challengable {
  border-color: #4A6CF7; box-shadow: 0 4px 16px rgba(74,108,247,.18);
  background: #FFFFFF;
}
.map-card .map-tower { font-size: 30px; line-height: 1.2; filter: none; }
.map-card:not(.lit) .map-tower { filter: grayscale(1); opacity: .55; }
.map-card.lit .map-tower { filter: none; }
.map-name { font-size: 13.5px; font-weight: 700; margin-top: 6px; color: #1A1A1A; }
.map-stars { margin-top: 4px; letter-spacing: 2px; }
.map-star { color: #E3E5EC; font-size: 14px; }
.map-star.on { color: #FFB84A; }
.map-score { font-size: 11px; color: #4A6CF7; margin-top: 4px; font-weight: 600; }
.map-score.dim { color: #B9BECB; font-weight: 400; }
.map-challenge-btn {
  display: inline-block; margin-top: 8px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4A6CF7, #6A87F9);
  border-radius: 999px; padding: 5px 14px;
  box-shadow: 0 3px 10px rgba(74,108,247,.3);
}

/* ===== 记录页(练过的聊天记录) ===== */
.rec-card { cursor: pointer; padding: 14px 16px; }
.rec-card:active { transform: scale(.98); }
.rec-head { display: flex; justify-content: space-between; align-items: center; }
.rec-meta { font-size: 15px; font-weight: 700; color: #1A1A1A; }
.rec-score { font-size: 14px; font-weight: 800; color: #4A6CF7; }
.rec-score.good { color: #2E7D4F; }
.rec-score.mid { color: #B7791F; }
.rec-score.low { color: #C0392B; }
.rec-time { font-size: 12px; color: #999999; margin-top: 3px; }
.rec-preview { margin-top: 8px; border-top: 1px dashed #EEEEEE; padding-top: 8px; }
.rec-line { font-size: 12.5px; color: #666666; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-line.me { color: #4A6CF7; }
.rec-line.she { color: #E07856; }
.rec-detail-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 16px 0; }
.rec-detail-time { font-size: 12px; color: #999999; }
.rec-transcript { background: #FAFAFC; font-size: 13px; }
