/* =============================================================
   美团初心 CHUXIN · 外卖AI商家陪练官
   styles.css —— 全站统一设计系统
   -------------------------------------------------------------
   设计令牌（Design Tokens）集中在 :root，改一处即可全站换肤。
   品牌色取自真实 Logo：品牌金 #F8C800 / 墨黑 #181818。
   ============================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色（取自 Logo） */
  --gold:        #F8C800;   /* 品牌主金，来自 Logo 月牙与 App 图标 */
  --gold-deep:   #E7A800;   /* 深金，用于渐变、按压态 */
  --gold-hi:     #FFDC4B;   /* 亮金，用于高光 */
  --gold-wash:   #FFF6D6;   /* 极浅金，用于选中/高亮底 */
  --ink:         #181818;   /* 品牌墨黑，来自 Logo 文字 */
  --ink-2:       #24242A;   /* 次级深色面（暗色 Hero） */
  --ink-3:       #33333B;   /* 暗面卡片 */

  /* 中性色（暖灰，让页面更“产品”不冷硬） */
  --paper:       #FBFAF6;   /* App 背景，暖白 */
  --card:        #FFFFFF;
  --graphite:    #3A3A40;   /* 主文字（浅底） */
  --slate:       #6C6C74;   /* 次文字 */
  --muted:       #9A9AA2;   /* 弱文字/占位 */
  --line:        #ECEAE1;   /* 暖色描边 */
  --line-soft:   #F4F2EB;

  /* 语义色 */
  --good:        #16875A;   /* 优点/达标 */
  --good-wash:   #E7F4EE;
  --warn:        #C9871B;   /* 待提升 */
  --warn-wash:   #FBF1DA;
  --bad:         #D0514B;   /* 关键失误 */
  --bad-wash:    #FBEAE9;

  /* 阴影（柔和、有层次，不厚重） */
  --sh-1: 0 1px 2px rgba(24,24,24,.04), 0 1px 3px rgba(24,24,24,.06);
  --sh-2: 0 4px 14px rgba(24,24,24,.06), 0 2px 6px rgba(24,24,24,.05);
  --sh-3: 0 14px 40px rgba(24,24,24,.10), 0 6px 16px rgba(24,24,24,.06);
  --sh-gold: 0 10px 30px rgba(248,200,0,.28);

  /* 圆角（呼应 App 图标圆角方形） */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  /* 排版 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1160px;
}

/* ---------- 2. 基础重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--graphite);
  background: var(--paper);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(248,200,0,.55); outline-offset: 2px; border-radius: 4px; }

h1,h2,h3,h4 { color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--warn);
}

/* ---------- 3. 通用容器 / 工具类 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* 进入动画：默认隐藏，加 .in 后浮现（配合 IntersectionObserver / 页面加载） */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 4. 品牌标记（SVG 月牙 + 逐梦人，可复用于任意页头） ---------- */
.brandmark { display: inline-flex; align-items: center; gap: 12px; }
.brandmark .mk { width: 40px; height: 40px; flex: none; }
.brandmark .txt { display: flex; flex-direction: column; line-height: 1.15; }
.brandmark .txt b { font-size: 15px; color: var(--ink); letter-spacing: .01em; }
.brandmark .txt span { font-size: 11px; color: var(--slate); letter-spacing: .04em; }
.mk-cres { fill: var(--gold); }
.mk-fig  { fill: var(--gold-deep); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r-md);
  font-weight: 700; font-size: 15px; color: var(--ink);
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  color: var(--ink); box-shadow: var(--sh-gold);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(248,200,0,.38); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--graphite); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: #ddd8c8; transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 16px; padding: 0 30px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 6. 徽标 / 标签 ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.badge-1 { background: var(--good-wash); color: var(--good); }   /* 初级 */
.badge-2 { background: var(--warn-wash); color: var(--warn); }   /* 中级 */
.badge-3 { background: var(--bad-wash);  color: var(--bad);  }   /* 高级 */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--slate); }
.chip b { color: var(--ink); font-weight: 700; }

/* ---------- 7. 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); }

/* =============================================================
   顶部应用栏（首页/对话/评分共用）
   ============================================================= */
.topbar { position: sticky; top: 0; z-index: 40;
  background: rgba(251,250,246,.82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line); }
