/* 全局兜底：保证 [hidden] 属性始终生效 */
[hidden]{ display:none !important; }

/* ============ 设计令牌：深色（默认·年轻化霓虹） ============ */
:root,
[data-theme="dark"] {
  --brand:        #8B7CFF;
  --brand-2:      #FF6BAE;
  --brand-grad:   linear-gradient(135deg,#8B7CFF 0%,#FF6BAE 100%);
  --brand-soft:   rgba(139,124,255,.16);
  --accent:       #FFB443;
  --accent-2:     #4ECDC4;

  --bg:          #0C0A17;
  --surface:     rgba(255,255,255,.05);
  --surface-2:   rgba(255,255,255,.08);
  --surface-3:   rgba(255,255,255,.12);
  --line:        rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);

  --text-strong: #F4F2FF;
  --text:        #C9C5DE;
  --text-weak:   #8E89A8;
  --text-faint:  #6B6786;

  --success: #2ED9A3;
  --warning: #FFB443;
  --danger:  #FF6B7D;

  --glass-bg:     rgba(20,16,38,.55);
  --glass-border: rgba(255,255,255,.10);
  --glass-blur:   22px;

  --sh-card: 0 18px 50px rgba(0,0,0,.45);
  --sh-brand: 0 14px 36px rgba(139,124,255,.42);

  --r-xs:12px; --r-sm:16px; --r-md:22px; --r-lg:28px; --r-pill:999px;
  --sp-1:8px; --sp-2:16px; --sp-3:24px; --sp-4:28px;
  --page-px:20px;
  --font-mono:"SF Mono",ui-monospace,Menlo,Consolas,monospace;
}

/* ============ 浅色（清新） ============ */
[data-theme="light"] {
  --brand:        #6D5EF0;
  --brand-2:      #FF5FA2;
  --brand-grad:   linear-gradient(135deg,#7C6CF5 0%,#FF7AB0 100%);
  --brand-soft:   rgba(109,94,240,.12);
  --accent:       #FF9A3D;
  --accent-2:     #12B5A6;

  --bg:          #F4F2FF;
  --surface:     #FFFFFF;
  --surface-2:   #F1EFFF;
  --surface-3:   #E7E2FB;
  --line:        #E7E2F4;
  --line-strong: #D8D1F0;

  --text-strong: #1A1630;
  --text:        #413A5C;
  --text-weak:   #7C7596;
  --text-faint:  #A79FC2;

  --glass-bg:     rgba(255,255,255,.7);
  --glass-border: rgba(255,255,255,.8);

  --sh-card: 0 16px 44px rgba(80,60,160,.12);
  --sh-brand: 0 14px 34px rgba(109,94,240,.28);
}

* { box-sizing:border-box; }
html, body { margin:0; padding:0; }
body {
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans","Microsoft YaHei",sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  transition:background-color .35s ease,color .35s ease;
  overflow-x:hidden;
}
/* 霓虹光斑背景（固定、低透明、不挡交互） */
body::before, body::after{
  content:""; position:fixed; z-index:-1; border-radius:50%;
  filter:blur(90px); opacity:.55; pointer-events:none;
}
body::before{ width:46vw; height:46vw; top:-12vw; right:-8vw;
  background:radial-gradient(circle,var(--brand) 0%,transparent 70%); }
body::after{ width:42vw; height:42vw; bottom:-14vw; left:-10vw;
  background:radial-gradient(circle,var(--brand-2) 0%,transparent 70%); opacity:.42; }

.glass {
  background:var(--glass-bg);
  backdrop-filter:blur(var(--glass-blur));
  -webkit-backdrop-filter:blur(var(--glass-blur));
  border:1px solid var(--glass-border);
}

/* ============ 顶部导航 ============ */
.topbar {
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px var(--page-px);
  padding-top:calc(14px + env(safe-area-inset-top));
}
.brand { display:flex; align-items:center; gap:10px; min-width:0; }
.brand-logo {
  width:40px; height:40px; display:grid; place-items:center; flex:none;
  background:var(--brand-grad); border-radius:13px; font-size:20px; box-shadow:var(--sh-brand);
}
.brand-name {
  font-weight:800; font-size:18px; color:var(--text-strong);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  background:var(--brand-grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.brand-badge {
  font-size:11px; color:var(--brand-2); border:1px solid var(--brand-2);
  border-radius:var(--r-pill); padding:2px 9px; opacity:.9; white-space:nowrap;
}
.top-actions { display:flex; gap:8px; flex:none; }
.icon-btn {
  display:flex; align-items:center; gap:6px;
  background:var(--surface); color:var(--text); border:1px solid var(--line);
  border-radius:var(--r-pill); padding:8px 13px; cursor:pointer; font-size:14px;
  transition:transform .15s ease,border-color .2s ease,background .2s ease,color .2s;
}
.icon-btn:hover { border-color:var(--brand); color:var(--brand); transform:translateY(-1px); }
.icon-btn:active { transform:scale(.94); }
.icon-label { font-size:13px; }

/* ============ 布局（移动优先：单列） ============ */
.layout {
  display:flex; flex-direction:column; gap:var(--sp-3);
  padding:var(--sp-3) var(--page-px) calc(var(--sp-4) + 84px);
  max-width:1240px; margin:0 auto;
}
.sidebar { display:none; }

/* ============ 卡片 ============ */
.card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:var(--sp-4);
  box-shadow:var(--sh-card);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

/* ============ 输入区 ============ */
.field { margin-bottom:var(--sp-3); }
.field-label { display:block; font-size:14px; font-weight:700; color:var(--text-strong); margin-bottom:10px; }
.field-label i { font-style:normal; font-weight:500; font-size:12px; color:var(--text-faint); margin-left:6px; }
.field-label i.msg-ok { color:var(--success); }
.ta, #msgInput, #ctxInput {
  width:100%; background:var(--surface-2); color:var(--text-strong);
  border:1px solid var(--line); border-radius:var(--r-sm);
  padding:14px; font-size:15px; line-height:1.65; resize:vertical;
  font-family:inherit; outline:none; transition:border-color .2s,box-shadow .2s;
}
.ta:focus, #msgInput:focus, #ctxInput:focus {
  border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-soft);
}
.ta-sm { font-size:14px; padding:11px 12px; }

