  :root {
    --ink: #0A1B36;
    --navy: #12294F;
    --navy-2: #1B3A6B;
    --gold: #E8A33D;
    --gold-2: #F2B95C;
    --gold-deep: #B97F22;
    --paper: #F2F4F8;
    --card: #FFFFFF;
    --text: #1A2740;
    --sub: #5B6B84;
    --mute: #96A3B8;
    --line: #E4E9F1;
    --green: #2F9E63;
    --amber: #DE8A21;
    --red: #D64C4C;
    --shadow-card: 0 2px 10px rgba(13, 35, 70, .06), 0 1px 2px rgba(13, 35, 70, .04);
    --shadow-lift: 0 10px 28px rgba(13, 35, 70, .14);
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; }
  body {
    font-family: var(--font-body);
    color: var(--text);
    background:
      radial-gradient(1100px 560px at -12% -8%, rgba(27, 58, 107, .14), transparent 62%),
      radial-gradient(900px 520px at 112% 104%, rgba(232, 163, 61, .16), transparent 60%),
      linear-gradient(180deg, #E9EDF4 0%, #E3E8F0 100%);
    background-attachment: fixed;
  }
  button { font-family: inherit; }
  button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

  #app {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--paper);
    position: relative;
    box-shadow: 0 0 0 1px rgba(13,35,70,.05), 0 24px 60px rgba(10, 27, 54, .22);
    overflow: hidden;
  }
  .view { display: none; min-height: 100vh; }
  .view.active { display: block; animation: viewIn .34s cubic-bezier(.22,.8,.36,1) both; }
  @keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .rise { animation: fadeUp .55s cubic-bezier(.22,.8,.36,1) both; }

  /* 小标签（全大写英文小字） */
  .kicker {
    font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--mute);
  }

  /* ============ 首页头部 ============ */
  .home-header {
    position: relative; overflow: hidden;
    background: linear-gradient(152deg, #081731 0%, #10264B 52%, #1B3A6B 100%);
    color: #fff;
    padding: 22px 20px 84px;
    border-radius: 0 0 26px 26px;
  }
  .home-header::before { /* 细条纹肌理 */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 1px, transparent 1px 10px);
  }
  .home-header::after { /* 装饰圆环 */
    content: ''; position: absolute; width: 300px; height: 300px;
    right: -110px; top: -120px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.10);
    box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 43px rgba(232,163,61,.14);
    pointer-events: none;
  }
  .brand-row { display: flex; align-items: center; gap: 9px; position: relative; z-index: 1; }
  .brand-mark {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(232,163,61,.4);
  }
  .brand-name { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; opacity: .85; }
  .brand-name small { display: block; font-size: 9px; letter-spacing: 2.4px; opacity: .55; margin-top: 2px; font-weight: 600; }
  .streak-pill {
    margin-left: auto; display: flex; align-items: center; gap: 5px;
    background: rgba(232,163,61,.16); border: 1px solid rgba(232,163,61,.45);
    color: var(--gold-2); font-size: 11.5px; font-weight: 700;
    border-radius: 999px; padding: 5px 11px;
  }
  .greet-block { position: relative; z-index: 1; margin-top: 26px; }
  .greet-block .kicker { color: rgba(255,255,255,.45); }
  .greet-block h1 { font-size: 27px; font-weight: 800; line-height: 1.3; margin-top: 8px; letter-spacing: .3px; }
  .greet-block h1 em { font-style: normal; color: var(--gold-2); }
  .greet-sub { font-size: 13px; color: rgba(255,255,255,.66); margin-top: 8px; }

  /* 每日一句卡片（压在头部下沿） */
  .phrase-card {
    position: relative; z-index: 2;
    margin: -58px 16px 0; background: var(--card);
    border-radius: 16px; padding: 15px 16px;
    box-shadow: var(--shadow-lift);
    display: flex; align-items: center; gap: 13px;
    border: 1px solid rgba(232,163,61,.28);
  }
  .phrase-card::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3.5px;
    border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  }
  .phrase-body { flex: 1; min-width: 0; }
  .phrase-body .kicker { color: var(--gold-deep); }
  .phrase-en {
    font-family: var(--font-display); font-style: italic; font-weight: 600;
    font-size: 15.5px; line-height: 1.45; color: var(--navy); margin-top: 5px;
  }
  .phrase-cn { font-size: 11.5px; color: var(--mute); margin-top: 4px; }
  .phrase-go {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
    color: #fff; font-size: 11px; font-weight: 800;
    box-shadow: 0 5px 14px rgba(232,163,61,.42);
    transition: transform .15s ease;
  }
  .phrase-go:active { transform: scale(.9); }

  /* 两个入口（不对称设计） */
  .entry-wrap { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 12px; }
  .entry-primary {
    position: relative; overflow: hidden; cursor: pointer;
    border-radius: 18px; padding: 20px 18px;
    background: linear-gradient(140deg, #0A1B36 0%, #143059 58%, #1E4278 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(10, 27, 54, .32);
    transition: transform .14s ease;
  }
  .entry-primary::after {
    content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%;
    right: -70px; bottom: -90px; border: 1.5px solid rgba(232,163,61,.35);
    box-shadow: 0 0 0 30px rgba(232,163,61,.07);
  }
  .entry-primary:active { transform: scale(.975); }
  .entry-head { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
  .entry-icon {
    width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; font-size: 21px;
    background: linear-gradient(135deg, rgba(232,163,61,.28), rgba(232,163,61,.1));
    border: 1px solid rgba(232,163,61,.4);
    display: flex; align-items: center; justify-content: center;
  }
  .entry-title { font-size: 19px; font-weight: 800; letter-spacing: .3px; }
  .entry-sub { font-size: 12.5px; opacity: .72; margin-top: 3px; }
  .entry-meta { display: flex; gap: 7px; margin-top: 15px; position: relative; z-index: 1; flex-wrap: wrap; }
  .entry-meta span {
    font-size: 11px; font-weight: 600; padding: 4.5px 10px; border-radius: 999px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.85);
  }
  .entry-arrow {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; color: #fff;
  }

  .entry-free {
    display: flex; align-items: center; gap: 13px; cursor: pointer;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; padding: 15px 16px;
    box-shadow: var(--shadow-card);
    transition: transform .14s ease;
  }
  .entry-free:active { transform: scale(.975); }
  .free-avatar {
    position: relative; width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0;
    background: linear-gradient(135deg, #2A5494, #4A7CC9);
    color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 12px rgba(42,84,148,.3);
  }
  .free-avatar::after {
    content: ''; position: absolute; right: -3px; bottom: -3px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--green); border: 2.5px solid #fff;
  }
  .free-body { flex: 1; min-width: 0; }
  .free-body .entry-title { font-size: 16.5px; color: var(--text); }
  .free-body .entry-sub { color: var(--sub); opacity: 1; }
  .free-chevron { color: var(--mute); flex-shrink: 0; }

  /* 继续上次 */
  .resume-bar {
    display: flex; align-items: center; gap: 11px;
    background: var(--card); margin: 12px 16px 0; border-radius: 14px; padding: 13px 15px;
    font-size: 13px; cursor: pointer; border: 1px solid var(--line);
    box-shadow: var(--shadow-card); transition: transform .14s ease;
  }
  .resume-bar:active { transform: scale(.98); }
  .resume-ico {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; font-size: 15px;
    background: #FDF4E3; border: 1px solid #F3E2BC;
    display: flex; align-items: center; justify-content: center;
  }
  .resume-text { flex: 1; color: var(--sub); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .resume-text b { color: var(--text); font-weight: 700; }
  .resume-go { color: var(--gold-deep); font-weight: 800; font-size: 12.5px; white-space: nowrap; }

  /* 本周练习（迷你柱状图） */
  .week-card {
    background: var(--card); margin: 12px 16px 26px; border-radius: 16px;
    padding: 16px 17px 14px; border: 1px solid var(--line); box-shadow: var(--shadow-card);
  }
  .week-top { display: flex; align-items: baseline; justify-content: space-between; }
  .week-top h3 { font-size: 14.5px; font-weight: 800; color: var(--text); }
  .week-body { display: flex; align-items: flex-end; gap: 16px; margin-top: 14px; }
  .week-bars { display: flex; align-items: flex-end; gap: 8px; height: 74px; flex: 1; }
  .wbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
  .wbar i {
    width: 100%; max-width: 16px; border-radius: 5px; background: #E2E8F1;
    transition: height .8s cubic-bezier(.22,.8,.36,1);
  }
  .wbar.today i { background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); box-shadow: 0 3px 8px rgba(232,163,61,.4); }
  .wbar span { font-size: 10px; color: var(--mute); font-weight: 600; }
  .wbar.today span { color: var(--gold-deep); font-weight: 800; }
  .week-num { text-align: right; flex-shrink: 0; }
  .week-num b { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1; }
  .week-num .unit { font-size: 11.5px; color: var(--mute); font-weight: 600; margin-left: 3px; }
  .week-num .wk-sub { font-size: 11px; color: var(--sub); margin-top: 6px; font-weight: 600; }

  /* ============ 子页导航 ============ */
  .page-nav {
    background: linear-gradient(152deg, #081731, #143059);
    color: #fff; display: flex; align-items: center; padding: 13px 14px;
    position: relative;
  }
  .nav-back {
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
    display: flex; align-items: center; justify-content: center; color: #fff;
    flex-shrink: 0; transition: background .15s ease;
  }
  .nav-back:active { background: rgba(255,255,255,.22); }
  .nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 800; letter-spacing: .5px; }
  .nav-spacer { width: 34px; flex-shrink: 0; }

  .section-head { display: flex; align-items: baseline; gap: 9px; margin: 22px 18px 13px; }
  .section-head h2 { font-size: 17.5px; font-weight: 800; color: var(--ink); }
  .section-head .count {
    font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--gold-deep);
  }
  .section-head .kicker { margin-left: auto; }

  .section-sub { margin: -6px 18px 4px; font-size: 12px; color: var(--sub); font-weight: 600; }
  .diff-legend { display: flex; align-items: center; gap: 7px; margin: 10px 18px 15px; flex-wrap: wrap; }
  .diff-legend .lg {
    display: flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 700; color: var(--sub);
    background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px;
  }
  .diff-legend .lg i { width: 7px; height: 7px; border-radius: 50%; }
  .lg-j i { background: var(--green); }
  .lg-m i { background: var(--amber); }
  .lg-s i { background: var(--red); }
  .diff-legend .total { margin-left: auto; font-size: 10px; color: var(--mute); font-weight: 800; letter-spacing: 1.2px; }

  .diff {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; flex-shrink: 0;
    letter-spacing: .5px;
  }
  .diff i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.95); display: inline-block; margin-right: 1px; }
  .diff-junior { background: linear-gradient(135deg, #37AE6E, #23814E); }
  .diff-mid    { background: linear-gradient(135deg, #EC9A2E, #C97712); }
  .diff-senior { background: linear-gradient(135deg, #DE5656, #B93A3A); }

  /* 难度图例当前高亮 */
  .diff-legend .lg { transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
  .diff-legend .lg.on { color: var(--navy); border-color: var(--navy-2); background: #EDF2FA; box-shadow: 0 2px 8px rgba(18,41,79,.14); }

  /* 场景轮播：一次一张“对手档案” */
  .sc-stage { margin: 0 16px; touch-action: pan-y; }
  .dossier {
    position: relative; background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  }
  .dossier.slide-r { animation: slideR .4s cubic-bezier(.22,.8,.36,1) both; }
  .dossier.slide-l { animation: slideL .4s cubic-bezier(.22,.8,.36,1) both; }
  @keyframes slideR { from { opacity: 0; transform: translateX(48px); } }
  @keyframes slideL { from { opacity: 0; transform: translateX(-48px); } }
  .d-anim { animation: fadeUp .45s cubic-bezier(.22,.8,.36,1) both; }

  .ds-head {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, #081731 0%, #10264B 55%, #1B3A6B 100%);
    color: #fff; padding: 17px 17px 26px;
  }
  .ds-head::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 1px, transparent 1px 10px);
  }
  .ds-head::after {
    content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%;
    right: -64px; top: -76px; border: 1.5px solid rgba(232,163,61,.3);
    box-shadow: 0 0 0 26px rgba(232,163,61,.06); pointer-events: none;
  }
  .ds-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
  .ds-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 21px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
  .tone-gold  { background: linear-gradient(135deg, #FBEED3, #F5DCA6); border: 1px solid #EFD39A; }
  .tone-blue  { background: linear-gradient(135deg, #E3ECF9, #CBDCF4); border: 1px solid #B9D0EE; }
  .tone-green { background: linear-gradient(135deg, #E1F4E9, #C8EAD7); border: 1px solid #B4E0C8; }
  .ds-kicker { flex: 1; font-size: 9.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,.5); }
  .ds-title { font-size: 21px; font-weight: 800; margin-top: 13px; position: relative; z-index: 1; letter-spacing: .3px; }
  .ds-persona { display: flex; align-items: center; gap: 11px; margin-top: 13px; position: relative; z-index: 1; }
  .dp-avatar {
    width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, #2A5494, #4A7CC9);
    color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,.8); box-shadow: 0 5px 12px rgba(0,0,0,.25);
  }
  .dp-name { font-size: 15px; font-weight: 800; }
  .dp-role { font-size: 11px; color: rgba(255,255,255,.68); margin-top: 3px; font-weight: 600; line-height: 1.5; }
  .dp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; position: relative; z-index: 1; }
  .dp-tags span {
    font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    padding: 3.5px 10px; border-radius: 999px;
  }

  .ds-quote {
    position: relative; z-index: 2; margin: -14px 14px 0;
    background: #fff; border: 1px solid rgba(232,163,61,.32); border-left: 3px solid var(--gold);
    border-radius: 12px; padding: 10px 12px;
    display: flex; gap: 10px; align-items: flex-start;
    box-shadow: 0 8px 20px rgba(10,27,54,.12);
  }
  .ds-quote .q-av {
    width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #2A5494, #4A7CC9);
    color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .3px;
    display: flex; align-items: center; justify-content: center;
  }
  .ds-quote .q-label { font-size: 9px; font-weight: 800; letter-spacing: 1.6px; color: var(--gold-deep); text-transform: uppercase; }
  .ds-quote .q-text {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: 12.5px; line-height: 1.55; color: var(--navy); margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }

  .ds-body { padding: 14px 16px 16px; }
  .ds-goals-label { color: var(--gold-deep); }
  .ds-goals { margin-top: 9px; display: flex; flex-direction: column; gap: 8px; }
  .bg-row {
    display: flex; align-items: center; gap: 10px;
    background: #FFFBF0; border: 1px solid #F0E2BD; border-radius: 10px;
    padding: 9px 12px; font-size: 12.5px; font-weight: 600; color: var(--text);
  }
  .bg-row .idx { font-family: var(--font-display); color: var(--gold-deep); font-weight: 700; font-size: 12px; flex-shrink: 0; }
  .ds-foot { display: flex; align-items: center; margin-top: 15px; padding-top: 13px; border-top: 1px dashed var(--line); }
  .ds-meta { font-size: 11px; color: var(--mute); font-weight: 700; line-height: 1.55; }
  .ds-btn {
    margin-left: auto; display: flex; align-items: center; gap: 7px; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
    color: #fff; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 11px 18px;
    box-shadow: 0 6px 16px rgba(232,163,61,.42);
    transition: transform .13s ease;
  }
  .ds-btn:active { transform: scale(.94); }
  .ds-btn svg { transition: transform .18s ease; }
  .ds-btn:active svg { transform: translateX(3px); }

  /* 轮播控制 */
  .sc-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 14px 16px calc(22px + env(safe-area-inset-bottom)); }
  .sc-arrow {
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    border: 1.5px solid #CBD6E5; background: #fff; color: var(--navy-2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-card);
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .13s ease;
  }
  .sc-arrow:active { transform: scale(.86); background: var(--navy); border-color: var(--navy); color: #fff; }
  .sc-mid { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 92px; }
  .sc-pips { display: flex; gap: 6px; }
  .pip {
    width: 7px; height: 7px; border-radius: 99px; background: #C9D4E3;
    border: none; padding: 0; cursor: pointer;
    transition: width .25s ease, background .25s ease;
  }
  .pip.on { width: 22px; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); }
  .sc-counter { font-size: 10.5px; color: var(--mute); font-weight: 700; letter-spacing: 1.5px; }
  .sc-counter b { font-family: var(--font-display); font-size: 14.5px; color: var(--navy); letter-spacing: .5px; }

  /* ============ 对话页 ============ */
  #view-chat.active { display: flex; flex-direction: column; height: 100vh; }
  .chat-nav {
    background: linear-gradient(152deg, #081731, #16325C);
    color: #fff; display: flex; align-items: center;
    padding: 12px 14px 14px; gap: 11px; flex-shrink: 0; position: relative;
  }
  .chat-titles { flex: 1; min-width: 0; text-align: center; }
  .chat-titles .nav-title { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-titles .nav-sub {
    font-size: 10.5px; opacity: .62; margin-top: 3px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .3px;
  }
  .nav-finish {
    font-size: 11.5px; font-weight: 700; color: var(--gold-2);
    border: 1px solid rgba(232,163,61,.6); background: rgba(232,163,61,.12);
    border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background .15s ease;
  }
  .nav-finish:active { background: rgba(232,163,61,.3); }
  .nav-sound {
    flex-shrink: 0; border: none; background: transparent; font-size: 15px;
    cursor: pointer; padding: 4px 2px; line-height: 1; opacity: .9;
    transition: transform .13s ease, opacity .15s ease;
  }
  .nav-sound:active { transform: scale(.85); opacity: 1; }
  .chat-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); }
  .chat-progress i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold-2), var(--gold-deep));
    transition: width .5s cubic-bezier(.22,.8,.36,1);
    border-radius: 0 3px 3px 0;
  }

  /* 对方头像 + 在线状态 */
  .chat-persona { flex-shrink: 0; }
  .persona-avatar {
    position: relative; width: 34px; height: 34px; border-radius: 12px;
    background: linear-gradient(135deg, #2A5494, #4A7CC9);
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,.85);
  }
  .p-dot {
    position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--green); border: 2px solid #0E2547;
    animation: dotPulse 2.2s infinite;
  }
  .p-dot.typing { background: var(--gold-2); animation-duration: .9s; }
  @keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,158,99,.55); } 50% { box-shadow: 0 0 0 5px rgba(47,158,99,0); } }

  /* 回合进度 chip（可点开任务简报） */
  .round-chip {
    flex-shrink: 0; display: flex; align-items: center; gap: 4px; cursor: pointer;
    background: rgba(232,163,61,.14); border: 1px solid rgba(232,163,61,.5);
    color: var(--gold-2); border-radius: 999px; padding: 5px 10px;
    font-size: 11px; font-weight: 700;
    transition: background .15s ease;
  }
  .round-chip:active { background: rgba(232,163,61,.32); }
  .round-chip b { font-family: var(--font-display); font-size: 11.5px; letter-spacing: .5px; }

  #messages {
    flex: 1; overflow-y: auto; padding: 16px 13px 10px;
    background-color: var(--paper);
    background-image: radial-gradient(rgba(18,41,79,.05) 1px, transparent 1.4px);
    background-size: 18px 18px;
  }

  /* 时间戳 & 开聊分隔条 */
  .msg-time { font-size: 10px; color: var(--mute); margin-top: 4px; font-weight: 600; letter-spacing: .3px; padding: 0 3px; }
  /* AI 气泡语音播放按钮（点击触发，不自动播放） */
  .tts-btn {
    margin-top: 3px; align-self: flex-start; background: none; border: none;
    cursor: pointer; font-size: 13px; line-height: 1; color: var(--mute);
    padding: 3px 6px; border-radius: 8px; transition: transform .13s ease, opacity .15s ease;
  }
  .tts-btn:active { transform: scale(.88); }
  .tts-btn.loading { opacity: .4; pointer-events: none; }
  .day-divider { display: flex; justify-content: center; margin: 2px 0 16px; animation: fadeUp .4s ease both; }
  .day-divider span {
    font-size: 10.5px; font-weight: 700; color: var(--sub); letter-spacing: .5px;
    background: #E8EDF5; border: 1px solid #DCE3EE; padding: 4px 13px; border-radius: 999px;
  }

  .msg { display: flex; margin-bottom: 15px; align-items: flex-start; animation: msgIn .32s cubic-bezier(.22,.8,.36,1) both; }
  @keyframes msgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .msg.ai { justify-content: flex-start; }
  .msg.user { justify-content: flex-end; }
  .avatar {
    width: 36px; height: 36px; border-radius: 13px; flex-shrink: 0;
    background: linear-gradient(135deg, #2A5494, #4A7CC9);
    color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .5px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 9px; box-shadow: 0 4px 10px rgba(42,84,148,.32);
    border: 2px solid #fff;
  }
  .bubble-wrap { max-width: 76%; display: flex; flex-direction: column; }
  .msg.user .bubble-wrap { align-items: flex-end; }
  .ai-name { font-size: 10.5px; color: var(--mute); margin: 0 0 4px 3px; font-weight: 700; letter-spacing: .4px; }
  .bubble {
    padding: 11px 14px; border-radius: 15px;
    font-size: 14.5px; line-height: 1.6; word-break: break-word;
  }
  .msg.ai .bubble {
    background: #fff; border: 1px solid var(--line);
    border-top-left-radius: 5px; box-shadow: 0 2px 6px rgba(13,35,70,.06);
  }
  .msg.user .bubble {
    background: linear-gradient(135deg, #1E4278, #12294F); color: #fff;
    border-top-right-radius: 5px; box-shadow: 0 4px 12px rgba(18,41,79,.28);
  }

  /* 轻标记 + 建议卡片 */
  .tip-badge {
    margin-top: 6px; font-size: 11px; font-weight: 700;
    color: var(--gold-deep); background: #FDF4E3;
    border: 1px solid #F0D9A8; border-radius: 999px; padding: 4px 11px;
    cursor: pointer; align-self: flex-end;
    transition: transform .14s ease;
  }
  .tip-badge:active { transform: scale(.94); }
  .tip-card {
    margin-top: 7px; background: #FFFBF0;
    border: 1px solid #F0E2BD; border-radius: 12px;
    padding: 11px 13px; font-size: 12.5px; line-height: 1.65;
    display: none; align-self: stretch;
    box-shadow: 0 3px 10px rgba(185,127,34,.08);
  }
  .tip-card.open { display: block; animation: fadeUp .3s ease both; }
  .tip-card .tip-head { color: var(--gold-deep); font-weight: 800; margin-bottom: 7px; font-size: 12.5px; }
  .tip-card .tip-label { color: var(--mute); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: 7px; }
  .tip-card .tip-old { color: var(--sub); }
  .tip-card .tip-new { color: var(--navy); font-weight: 700; }
  .tip-card .tip-why { color: var(--sub); }

  /* typing 动画 */
  .typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
  .typing i { width: 7px; height: 7px; border-radius: 50%; background: #B9C6D8; animation: blink 1.2s infinite; }
  .typing i:nth-child(2) { animation-delay: .2s; }
  .typing i:nth-child(3) { animation-delay: .4s; }
  @keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

  /* 话题 chips */
  #chip-row {
    display: none; gap: 8px; padding: 9px 13px;
    overflow-x: auto; background: var(--paper); flex-shrink: 0; scrollbar-width: none;
  }
  #chip-row::-webkit-scrollbar { display: none; }
  .chip {
    flex-shrink: 0; background: #fff; border: 1px solid #D6DEEA; color: var(--navy);
    border-radius: 999px; padding: 7.5px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer;
    box-shadow: 0 1px 3px rgba(13,35,70,.05);
    transition: background .15s ease, color .15s ease;
  }
  .chip:active { background: var(--navy); color: #fff; border-color: var(--navy); }

  /* 底部输入区 */
  .input-bar {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); flex-shrink: 0;
    box-shadow: 0 -6px 18px rgba(13,35,70,.05);
  }
  #msg-input {
    flex: 1; min-width: 0; border: 1.5px solid transparent; border-radius: 999px;
    padding: 11px 16px; font-size: 16px; outline: none; background: #F2F4F8;
    font-family: inherit; color: var(--text);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  }
  #msg-input:focus { border-color: var(--navy-2); background: #fff; box-shadow: 0 0 0 3px rgba(27,58,107,.12); }
  .btn-send {
    width: 44px; height: 44px; border: none; border-radius: 50%; flex-shrink: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 14px rgba(232,163,61,.45);
    transition: transform .13s ease;
  }
  .btn-send:active { transform: scale(.88); }
  .btn-mic {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    border: 1.5px solid #D6DEEA; background: #F7F9FC; font-size: 17px;
    cursor: pointer; user-select: none; touch-action: none;
    transition: background .15s ease, border-color .15s ease, transform .13s ease;
  }
  .btn-mic:active { transform: scale(.9); }
  .btn-mic.recording { background: var(--red); border-color: var(--red); animation: micPulse 1.1s infinite; }
  @keyframes micPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(214,76,76,.4); } 50% { box-shadow: 0 0 0 9px rgba(214,76,76,0); } }

  /* 录音浮层 */
  #rec-overlay {
    position: absolute; inset: 0; z-index: 30;
    background: rgba(8, 20, 40, .55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
  }
  #rec-overlay.show { display: flex; animation: fadeIn .2s ease both; }
  @keyframes fadeIn { from { opacity: 0; } }
  .rec-box {
    background: #fff; border-radius: 22px; padding: 30px 38px;
    text-align: center; color: var(--text);
    box-shadow: 0 24px 60px rgba(8,20,40,.4);
    animation: popIn .28s cubic-bezier(.22,.8,.36,1) both;
  }
  @keyframes popIn { from { opacity: 0; transform: scale(.86); } }
  .rec-pulse {
    width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px;
    background: linear-gradient(135deg, #E46A6A, #C43B3B);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; animation: micPulse 1.1s infinite;
  }
  .rec-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 26px; margin-bottom: 12px; }
  .rec-wave i { width: 4.5px; border-radius: 3px; background: linear-gradient(180deg, #E46A6A, #C43B3B); animation: wave 1s ease-in-out infinite; height: 8px; }
  .rec-wave i:nth-child(1) { animation-delay: 0s; }
  .rec-wave i:nth-child(2) { animation-delay: .12s; }
  .rec-wave i:nth-child(3) { animation-delay: .24s; }
  .rec-wave i:nth-child(4) { animation-delay: .36s; }
  .rec-wave i:nth-child(5) { animation-delay: .48s; }
  @keyframes wave { 0%, 100% { height: 8px; } 50% { height: 24px; } }
  .rec-box .rec-text { font-size: 14.5px; font-weight: 800; }
  .rec-box .rec-hint { font-size: 12px; color: var(--mute); margin-top: 6px; font-weight: 600; }

  /* ============ 复盘报告页 ============ */
  .report-header {
    position: relative; overflow: hidden;
    background: linear-gradient(152deg, #081731 0%, #10264B 52%, #1B3A6B 100%);
    color: #fff; padding: 34px 20px 78px; border-radius: 0 0 26px 26px;
  }
  .report-header::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 1px, transparent 1px 10px);
  }
  .report-header::after {
    content: ''; position: absolute; width: 260px; height: 260px;
    left: -110px; bottom: -130px; border-radius: 50%;
    border: 1.5px solid rgba(232,163,61,.3);
    box-shadow: 0 0 0 34px rgba(232,163,61,.06);
  }
  .report-header .kicker { color: rgba(255,255,255,.45); position: relative; z-index: 1; }
  .report-header h2 { font-size: 22px; font-weight: 800; margin-top: 8px; position: relative; z-index: 1; letter-spacing: .3px; }
  .report-header .r-sub2 { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 7px; position: relative; z-index: 1; font-weight: 600; }

  /* 报告概览条 */
  .r-summary {
    position: relative; z-index: 2;
    display: flex; background: var(--card); margin: -50px 16px 0;
    border-radius: 16px; padding: 16px 8px;
    box-shadow: var(--shadow-lift); border: 1px solid rgba(232,163,61,.25);
  }
  .r-summary .ss { flex: 1; text-align: center; position: relative; }
  .r-summary .ss + .ss::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line);
  }
  .r-summary .ss b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.1; }
  .r-summary .ss span { display: block; font-size: 10.5px; color: var(--mute); margin-top: 4px; font-weight: 700; }

  .r-section {
    background: var(--card); border-radius: 16px; margin: 12px 16px 0;
    padding: 16px 17px; border: 1px solid var(--line); box-shadow: var(--shadow-card);
  }
  .r-section h3 {
    font-size: 14.5px; font-weight: 800; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px; color: var(--ink);
  }
  .h3-ico {
    width: 24px; height: 24px; border-radius: 8px; font-size: 13px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #EDF2FA; border: 1px solid #DCE5F2;
  }
  .h3-count { margin-left: auto; font-size: 11px; color: var(--mute); font-weight: 700; }

  .goal-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid #F0F3F8; font-weight: 600; }
  .goal-row:last-child { border-bottom: none; }
  .goal-icon { width: 21px; height: 21px; border-radius: 50%; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; }
  .g-done { background: linear-gradient(135deg, #37AE6E, #23814E); }
  .g-half { background: linear-gradient(135deg, #EC9A2E, #C97712); }
  .g-miss { background: #B9C6D8; }
  .goal-status { margin-left: auto; font-size: 10.5px; font-weight: 700; flex-shrink: 0; padding: 3px 9px; border-radius: 999px; }
  .goal-status.s-done { color: #1F7A4A; background: #E6F5EC; }
  .goal-status.s-half { color: #A96A10; background: #FCF1DF; }
  .goal-status.s-miss { color: #7A8798; background: #EEF2F7; }

  /* 通用对话报告：软指标条 */
  .soft-stats { display: flex; background: #F4F8FE; border: 1px solid #E2EBF8; border-radius: 12px; padding: 13px 6px; }
  .soft-stats .ss { flex: 1; text-align: center; }
  .soft-stats .ss b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); }
  .soft-stats .ss span { display: block; font-size: 10.5px; color: var(--mute); margin-top: 3px; font-weight: 700; }
  .soft-note { text-align: center; font-size: 11px; color: var(--mute); margin-top: 9px; font-weight: 600; }

  /* 场景导流钩子 */
  .hook-card {
    position: relative; overflow: hidden;
    background: linear-gradient(140deg, #0A1B36 0%, #143059 58%, #1E4278 100%);
    color: #fff; border-radius: 16px; margin: 12px 16px 0; padding: 17px 18px;
    cursor: pointer; box-shadow: 0 10px 26px rgba(10,27,54,.3);
    transition: transform .14s ease;
  }
  .hook-card::after {
    content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%;
    right: -60px; top: -70px; border: 1.5px solid rgba(232,163,61,.35);
    box-shadow: 0 0 0 24px rgba(232,163,61,.07);
  }
  .hook-card:active { transform: scale(.98); }
  .hook-text { font-size: 12px; opacity: .75; font-weight: 600; }
  .hook-target { font-size: 15.5px; font-weight: 800; margin-top: 7px; display: flex; align-items: center; gap: 7px; }
  .hook-target .go { color: var(--gold-2); }

  .hl-item {
    background: #F4F8FE; border-left: 3px solid var(--gold);
    border-radius: 8px; padding: 10px 12px; margin-bottom: 9px;
  }
  .hl-item:last-child { margin-bottom: 0; }
  .hl-item .hl-en { color: var(--navy); font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 13.5px; line-height: 1.55; }
  .hl-item .hl-why { color: var(--sub); margin-top: 5px; font-size: 12px; line-height: 1.6; }
  .issue-item { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 9px; font-size: 12.5px; line-height: 1.65; background: #FDFEFF; }
  .issue-item:last-child { margin-bottom: 0; }
  .issue-tag { display: inline-block; font-size: 10.5px; font-weight: 800; color: #C24444; background: #FBEAEA; border: 1px solid #F3D2D2; border-radius: 6px; padding: 2.5px 8px; margin-bottom: 7px; }
  .issue-item .i-label { color: var(--mute); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; }
  .issue-item .i-old { color: var(--sub); }
  .issue-item .i-new { color: var(--navy); font-weight: 700; }
  .issue-item .i-why { color: var(--sub); }
  .vocab-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
  .vocab-row:last-child { border-bottom: none; }
  .vocab-en { color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
  .vocab-cn { color: var(--sub); text-align: right; font-size: 12px; font-weight: 600; }

  .report-btns { display: flex; gap: 11px; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
  .report-btns button {
    flex: 1; border-radius: 999px; padding: 14px 0; font-size: 14.5px; font-weight: 800;
    cursor: pointer; border: none; transition: transform .13s ease;
  }
  .report-btns button:active { transform: scale(.96); }
  .btn-retry {
    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #fff;
    box-shadow: 0 8px 20px rgba(232,163,61,.4);
  }
  .btn-home { background: #fff; color: var(--navy); border: 1.5px solid #C9D5E6 !important; }

  /* 滚动渐显 */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.22,.8,.36,1); }
  .reveal.in { opacity: 1; transform: none; }

  /* ============ 纯语音输入 ============ */
  .input-bar.voice-only { justify-content: center; padding-top: 13px; padding-bottom: calc(13px + env(safe-area-inset-bottom)); }
  .btn-mic-big {
    width: 62px; height: 62px; border-radius: 50%; border: none; font-size: 25px;
    cursor: pointer; color: #fff; user-select: none; -webkit-user-select: none; touch-action: none;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
    box-shadow: 0 6px 16px rgba(232,163,61,.45);
    transition: transform .13s ease;
  }
  .btn-mic-big:active { transform: scale(.92); }
  .btn-mic-big.recording { background: linear-gradient(135deg, #E46A6A, #C43B3B); animation: micPulse 1.1s infinite; }

  /* ============ Toast 轻提示 ============ */
  #toast {
    position: fixed; left: 50%; bottom: 96px; z-index: 80;
    transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
    background: rgba(18,41,79,.95); color: #fff; font-size: 12.5px; font-weight: 600;
    padding: 9px 16px; border-radius: 999px; max-width: 82%; text-align: center;
    box-shadow: 0 8px 22px rgba(8,20,40,.3);
    transition: opacity .22s ease, transform .22s ease;
  }
  #toast.show { opacity: 1; transform: translate(-50%, 0); }

  /* ============ 退出确认层（底部 action sheet） ============ */
  #confirm-sheet { position: absolute; inset: 0; z-index: 50; display: none; }
  #confirm-sheet.show { display: block; }
  .cf-mask { position: absolute; inset: 0; background: rgba(8,20,40,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .2s ease both; }
  .cf-box {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: var(--card); border-radius: 20px 20px 0 0;
    padding: 10px 20px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(8,20,40,.3);
    animation: sheetUp .28s cubic-bezier(.22,.8,.36,1) both;
  }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .cf-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 2px auto 14px; }
  .cf-title { font-size: 16px; font-weight: 800; color: var(--navy); text-align: center; }
  .cf-desc { font-size: 12.5px; color: var(--mute); text-align: center; margin-top: 8px; line-height: 1.6; font-weight: 600; }
  .cf-btns { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
  .cf-btn { border: none; border-radius: 999px; padding: 13px 0; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .13s ease; }
  .cf-btn:active { transform: scale(.97); }
  .cf-btn.primary { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #fff; box-shadow: 0 6px 16px rgba(232,163,61,.4); }
  .cf-btn.ghost { background: #F2F4F8; color: var(--sub); }

  /* ============ 复盘生成加载层 ============ */
  #report-loading { position: absolute; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; }
  #report-loading.show { display: flex; }
  .rl-mask { position: absolute; inset: 0; background: rgba(8,20,40,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .2s ease both; }
  .rl-card {
    position: relative; min-width: 230px;
    background: #fff; border-radius: 22px; padding: 30px 38px 22px; text-align: center;
    box-shadow: 0 24px 60px rgba(8,20,40,.4);
    animation: popIn .28s cubic-bezier(.22,.8,.36,1) both;
  }
  .rl-pulse {
    width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; animation: rlPulse 1.1s infinite;
  }
  @keyframes rlPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,163,61,.4); } 50% { box-shadow: 0 0 0 9px rgba(232,163,61,0); } }
  .rl-title { font-size: 14.5px; font-weight: 800; color: var(--text); }
  .rl-sub { font-size: 12px; color: var(--mute); margin-top: 7px; font-weight: 600; min-height: 16px; transition: opacity .18s ease; }
  .rl-cancel {
    margin-top: 15px; border: 1.5px solid var(--line); background: #fff; color: var(--sub);
    border-radius: 999px; padding: 7px 20px; font-size: 12px; font-weight: 700; cursor: pointer;
    transition: background .15s ease;
  }
  .rl-cancel:active { background: #F2F4F8; }

  /* ============ 向导入口卡（场景列表页底部） ============ */
  .wizard-entry {
    display: flex; align-items: center; gap: 11px; margin: 14px 16px 4px;
    background: linear-gradient(140deg, #0A1B36 0%, #143059 58%, #1E4278 100%);
    color: #fff; border-radius: 16px; padding: 14px 16px; cursor: pointer;
    box-shadow: 0 10px 24px rgba(10,27,54,.28);
    transition: transform .14s ease;
  }
  .wizard-entry:active { transform: scale(.98); }
  .we-ico {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; font-size: 19px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
    display: flex; align-items: center; justify-content: center;
  }
  .we-text { flex: 1; min-width: 0; }
  .we-text b { display: block; font-size: 13.5px; }
  .we-text small { display: block; font-size: 11px; opacity: .68; margin-top: 3px; font-weight: 600; }
  .we-go { font-size: 20px; color: var(--gold-2); flex-shrink: 0; }

  /* ============ 向导视图 ============ */
  #view-wizard.active { display: flex; flex-direction: column; height: 100vh; }
  #view-wizard .page-nav { flex-shrink: 0; }
  .wiz-sub { padding: 4px 16px 10px; font-size: 11.5px; color: var(--mute); font-weight: 600; line-height: 1.55; flex-shrink: 0; }
  #wiz-messages {
    flex: 1; overflow-y: auto; padding: 12px 13px 10px;
    background-color: var(--paper);
    background-image: radial-gradient(rgba(18,41,79,.05) 1px, transparent 1.4px);
    background-size: 18px 18px;
  }
  #chip-row-wiz {
    display: none; gap: 8px; padding: 9px 13px;
    overflow-x: auto; background: var(--paper); flex-shrink: 0; scrollbar-width: none;
  }
  #chip-row-wiz::-webkit-scrollbar { display: none; }

  /* 向导预览卡 */
  #wiz-preview { flex-shrink: 0; max-height: 62%; overflow-y: auto; background: var(--paper); }
  .wiz-card {
    margin: 4px 13px 14px; background: var(--card); border-radius: 16px; padding: 16px;
    border: 1px solid var(--line); box-shadow: var(--shadow-lift);
    animation: fadeUp .3s ease both;
  }
  .wc-head { display: flex; gap: 10px; align-items: center; margin-bottom: 11px; }
  .wc-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; font-size: 22px;
    background: linear-gradient(135deg, #16325C, #2A5494);
    display: flex; align-items: center; justify-content: center;
  }
  .wc-titles { flex: 1; min-width: 0; }
  .wc-title { font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.35; }
  .wc-role { font-size: 11px; color: var(--mute); margin-top: 3px; font-weight: 600; }
  .wc-diff { flex-shrink: 0; }
  .wc-persona { font-size: 12px; color: var(--sub); background: #F4F8FE; border: 1px solid #E2EBF8; border-radius: 10px; padding: 9px 11px; margin-bottom: 9px; line-height: 1.6; }
  .wc-goal { font-size: 12.5px; color: var(--text); margin-bottom: 9px; line-height: 1.6; }
  .wc-goal b { color: var(--gold-deep); }
  .wc-opening { font-size: 12px; color: var(--sub); border-left: 3px solid var(--gold); padding: 3px 0 3px 10px; margin-bottom: 13px; font-style: italic; line-height: 1.6; }
  .wc-actions { display: flex; gap: 9px; }
  .wc-btn { flex: 1; border: none; border-radius: 999px; padding: 12px 0; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .13s ease; }
  .wc-btn:active { transform: scale(.96); }
  .wc-btn.primary { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #fff; box-shadow: 0 6px 16px rgba(232,163,61,.4); }
  .wc-btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid #C9D5E6; }
  .wc-btn[disabled] { opacity: .55; cursor: default; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
  }