.topbar .inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.userchip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.userchip .who { display: flex; flex-direction: column; line-height: 1.2; }
.userchip .who b { font-size: 13px; color: var(--ink); }
.userchip .who span { font-size: 11px; color: var(--muted); }
.userchip .ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep)); color: var(--ink);
  font-weight: 800; font-size: 13px; }

/* =============================================================
   页面 1 · 登录页
   左：墨色品牌 Hero + 浮动月牙；右：浅色表单卡
   ============================================================= */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }

/* 左侧墨色品牌区 */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 15% 0%, #2c2c34 0%, var(--ink) 55%, #101014 100%);
  padding: 56px clamp(40px, 6vw, 88px); display: flex; flex-direction: column; }
.hero-logo { background: #fff; border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--sh-2); align-self: flex-start; }
.hero-logo img { height: 34px; width: auto; }
.hero-body { margin-top: auto; margin-bottom: auto; max-width: 460px; }
.hero-body h1 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.18; }
.hero-body h1 em { color: var(--gold); font-style: normal; }
.hero-body p { color: #C7C7CE; margin-top: 18px; font-size: 16px; line-height: 1.7; }
.hero-points { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.hero-points li { display: flex; align-items: center; gap: 12px; color: #E4E4E9; font-size: 14px; }
.hero-points .dot { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center;
  background: rgba(248,200,0,.16); color: var(--gold); font-weight: 800; font-size: 12px; }
.hero-foot { margin-top: 40px; color: #7A7A85; font-size: 12px; letter-spacing: .04em; }

/* 背景浮动月牙（品牌图形轻微浮动） */
.hero-cres { position: absolute; right: -70px; top: 50%; width: 460px; height: 460px;
  transform: translateY(-50%); opacity: .9; animation: floaty 9s var(--ease) infinite; pointer-events: none; }
.hero-cres .glow { filter: drop-shadow(0 0 40px rgba(248,200,0,.35)); }
@keyframes floaty { 0%,100% { transform: translateY(-50%) } 50% { transform: translateY(-58%) } }

/* 右侧表单区 */
.formside { display: flex; align-items: center; justify-content: center;
  padding: 48px clamp(24px, 5vw, 72px); background: var(--paper); }
.formcard { width: 100%; max-width: 420px; }
.formcard .welcome { font-size: 13px; color: var(--warn); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.formcard h2 { font-size: 26px; margin-top: 6px; }
.formcard .sub { color: var(--slate); margin-top: 6px; font-size: 14px; }
.formcard form { margin-top: 28px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field .control { position: relative; }
.field .control svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); }
.input, .select {
  width: 100%; height: 50px; padding: 0 14px 0 42px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff;
  color: var(--ink); transition: border-color .18s, box-shadow .18s; appearance: none;
}
.input::placeholder { color: var(--muted); }
.input:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(248,200,0,.16); outline: none; }
.select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239A9AA2' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.formcard .btn { margin-top: 10px; }
.formcard .fineprint { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.err { color: var(--bad); font-size: 12.5px; margin-top: 6px; display: none; }
.err.show { display: block; }

/* =============================================================
   页面 2 · 训练首页
   ============================================================= */
.page { padding: 32px 0 64px; }
.welcome-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.welcome-band .greet h1 { font-size: clamp(24px, 3vw, 32px); }
.welcome-band .greet p { color: var(--slate); margin-top: 6px; }
.welcome-band .greet .idc { display: inline-flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 今日建议训练（重点条） */
.suggest { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 60%, #34343d 100%);
  padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: var(--sh-3); flex-wrap: wrap; }
.suggest::after { content:""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(248,200,0,.22), transparent 65%); pointer-events: none; }
.suggest .lead { z-index: 1; }
.suggest .lead .tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: 999px; background: rgba(248,200,0,.16); color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .05em; }
.suggest .lead h3 { color: #fff; font-size: 22px; margin-top: 12px; }
.suggest .lead p { color: #C7C7CE; margin-top: 6px; font-size: 14px; max-width: 520px; }
.suggest .cta { z-index: 1; }

/* 数据卡（训练次数 / 最高分 / 最近得分） */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 30px; }
.stat { padding: 22px; border-radius: var(--r-lg); }
.stat .k { font-size: 13px; color: var(--slate); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .k .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-wash); color: var(--gold-deep); }
.stat .v { font-size: 40px; font-weight: 800; color: var(--ink); margin-top: 10px; }
.stat .v small { font-size: 16px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.stat .foot { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* 区块标题 */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 16px; }
.sec-head h2 { font-size: 20px; }
.sec-head .hint { font-size: 13px; color: var(--muted); }

/* 场景卡网格 */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.scene { position: relative; padding: 22px; border-radius: var(--r-lg); display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; cursor: pointer; }
.scene:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--gold); }
.scene .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.scene .no { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.scene h3 { font-size: 18px; margin: 8px 0 0; }
.scene .desc { color: var(--slate); font-size: 13.5px; margin-top: 8px; min-height: 40px; }
.scene .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 16px 0; padding: 14px 0;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.scene .meta div { font-size: 12.5px; color: var(--slate); }
.scene .meta b { color: var(--ink); font-weight: 700; }
.scene .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.scene .mode { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.scene .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); font-size: 14px; }
.scene .go svg { transition: transform .2s var(--ease); }
.scene:hover .go svg { transform: translateX(3px); }
.scene:hover .go { color: var(--gold-deep); }

/* 唯一场景 · 黑色主训练卡（S-01） —— 沿用墨色卡质感 */
.scene-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 60%, #34343d 100%);
  padding: 30px clamp(22px, 3vw, 34px); box-shadow: var(--sh-3); margin-bottom: 16px; }
.scene-hero::after { content: ""; position: absolute; right: -50px; top: -70px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(248,200,0,.20), transparent 65%); pointer-events: none; }
.scene-hero > * { position: relative; z-index: 1; }
.scene-hero .sh-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scene-hero .s-no { padding: 6px 13px; border-radius: 999px; background: rgba(248,200,0,.16);
  color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.scene-hero .s-ver { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  color: #C7C7CE; font-weight: 700; font-size: 12px; }
.scene-hero h3 { color: #fff; font-size: clamp(22px, 3vw, 27px); margin-top: 16px; }
.scene-hero .s-desc { color: #C7C7CE; margin-top: 10px; font-size: 14.5px; line-height: 1.75; max-width: 780px; }
.scene-hero .s-meta { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 20px 0; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.scene-hero .s-meta div { font-size: 12.5px; color: #9A9AA5; }
.scene-hero .s-meta b { display: block; color: #fff; font-size: 15px; font-weight: 700; margin-top: 4px; }
.scene-hero .s-caps .lbl { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 11px; }
.scene-hero .caps { display: flex; flex-wrap: wrap; gap: 8px; }
.scene-hero .cap { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09); color: #E4E4E9; font-size: 12.5px; font-weight: 600; }
.scene-hero .sh-cta { margin-top: 24px; }

/* 单场景说明（产品化提示，非缺省态） */
.scene-note { color: var(--muted); font-size: 13px; margin: 0 2px 30px; }

/* 训练数据空态（未接数据库时的 “--”） */
.stat .v .empty { font-size: 40px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }

/* =============================================================
   页面 3 · 训练对话页
   ============================================================= */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start;
  padding: 24px 0 24px; }

/* 左侧训练信息面板 */
.tpanel { position: sticky; top: 86px; padding: 22px; border-radius: var(--r-lg); }
.tpanel .mportrait { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tpanel .mportrait .face { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg,#fff2c0,#f8c800); font-size: 22px; }
.tpanel .mportrait b { font-size: 15px; color: var(--ink); display: block; }
.tpanel .mportrait span { font-size: 12px; color: var(--slate); }
.tpanel .blk { margin-top: 16px; }
.tpanel .blk .lbl { font-size: 12px; font-weight: 700; color: var(--warn); letter-spacing: .06em; text-transform: uppercase; }
.tpanel .blk ul { list-style: none; margin-top: 8px; display: grid; gap: 7px; }
.tpanel .blk li { font-size: 13px; color: var(--slate); display: flex; gap: 8px; }
.tpanel .blk li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; }

/* 右侧对话主区 */
.conv { display: flex; flex-direction: column; height: calc(100vh - 120px); min-height: 520px;
  border-radius: var(--r-lg); overflow: hidden; }
.conv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.conv-head .t b { font-size: 16px; color: var(--ink); }
.conv-head .t span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.turnpill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--gold-wash); color: var(--warn); font-weight: 700; font-size: 13px; }
.turnpill .dots { display: inline-flex; gap: 4px; }
.turnpill .dots i { width: 7px; height: 7px; border-radius: 50%; background: #E7D8A0; transition: background .3s; }
.turnpill .dots i.on { background: var(--gold-deep); }

.msgs { flex: 1; overflow-y: auto; padding: 22px 20px; background:
  linear-gradient(var(--paper), var(--paper)); display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; max-width: 78%; animation: pop .32s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg .ava { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 15px; }
.msg .bubble { padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; }
.msg .name { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }

/* 商家（左） */
.msg.merchant { align-self: flex-start; }
.msg.merchant .ava { background: linear-gradient(135deg,#fff2c0,#f8c800); }
.msg.merchant .bubble { background: #fff; border: 1px solid var(--line); border-top-left-radius: 5px; color: var(--graphite); }

/* BD（右，自己） */
.msg.bd { align-self: flex-end; flex-direction: row-reverse; }
.msg.bd .ava { background: var(--ink); color: var(--gold); }
.msg.bd .bubble { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--ink); border-top-right-radius: 5px; }
.msg.bd .name { text-align: right; }

/* 商家“正在输入” */
.typing .bubble { display: inline-flex; gap: 4px; align-items: center; }
.typing .bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing .bubble i:nth-child(2){ animation-delay:.2s } .typing .bubble i:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{ opacity:.3; transform: translateY(0) } 30%{ opacity:1; transform: translateY(-3px) } }

/* 输入区 */
.composer { border-top: 1px solid var(--line); background: #fff; padding: 14px 16px; }
.composer .box { display: flex; align-items: flex-end; gap: 10px; }
.composer textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 14px; max-height: 140px; line-height: 1.55; transition: border-color .18s, box-shadow .18s; }
.composer textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(248,200,0,.14); outline: none; }
.composer .mic { width: 46px; height: 46px; flex: none; border-radius: 13px; border: 1.5px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--muted); position: relative; }
.composer .mic[disabled]{ cursor: not-allowed; opacity: .55; }
.composer .mic.listening {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: #fff9e6;
  box-shadow: 0 0 0 4px rgba(248,200,0,.18);
  animation: micPulse 1.2s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.composer .send { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep)); color: var(--ink); box-shadow: var(--sh-gold);
  transition: transform .16s var(--ease); }
.composer .send:hover { transform: translateY(-1px); }
.composer .send:active { transform: scale(.94); }
.composer .barfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 0 2px; }
.composer .barfoot .tip { font-size: 11.5px; color: var(--muted); }
.composer .endbtn { color: var(--bad); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.composer .endbtn:hover { text-decoration: underline; }

/* =============================================================
   页面 4 · 评分报告页
   ============================================================= */
.report { padding: 30px 0 70px; }
.report .backbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.report .backbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--slate); font-size: 14px; }

/* 顶部总览：分数 + 等级 + 管理者摘要 */
.score-hero { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: stretch; margin-bottom: 24px; }
.score-card { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, #2d2d35, var(--ink) 70%); padding: 30px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--sh-3); }
.score-card .ring { position: relative; width: 168px; height: 168px; }
.score-card .ring svg { transform: rotate(-90deg); }
.score-card .ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-card .ring .val b { font-size: 52px; font-weight: 800; color: #fff; line-height: 1; }
.score-card .ring .val span { font-size: 12px; color: #9A9AA5; margin-top: 4px; letter-spacing: .1em; }
.score-card .grade { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  border-radius: 999px; background: rgba(248,200,0,.14); color: var(--gold); font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.score-card .cres-sm { position: absolute; right: -30px; bottom: -30px; width: 150px; opacity: .55; }

.summary-card { padding: 26px; border-radius: var(--r-xl); display: flex; flex-direction: column; }
.summary-card .eyebrow { margin-bottom: 8px; }
.summary-card h2 { font-size: 22px; }
.summary-card p { color: var(--slate); margin-top: 10px; font-size: 14.5px; line-height: 1.7; }
.summary-card .metaline { display: flex; gap: 20px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.summary-card .metaline div { font-size: 13px; color: var(--slate); }
.summary-card .metaline b { display: block; font-size: 20px; color: var(--ink); font-weight: 800; }

/* 七大能力维度：雷达 + 条形 */
.abilities { display: grid; grid-template-columns: 340px 1fr; gap: 24px; margin-bottom: 24px; }
.radar-card, .bars-card { padding: 24px; border-radius: var(--r-xl); }
.radar-card h3, .bars-card h3, .block h3 { font-size: 16px; margin-bottom: 4px; }
.radar-card .sub, .bars-card .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.radar-wrap { display: grid; place-items: center; }
.bar { margin-bottom: 14px; }
.bar .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.bar .top .nm { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.bar .top .sc { font-size: 13px; font-weight: 800; color: var(--ink); }
.bar .track { height: 9px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.bar .fill { height: 100%; width: 0; border-radius: 999px; transition: width 1s var(--ease); }
.bar .fill.hi { background: linear-gradient(90deg, var(--good), #34a877); }
.bar .fill.mid{ background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.bar .fill.lo { background: linear-gradient(90deg, #d0514b, #e07b76); }

/* 优点 / 问题 / 失误 / 建议 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.block { padding: 24px; border-radius: var(--r-xl); }
.block h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.block h3 .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex: none; }
.ic-good { background: var(--good-wash); color: var(--good); }
.ic-warn { background: var(--warn-wash); color: var(--warn); }
.ic-bad  { background: var(--bad-wash);  color: var(--bad);  }
.ic-ai   { background: var(--gold-wash); color: var(--gold-deep); }
.pt-list { list-style: none; display: grid; gap: 12px; }
.pt-list li { display: flex; gap: 10px; font-size: 14px; color: var(--graphite); line-height: 1.6; }
.pt-list li .mk { flex: none; margin-top: 2px; font-weight: 800; }
.pt-list.good li .mk { color: var(--good); }
.pt-list.warn li .mk { color: var(--warn); }

/* 关键失误原话 */
.quote-block { padding: 24px; border-radius: var(--r-xl); border-left: 4px solid var(--bad); background: var(--bad-wash); }
.quote-block h3 { color: var(--bad); font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.quote { background: #fff; border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--sh-1); }
.quote .said { font-size: 14px; color: var(--ink); font-style: italic; }
.quote .why { font-size: 12.5px; color: var(--bad); margin-top: 8px; display: flex; gap: 6px; }
.quote .why b { font-weight: 700; }

/* AI 建议 + 下一次任务 */
.advice-card { padding: 26px; border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--ink), var(--ink-2)); color: #fff; position: relative; overflow: hidden; }
.advice-card::after { content:""; position: absolute; right: -50px; top: -50px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(248,200,0,.18), transparent 65%); }
.advice-card h3 { color: #fff; display: flex; align-items: center; gap: 9px; }
.advice-card h3 .ic { background: rgba(248,200,0,.16); color: var(--gold); }
.advice-list { list-style: none; margin-top: 16px; display: grid; gap: 12px; position: relative; z-index: 1; }
.advice-list li { display: flex; gap: 12px; color: #E4E4E9; font-size: 14px; line-height: 1.6; }
.advice-list li .n { flex: none; width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.08);
  color: var(--gold); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.nexttask { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 1; }
.nexttask .lbl { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nexttask .task { color: #fff; font-size: 16px; font-weight: 700; margin-top: 8px; }
.report .finalcta { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--sh-3);
  font-size: 14px; opacity: 0; transition: opacity .3s, transform .3s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================================
   响应式
   ============================================================= */
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .hero { padding: 40px 28px 46px; min-height: auto; }
  .hero-cres { width: 300px; height: 300px; right: -80px; top: 30px; transform: none; }
  @keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }
  .hero-body { margin: 26px 0; }
  .hero-points { grid-template-columns: 1fr 1fr; }
  .abilities { grid-template-columns: 1fr; }
  .score-hero { grid-template-columns: 1fr; }
  .chat-shell { grid-template-columns: 1fr; }
  .tpanel { position: static; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .stats { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: 1fr; }
  .welcome-band { flex-direction: column; align-items: flex-start; }
  .suggest { flex-direction: column; align-items: flex-start; }
  .suggest .cta, .suggest .cta .btn { width: 100%; }
  .scenes { grid-template-columns: 1fr; }
  .msg { max-width: 88%; }
  .conv { height: calc(100vh - 150px); }
  .topbar .inner { height: 58px; }
  .userchip .who { display: none; }
}

/* ---------- 无障碍：尊重系统“减少动态效果” ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