/* chips */
.chips { display:flex; flex-wrap:wrap; gap:9px; }
.chip {
  background:var(--surface-2); color:var(--text); border:1px solid var(--line);
  border-radius:var(--r-pill); padding:9px 16px; cursor:pointer; font-size:14px;
  transition:transform .16s cubic-bezier(.34,1.56,.64,1),background .2s,color .2s,border-color .2s,box-shadow .2s;
}
.chip:hover { border-color:var(--brand); color:var(--brand); }
.chip:active { transform:scale(.92); }
.chip.active {
  background:var(--brand-grad); color:#fff; border-color:transparent; box-shadow:var(--sh-brand);
}
.chip.rel.active { background:linear-gradient(135deg,#FF9E73,#FF5FA2); box-shadow:0 12px 30px rgba(255,95,162,.35); }

/* 生成模式分段切换 */
.seg { display:inline-flex; gap:4px; padding:4px; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-pill); }
.seg-btn {
  background:transparent; color:var(--text-weak); border:none; cursor:pointer;
  border-radius:calc(var(--r-pill) - 4px); padding:8px 18px; font-size:14px; font-weight:700;
  transition:background .2s,color .2s,box-shadow .2s,transform .16s cubic-bezier(.34,1.56,.64,1);
}
.seg-btn:hover { color:var(--brand); }
.seg-btn:active { transform:scale(.94); }
.seg-btn.active { background:var(--brand-grad); color:#fff; box-shadow:var(--sh-brand); }
.seg-hint { margin:8px 0 0; font-size:12px; color:var(--text-faint); }

/* 上传 */
.upload-empty {
  width:100%; display:flex; flex-direction:column; align-items:center; gap:5px;
  background:var(--surface-2); border:1.5px dashed var(--line-strong); border-radius:var(--r-md);
  padding:22px; cursor:pointer; color:var(--text-weak); font-size:14px; transition:.2s;
}
.upload-empty:hover { border-color:var(--brand); color:var(--brand); background:var(--brand-soft); }
.upload-plus { font-size:28px; line-height:1; color:var(--brand); }
.upload-empty small { color:var(--text-faint); font-size:12px; }
.upload-hint { margin:2px 0 10px; font-size:13px; line-height:1.6; color:var(--brand); background:var(--brand-soft); border-radius:var(--r-sm); padding:10px 12px; }
.thumbs { display:grid; grid-template-columns:repeat(auto-fill,minmax(82px,1fr)); gap:10px; margin-top:12px; }
.thumb { position:relative; aspect-ratio:1; border-radius:var(--r-sm); overflow:hidden; border:1px solid var(--line); }
.thumb img { width:100%; height:100%; object-fit:cover; }
.thumb .rm {
  position:absolute; top:4px; right:4px; width:22px; height:22px; border-radius:50%;
  background:rgba(0,0,0,.55); color:#fff; border:none; cursor:pointer; font-size:13px; line-height:22px;
}
/* 已上传后「继续添加」入口，避免上传按钮消失 */
.thumb-add {
  aspect-ratio:1; border-radius:var(--r-sm); border:2px dashed var(--line-strong);
  background:var(--surface-2); color:var(--text-weak); cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  transition:border-color .2s, color .2s, background .2s;
}
.thumb-add:hover { border-color:var(--brand); color:var(--brand); background:var(--brand-soft); }
.thumb-add-plus { font-size:24px; line-height:1; }
.thumb-add span { font-size:11px; }

/* 按钮 */
.composer-actions { display:flex; gap:12px; margin-top:8px; }
.btn-primary {
  flex:1; background:var(--brand-grad); color:#fff; border:none; border-radius:var(--r-pill);
  padding:15px; font-size:16px; font-weight:700; cursor:pointer; box-shadow:var(--sh-brand);
  transition:transform .15s ease,filter .2s;
}
.btn-primary:hover { filter:brightness(1.06); }
.btn-primary:active { transform:scale(.98); }
.btn-primary:disabled { opacity:.6; cursor:not-allowed; }
.btn-ghost {
  background:transparent; color:var(--text); border:1px solid var(--line-strong);
  border-radius:var(--r-pill); padding:15px 22px; font-size:15px; cursor:pointer; transition:.2s;
}
.btn-ghost:hover { border-color:var(--brand); color:var(--brand); }
.text-btn { background:none; border:none; color:var(--brand); cursor:pointer; font-size:13px; }
.disclaimer { margin-top:14px; font-size:12px; color:var(--text-faint); text-align:center; line-height:1.6; }

/* ============ 结果区 ============ */
.result { min-height:200px; }
.empty-state { text-align:center; padding:48px 20px; color:var(--text-weak); }
.empty-art { font-size:54px; margin-bottom:8px; filter:drop-shadow(0 8px 20px rgba(139,124,255,.35)); }
.empty-state h2 { color:var(--text-strong); font-size:21px; margin:6px 0; }
.empty-state p { font-size:15px; max-width:420px; margin:0 auto 18px; line-height:1.7; }
.empty-tips { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.tip-chip {
  background:var(--surface); border:1px solid var(--line-strong); color:var(--text);
  border-radius:var(--r-pill); padding:8px 16px; cursor:pointer; font-size:13px; transition:.2s;
}
.tip-chip:hover { border-color:var(--brand); color:var(--brand); transform:translateY(-1px); }

/* 结果卡片 */
.res-card {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:var(--sp-3) var(--sp-4); margin-bottom:var(--sp-3); box-shadow:var(--sh-card);
  animation:rise .45s ease both;
}
@keyframes rise { from{opacity:0;transform:translateY(14px);} to{opacity:1;transform:none;} }
.res-title {
  display:flex; align-items:center; gap:8px; font-weight:800; font-size:16px; color:var(--text-strong);
  margin-bottom:14px;
}
.res-title .dot { width:8px; height:8px; border-radius:50%; background:var(--brand); }
.res-title .tag { margin-left:auto; font-size:12px; font-weight:500; color:var(--text-faint); }

/* 截图卡 */
.shot-card { border-color:var(--line-strong); }
.shot-card .shot-text { font-size:14px; line-height:1.7; color:var(--text); white-space:pre-wrap; background:var(--surface-2); border-radius:var(--r-sm); padding:12px; max-height:240px; overflow:auto; }
/* 角色化逐条对话 */
.shot-msgs { display:flex; flex-direction:column; gap:8px; }
.shot-msg { display:flex; align-items:flex-start; gap:8px; font-size:14px; line-height:1.6; }
.shot-msg .role-badge {
  flex:0 0 auto; align-self:flex-start; margin-top:2px;
  font-size:11px; font-weight:600; line-height:1; padding:4px 7px; border-radius:999px;
  white-space:nowrap; letter-spacing:.5px;
}
.shot-msg .role-badge.other { background:rgba(120,130,150,.16); color:#8794a8; }
.shot-msg .role-badge.self  { background:rgba(99,179,237,.20); color:#5aa9ef; }
.shot-msg .shot-msg-text { flex:1 1 auto; white-space:pre-wrap; word-break:break-word; }
/* 本人（右侧）发言整体右对齐，直观对应图片右侧 */
.shot-msg.self { flex-direction:row-reverse; text-align:right; }
.shot-msg.self .shot-msg-text { text-align:right; }
.shot-card .shot-summary { margin-top:10px; font-size:13px; color:var(--text-weak); }
.shot-card .shot-error { margin-top:10px; font-size:12px; color:var(--text-faint); }
.shot-card .shot-error summary { cursor:pointer; padding:6px 0; user-select:none; }
.shot-card .shot-error summary:hover { color:var(--brand); }
.shot-card .shot-error pre { margin:6px 0 0; padding:10px 12px; background:rgba(255,107,125,.10); border:1px solid rgba(255,107,125,.3); border-radius:var(--r-sm); white-space:pre-wrap; word-break:break-all; font-family:var(--font-mono); font-size:11px; line-height:1.5; color:#ff9aa6; max-height:160px; overflow:auto; }

/* 心理速读 */
.analysis-card { border-left:3px solid var(--accent); }
.analysis-card .res-title .dot { background:var(--accent); }
.analysis-card .analysis-body { font-size:15px; line-height:1.75; color:var(--text); }

/* 大纲 */
.outline-strategy {
  background:var(--brand-soft); border:1px solid rgba(139,124,255,.35); border-radius:var(--r-md); padding:14px 16px;
  font-size:15px; font-weight:700; color:var(--text-strong); margin-bottom:14px;
}
.steps { list-style:none; padding:0; margin:0; counter-reset:s; }
.steps li {
  position:relative; padding:10px 0 10px 44px; font-size:14.5px; line-height:1.6; color:var(--text);
  border-bottom:1px dashed var(--line);
}
.steps li:last-child { border-bottom:none; }
.steps li::before {
  counter-increment:s; content:counter(s);
  position:absolute; left:0; top:8px; width:28px; height:28px; border-radius:50%;
  background:var(--brand-grad); color:#fff; font-size:13px; font-weight:800;
  display:grid; place-items:center; box-shadow:var(--sh-brand);
}

/* 话术气泡 */
.bubble-wrap { margin-bottom:var(--sp-3); }
.bubble {
  position:relative; background:var(--surface-2); border:1px solid var(--line);
  border-radius:var(--r-md); border-top-left-radius:6px; padding:16px 18px;
  font-size:16px; line-height:1.7; color:var(--text-strong); white-space:pre-wrap;
}
.bubble.main { font-size:17px; border-left:3px solid var(--brand); }
.bubble .copy {
  position:absolute; top:10px; right:10px; background:var(--surface); border:1px solid var(--line-strong);
  color:var(--text-weak); border-radius:var(--r-pill); padding:5px 12px; font-size:12px; cursor:pointer; transition:.2s;
}
.bubble .copy:hover { color:var(--brand); border-color:var(--brand); }
.bubble .copy.done { color:var(--success); border-color:var(--success); }
.alt-label { font-size:13px; color:var(--text-weak); margin:14px 0 8px; display:flex; align-items:center; gap:6px; }

/* 危机提示 */
.crisis-banner {
  display:flex; gap:12px; align-items:flex-start; background:rgba(255,107,125,.12);
  border:1px solid rgba(255,107,125,.4); border-radius:var(--r-md); padding:14px 16px; margin-bottom:var(--sp-3);
  font-size:14px; line-height:1.6; color:#ffd2d8;
}
.crisis-banner .ico { font-size:20px; }

/* 结果底部操作 */
.res-actions { display:flex; gap:12px; margin-top:var(--sp-2); }
.res-actions .btn-primary, .res-actions .btn-ghost { flex:1; padding:13px; font-size:15px; }

/* ============ 加载遮罩 ============ */
.overlay:not([hidden]){
  position:fixed; inset:0; z-index:100; display:grid; place-items:center;
  background:rgba(8,6,16,.55); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.overlay[hidden]{ display:none !important; }
.overlay-card { border-radius:var(--r-lg); padding:34px 40px; text-align:center; min-width:280px; }
.spinner {
  width:46px; height:46px; margin:0 auto 16px; border-radius:50%;
  border:4px solid rgba(255,255,255,.15); border-top-color:var(--brand);
  animation:spin .8s linear infinite;
}
[data-theme="light"] .spinner { border-color:rgba(0,0,0,.1); border-top-color:var(--brand); }
@keyframes spin { to{transform:rotate(360deg);} }
.overlay-title { font-weight:800; color:var(--text-strong); margin-bottom:18px; }
.overlay-steps { display:flex; flex-direction:column; gap:10px; font-size:13px; color:var(--text-weak); }
.ostep { opacity:.4; transition:.3s; }
.ostep.on { opacity:1; color:var(--brand); font-weight:700; }
.overlay-status { margin-top:16px; font-size:13px; color:var(--text); line-height:1.5; max-width:260px; }
.overlay-stream {
  margin-top:14px; width:300px; max-width:80vw; max-height:200px; overflow:auto;
  text-align:left; font-size:13px; line-height:1.7; color:var(--text);
  background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:12px 14px; white-space:pre-wrap; word-break:break-word;
  font-family:var(--font-mono);
}
.overlay-thinking {
  margin-top:14px; width:300px; max-width:80vw; text-align:left;
  font-size:12px; line-height:1.6; color:var(--text-faint);
}
.overlay-thinking .think-label { font-weight:600; color:var(--text-weak); }
.overlay-thinking .think-text { color:var(--text-faint); }
.overlay-thinking.analysis .think-label { color:#6b7cff; }
.overlay-timer { margin-top:4px; font-size:12px; color:var(--text-faint); font-variant-numeric:tabular-nums; }

/* ============ 历史抽屉 ============ */
.drawer-mask:not([hidden]) { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:60; }
.drawer-mask[hidden]{ display:none !important; }
.drawer {
  position:fixed; top:0; right:0; bottom:0; width:min(380px,86vw); z-index:61;
  background:var(--surface); border-left:1px solid var(--line); padding:var(--sp-3);
  display:flex; flex-direction:column; transform:translateX(100%); transition:transform .3s ease;
  backdrop-filter:blur(10px);
}
.drawer.open { transform:none; }
.drawer-head { display:flex; justify-content:space-between; align-items:center; font-weight:800; color:var(--text-strong); margin-bottom:14px; }
.drawer-list { overflow:auto; flex:1; }
.hist-item {
  background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-md);
  padding:14px; margin-bottom:12px; cursor:pointer; transition:.2s;
}
.hist-item:hover { border-color:var(--brand); transform:translateY(-1px); }
.hist-item .hi-msg { font-size:14px; color:var(--text-strong); display:flex; gap:8px; }
.hist-item .hi-dir { font-size:12px; color:var(--brand); background:var(--brand-soft); border-radius:var(--r-pill); padding:2px 10px; white-space:nowrap; }
.hist-item .hi-time { font-size:12px; color:var(--text-faint); margin-top:8px; }
.hist-empty { color:var(--text-faint); font-size:14px; text-align:center; padding:40px 0; }

/* ============ 移动端底部固定操作栏 ============ */
.mobile-cta { display:none; }
@media (max-width:759px){
  .composer-actions { display:none; }      /* 移动端改用底部固定栏 */
  .mobile-cta {
    display:flex; gap:12px; position:fixed; left:0; right:0; bottom:0; z-index:80;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    background:var(--glass-bg); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
    border-top:1px solid var(--glass-border);
    box-shadow:0 -8px 30px rgba(0,0,0,.25);
  }
  .mobile-cta .btn-primary, .mobile-cta .btn-ghost { flex:1; padding:14px; }
}

/* ============ Toast ============ */
.toast:not([hidden]) {
  position:fixed; left:50%; bottom:calc(40px + env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:120;
  max-width:90vw; background:rgba(20,16,38,.92); color:#fff; padding:12px 22px; border-radius:var(--r-pill);
  font-size:14px; box-shadow:var(--sh-card); backdrop-filter:blur(8px); text-align:center;
}
.toast[hidden]{ display:none !important; }

/* ============ 来源角标 ============ */
.mode-badge { display:inline-block; margin-bottom:14px; padding:6px 12px; border-radius:999px; font-size:12.5px; font-weight:700; }
.mode-badge.real { background:rgba(46,217,163,.14); border:1px solid rgba(46,217,163,.45); color:#3fe0ad; }
.mode-badge.mock { background:rgba(255,180,67,.14); border:1px solid rgba(255,180,67,.45); color:#ffc266; }

/* ============ 平板及以上：双列 ============ */
@media (min-width:760px) {
  :root { --page-px:28px; }
  .layout { display:grid; grid-template-columns:minmax(360px,1fr) minmax(360px,1.1fr); align-items:start; }
  .composer { position:sticky; top:84px; }
  .layout { padding-bottom:60px; }
}

/* ============ 桌面：三列（含历史侧栏） ============ */
@media (min-width:1100px) {
  .layout { grid-template-columns:280px minmax(380px,1fr) minmax(420px,1.2fr); }
  .sidebar {
    display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line);
    border-radius:var(--r-lg); padding:var(--sp-3); box-shadow:var(--sh-card); max-height:calc(100vh - 120px);
    position:sticky; top:84px;
  }
  .sidebar-head { display:flex; justify-content:space-between; align-items:center; font-weight:800; color:var(--text-strong); margin-bottom:12px; }
  .history-list { overflow:auto; flex:1; }
  .composer { position:sticky; top:84px; }
}

/* ============ 小屏微调 ============ */
@media (max-width:380px){
  .brand-badge { display:none; }
  .icon-label { display:none; }
  .icon-btn { padding:9px 11px; }
}

/* ============ 语气模仿开关 ============ */
.switch-row { display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; cursor:pointer; font-size:13.5px; color:var(--text); line-height:1.5; }
.switch-row input { width:18px; height:18px; margin-top:2px; accent-color:var(--brand); flex:none; }

/* ============ 心理分析与判断 ============ */
.mindread-card .mr-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:12px; }
.mr-item { background:var(--surface-2); border-radius:var(--r-sm); padding:12px 14px; }
.mr-k { display:block; font-size:12px; color:var(--text-weak); margin-bottom:4px; }
.mr-v { font-size:14.5px; color:var(--text-strong); line-height:1.55; }
.mr-block { margin-bottom:10px; }
.mr-block .mr-k { margin-bottom:6px; }
.mr-tag { display:inline-block; background:var(--brand-soft); color:var(--brand-2); border:1px solid var(--line-strong); border-radius:999px; padding:4px 12px; font-size:12.5px; margin:0 6px 6px 0; }
.mr-ev { margin:0; padding-left:18px; }
.mr-ev li { font-size:13.5px; color:var(--text); line-height:1.7; }

/* ============ 聊天目标 ============ */
.goal-body { font-size:15px; color:var(--text-strong); line-height:1.7; background:var(--surface-2); border-radius:var(--r-sm); padding:14px 16px; border-left:4px solid var(--accent); }

/* ============ 分阶段大纲 ============ */
.outline-card .stage { padding:14px 0; border-bottom:1px dashed var(--line); }
.outline-card .stage:last-child { border-bottom:none; padding-bottom:0; }
.stage-head { margin-bottom:6px; }
.stage-name { display:inline-block; font-weight:800; font-size:14px; color:#fff; background:var(--brand-grad); border-radius:999px; padding:4px 16px; }
.stage-dir { font-size:14px; color:var(--text-strong); line-height:1.6; margin-bottom:6px; }
.stage-notes { margin:0 0 6px; padding-left:18px; }
.stage-notes li { font-size:13px; color:var(--text-weak); line-height:1.7; }
.stage-sample { font-size:13.5px; color:var(--text); background:var(--surface-2); border-radius:var(--r-sm); padding:10px 12px; border-left:3px solid var(--brand); }

/* ============ 推荐话术 / 反问 / 依据 ============ */
.ask-line { margin-top:8px; font-size:13.5px; color:var(--text-strong); background:var(--surface-2); border-radius:var(--r-sm); padding:9px 12px; }
.ask-line::before { content:''; }
.why-line { margin-top:6px; font-size:12.5px; color:var(--text-weak); line-height:1.6; padding:0 2px; }

/* ============ 分层备选 ============ */
.replies-card .reply-item { padding:14px 0; border-bottom:1px dashed var(--line); }
.replies-card .reply-item:last-child { border-bottom:none; padding-bottom:0; }
.reply-level { font-weight:800; font-size:13.5px; color:var(--brand-2); margin-bottom:8px; }
.reply-level small { font-weight:500; color:var(--text-weak); margin-left:8px; font-size:12px; }

/* ============ 语气模仿说明 ============ */
.style-card { border:1px solid var(--line-strong); background:linear-gradient(135deg,var(--brand-soft),var(--surface)); }
.style-profile { font-size:13.5px; color:var(--text); line-height:1.65; }

@media (max-width:520px){
  .mindread-card .mr-grid { grid-template-columns:1fr; }
}
