/* =====================================================================
   TalkLoop · AI 口语训练舱  —  科技明亮风格 v9
   主色 #6366F1 · 辅 #8B5CF6 · 点睛 #F97316 · 22px 大圆角 · 柔和双层阴影
   层次 = 淡色背景差 + 1px 细边框 + 轻阴影（不堆重投影、不用纯黑描边）
   ===================================================================== */

/* ============ 设计变量（浅色为基准） ============ */
:root {
  --bg: #F7F7FB;
  --panel: #FFFFFF;
  --panel-2: #F3F6FF;
  --chat-bg: #FBFBFE;          /* 中栏对话区浅色底（非纯白） */
  --ink: #11131A;
  --muted: #4B5168;
  --faint: #7B819F;
  --line: #E2E6F1;
  --accent: #6366F1;
  --accent-grad: linear-gradient(135deg, #6366F1, #8B5CF6);  /* 仅主按钮用 */
  --accent-2: #8B5CF6;
  --accent-soft: #EEF0FF;
  --accent-border: #C7D2FE;
  --orange: #F97316;
  --good: #16A34A;
  --good-soft: rgba(34, 197, 94, 0.12);
  --warn: #D97706;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --bad: #E11D48;
  --bad-soft: rgba(244, 63, 94, 0.10);
  --user-bubble: var(--accent-grad);
  --coach-bubble: #FFFFFF;
  --shadow: 0 1px 2px rgba(18, 26, 80, 0.04), 0 8px 28px rgba(18, 26, 80, 0.07);          /* resting */
  --shadow-hover: 0 12px 40px rgba(18, 26, 80, 0.12);                                       /* hover 加深 */
  --shadow-btn: 0 6px 18px rgba(99, 102, 241, 0.30);
  --radius: 22px;   /* 只给卡片 */
  --radius-md: 16px; /* 面板 */
  --radius-sm: 12px; /* 按钮 / 输入 */
  --radius-xs: 8px;  /* 小元素 */
}

[data-theme="dark"] {
  --bg: #0B0D17;
  --panel: #141831;
  --panel-2: #1C2140;
  --chat-bg: #171C38;
  --ink: #EAECF5;
  --muted: #A6ACCB;
  --faint: #7B819F;
  --line: #262A3D;
  --accent: #818CF8;
  --accent-grad: linear-gradient(135deg, #818CF8, #A78BFA);
  --accent-2: #A78BFA;
  --accent-soft: #23274A;
  --accent-border: #3B3F6E;
  --good: #4ADE80;
  --warn: #FBBF24;
  --bad: #FB7185;
  --coach-bubble: #1C2140;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-btn: 0 6px 18px rgba(99, 102, 241, 0.25);
}

/* ============ 基础 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Geist", -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #EFF2FE 0%, #F7F7FB 340px) fixed, #F7F7FB;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] body { background: linear-gradient(180deg, #10142B 0%, #0B0D17 340px) fixed, #0B0D17; }
body.no-scroll { overflow: hidden; }
body.no-scroll .view { height: calc(100vh - 61px); overflow: hidden; }
@media (min-width:769px) {
  body.no-scroll .view { padding-bottom:0; }
  body.no-scroll .practice-wrap.open-scene-chat > .pw-mid,
  body.no-scroll .practice-wrap.open-scene-chat > .pw-right { height:100%; }
}
h1, h2, h3, h4 { letter-spacing: -0.3px; }
::selection { background: var(--accent-soft); color: var(--accent); }

button:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 细滚动条 */
.chat::-webkit-scrollbar, .material-text::-webkit-scrollbar, .pw-right::-webkit-scrollbar,
.modal-card::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 8px; height: 8px; }
.chat::-webkit-scrollbar-thumb, .material-text::-webkit-scrollbar-thumb, .pw-right::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb { background: #D9DEEF; border-radius: 8px; }
[data-theme="dark"] .chat::-webkit-scrollbar-thumb,
[data-theme="dark"] .material-text::-webkit-scrollbar-thumb,
[data-theme="dark"] .pw-right::-webkit-scrollbar-thumb { background: #2A2F4A; }

#app { display: flex; min-height: 100vh; }

/* ============ 侧边栏 ============ */
.sidebar {
  width: 232px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.logo {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: grid; place-items: center; font-size: 20px;
  box-shadow: var(--shadow-btn);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: -0.3px; }
.brand-text span { font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: 0.4px; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  text-align: left; padding: 11px 13px; border-radius: 12px;
  border: none; background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: 0.18s;
}
.nav-item:hover { background: var(--panel-2); color: var(--ink); }
.nav-item.active {
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.sidebar-foot .ghost-btn { width: 100%; }

/* ============ 主区域 / 顶栏 ============ */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 251, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
[data-theme="dark"] .topbar { background: rgba(11, 13, 23, 0.78); }
#topbar-title { font-size: 17px; font-weight: 700; letter-spacing: -0.4px; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.back-btn {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  font-size: 15px; cursor: pointer; transition: 0.15s; font-family: inherit;
  display: grid; place-items: center; line-height: 1;
}
.back-btn:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); transform: translateX(-2px); }
.topbar-right { display: flex; gap: 8px; }
.chip {
  background: var(--panel-2); color: var(--muted);
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.view { padding: 26px 28px 40px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ============ 通用组件 ============ */
.primary-btn {
  background: var(--accent-grad);
  color: #fff; border: none; padding: 10px 20px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: 0.18s; box-shadow: var(--shadow-btn);
  font-family: inherit;
}
.primary-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(99, 102, 241, 0.42); }
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.ghost-btn {
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: 0.18s; font-family: inherit;
}
.ghost-btn:hover { background: var(--panel-2); color: var(--accent); border-color: var(--accent-border); }
.ghost-btn.sm-btn { font-size: 12.5px; padding: 5px 11px; border-radius: var(--radius-xs); }
.big-btn { font-size: 15.5px; padding: 13px 26px; border-radius: var(--radius-sm); }
.icon-btn { background: transparent; border: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
h2.section-title { font-size: 20px; font-weight: 700; letter-spacing: -0.6px; margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 12.5px; }
.tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; margin: 2px 4px 2px 0;
}
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.2px; }
.badge.easy { background: var(--good-soft); color: var(--good); }
.badge.standard { background: rgba(59, 130, 246, 0.12); color: #2563EB; }
.badge.challenge { background: rgba(249, 115, 22, 0.14); color: var(--orange); }
.badge.ok { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
[data-theme="dark"] .badge.standard { background: rgba(96, 165, 250, 0.16); color: #93C5FD; }

/* ============ 统一页面标题（PageHeader） ============ */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph-title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; margin: 0; line-height: 1.25; }
.ph-sub { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; max-width: 680px; line-height: 1.6; }
.ph-actions { display: flex; gap: 10px; align-items: center; flex: none; flex-wrap: wrap; }

/* ============ 首页 Hero（训练舱） ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 48px; align-items: center;
  padding: 46px 46px 42px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 1.6px; font-weight: 700;
  color: #fff; background: var(--accent);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: none;
}
.hero-title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.22; font-weight: 800; letter-spacing: -1.4px;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #312E81 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .hero-title {
  background: linear-gradient(120deg, #C7D2FE 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 580px; margin-bottom: 24px; }
.hero-sub strong { color: var(--accent); font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero .primary-btn.big-btn { padding: 14px 28px; font-size: 15.5px; }
.hero .ghost-btn.big-btn { background: var(--panel); border: 1px solid var(--line); color: var(--muted); box-shadow: none; }
.hero .ghost-btn.big-btn:hover { color: var(--accent); border-color: var(--accent-border); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-tag {
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--muted); padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}

/* Hero 右侧：训练舱实况预览卡 */
.hero-visual { display: flex; justify-content: center; }
.sim-card {
  width: 100%; max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(18, 26, 80, 0.05), 0 20px 50px rgba(99, 102, 241, 0.16);
  padding: 16px;
  animation: simFloat 5s ease-in-out infinite;
}
@keyframes simFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.sim-head { display: flex; align-items: center; gap: 8px; font-size: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.sim-head b { letter-spacing: 0.3px; }
.sim-mode { margin-left: auto; color: var(--faint); font-size: 11px; font-weight: 600; }
.sim-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.sim-row.user { justify-content: flex-end; }
.sim-ava {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 14px;
  background: var(--accent);
}
.sim-ava.user { background: var(--panel-2); border: 1px solid var(--line); }
.sim-bubble {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; border-top-left-radius: 4px;
  padding: 8px 11px; max-width: 82%;
}
.sim-row.user .sim-bubble {
  background: linear-gradient(135deg, #6366F1, #8B5CF6); border: none;
  color: #fff; border-radius: 12px; border-top-right-radius: 4px;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}
.sim-who { display: inline-block; font-size: 10px; font-weight: 800; color: var(--faint); margin-right: 6px; }
.sim-row.user .sim-who { color: rgba(255, 255, 255, 0.75); }
.sim-text { font-size: 12.5px; line-height: 1.55; }
.sim-feedback {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-top: 4px;
}
.sim-score { display: flex; align-items: baseline; gap: 5px; }
.sim-score span {
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sim-score i { font-style: normal; font-size: 11px; color: var(--faint); }
.sim-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.sim-chip { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sim-chip.ok { background: var(--good-soft); color: var(--good); }
.sim-chip.warn { background: var(--warn-soft); color: var(--warn); }

/* 首页统计卡：顶部三色渐变条 */
.stat-card { position: relative; overflow: hidden; text-align: center; padding-top: 26px; }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent);
}
.stat-card .num { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; }
.stat-card .lbl { font-size: 13px; color: var(--faint); font-weight: 500; }
.mat-card { cursor: pointer; transition: 0.18s; }
.mat-card:hover { transform: translateY(-3px); border-color: var(--accent-border); box-shadow: var(--shadow-hover); }
.mat-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mat-card-head h4 { font-size: 15.5px; margin-bottom: 0; flex: 1; line-height: 1.4; letter-spacing: -0.2px; }
.mat-card-head-r { display: flex; align-items: flex-start; gap: 6px; flex: none; }
.del-btn {
  background: transparent; border: none; color: var(--faint);
  cursor: pointer; font-size: 14px; padding: 4px 6px; border-radius: 8px;
  line-height: 1; transition: 0.15s;
}
.del-btn:hover { color: var(--bad); background: var(--bad-soft); }
.mat-card .meta { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.mat-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.mat-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mat-meta { font-size: 12.5px; color: var(--faint); }
.mat-meta.mat-stat { margin-left: auto; }
.empty { text-align: center; color: var(--faint); padding: 40px; }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* ============ 材料库 ============ */
.toolbar-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.toolbar-row.filter-row { margin-bottom: 10px; }
.toolbar-row select, .toolbar-row input {
  padding: 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font-size: 14px; font-family: inherit;
}
.toolbar-row select { font-weight: 600; cursor: pointer; max-width: 220px; }
.toolbar-row select:focus, .toolbar-row input:focus { outline: none; border-color: var(--accent-border); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); }
.toolbar-search { flex: 1; min-width: 220px; }
.src-badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-right: 2px; }
.src-badge.s-ai { background: rgba(168, 85, 247, 0.14); color: #A855F7; }
.src-badge.s-man { background: var(--panel-2); color: var(--faint); border: 1px solid var(--line); }
[data-theme="dark"] .src-badge.s-ai { background: rgba(168, 85, 247, 0.18); color: #C4B5FD; }
.filter-chips-in { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip { border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent); padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: 0.15s; }
.filter-chip:hover { background: var(--accent); color: #fff; }
.filter-group { display: flex; gap: 6px; }
.filter-group button {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: 0.15s; font-family: inherit;
}
.filter-group button:hover { border-color: var(--accent-border); color: var(--accent); }
.filter-group button.active { background: var(--accent); color: #fff; border-color: transparent; }

/* ============ 练习页（训练舱三栏：中栏最突出） ============ */
.practice-wrap {
  display: grid; grid-template-columns: 276px minmax(0, 1fr) 312px;
  gap: 18px; align-items: stretch; height: 100%;
}
.practice-wrap.open-scene-chat { grid-template-columns:minmax(0,1fr) 340px;max-width:1320px;margin:0 auto; }
.pw-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.pw-right { overflow-y: auto; }
.pw-right-wrap { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.r-tabs { display: flex; gap: 4px; padding: 12px 12px 0; border-bottom: 1px solid var(--line); }
.r-tab { flex: 1; border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; padding: 9px 6px; border-radius: 10px 10px 0 0; cursor: pointer; font-family: inherit; transition: .15s; white-space: nowrap; }
.r-tab:hover { color: var(--accent); background: var(--accent-soft); }
.r-tab.active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.r-tab:disabled { opacity: .38; cursor: not-allowed; background: transparent; box-shadow: none; }
.r-pane { padding: 16px; }
.r-pane[hidden] { display: none; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow);
}
/* 视觉主次：两侧平面化收敛、中间对话区突出 */
.pw-left .panel, .pw-right .panel { box-shadow: none; border-color: var(--line); }
.pw-mid .chat-panel {
  background: var(--chat-bg);
  box-shadow: 0 2px 8px rgba(18, 26, 80, 0.06), 0 24px 56px rgba(18, 26, 80, 0.14);
  border-color: #DCE1F5;
}
[data-theme="dark"] .pw-mid .chat-panel { border-color: #2E3352; }
.panel h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 12px; }

/* 左栏：训练舱配置卡 */
.cfg-card { padding: 16px; }
.cfg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cfg-card-title { font-size: 13.5px; font-weight: 800; letter-spacing: 0.2px; }
.cfg-mini { display: flex; flex-direction: column; }
.cfg-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.cfg-mini-row + .cfg-mini-row { border-top: 1px dashed var(--line); }
.cfg-mini-k { font-size: 12px; color: var(--faint); font-weight: 600; flex: none; }
.chip.sm { font-size: 12px; padding: 4px 11px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-weight: 700; }
#material-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#material-panel h3 { margin-bottom: 6px; }
.material-text { font-size: 13.5px; flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }

/* 中栏：对话区 */
.pw-mid .chat-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 18px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.chat-head-l { display: flex; align-items: center; gap: 9px; }
.chat-head-l h3 { margin: 0; font-size: 16px; letter-spacing: -0.3px; }
.scenario-live-note {
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-3px 0 11px;padding:8px 11px;
  border:1px solid #d9dcff;border-radius:10px;background:linear-gradient(90deg,#f3f2ff,#f8fbff);
  color:#596078;font-size:12px;line-height:1.5;
}
.scenario-live-note span { color:#6254df;background:#fff;border:1px solid #dedbff;border-radius:999px;padding:2px 7px;font-weight:800;letter-spacing:.2px; }
.scenario-live-note b { color:#333a55; }
.scenario-live-note.review-mode { border-color:#c9ead9;background:linear-gradient(90deg,#effcf6,#f7fbff); }
.scenario-live-note.review-mode span { color:#12805c;border-color:#bde6d3;background:#fff; }
.scene-chat-brief { display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;margin:-2px 0 12px;padding:11px 13px;border:1px solid #d9dcff;border-radius:14px;background:linear-gradient(90deg,#f5f4ff,#f8fbff); }
.scene-chat-brief > span { width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#fff;border:1px solid #dedbff;font-size:20px; }
.scene-chat-brief > div:nth-child(2) { display:grid;gap:2px;min-width:0; }
.scene-chat-brief small { color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.08em; }
.scene-chat-brief b { font-size:14px; }
.scene-chat-brief p { margin:0;color:var(--muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.scene-session-controls { display:flex;align-items:center;gap:8px; }
.scene-role-switch { display:grid;gap:3px;padding:4px 6px 5px;border:1px solid var(--line);border-radius:12px;background:var(--panel); }
.scene-role-switch > small { padding-left:3px;color:var(--faint);font-size:8.5px;font-weight:800;letter-spacing:.08em; }
.scene-role-switch > div { display:flex;gap:3px; }
.scene-role-switch button { border:0;background:transparent;color:var(--faint);border-radius:8px;padding:5px 8px;font:700 10.5px inherit;cursor:pointer;white-space:nowrap; }
.scene-role-switch button.active { background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-border); }

.review-vocab-section { margin-top:22px;padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--panel);box-shadow:var(--shadow-soft); }
.review-vocab-head { display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px; }
.review-vocab-head small { display:block;color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.15em;margin-bottom:4px; }
.review-vocab-head h3 { margin:0;color:var(--ink);font-size:18px; }
.review-vocab-head > span { flex:0 0 auto;padding:6px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:800; }
.review-vocab-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px; }
.review-vocab-item { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 15px;border:1px solid var(--line);border-radius:16px;background:var(--panel-2); }
.review-vocab-item b { display:block;color:var(--ink);font-size:15px;line-height:1.35; }
.review-vocab-item p { margin:5px 0;color:var(--muted);font-size:13px;line-height:1.5; }
.review-vocab-item small { color:var(--faint);font-size:10.5px; }
.review-vocab-item button { flex:0 0 auto;width:36px;height:36px;border:1px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer; }
.review-vocab-empty { padding:22px;border:1px dashed var(--line);border-radius:16px;color:var(--faint);text-align:center;font-size:13px; }
.scene-goal-switch { display:flex!important;gap:3px!important;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--panel); }
.scene-goal-switch button { border:0;background:transparent;color:var(--faint);border-radius:999px;padding:5px 9px;font:700 11px inherit;cursor:pointer; }
.scene-goal-switch button.active { color:#fff;background:var(--accent); }
.scene-timer-progress { --lesson-progress:0%;min-width:112px;padding:5px 10px 5px 13px;border-radius:13px;background:linear-gradient(90deg,var(--accent) var(--lesson-progress),var(--panel-2) 0);box-shadow:inset 0 0 0 1px var(--line); }
.scene-timer-progress > div { display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:2px 7px;border-radius:9px;background:var(--panel); }
.scene-timer-progress small { color:var(--faint);font-size:9.5px;font-weight:700; }
.scene-timer-progress strong { color:var(--accent);font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:.03em; }
.scene-session-footer { margin-top:10px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:9px 10px 9px 13px;border-top:1px solid var(--line);color:var(--muted); }
.scene-session-footer > span { font-size:12px;font-weight:800;color:var(--accent);font-variant-numeric:tabular-nums; }
.scene-session-footer > small { font-size:10.5px;color:var(--faint); }
.scene-session-footer .primary-btn { padding:9px 14px;font-size:12px; }
.scene-session-footer .primary-btn:disabled { opacity:.42;cursor:not-allowed;box-shadow:none; }

/* 纯场景入口：目录像一本场景手册，计时目标像课程时钟。 */
.scene-chat-hero {
  position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(250px,.6fr);gap:28px;
  margin-bottom:18px;padding:34px 38px;border:1px solid #d9dcff;border-radius:26px;
  background:linear-gradient(125deg,#f5f4ff 0%,#eef4ff 55%,#f8fbff 100%);box-shadow:var(--shadow);
}
.scene-chat-hero::after { content:"";position:absolute;right:-64px;top:-98px;width:280px;height:280px;border:52px solid rgba(99,102,241,.07);border-radius:50%;pointer-events:none; }
.scene-chat-hero > div { position:relative;z-index:1; }
.scene-chat-eyebrow { display:block;margin-bottom:10px;color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.15em; }
.scene-chat-hero h2 { margin:0;font-size:32px;line-height:1.22;letter-spacing:-.04em;color:var(--ink); }
.scene-chat-hero p { max-width:660px;margin:14px 0 0;color:var(--muted);font-size:13px;line-height:1.75; }
.scene-hub-goal { align-self:center;display:grid;gap:10px;padding:18px;border:1px solid rgba(99,102,241,.18);border-radius:19px;background:rgba(255,255,255,.78);backdrop-filter:blur(10px); }
.scene-hub-goal small { color:var(--faint);font-size:10px;font-weight:800;letter-spacing:.1em; }
.scene-hub-goal > div { display:grid;grid-template-columns:1fr 1fr;gap:7px; }
.scene-hub-goal button { border:1px solid var(--line);border-radius:12px;background:var(--panel-2);color:var(--muted);padding:10px 12px;font:700 13px inherit;cursor:pointer; }
.scene-hub-goal button.active { border-color:transparent;background:var(--accent-grad);color:#fff;box-shadow:0 7px 18px rgba(99,102,241,.22); }
.scene-hub-goal > span { color:var(--faint);font-size:10.5px;line-height:1.45; }
.scene-mode-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0; }
.scene-mode-card { position:relative;display:flex;min-height:238px;padding:28px 30px;flex-direction:column;align-items:flex-start;border:1px solid var(--line);border-radius:24px;background:var(--panel);box-shadow:var(--shadow);color:var(--ink);text-align:left;cursor:pointer;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.scene-mode-card::after { content:"";position:absolute;right:-44px;bottom:-66px;width:180px;height:180px;border:34px solid color-mix(in srgb,var(--mode-color) 12%,transparent);border-radius:50%;pointer-events:none; }
.scene-mode-card.practice { --mode-color:#6366f1; }
.scene-mode-card.review { --mode-color:#8b5cf6; }
.scene-mode-card:hover { transform:translateY(-3px);border-color:color-mix(in srgb,var(--mode-color) 45%,var(--line));box-shadow:0 20px 42px rgba(33,40,100,.13); }
.scene-mode-card:focus-visible { outline:3px solid color-mix(in srgb,var(--mode-color) 30%,transparent);outline-offset:3px; }
.scene-mode-icon { width:48px;height:48px;display:grid;place-items:center;margin-bottom:20px;border-radius:15px;background:color-mix(in srgb,var(--mode-color) 12%,var(--panel));color:var(--mode-color);font-size:25px;font-weight:800; }
.scene-mode-card > small { color:var(--mode-color);font-size:10px;font-weight:850;letter-spacing:.1em; }
.scene-mode-card h3 { margin:5px 0 10px;font-size:25px;letter-spacing:-.035em; }
.scene-mode-card p { max-width:440px;margin:0 0 20px;color:var(--muted);font-size:13px;line-height:1.65; }
.scene-mode-card > b { position:relative;z-index:1;margin-top:auto;padding-top:18px;color:var(--mode-color);font-size:13px; }
.scene-mode-stats { position:relative;z-index:1;display:flex;gap:7px;flex-wrap:wrap;margin-top:12px; }
.scene-mode-stats span { padding:5px 9px;border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:10.5px;font-weight:750; }
.scene-resume-wide { width:100%;margin:0 0 26px; }
.custom-scene-builder { display:grid;grid-template-columns:minmax(220px,.62fr) minmax(0,1.38fr);gap:28px;margin-bottom:28px;padding:26px;border:1px solid #ddd8ff;border-radius:24px;background:linear-gradient(130deg,#f7f5ff,#f2f6ff);box-shadow:var(--shadow); }
.custom-scene-copy small { color:#8b5cf6;font-size:9.5px;font-weight:900;letter-spacing:.13em; }
.custom-scene-copy h3 { margin:7px 0 8px;font-size:23px;letter-spacing:-.03em; }
.custom-scene-copy p { max-width:320px;margin:0;color:var(--muted);font-size:12.5px;line-height:1.7; }
.custom-scene-form { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px; }
.custom-scene-form label { display:grid;gap:6px; }
.custom-scene-form label.wide { grid-column:1 / -1; }
.custom-scene-form label > span { color:var(--faint);font-size:10px;font-weight:800; }
.custom-scene-form input,.custom-scene-form textarea { width:100%;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);font:inherit;font-size:13px;padding:11px 12px;outline:none; }
.custom-scene-form textarea { min-height:62px;resize:vertical; }
.custom-scene-form input:focus,.custom-scene-form textarea:focus { border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft); }
.custom-scene-form .primary-btn { grid-column:1 / -1;justify-self:end; }
.custom-list-head { margin-top:0; }
.custom-scene-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.custom-scene-card { display:flex;align-items:flex-end;justify-content:space-between;gap:18px;min-height:170px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:var(--shadow-soft); }
.custom-scene-card > div:first-child { min-width:0; }
.custom-scene-card > div:first-child > span { color:#8b5cf6;font-size:10px;font-weight:900;letter-spacing:.1em; }
.custom-scene-card h3 { margin:6px 0;font-size:17px; }
.custom-scene-card p { margin:0 0 9px;color:var(--muted);font-size:12px;line-height:1.55; }
.custom-scene-card small { color:var(--accent);font-size:10.5px;font-weight:750; }
.custom-scene-card > div:last-child { display:flex;align-items:center;gap:7px;flex:0 0 auto; }
.custom-scene-card .primary-btn { padding:9px 12px;font-size:11.5px; }
.custom-scene-card .icon-btn { width:34px;height:34px;color:var(--faint); }
[data-theme="dark"] .custom-scene-builder { border-color:#343858;background:linear-gradient(130deg,#242641,#20253d); }
.scene-hub-quick { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:28px; }
.scene-resume-card,.scene-review-card { min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:13px;padding:16px 18px;border:1px solid var(--line);border-radius:17px;background:var(--panel);box-shadow:var(--shadow);text-align:left;color:var(--ink);cursor:pointer;transition:.18s ease; }
.scene-resume-card:hover,.scene-review-card:hover { transform:translateY(-2px);border-color:var(--accent-border);box-shadow:var(--shadow-hover); }
.scene-resume-card > span,.scene-review-card > span { width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--accent-soft);color:var(--accent);font-size:22px;font-weight:800; }
.scene-resume-card > div,.scene-review-card > div { display:grid;gap:2px;min-width:0; }
.scene-resume-card small,.scene-review-card small { color:var(--faint);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase; }
.scene-resume-card b,.scene-review-card b { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px; }
.scene-resume-card em,.scene-review-card em { color:var(--muted);font-size:11.5px;font-style:normal; }
.scene-resume-card > i,.scene-review-card > i { color:var(--accent);font-size:11px;font-weight:800;font-style:normal;white-space:nowrap; }
.scene-hub-section { display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 2px 13px; }
.scene-hub-section span { color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase; }
.scene-hub-section h3 { margin:4px 0 0;font-size:20px;letter-spacing:-.02em; }
.scene-hub-section > small { color:var(--faint);font-size:11px; }
.scene-chat-cats { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px; }
.scene-chat-cat { --scene-color:var(--accent);position:relative;min-height:142px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:17px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);text-align:left;cursor:pointer;overflow:hidden;box-shadow:var(--shadow);transition:.18s ease; }
.scene-chat-cat::before { content:"";position:absolute;inset:0 auto auto 0;width:100%;height:4px;background:var(--scene-color); }
.scene-chat-cat:hover { transform:translateY(-3px);border-color:color-mix(in srgb,var(--scene-color) 40%,var(--line));box-shadow:var(--shadow-hover); }
.scene-chat-cat > span { width:39px;height:39px;display:grid;place-items:center;margin-bottom:9px;border-radius:12px;background:color-mix(in srgb,var(--scene-color) 10%,white);font-size:20px; }
.scene-chat-cat b { font-size:14px; }
.scene-chat-cat small { color:var(--faint);font-size:10.5px; }
.scene-chat-cat i { position:absolute;right:15px;bottom:14px;color:var(--scene-color);font-style:normal;font-weight:800; }
.scene-sub-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.scene-sub-card { min-height:118px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr auto;gap:5px 13px;padding:18px;border:1px solid var(--line);border-radius:17px;background:var(--panel);color:var(--ink);text-align:left;cursor:pointer;box-shadow:var(--shadow);transition:.18s ease; }
.scene-sub-card:hover { transform:translateY(-2px);border-color:var(--accent-border);box-shadow:var(--shadow-hover); }
.scene-sub-card > span { grid-row:1 / 4;color:var(--accent);font-size:11px;font-weight:800;font-variant-numeric:tabular-nums; }
.scene-sub-card b { font-size:15px; }
.scene-sub-card small { color:var(--muted);font-size:11.5px; }
.scene-sub-card i { align-self:end;color:var(--accent);font-size:11px;font-style:normal;font-weight:800; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 6px 6px 6px 2px; }

.bubble-row { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; animation: bubbleIn 0.28s ease; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.coach-row { justify-content: flex-start; }
.user-row { justify-content: flex-end; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0; box-shadow: var(--shadow);
}
.coach-ava { background: var(--accent); }
.user-ava { background: var(--panel-2); border: 1px solid var(--line); }
.bubble { max-width: 76%; padding: 12px 16px; border-radius: 18px; font-size: 14.5px; line-height: 1.65; }
.bubble.coach {
  background: var(--coach-bubble); border: 1px solid var(--line);
  align-self: flex-start; border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(18, 26, 80, 0.04), 0 6px 20px rgba(18, 26, 80, 0.06);
}
.bubble.user {
  background: var(--accent-grad); color: #fff;
  align-self: flex-end; border-bottom-right-radius: 6px;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.30);
}
.bubble-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.bubble .who { font-size: 11px; opacity: 0.8; display: block; font-weight: 700; letter-spacing: 0.3px; }
.bubble.coach .who { color: var(--accent); opacity: 1; }
.bubble.user .who { color: rgba(255, 255, 255, 0.8); }
.scenario-review .bubble-row[data-turn-id] { cursor: default; border-radius: 18px; transition: background .18s, box-shadow .18s; }
.scenario-review.open-scene-chat .bubble-row[data-turn-id] { cursor:pointer; }
.scenario-review.open-scene-chat .bubble-row[data-turn-id]:focus-visible { outline:2px solid var(--accent);outline-offset:4px; }
.scenario-review .bubble-row.review-selected { background: rgba(99,102,241,.07); box-shadow: 0 0 0 5px rgba(99,102,241,.07); }

/* 追问高亮标签（渐变 pill） */
.q-tag { font-size: 10px; font-weight: 800; padding: 2.5px 9px; border-radius: 999px; letter-spacing: 0.4px; color: #fff; }
.tag-follow-up { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.tag-challenge { background: linear-gradient(135deg, #FB923C, #F97316); }
.tag-clarification { background: linear-gradient(135deg, #FACC15, #EAB308); color: #2A2400; }
.tag-场景接话 { background:linear-gradient(135deg,#14b8a6,#0f8f83); }

/* 教练提问下的参考思路 */
.coach-hint {
  margin: -6px 0 6px 48px; padding: 9px 13px; font-size: 12.5px; line-height: 1.6;
  color: var(--muted); background: var(--panel-2);
  border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
}
.coach-hint b { color: var(--ink); }
.coach-hint.framework { border-left-color: var(--accent-2); margin-top: 6px; }
.fw-mini { display: inline; margin-right: 2px; }
.fw-mini b { color: var(--accent-2); }

/* 底部：快捷按钮 + 输入框 */
.quick-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.qa-btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: 0.15s; font-family: inherit;
}
.qa-btn:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft); }
.live-hint-mini {
  margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 600;
  background: var(--panel-2); border-radius: 999px; padding: 5px 12px;
}
.quick-hint {
  margin-top: 10px; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--accent-border); color: var(--ink);
}
.quick-hint b { color: var(--accent); }
.input-bar { display: flex; gap: 10px; margin-top: 12px; }
.input-bar textarea {
  flex: 1; resize: none; height: 54px; padding: 13px 15px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font-size: 14.5px; font-family: inherit;
  transition: 0.15s;
}
.input-bar textarea:focus { outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.input-bar .primary-btn { padding: 0 20px; border-radius: 14px; }
.input-hint {
  margin-top: 14px; padding: 13px 16px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13.5px; font-weight: 600; text-align: center;
}
.conversation-thinking,
.conversation-complete {
  margin-top:14px;min-height:58px;border:1px solid var(--line);border-radius:14px;
  display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px;
  background:linear-gradient(135deg,var(--panel),var(--panel-2));color:var(--muted);
}
.conversation-thinking .typing-avatar { width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--accent);font-size:17px; }
.conversation-thinking > span:last-child { display:flex;align-items:center;gap:5px;font-style:normal; }
.conversation-thinking b { color:var(--ink);margin-right:4px; }
.conversation-thinking i,
.conversation-focus-pulse i { width:5px;height:5px;border-radius:50%;background:var(--accent);animation:talkDot 1.1s infinite; }
.conversation-thinking i:nth-of-type(2),.conversation-focus-pulse i:nth-of-type(2) { animation-delay:.16s; }
.conversation-thinking i:nth-of-type(3),.conversation-focus-pulse i:nth-of-type(3) { animation-delay:.32s; }
@keyframes talkDot { 0%,70%,100%{opacity:.25;transform:translateY(0)} 35%{opacity:1;transform:translateY(-3px)} }
.conversation-complete { flex-direction:column;gap:2px;text-align:center;background:linear-gradient(135deg,#f2f0ff,#f5fbff);border-color:#d9dcff; }
.conversation-complete b { color:var(--accent);font-size:14px; }
.conversation-complete span { font-size:12.5px; }

/* 合格练习后的中文转英文补练：先作答，再开放参考表达。 */
.zh-retry-invite { display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:10px;padding:14px 14px 14px 16px;border:1px solid #d9dcff;border-radius:16px;background:linear-gradient(105deg,#f4f2ff,#f3f8ff);box-shadow:0 9px 24px rgba(86,77,190,.08); }
.zh-retry-invite > div { display:grid;gap:3px;min-width:0; }
.zh-retry-invite small,.zh-retry-card header small,.zh-retry-card.is-complete > div > small { color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.13em; }
.zh-retry-invite b { color:var(--ink);font-size:14px; }
.zh-retry-invite span { color:var(--muted);font-size:11.5px;line-height:1.45; }
.zh-retry-invite .primary-btn { flex:0 0 auto;padding:10px 14px;font-size:12px; }
.zh-retry-invite.is-done { border-color:#bee8d4;background:linear-gradient(105deg,#effbf5,#f5fbff); }
.zh-retry-invite.is-done small { color:#12805c; }
.zh-retry-card { margin-top:10px;padding:16px;border:1px solid #d9dcff;border-radius:17px;background:var(--panel);box-shadow:0 12px 28px rgba(74,66,170,.1); }
.zh-retry-card header { display:flex;align-items:flex-end;justify-content:space-between;gap:14px; }
.zh-retry-card header h3 { margin:3px 0 0;font-size:17px; }
.zh-retry-card header > span { color:var(--accent);font-size:11px;font-weight:900;font-variant-numeric:tabular-nums; }
.zh-retry-progress { height:4px;margin:10px 0 12px;border-radius:999px;background:var(--line);overflow:hidden; }
.zh-retry-progress i { display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5f67f2,#8b5cf6);transition:width .24s ease; }
.zh-retry-context { display:flex;gap:9px;align-items:baseline;margin-bottom:9px;padding:8px 10px;border-radius:10px;background:var(--panel-2);color:var(--muted);font-size:11.5px; }
.zh-retry-context small { flex:0 0 auto;color:var(--faint);font-size:9.5px;font-weight:800; }
.zh-retry-prompt { display:grid;gap:5px;padding:12px 13px;border-left:3px solid var(--accent);border-radius:4px 12px 12px 4px;background:#f5f3ff; }
.zh-retry-prompt small { color:var(--accent);font-size:10px;font-weight:800; }
.zh-retry-prompt b { color:var(--ink);font-size:15px;line-height:1.5; }
.zh-retry-input { display:grid;grid-template-columns:minmax(0,1fr) 48px auto;gap:8px;margin-top:11px; }
.zh-retry-input textarea { min-height:50px;max-height:94px;resize:vertical;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);color:var(--ink);font:13px/1.45 inherit;outline:none; }
.zh-retry-input textarea:focus { border-color:var(--accent);background:var(--panel);box-shadow:0 0 0 3px var(--accent-soft); }
.zh-retry-input .primary-btn { padding:0 15px;font-size:12px; }
.zh-retry-compare { display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px; }
.zh-retry-compare > div { min-width:0;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2); }
.zh-retry-compare > div:last-child { border-color:#cdd4ff;background:#f1f4ff; }
.zh-retry-compare small { display:block;margin-bottom:4px;color:var(--faint);font-size:9.5px;font-weight:800; }
.zh-retry-compare p { margin:0;color:var(--ink);font-size:12.5px;line-height:1.5; }
.zh-retry-compare .speak-btn { margin-top:7px;width:auto;height:auto;padding:5px 8px;border-radius:8px;font-size:10.5px; }
.zh-retry-actions { display:flex;justify-content:flex-end;gap:8px;margin-top:10px; }
.zh-retry-card.is-complete { display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;border-color:#bde7d2;background:linear-gradient(105deg,#effbf5,#f7fbff); }
.zh-retry-check { width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#19a66f;color:#fff;font-size:20px;font-weight:900; }
.zh-retry-card.is-complete h3 { margin:3px 0 4px;font-size:16px; }
.zh-retry-card.is-complete p { margin:0;color:var(--muted);font-size:11.5px;line-height:1.5; }
.zh-retry-complete-actions { display:flex;gap:7px; }

/* 情景对话结束后的逐轮“对话胶片” */
.review-reel-head { display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:8px; }
.review-reel-head span { color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.08em; }
.review-reel-head h3 { margin:2px 0 0!important;line-height:1.35; }
.review-reel-head > b { flex:none;border-radius:999px;background:var(--accent-soft);color:var(--accent);padding:5px 9px;font-size:11px; }
.review-reel-note { color:var(--faint);font-size:12px;line-height:1.55;padding:8px 10px;background:var(--panel-2);border-radius:10px;margin-bottom:10px; }
.review-reel { position:relative;overflow-y:auto;min-height:0;padding:2px 4px 8px 11px; }
.review-reel::before { content:"";position:absolute;left:24px;top:16px;bottom:16px;width:2px;background:var(--line); }
.review-turn { position:relative;width:100%;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:start;text-align:left;border:1px solid transparent;background:transparent;border-radius:13px;padding:9px 7px 9px 0;margin-bottom:5px;color:var(--ink);font-family:inherit;cursor:pointer;transition:.16s; }
.review-turn:hover { background:var(--panel-2); }
.review-turn.active { background:linear-gradient(135deg,var(--accent-soft),rgba(255,255,255,.7));border-color:var(--accent-border);box-shadow:0 7px 18px rgba(99,102,241,.1); }
.review-turn-no { position:relative;z-index:1;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--panel);border:2px solid var(--line);color:var(--faint);font-size:10px;font-weight:800; }
.review-turn.active .review-turn-no { color:#fff;background:var(--accent);border-color:var(--accent); }
.review-turn-copy { min-width:0;display:grid;gap:3px; }
.review-turn-copy small { color:var(--faint);font-size:10px;font-weight:800; }
.review-turn-copy b,.review-turn-copy span { overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4; }
.review-turn-copy b { font-size:12.5px; }
.review-turn-copy span { font-size:12px;color:var(--muted); }
.review-turn-score { min-width:28px;margin-top:3px;color:var(--accent);font-size:10.5px;font-weight:800;text-align:right; }

.conversation-focus { padding:28px 10px;text-align:center;color:var(--faint); }
.conversation-focus-icon { margin:0 auto 11px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:28px;box-shadow:inset 0 0 0 1px var(--accent-border); }
.conversation-focus h3 { color:var(--ink);margin:0 0 7px;font-size:15px; }
.conversation-focus p { margin:0;line-height:1.7;font-size:12.5px; }
.conversation-focus-pulse { display:flex;align-items:center;justify-content:center;gap:5px;margin-top:16px;color:var(--accent);font-size:11.5px;font-weight:700; }
.conversation-focus-pulse span { margin-left:3px; }
.conversation-focus.compact { padding:34px 8px; }
.review-context-mini { display:grid;gap:4px;background:var(--panel-2);border:1px solid var(--line);border-radius:11px;padding:10px 11px;margin-bottom:12px;font-size:12px;line-height:1.5; }
.review-context-mini small { color:var(--accent);font-size:10px;font-weight:800; }
.review-inspector-head { display:grid;gap:5px;margin-bottom:14px;padding:11px 12px;border-radius:12px;background:linear-gradient(135deg,var(--accent-soft),var(--panel-2));border:1px solid var(--accent-border); }
.review-inspector-head span { color:var(--accent);font-size:10.5px;font-weight:900;letter-spacing:.08em; }
.review-inspector-head b { font-size:13px;line-height:1.5; }
.review-inspector-head small { color:var(--muted);font-size:11.5px;line-height:1.5; }
.mic-btn {
  width: 54px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); font-size: 20px; cursor: pointer; transition: 0.15s;
}
.mic-btn:hover { background: var(--panel-2); border-color: var(--accent-border); }
.mic-btn.recording { background: var(--bad); color: #fff; border-color: var(--bad); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.45); } 70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }

/* 左栏材料逐句 */
.turn-line { padding: 7px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.6; }
.turn-line .role { font-weight: 700; font-size: 11.5px; }
.turn-line.roleA .role { color: var(--accent); }
.turn-line.roleB .role { color: var(--accent-2); }
.turn-line.current { background: var(--accent-soft); border-radius: 9px; padding-left: 9px; padding-right: 9px; }
.turn-line.version-sub { padding-top: 0; padding-bottom: 0; background: transparent; border-left: none; }
.turn-line.version-sub .role { visibility: hidden; }

/* 分段面试进度 */
.seg-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; padding: 9px 11px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.seg-step { display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; color: var(--faint); border: 1px solid transparent; opacity: 0.65; font-weight: 600; }
.seg-step .seg-ico { font-size: 13px; }
.seg-step.done { opacity: 1; background: var(--good-soft); color: var(--good); border-color: rgba(34, 197, 94, 0.3); }
.seg-step.active { opacity: 1; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3); }

/* 限时倒计时 */
.timer-track { margin-top: 12px; height: 9px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #22C55E, #6366F1); transition: width 1s linear; }
.timer-fill.low { background: linear-gradient(90deg, #F59E0B, #F43F5E); }
.timer-hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }

/* ============ 右栏：实时反馈与得分 ============ */
.fb-empty { color: var(--faint); font-size: 13.5px; line-height: 1.8; text-align: center; padding: 18px 6px; }
.fb-empty strong { color: var(--accent); }
.fb-empty span { font-size: 12.5px; }
.fb-row { margin-bottom: 15px; }
.fb-row .k { font-size: 11.5px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.fb-user-said {
  background: var(--panel-2); border-left: 3px solid var(--accent);
  padding: 10px 13px; border-radius: 0 12px 12px 0; font-size: 13.5px; line-height: 1.6;
}
.score-ring {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--accent) 0deg, var(--accent-2) var(--deg, 0deg), var(--panel-2) var(--deg, 0deg));
}
.score-ring span { background: var(--panel); width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: -0.4px; }
.corr-item { background: var(--panel-2); border-radius: 12px; padding: 10px 13px; margin-bottom: 8px; }
.corr-title { color: var(--bad); font-size: 13px; font-weight: 600; }
.corr-suggest { color: var(--good); font-weight: 700; margin-top: 4px; font-size: 13.5px; }
.corr-why { color: var(--faint); font-size: 12.5px; margin-top: 4px; }
.ref-version { background: var(--panel-2); border-radius: 12px; padding: 10px 13px; margin-bottom: 10px; font-size: 13.5px; line-height: 1.6; }
.ref-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ref-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2.5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.ref-tag.fresh { background: linear-gradient(135deg, #60A5FA, #3B82F6); color: #fff; }
.ref-tag.pro { background: linear-gradient(135deg, #4ADE80, #22C55E); color: #052E16; }
.speak-btn { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 3px 7px; cursor: pointer; font-size: 14px; line-height: 1; transition: 0.15s; }
.speak-btn:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.material-text .ref-version { margin-bottom: 8px; padding: 8px 10px; }
.material-text .ref-version:last-child { margin-bottom: 0; }
.fb-orig { color: var(--bad); text-decoration: line-through; opacity: 0.8; }
.fb-better { color: var(--good); font-weight: 600; line-height: 1.6; }
.fb-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* 实时分析 */
.fb-sub { font-size: 11.5px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 8px; }
.live-analysis { background: var(--panel-2); border-radius: 14px; padding: 4px 14px; margin-bottom: 14px; }
.live-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.55; }
.live-item:last-child { border-bottom: none; }
.live-item .li-ico { font-size: 15px; flex: none; line-height: 1.4; }
.live-item b { color: var(--ink); }
.live-item.ok { border-left: 3px solid #22C55E; padding-left: 10px; }
.live-item.ok b { color: var(--good); }
.live-item.warn { border-left: 3px solid #F59E0B; padding-left: 10px; }
.live-item.warn b { color: var(--warn); }
.live-item.skip { border-left: 3px solid var(--line); padding-left: 10px; }
.grammar-err { background: rgba(250, 204, 21, 0.4); color: #854D0E; padding: 0 3px; border-radius: 4px; text-decoration: underline wavy #D97706; }
[data-theme="dark"] .grammar-err { background: rgba(245, 158, 11, 0.25); color: #FDE68A; }
.grammar-chip { display: inline-block; background: rgba(249, 115, 22, 0.10); color: #C2410C; border: 1px solid rgba(249, 115, 22, 0.28); border-radius: 8px; padding: 2px 8px; margin: 2px 4px 2px 0; font-size: 12px; cursor: help; }
.grammar-chip i { display: block; font-style: normal; color: #9A3412; font-size: 11px; margin-top: 1px; }
[data-theme="dark"] .grammar-chip { background: rgba(249, 115, 22, 0.14); color: #FDBA74; border-color: rgba(249, 115, 22, 0.3); }
[data-theme="dark"] .grammar-chip i { color: #FDBA74; }
.repeat-chip { display: inline-block; background: rgba(250, 204, 21, 0.16); color: #854D0E; border: 1px solid rgba(234, 179, 8, 0.3); border-radius: 8px; padding: 2px 8px; margin: 2px 4px 2px 0; font-size: 12px; }
[data-theme="dark"] .repeat-chip { background: rgba(250, 204, 21, 0.12); color: #FDE047; }

/* 一键对比 */
.compare-block { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.compare-col { border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; background: var(--panel-2); }
.compare-h { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--faint); }
.compare-yours { font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.compare-better { font-size: 13.5px; line-height: 1.65; color: var(--good); font-weight: 600; }
.compare-block .grammar-err { background: rgba(245, 158, 11, 0.22); border-radius: 3px; padding: 0 2px; }

/* 词汇 / 框架面板 */
.vocab-item { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.vocab-item:last-child { border-bottom: none; }
.vocab-item b { color: var(--accent); }
.fw-item { padding: 10px 0; border-top: 1px dashed var(--line); }
.fw-item:first-of-type { border-top: none; }
.fw-top { font-size: 13.5px; margin-bottom: 5px; }
.fw-top b { color: var(--accent); }
.fw-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-step { font-size: 11.5px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; }
.fw-step b { color: var(--accent-2); margin-right: 3px; }

/* ============ 模式选择页（训练舱配置） ============ */
.mode-select-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cfg-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 20px; }
.cfg-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.cfg-row + .cfg-row { border-top: 1px dashed var(--line); }
.cfg-label { width: 88px; flex: none; font-size: 13px; font-weight: 700; color: var(--faint); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer; transition: 0.15s; font-family: inherit; }
.chip:hover { border-color: var(--accent-border); color: var(--accent); }
.chip.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; font-weight: 700; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 16px; }
.mode-card { cursor: pointer; transition: 0.18s; border: 1px solid var(--line); }
.mode-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--shadow-hover); }
.mode-icon {
  width: 46px; height: 46px; border-radius: 14px; font-size: 24px;
  display: grid; place-items: center; margin-bottom: 12px;
  background: linear-gradient(135deg, #EEF0FF, #F5F0FF);
  border: 1px solid #E4E7FF;
}
[data-theme="dark"] .mode-icon { background: var(--accent-soft); border-color: var(--line); }
.mode-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.3px; }
.timed-opt { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.tiny-btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; transition: 0.15s; font-family: inherit; }
.tiny-btn:hover { border-color: var(--accent-border); }
.tiny-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.mode-card { position: relative; }
.mode-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-border), var(--shadow); }
.mode-rec {
  position: absolute; top: -10px; right: 14px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(135deg, #FB923C, #F97316); color: #fff;
  padding: 3px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.mode-fit { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.mode-desc { margin-bottom: 0; }
.mode-actions { display: flex; gap: 8px; margin-top: 14px; align-items: stretch; }
.mode-actions .mode-start { flex: 1; padding: 9px 12px; font-size: 13.5px; }
.mode-actions .set-plan-btn { margin: 0; width: auto; flex: none; padding: 8px 13px; font-size: 12.5px; border-style: solid; border-color: var(--line); color: var(--muted); background: var(--panel); }
.mode-actions .set-plan-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.set-plan-btn {
  border: 1px dashed var(--accent-border); background: transparent;
  color: var(--accent); border-radius: 10px; padding: 7px 0; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.15s;
  font-family: inherit;
}

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; background: rgba(17, 19, 26, 0.55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; }
.modal.hidden, .hidden { display: none !important; }
.modal-card { background: var(--panel); width: min(640px, 92vw); max-height: 90vh; overflow-y: auto; border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.modal-head h3 { color: #fff; font-size: 16px; letter-spacing: -0.2px; }
.modal-head .icon-btn { color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.modal-head .icon-btn:hover { color: #fff; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--panel-2); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab { border: none; background: var(--panel-2); color: var(--muted); padding: 8px 15px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; transition: 0.15s; font-family: inherit; }
.tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
textarea, input, select { font-family: inherit; }
textarea#paste-text, #paste-text { width: 100%; min-height: 180px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font-size: 14px; }
#paste-text:focus { outline: none; border-color: var(--accent); background: var(--panel); }
.modal-body label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.modal-body input[type=text], .modal-body select { width: 100%; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); }
.modal-body input[type=text]:focus, .modal-body select:focus { outline: none; border-color: var(--accent); background: var(--panel); }
.status-line { font-size: 13px; color: var(--muted); margin: 10px 0; min-height: 18px; }
.parse-preview { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.parse-preview .pv-turn { font-size: 13.5px; padding: 5px 0; }
.parse-preview .pv-role { font-weight: 700; color: var(--accent); }

/* ============ 复盘 / 个人中心 / 计划 ============ */
.rev-session { padding: 20px; margin-bottom: 18px; }
.rev-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.rev-score { text-align: center; }
.rev-score-num { font-size: 48px; font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; }
.rev-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.rev-meta b { color: var(--faint); font-weight: 600; margin-right: 4px; }
.rev-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.rev-block { padding: 16px; }
.rev-block h3 { margin-bottom: 12px; }
.rev-q { margin: 0; padding-left: 20px; }
.rev-q li { margin-bottom: 8px; line-height: 1.55; font-size: 14px; }
.rev-best { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rev-best:last-child { border-bottom: none; }
.rev-best-score { flex: none; background: linear-gradient(135deg, #4ADE80, #22C55E); color: #052E16; font-weight: 800; border-radius: 8px; padding: 2px 9px; font-size: 12.5px; }
.rev-best div { font-size: 14px; line-height: 1.55; }
.rev-fix { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rev-fix:last-child { border-bottom: none; }
.rev-fix-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rev-fix-orig { color: var(--bad); font-size: 13.5px; margin-bottom: 3px; }
.rev-fix-sug { color: var(--good); font-size: 14px; font-weight: 700; }
.rev-better { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rev-better:last-child { border-bottom: none; }
.rev-better-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 3px; }
.rev-better-old { color: var(--muted); font-size: 13.5px; line-height: 1.55; background: var(--panel-2); border-radius: 10px; padding: 8px 11px; }
.rev-better-new { color: var(--ink); font-size: 14.5px; line-height: 1.65; background: var(--good-soft); border: 1px solid rgba(34, 197, 94, 0.3); border-radius: 10px; padding: 9px 12px; }
.copy-btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 3px 11px; font-size: 12px; cursor: pointer; transition: 0.15s; font-family: inherit; }
.copy-btn:hover { border-color: var(--accent-border); color: var(--accent); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.kpi { text-align: center; }
.kpi .num { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; }
.review-card-item { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-bottom: 10px; background: var(--panel); }
.review-card-item .q { font-weight: 600; }
.review-card-item .a { color: var(--muted); font-size: 13.5px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13.5px; }
.bar-track { flex: 1; height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

/* 练习计划页 */
.plan-today, .plan-resume { padding: 18px 20px; }
.plan-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px; padding: 3.5px 12px; margin-bottom: 10px;
}
.plan-resume .plan-badge { background: linear-gradient(135deg, #4ADE80, #22C55E); color: #052E16; }
.empty-plan p { margin: 6px 0 12px; }
.plan-pick h4 { margin: 0 0 4px; font-size: 14.5px; }
.plan-mode-sel { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 9px; padding: 5px 9px; font-size: 13px; }
.plan-set { border: 1px solid var(--accent-border); color: var(--accent); background: transparent; border-radius: 9px; padding: 5px 13px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.15s; font-family: inherit; }
.plan-set:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

/* ============ Toast / 划词翻译 ============ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #11131A; color: #F7F7FB; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; z-index: 100;
  box-shadow: 0 12px 40px rgba(18, 26, 80, 0.28);
}
[data-theme="dark"] .toast { background: #EAECF5; color: #11131A; }
.lookup-box { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px dashed var(--line); font-size: 12.5px; }
.lookup-box.hidden { display: none; }
.lookup-box .lookup-tip { color: var(--faint); }
.lookup-float {
  position: fixed; z-index: 200; max-width: 300px; min-width: 170px;
  max-height: 42vh; overflow-y: auto;
  padding: 10px 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-hover); font-size: 13px; line-height: 1.6;
  animation: popIn 0.12s ease;
}
.lookup-close {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px;
  border: none; background: transparent; color: var(--faint);
  font-size: 12px; cursor: pointer; border-radius: 6px; line-height: 1;
}
.lookup-close:hover { background: var(--panel-2); color: var(--ink); }
.lookup-float .lookup-head { padding-right: 20px; }

/* 发音指南：音标 + 连读/弱读/略读 */
.pron-sent { font-size: 14px; font-weight: 700; line-height: 1.6; padding: 8px 11px; background: var(--panel-2); border-radius: 10px; margin-bottom: 8px; }
.pron-actions { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pron-ipa {
  font-family: "Segoe UI", "Charis SIL", Georgia, serif;
  font-size: 15px; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-border); border-radius: 10px;
  padding: 8px 11px; margin-bottom: 8px; line-height: 1.7; word-break: break-word;
}
.pron-words { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 8px; word-break: break-word; }
.pron-tip { padding: 8px 10px; background: var(--panel-2); border-left: 3px solid var(--accent-2); border-radius: 0 9px 9px 0; margin-bottom: 6px; font-size: 12.5px; }
.pron-tip .from { color: var(--ink); }
.pron-tip .to { color: var(--orange); }
.pron-tip .why { color: var(--muted); margin-top: 2px; line-height: 1.55; }
.pron-panel-box { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.lookup-float.hidden { display: none; }
.lookup-float .lookup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.lookup-float .lookup-sel { color: var(--accent); font-weight: 700; word-break: break-word; flex: 1; }
.lookup-float .lookup-speak { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 3px 7px; cursor: pointer; font-size: 14px; line-height: 1; transition: 0.15s; }
.lookup-float .lookup-speak:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.lookup-float .lookup-save { display:block;width:100%;margin-top:6px;padding:6px 10px;border:1px dashed #6c5ce7;border-radius:6px;background:#f8f9fc;color:#6c5ce7;font-size:12px;cursor:pointer;text-align:center;transition:all .2s; }.lookup-float .lookup-save:hover { background:#ede7f6; }.lookup-float .lookup-save.saved { border-style:solid;background:#e8f5e9;color:#2e7d32;cursor:default; }
.lookup-float .lookup-res { color: var(--ink); }
@keyframes popIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
  .practice-wrap { grid-template-columns: 250px minmax(0, 1fr) 288px; gap: 14px; }
  .hero-inner { gap: 26px; padding: 38px 36px 36px; }
}
@media (max-width: 1024px) {
  .practice-wrap { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pw-mid .chat-panel { min-height: 60vh; }
  .chat { max-height: 48vh; }
  .pw-right { overflow: visible; }
  body.no-scroll, body.no-scroll .view { height: auto; overflow: visible; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-content: flex-start; }
  .sim-card { max-width: 420px; }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .cols-2, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
  .view { padding: 20px 16px 32px; }
  .hero-inner { padding: 30px 24px 28px; }
  .bubble { max-width: 86%; }
  .coach-hint { margin-left: 0; }
  .cfg-card-head { flex-wrap: wrap; }
  .cfg-mini-row { flex-wrap: wrap; }
  .input-bar textarea { min-width: 0; }
  .chat-head { flex-wrap: wrap; }
  .panel { min-width: 0; }
}
@media (max-width: 720px) {
  .rev-cols, .compare-block { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
}
@media (max-width: 520px) {
  .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .live-hint-mini { display: none; }
}

/* =====================================================================
   v9.1 · 三段式首页 / 材料管理 / 模式推荐 / 教练式反馈 / 周计划 / 画像
   ===================================================================== */

/* ---- 首页：当前状态 + 下一步行动 ---- */
.home-status { margin-bottom: 26px; }
.home-status-line { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.home-status-t { font-size: 13px; font-weight: 800; letter-spacing: 0.4px; color: var(--faint); text-transform: uppercase; }
.home-status-s { font-size: 14px; color: var(--muted); }
.home-status-s b { color: var(--ink); font-weight: 800; }
.home-status .stat-card .num { font-size: 26px; }
.action-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 26px; }
.action-card.primary-action { background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(139, 92, 246, 0.05)); border-color: var(--accent-border); }
.action-badge {
  font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px; padding: 4px 13px; flex: none;
}
.action-badge.ghost-badge { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.action-main { flex: 1; min-width: 220px; }
.action-title { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.action-goal { font-size: 13px; color: var(--muted); margin-top: 4px; }
.action-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; max-width: 340px; font-size: 12px; color: var(--faint); font-weight: 600; }
.action-progress .bar-track { flex: 1; }

/* 推荐理由徽章 */
.rec-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 3px 11px; border-radius: 999px; margin-bottom: 8px;
}
.rec-hot { background: linear-gradient(135deg, #FB923C, #F97316); color: #fff; }
.rec-new { background: linear-gradient(135deg, #C084FC, #A855F7); color: #fff; }
.rec-quick { background: linear-gradient(135deg, #60A5FA, #3B82F6); color: #fff; }
.rec-again { background: linear-gradient(135deg, #2DD4BF, #14B8A6); color: #fff; }
.rec-fix { background: linear-gradient(135deg, #FACC15, #EAB308); color: #2A2400; }
.rec-ok { background: var(--good-soft); color: var(--good); }
.rec-plan { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.mat-stat { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* ---- 模式选择页 ---- */

/* ---- 练习页：进度提示 / 教练点评 / 反馈折叠 ---- */
.progress-chip {
  font-size: 12px; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 3px 11px; border-radius: 999px;
}
.coach-tone {
  display: flex; align-items: flex-start; gap: 4px;
  font-size: 13.5px; line-height: 1.65; color: var(--ink);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
  border: 1px solid var(--accent-border); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 14px;
}
.coach-tone b { color: var(--accent); flex: none; }
details.fb-more { margin: 4px 0 2px; }
details.fb-more summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px dashed var(--accent-border);
  border-radius: 999px; padding: 6px 14px; transition: 0.15s;
}
details.fb-more summary::-webkit-details-marker { display: none; }
details.fb-more summary:hover { background: var(--accent-border); color: var(--ink); }
details.fb-more[open] summary { background: var(--panel-2); color: var(--muted); }
.fb-more-body { padding-top: 14px; }
.fb-more-body .fb-row:first-child { margin-top: 0; }

/* ---- 复盘页：进步点 / 答题方向 / 复习卡动作 / 下次建议 ---- */
.growth-block { padding: 12px 0 2px; }
.growth-row { display: flex; gap: 8px; flex-wrap: wrap; }
.growth-chip { font-size: 12.5px; font-weight: 700; padding: 5px 13px; border-radius: 999px; }
.growth-chip.up { background: var(--good-soft); color: var(--good); border: 1px solid rgba(34, 197, 94, 0.3); }
.growth-chip.flat { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.rev-q-text { font-weight: 600; line-height: 1.5; }
.rev-q-dir { font-size: 12.5px; color: var(--muted); background: var(--panel-2); border-left: 3px solid var(--accent-2); border-radius: 0 8px 8px 0; padding: 6px 10px; margin-top: 5px; line-height: 1.55; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.rc-btns { display: flex; gap: 8px; align-items: center; }
.next-step-card { margin-bottom: 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(249, 115, 22, 0.05)); border: 1px solid var(--accent-border); }
.ns-head { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; flex: none; }
.ns-body { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.ns-body b { color: var(--ink); }

/* ---- 计划页：任务化今日计划 + 周目标 ---- */
.plan-goal-line { font-size: 13.5px; color: var(--muted); background: var(--panel-2); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.plan-progress-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 10px; flex-wrap: wrap; }
.plan-progress-row .bar-track { flex: 1; min-width: 140px; }
.plan-progress-row b { color: var(--accent); }
.plan-tune { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }
.plan-tune select { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 9px; padding: 5px 10px; font-size: 13px; }
.week-badge { background: linear-gradient(135deg, #2DD4BF, #14B8A6); }
.week-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.week-row .bar-track { flex: 1; }
.week-row b { color: var(--accent); }
.week-tune { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--faint); flex-wrap: wrap; }
.week-tune select { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 9px; padding: 5px 10px; font-size: 13px; }

/* ---- 个人中心：阶段 + 画像 ---- */
.stage-card { background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(139, 92, 246, 0.05)); border-color: var(--accent-border); }
.stage-badge {
  display: inline-block; font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  border-radius: 999px; padding: 6px 16px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.portrait-list { list-style: none; }
.portrait-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.portrait-list li:last-child { border-bottom: none; }
.portrait-list b { color: var(--ink); }

/* ---- 导入弹窗：示例模板 / 解析统计 / 成功面板 ---- */
.import-example { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); margin-bottom: 12px; overflow: hidden; }
.ie-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; font-size: 12px; font-weight: 700; color: var(--faint); border-bottom: 1px dashed var(--line); }
.import-example pre { margin: 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.7; font-family: "Geist", Consolas, monospace; color: var(--muted); white-space: pre-wrap; }
.pv-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.pv-stats span { font-size: 12px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--muted); }
.import-success { padding: 40px 28px 30px; text-align: center; }
.import-success .is-ico { font-size: 44px; margin-bottom: 8px; }
.import-success h3 { font-size: 19px; letter-spacing: -0.3px; margin-bottom: 6px; }
.import-success .muted { font-size: 13.5px; margin-bottom: 18px; }
.is-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }

/* ---- 按钮语义：危险/重置 ---- */
.danger-btn {
  background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 9px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.15s;
  font-family: inherit;
}
.danger-btn:hover { background: var(--bad); color: #fff; border-color: var(--bad); }

/* ---- 状态可见性 ---- */
.status-line { color: var(--accent); font-weight: 600; }

/* =====================================================================
   v10 · 场景分流（日常口语 / 面试冲刺）
   ===================================================================== */

/* 首页两大场景入口 */
.scene-entries { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 400px; }
.scene-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 20px; cursor: pointer; transition: 0.18s;
  box-shadow: 0 1px 2px rgba(18, 26, 80, 0.04), 0 10px 30px rgba(18, 26, 80, 0.08);
  font-family: inherit;
}
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent-border); }
.scene-card.sc-daily { border-left: 5px solid #14B8A6; }
.scene-card.sc-interview { border-left: 5px solid #F97316; }
.sc-ico { font-size: 30px; flex: none; }
.sc-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-body b { font-size: 16px; letter-spacing: -0.3px; color: var(--ink); }
.sc-body i { font-style: normal; font-size: 12.5px; color: var(--faint); }
.sc-body em { font-style: normal; font-size: 12.5px; color: var(--accent); font-weight: 700; margin-top: 3px; }
.sc-go { font-size: 20px; color: var(--faint); transition: 0.18s; }
.scene-card:hover .sc-go { color: var(--accent); transform: translateX(3px); }

/* 场景徽章（双标签） */
.scene-badge { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 2.5px 9px; border-radius: 999px; margin-right: 6px; }
.scene-badge.s-daily { background: rgba(20, 184, 166, 0.14); color: #0F766E; }
.scene-badge.s-interview { background: rgba(249, 115, 22, 0.14); color: #C2410C; }
[data-theme="dark"] .scene-badge.s-daily { background: rgba(20, 184, 166, 0.18); color: #5EEAD4; }
[data-theme="dark"] .scene-badge.s-interview { background: rgba(249, 115, 22, 0.18); color: #FDBA74; }

/* 场景 tabs（材料库 / 练习选择器） */
.scene-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.scene-tabs button {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 8px 17px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: 0.15s; font-family: inherit;
}
.scene-tabs button:hover { border-color: var(--accent-border); color: var(--accent); }
.scene-tabs button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }

/* 复盘页场景维度 */
.dim-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.65; }
.dim-row:last-child { border-bottom: none; }
.dim-row .dim-ico { font-size: 16px; flex: none; line-height: 1.5; }
.dim-row b { color: var(--ink); }
.dim-row.ok b { color: var(--good); }
.dim-row.warn b { color: var(--warn); }

/* =====================================================================
   v12 · 表达工坊（中文想法 → 地道英文 → 表达库复习）
   ===================================================================== */
.studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; align-items: start; }
#studio-input {
  width: 100%; min-height: 110px; padding: 13px 15px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font-size: 15px;
  resize: vertical; font-family: inherit; transition: 0.15s;
}
#studio-input:focus { outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.studio-scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.studio-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.ver-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel); }
.ver-card.natural { border-left: 4px solid #22C55E; }
.ver-card.casual { border-left: 4px solid #3B82F6; }
.ver-card.formal { border-left: 4px solid #8B5CF6; }
.ver-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ver-tag { font-size: 11px; font-weight: 800; padding: 2.5px 10px; border-radius: 999px; }
.ver-tag.natural { background: linear-gradient(135deg, #4ADE80, #22C55E); color: #052E16; }
.ver-tag.casual { background: linear-gradient(135deg, #60A5FA, #3B82F6); color: #fff; }
.ver-tag.formal { background: linear-gradient(135deg, #C084FC, #A855F7); color: #fff; }
.ver-btns { display: flex; gap: 6px; align-items: center; }
.ver-body { font-size: 15px; line-height: 1.65; font-weight: 700; }
.notes-list { margin-top: 12px; }
.note-item { font-size: 13px; color: var(--muted); background: var(--panel-2); border-left: 3px solid #F59E0B; border-radius: 0 9px 9px 0; padding: 7px 11px; margin-bottom: 6px; line-height: 1.6; }
.studio-save { margin-top: 14px; }
.phrase-card { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-bottom: 10px; background: var(--panel); transition: 0.2s; }
.phrase-card:hover { border-color: var(--accent-border); }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.ph-zh { font-size: 13px; color: var(--muted); }
.ph-main { font-size: 15.5px; font-weight: 700; line-height: 1.6; transition: 0.2s; }
phrase-card.recalling .ver-text, phrase-card.recalling .ph-ver-text { filter: blur(7px); cursor: pointer; user-select: none; }
.ph-alt { font-size: 12.5px; color: var(--faint); margin-top: 3px; }
.ph-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 8px; }
.mastery { font-size: 12px; color: #D97706; letter-spacing: 2px; font-weight: 800; }
.ph-btns { display: flex; gap: 6px; align-items: center; }
.lookup-hint { color: var(--faint); font-weight: 500; letter-spacing: 0; text-transform: none; }
#lookup-float .lookup-res { white-space: pre-line; }
@media (max-width: 1024px) { .studio-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   v16 · 对话区中文回复自动翻译 + 气泡内查词
   ===================================================================== */
.zh-translation { margin-top: 8px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 10px; padding: 7px 10px; }
.zt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.zt-label { font-size: 10.5px; font-weight: 800; opacity: 0.92; letter-spacing: 0.4px; }
.zh-translation .speak-btn { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.45); color: #fff; font-size: 12px; padding: 1px 6px; }
.zh-translation .speak-btn:hover { background: rgba(255, 255, 255, 0.34); border-color: #fff; color: #fff; }
.zt-text { font-size: 13.5px; font-weight: 700; line-height: 1.55; }
.zt-sentence-list { display: grid; gap: 6px; }
.zt-sentence { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.22); }
.zt-sentence:last-child { border-bottom: 0; padding-bottom: 0; }
.zt-sentence span { flex: 1; min-width: 0; }
.zt-sentence .speak-btn { flex: 0 0 auto; }
.zt-speak-all { white-space: nowrap; }
.bubble.user .q-tag.tag-clarification { background: rgba(255, 255, 255, 0.22); color: #fff; margin-left: 2px; }

.import-tip-card {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--panel-2); border: 1px dashed var(--accent-border);
  border-radius: var(--radius-md); padding: 16px 18px; margin: 18px 0;
}
.import-tip-left { display: flex; align-items: center; gap: 12px; }
.import-tip-ico { font-size: 24px; }
.import-tip-left b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
.import-tip-left .muted { font-size: 12.5px; }

/* =====================================================================
   v17 · 日常场景库（大类目 → 具体场景，两级浏览）
   ===================================================================== */
.lib-card { margin-top: 18px; }
.lib-mats { margin-bottom: 4px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.lib-custom { margin: 2px 0 16px; }
.lib-cat-add.active { border-color: var(--accent); background: var(--accent-soft); }
.lib-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lib-head h3 { margin: 0; font-size: 16px; letter-spacing: -0.2px; }
.lib-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.lib-cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  background: var(--panel-2); border: 1px solid var(--line); border-top: 3px solid var(--lc, var(--accent));
  border-radius: var(--radius-md); padding: 12px 14px 10px; cursor: pointer; transition: 0.18s;
  text-align: left; font-family: inherit;
}
.lib-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--lc, var(--accent)); background: var(--panel); }
.lc-ico { font-size: 22px; line-height: 1.1; }
.lib-cat b { font-size: 14px; letter-spacing: -0.2px; color: var(--ink); }
.lib-cat i { font-style: normal; font-size: 11.5px; color: var(--faint); }
.lib-sub-head { font-size: 15px; margin-bottom: 12px; }
.lib-sub-head b { letter-spacing: -0.2px; }
.lib-subs { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-sub {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: 0.15s; font-family: inherit;
}
.lib-sub:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft); }
.lib-sub.active { background: var(--accent); color: #fff; border-color: transparent; box-shadow: none; }
.sub-n { background: var(--good-soft); color: var(--good); border-radius: 999px; font-size: 10.5px; padding: 1px 7px; margin-left: 5px; font-weight: 800; white-space: nowrap; }
.lib-sub.active .sub-n { background: rgba(255, 255, 255, 0.25); color: #fff; }
.lib-sub-add { border-style: dashed; color: var(--accent); background: transparent; }
.lib-sub-add:hover { border-color: var(--accent); background: var(--accent-soft); }
.lib-sub-add.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
#lib-action { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.lib-mat { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; flex-wrap: wrap; }
.lib-mat-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lib-gen { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.lib-gen select { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-family: inherit; }

/* 自定义类目 */
.lib-cat-add { border: 2px dashed var(--accent-border); background: transparent; align-items: center; justify-content: center; text-align: center; color: var(--accent); border-top: 2px dashed var(--accent-border); }
.lib-cat-add b { color: var(--accent); }
.lib-cat-add:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-3px); }
.lib-custom input#lib-custom-input {
  flex: 1; min-width: 200px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  font-size: 14px; font-family: inherit;
}
.lib-custom input#lib-custom-input:focus { outline: none; border-color: var(--accent); background: var(--panel); }
.lib-pick {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 7px 13px; font-size: 13.5px; cursor: pointer; user-select: none; transition: 0.15s;
}
.lib-pick input { accent-color: var(--accent); margin: 0; cursor: pointer; }
.lib-pick:has(input:checked) { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* =====================================================================
   v14 · 大模型接入（AI 生成材料 / 设置中心）
   ===================================================================== */
.gen-card { border: 1px dashed var(--accent-border); background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.04)); }
.gen-head { font-weight: 800; letter-spacing: -0.2px; margin-bottom: 12px; }
.gen-body { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gen-body select {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 10px; padding: 9px 13px; font-size: 13.5px; font-family: inherit;
}
.ai-form { display: flex; flex-direction: column; gap: 6px; }
.ai-form label { font-size: 13px; font-weight: 700; margin-top: 8px; }
.ai-form input, .ai-form select {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font-size: 13.5px; font-family: inherit;
}
.ai-form input:focus, .ai-form select:focus { outline: none; border-color: var(--accent); background: var(--panel); }

/* ================== 材料解析页（100期/150期目录） ================== */
.analysis-view { padding: 18px 8px; }
.analysis-head { margin-bottom: 18px; }
.analysis-head h2 { margin: 0 0 6px; font-size: 20px; }
.analysis-head .muted { font-size: 13px; color: var(--muted); }
.issue-list { display: flex; flex-direction: column; gap: 12px; }
.issue-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: default; }
.issue-card:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.issue-main { flex: 1; min-width: 0; }
.issue-num { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.issue-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.issue-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-actions { display: flex; gap: 8px; flex: none; }
.issue-bg { background: var(--accent-soft); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; color: var(--ink); }
.issue-dialog p { margin: 6px 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.issue-dialog b { color: var(--accent); }
@media (max-width: 640px) {
  .issue-card { flex-direction: column; align-items: flex-start; }
  .issue-actions { width: 100%; }
  .issue-actions button { flex: 1; }
}

/* ================== 个人中心：AI 模型设置折叠 ================== */
.ai-fold-card { padding: 0; overflow: hidden; }
.ai-fold-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer; user-select: none;
  background: transparent; border: none; width: 100%; text-align: left;
  transition: background .15s ease;
}
.ai-fold-head:hover { background: var(--accent-soft); }
.ai-fold-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ai-fold-title span:first-child { font-size: 16px; font-weight: 700; color: var(--ink); }
.ai-fold-status { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.ai-fold-arrow {
  flex: none; font-size: 12px; color: var(--muted);
  transition: transform .2s ease; margin-left: 12px;
}
.ai-fold-body {
  padding: 0 16px 16px; animation: foldDown .2s ease;
  border-top: 1px solid var(--line);
}
.ai-fold-body .muted { padding-top: 12px; }
@keyframes foldDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .ai-fold-head { padding: 14px 14px; }
  .ai-fold-body { padding: 0 14px 14px; }
}

/* =====================================================================
   ★ v3 大改版样式（首页撑满 / 练习突出对话 / 工坊有设计感 / 计划去乱）
   说明：以下为叠加覆盖，原版选择器规则保持不变，本块仅做视觉重排。
   ===================================================================== */

/* ---------- 首页：Hero 撑满整页，场景卡横排 ---------- */
.hero {
  margin-bottom: 0;
  min-height: calc(100vh - 196px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 38px;
  padding: 60px 56px 56px;
}
.hero-copy { max-width: 780px; margin: 0 auto; }
.hero-eyebrow { box-shadow: none; }
.hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; margin-bottom: 0; }
.hero-visual { width: 100%; }
.scene-entries {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.scene-card {
  flex: 1 1 240px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
}
.scene-card.sc-daily { border-left: 1px solid var(--line); border-top-color: #14B8A6; }
.scene-card.sc-interview { border-left: 1px solid var(--line); border-top-color: #F97316; }
.scene-card.sc-studio { border-left: 1px solid var(--line); border-top-color: #8B5CF6; }
.scene-card .sc-ico { font-size: 36px; }
.scene-card .sc-body { align-items: center; gap: 5px; }
.scene-card .sc-go { font-size: 22px; }

/* ---------- 练习页：对话区成为绝对视觉中心 ---------- */
.practice-wrap {
  grid-template-columns: 232px minmax(0, 1.6fr) 280px;
  gap: 16px;
}
.practice-wrap.pure-review { grid-template-columns: minmax(0, 760px); justify-content: center; }
.pure-review .pw-left, .pure-review .pw-right { display: none; }
.pure-review .chat-panel { min-height: min(78vh, 760px); }
.review-pool { display: grid; gap: 10px; }
.review-pool-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* 沉浸式口语复习：像一次安静的视频通话，提示只在用户主动需要时出现。 */
.immersive-stage {
  position: relative; min-height: calc(100vh - 132px); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 54px 28px 32px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(circle at 50% 37%, rgba(154, 162, 255, .32) 0, rgba(154, 162, 255, 0) 31%),
    linear-gradient(145deg, #171b45 0%, #292b68 56%, #4d3f91 100%);
  box-shadow: 0 32px 80px rgba(30, 33, 92, .25);
}
.immersive-stage::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.2; background-image:radial-gradient(rgba(255,255,255,.7) .7px, transparent .7px); background-size:22px 22px; }
.immersive-exit { position:absolute; z-index:2; right:22px; top:20px; border:1px solid rgba(255,255,255,.24); background:rgba(255,255,255,.1); color:#fff; border-radius:999px; padding:8px 13px; cursor:pointer; }
.immersive-progress { position:absolute; z-index:2; left:24px; top:22px; display:flex; gap:12px; align-items:center; color:rgba(255,255,255,.7); font-size:12px; }
.immersive-progress span:first-child { color:#fff; font-weight:800; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); padding:6px 10px; border-radius:999px; }
.immersive-person { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; text-align:center; }
.immersive-avatar { width:156px; height:156px; display:grid; place-items:center; border-radius:50%; font-size:78px; background:linear-gradient(145deg,#f5d8b5,#c9926e); border:6px solid rgba(255,255,255,.2); box-shadow:0 0 0 18px rgba(142,151,255,.1),0 22px 55px rgba(0,0,0,.28); }
.immersive-avatar.talking { animation:immersivePulse 1.35s ease-in-out infinite; }
@keyframes immersivePulse { 50% { box-shadow:0 0 0 29px rgba(142,151,255,.08),0 22px 55px rgba(0,0,0,.28); transform:translateY(-3px); } }
.immersive-name { margin-top:18px; font:800 26px/1.1 "Geist",sans-serif; letter-spacing:-.6px; }
.immersive-scene { margin-top:5px; color:rgba(255,255,255,.62); font-size:12px; }
.immersive-status { margin-top:18px; min-height:24px; display:flex; align-items:center; gap:9px; color:rgba(255,255,255,.86); font-size:14px; }
.immersive-status i { width:9px; height:9px; border-radius:50%; background:#5ce6a8; box-shadow:0 0 0 6px rgba(92,230,168,.12); }
.immersive-reveal { position:relative; z-index:1; width:min(680px,100%); min-height:90px; display:grid; gap:9px; margin:24px 0 10px; }
.reveal-card { padding:13px 16px; border:1px solid rgba(255,255,255,.2); border-radius:15px; background:rgba(255,255,255,.1); backdrop-filter:blur(12px); font-size:17px; line-height:1.55; }
.reveal-card small { display:block; color:#bfc5ff; font-size:11px; font-weight:800; margin-bottom:4px; }
.reveal-card p { margin:8px 0 0; padding-top:8px; border-top:1px solid rgba(255,255,255,.14); color:rgba(255,255,255,.76); font-size:14px; }
.reveal-card.reply { border-color:rgba(92,230,168,.34); background:rgba(52,183,132,.12); }
.reveal-card.reply small { color:#78efbc; }
.immersive-help,.immersive-flow-actions { position:relative; z-index:1; display:flex; flex-wrap:wrap; justify-content:center; gap:9px; }
.immersive-help button { border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.09); color:#fff; border-radius:999px; padding:9px 13px; cursor:pointer; font:600 12.5px/1 "Noto Sans SC",sans-serif; }
.immersive-help button:hover { background:rgba(255,255,255,.17); }
.immersive-help button:disabled { opacity:.42; cursor:default; }
.immersive-flow-actions { min-height:44px; margin-top:18px; align-items:center; }
.immersive-flow-actions > span { color:rgba(255,255,255,.54); font-size:12px; }
.immersive-flow-actions .ghost-btn { color:#fff; border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.08); }
.immersive-finish { position:relative; z-index:1; text-align:center; }
.immersive-finish h2 { margin:22px 0 8px; font-size:30px; }
.immersive-finish p { color:rgba(255,255,255,.68); }
.immersive-finish-actions { display:flex; gap:10px; justify-content:center; margin-top:20px; }
.immersive-finish-actions .ghost-btn { color:#fff; border-color:rgba(255,255,255,.3); }
@media (max-width:768px) {
  .immersive-stage { min-height:calc(100vh - 150px); border-radius:20px; padding:72px 14px 24px; }
  .immersive-progress { left:14px; top:17px; max-width:72%; align-items:flex-start; }
  .immersive-progress span:last-child { display:none; }
  .immersive-exit { right:14px; top:15px; }
  .immersive-avatar { width:132px; height:132px; font-size:66px; }
  .immersive-reveal { min-height:74px; margin-top:18px; }
}
@media (prefers-reduced-motion:reduce) { .immersive-avatar.talking { animation:none; } }
.pw-left .panel, .pw-right .panel {
  border-color: var(--line);
  box-shadow: none;
  opacity: 0.97;
}
.pw-mid .chat-panel {
  border-radius: 20px;
  border: 1px solid #D7DCF5;
  box-shadow: 0 2px 10px rgba(18, 26, 80, 0.06), 0 30px 72px rgba(99, 102, 241, 0.18);
  padding: 20px 22px;
}
.chat-head-l h3 { font-size: 17px; }
.pw-mid .chat-panel .progress-chip { font-weight: 700; }

/* ---------- 表达工坊：真正的两栏 + 顶饰 ---------- */
.studio-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.studio-input, .studio-result {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  padding: 22px;
  min-height: 320px;
}
.studio-input {
  border-top: 4px solid var(--accent);
}
.studio-result {
  border-top: 4px solid var(--accent-2);
}
.studio-input-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.studio-input-ico { font-size: 26px; line-height: 1; }
.studio-input-head h3 { margin: 0; font-size: 16px; }
.studio-input-tip { margin: 3px 0 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
#studio-input { min-height: 132px; flex: 1; }
.studio-actions { margin-top: auto; }
.studio-result .fb-empty { margin: auto; text-align: center; }
.studio-bank {
  margin-top: 50px;
  border-radius: 18px;
  padding: 22px;
}
.studio-bank-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.studio-bank-ico { font-size: 22px; line-height: 1; }
.studio-bank-head h3 { margin: 0; }
.studio-actions .primary-btn { flex: 1; justify-content: center; }

/* ---------- 计划页：单列垂直堆叠，整齐 ---------- */
.plan-summary {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.plan-today, .week-card, .plan-resume { grid-column: auto; grid-row: auto; }
.plan-pick-section { margin-top: 26px; }
.plan-review-section { margin-top: 60px; }
.plan-pick-section > .section-title,
.plan-review-section > .section-title { font-size: 18px; }

/* 复习卡/表达区：单列列表 */
.plan-review-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .studio-stage { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 24px 40px; }
  .scene-entries { flex-direction: column; }
  .practice-wrap { grid-template-columns: 1fr; height: auto; }
  .pw-mid .chat-panel { min-height: 60vh; }
}

/* v5 追加：练习页右侧反馈区与中间对话区等高 */
.pw-right .pw-right-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pw-right-wrap .r-pane { flex: 1; min-height: 0; overflow-y: auto; }

/* =====================================================================
   v6 · 计划页更宽松 + 首页录音入口
   ===================================================================== */
/* 计划页：放大留白，去紧凑感 */
.plan-summary { gap: 60px; }
.plan-today, .plan-resume, .week-card, .plan-review-section .card {
  padding: 22px 24px; border-radius: 18px;
}
.plan-badge { font-size: 12.5px; padding: 5px 14px; margin-bottom: 14px; }
.plan-today h3, .plan-resume b, .week-card .week-row { font-size: 16.5px; }
.plan-goal-line { font-size: 13.5px; padding: 11px 14px; margin: 12px 0; line-height: 1.65; }
.plan-progress-row { font-size: 13.5px; margin: 12px 0 14px; gap: 11px; flex-wrap: wrap; }
.plan-progress-row .bar-track { height: 10px; min-width: 120px; }
.plan-tune { margin-top: 16px; padding-top: 14px; gap: 12px; flex-wrap: wrap; }
.plan-tune span { font-size: 13.5px; }
.week-row { margin-bottom: 10px; flex-wrap: wrap; }
.week-tune { margin-top: 16px; padding-top: 14px; gap: 12px; flex-wrap: wrap; }
.empty-plan p { font-size: 13.5px; line-height: 1.7; margin: 8px 0 16px; }
.plan-review-section { margin-top: 26px; }
.plan-review-section .card h3 { font-size: 15px; margin-bottom: 12px; }
.plan-review-section .card { padding: 20px 22px; }
.plan-review-section .rev-fix { padding: 12px 0; }
.plan-review-section .rev-fix-orig { font-size: 13.5px; margin-bottom: 4px; }
.plan-review-section .rev-fix-sug { font-size: 14px; }

/* 首页录音入口 */
.hero-actions { flex-wrap: wrap; gap: 12px; }
.hero-record { margin-top: 18px; }
.hero-record-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--accent); border: 1.5px solid var(--accent-border);
  border-radius: 999px; padding: 11px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: 0.18s; box-shadow: var(--shadow);
}
.hero-record-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.hero-record-btn.recording { background: var(--bad); color: #fff; border-color: transparent; animation: pulse-rec 1.2s infinite; }
@keyframes pulse-rec { 0%,100%{box-shadow:0 0 0 0 rgba(225,29,72,0.35);} 50%{box-shadow:0 0 0 10px rgba(225,29,72,0);} }
.hero-record-panel {
  margin-top: 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); max-width: 560px;
}
.hero-rec-status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.hero-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.hero-rec-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.hero-rec-text {
  width: 100%; min-height: 80px; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 14.5px; line-height: 1.65; resize: vertical; background: var(--panel-2); color: var(--ink);
}
.hero-rec-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hero-rec-tip { font-size: 12.5px; color: var(--faint); margin-top: 10px; line-height: 1.5; }


/* ====== v55: 手机端底部导航栏 ====== */
.mobile-bottom-nav {
  display: none; /* 默认隐藏，小屏才显示 */
}

@media (max-width: 768px) {
  .sidebar { display: none !important; }          /* 小屏隐藏左侧栏 */
  .mobile-bottom-nav {
    display: flex;                                /* 小屏显示底部导航 */
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: env(safe-area-inset-bottom) 6px 6px 6px;
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  }
  .mbn-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: none; background: none; cursor: pointer;
    padding: 6px 0 4px; border-radius: 8px;
    color: #64748b; font-size: 11px; font-weight:600;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mbn-item.active { color: #6366F1; }
  .mbn-icon { font-size: 20px; line-height: 1; }
  .mbn-label { font-size: 10px; }
  /* 给主内容区留出底部空间 */
  .main { padding-bottom: 70px !important; }
  body { padding-bottom: 0 !important; }
}

/* v68: 选词即译浮动提示框 */
.sel-trans-tooltip {
  position:fixed; z-index:9999; min-width:200px; max-width:300px;
  background:#fff; border-radius:10px; box-shadow:0 4px 20px rgba(0,0,0,0.18);
  padding:10px 14px; font-size:13px; line-height:1.5;
  animation:selTipIn .15s ease-out; pointer-events:auto;
}
@keyframes selTipIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
.sel-trans-src {
  display:block; color:#555; font-size:12px; margin-bottom:4px;
  padding-bottom:6px; border-bottom:1px dashed #ddd;
}
.sel-trans-loading { color:#888; }
.sel-trans-result {
  color:#1565c0; font-size:14px; font-weight:500; margin-top:4px;
}

.sel-trans-speak {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border:none; border-radius:50%;
  background:#e3f2fd; cursor:pointer; font-size:14px;
  padding:0; flex-shrink:0;
  transition:background .15s,transform .15s;
}

/* ===== v60：口语练习闭环、移动端优先级与间隔复习 ===== */
.retry-compare {
  margin: 12px 0; padding: 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,.09), rgba(34,197,94,.08));
  border: 1px solid var(--accent-border);
}
.retry-line { display:grid; grid-template-columns:58px minmax(0,1fr) 38px; gap:8px; align-items:start; padding:8px 0; font-size:13px; }
.retry-line + .retry-line { border-top:1px dashed var(--line); }
.retry-line span { color:var(--faint); font-weight:700; }
.retry-line b { color:var(--accent); text-align:right; }
.retry-line.improved b { color:var(--good); }
.retry-result { margin-top:6px; color:var(--good); font-size:13px; font-weight:700; }
.rc-grade-row { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; margin-top:10px; padding-top:9px; border-top:1px dashed var(--line); }
.review-card-item.rc-future { opacity:.72; }
.review-card-item.rc-due { border-left:4px solid var(--accent); }

@media (max-width:1024px) {
  .pw-mid { order:1; }
  .pw-right { order:2; }
  .pw-left { order:3; }
  .practice-wrap.open-scene-chat { grid-template-columns:1fr;max-width:none; }
  .scene-chat-cats { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:768px) {
  .view { padding-bottom:calc(86px + env(safe-area-inset-bottom)); }
  .practice-wrap { gap:12px; }
  .pw-mid .chat-panel { min-height:72vh; padding:14px 12px; }
  .chat { max-height:none; min-height:44vh; }
  .practice-composer {
    position:sticky; bottom:calc(62px + env(safe-area-inset-bottom)); z-index:12; margin:8px -12px -14px; padding:8px 12px 12px;
    background:var(--chat-bg);
    background:linear-gradient(to bottom, color-mix(in srgb, var(--chat-bg) 86%, transparent), var(--chat-bg) 22%);
    border-top:1px solid var(--line); backdrop-filter:blur(12px);
  }
  .input-bar { margin-top:8px; gap:7px; }
  .input-bar textarea { height:48px; padding:11px 12px; }
  .input-bar .primary-btn { padding:0 13px; }
  .mic-btn { width:48px; flex:0 0 48px; }
  .pw-left .panel { max-height:48vh; }
  .pw-right-wrap .r-pane { max-height:none; }
  .chat-head-r { width:100%; display:flex; gap:6px; align-items:center; }
  .chat-head-r #exit-practice { margin-left:auto; }
  .mobile-bottom-nav { padding-bottom:calc(6px + env(safe-area-inset-bottom)); }
  .mbn-item { min-width:0; padding-left:2px; padding-right:2px; }
  .mbn-label { font-size:9.5px; }
  .scene-chat-hero { grid-template-columns:1fr;padding:24px 20px; }
  .scene-chat-hero h2 { font-size:25px; }
  .scene-hub-quick,.scene-sub-grid,.scene-mode-grid,.custom-scene-grid { grid-template-columns:1fr; }
  .scene-mode-card { min-height:220px;padding:23px; }
  .scene-mode-card > b { padding-top:16px; }
  .custom-scene-builder { grid-template-columns:1fr;padding:20px; }
  .custom-scene-form { grid-template-columns:1fr; }
  .custom-scene-form label.wide,.custom-scene-form .primary-btn { grid-column:auto; }
  .custom-scene-form .primary-btn { width:100%;justify-self:stretch; }
  .scene-chat-cats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .scene-chat-brief { grid-template-columns:38px minmax(0,1fr); }
  .scene-chat-brief .scene-session-controls { grid-column:1 / -1;display:grid;grid-template-columns:1fr; }
  .scene-chat-brief .scene-role-switch,.scene-chat-brief .scene-goal-switch { justify-self:stretch; }
  .scene-chat-brief .scene-role-switch > div { display:grid;grid-template-columns:1fr 1fr; }
  .scene-chat-brief .scene-role-switch button,
  .scene-chat-brief .scene-goal-switch button { flex:1; }
  .scene-session-footer { grid-template-columns:1fr; }
  .scene-session-footer .primary-btn { width:100%; }
  .zh-retry-invite { align-items:stretch;flex-direction:column; }
  .zh-retry-invite .primary-btn { width:100%; }
  .zh-retry-input { grid-template-columns:minmax(0,1fr) 48px; }
  .zh-retry-input .primary-btn { grid-column:1 / -1;min-height:44px; }
  .zh-retry-compare { grid-template-columns:1fr; }
  .zh-retry-card.is-complete { grid-template-columns:42px minmax(0,1fr); }
  .zh-retry-complete-actions { grid-column:1 / -1; }
  .zh-retry-complete-actions > button { flex:1; }
}
.sel-trans-speak:hover { background:#bbdefb; transform:scale(1.15); }
/* v73 选词收入词汇库 */
.sel-trans-save { display:block;width:100%;margin-top:6px;padding:6px 10px;border:1px dashed #6c5ce7;border-radius:6px;background:#f8f9fc;color:#6c5ce7;font-size:12px;cursor:pointer;text-align:center;transition:all .2s; }
.sel-trans-save:hover { background:#ede7f6; }
.sel-trans-save.saved { border-style:solid;background:#e8f5e9;color:#2e7d32;cursor:default; }
.vocab-saved { background:linear-gradient(135deg,#fff8e1,#ffecb3);border-left:3px solid #ffa000;padding:9px 10px;display:flex;align-items:flex-start;gap:8px;border-radius:8px;margin-bottom:6px; }
.vocab-saved-main { flex:1;min-width:0;display:flex;flex-direction:column;gap:5px; }
.vocab-saved-head { display:flex;align-items:center;gap:7px;min-width:0; }
.vocab-saved b { color:#e65100;font-size:14px;line-height:1.35;min-width:0;overflow-wrap:anywhere; }
.vocab-zh { display:block;color:#554b3e;font-size:12.5px;line-height:1.55;white-space:normal;overflow-wrap:anywhere; }
.vocab-zh.is-loading { color:#8b8174;font-size:12px; }
.vocab-del-btn { width:22px;height:22px;border-radius:50%;border:none;background:transparent;color:#999;font-size:16px;cursor:pointer;line-height:1;flex-shrink:0; }
.vocab-del-btn:hover { background:#ffebee;color:#c62828; }
.vocab-speak-btn { width:24px;height:24px;border-radius:50%;border:none;background:#e3f2fd;cursor:pointer;font-size:12px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .2s; }
.vocab-speak-btn:hover { background:#bbdefb; }
/* v73-fix: coach-tone 换行布局 */
.coach-tone { display: flex !important; flex-direction: column !important; gap: 6px !important; }
.coach-tone > div { width: 100%; }
/* v91: 表达工坊tab布局 */
.studio-tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:12px; }
.studio-tabs .r-tab { padding:8px 18px; border:none; background:transparent; cursor:pointer; font-size:13.5px; font-weight:500; color:var(--muted); border-bottom:2px solid transparent; transition:all .2s; }
.studio-tabs .r-tab:hover { color:var(--ink); }
.studio-tabs .r-tab.active { color:var(--accent); border-bottom-color:var(--accent); font-weight:700; }
.studio-pane { animation:fade-in .25s; }
.vocab-list { display:flex; flex-direction:column; gap:6px; }
.vocab-item-row { display:flex; align-items:center; gap:10px; padding:8px 12px; background:var(--panel-2); border-radius:8px; }
.vocab-item-row .vocab-speak-btn { width:28px; height:28px; border-radius:50%; border:none; background:#e3f2fd; cursor:pointer; font-size:13px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.vocab-item-row .vocab-speak-btn:hover { background:#bbdefb; }
.vocab-item-row .vocab-text { flex:1; minline:flex; }
.vocab-item-row .vocab-text b { color:var(--ink); margin-right:8px; }
.vocab-item-row .vocab-zh-inline { color:var(--muted); font-size:13px; }
/* v93: 词组库加入/删除按钮 */
.vocab-add-btn { padding:4px 10px; border:1px solid #6c5ce7; border-radius:6px; background:#f8f9fc; color:#6c5ce7; cursor:pointer; font-size:12px; transition:all .2s; flex-shrink:0; }
.vocab-add-btn:hover { background:#ede7f6; }
.vocab-del-btn { width:24px; height:24px; border-radius:50%; border:none; background:transparent; color:#999; font-size:18px; cursor:pointer; line-height:1; flex-shrink:0; }
.vocab-del-btn:hover { background:#ffebee; color:#c62828; }
/* v95: 翻译版本卡片底部按钮行 */
.ver-foot { display:flex; gap:6px; align-items:center; margin-top:8px; padding-top:8px; border-top:1px dashed #e5e7eb; }
.ver-foot .vocab-add-btn { margin-left:auto; }
.ver-card { padding-bottom:8px; }

.ph-versions { display:flex; flex-direction:column; gap:6px; margin:8px 0; }
.ph-ver { display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:8px; background:var(--panel-2); border:1px solid var(--line); transition:0.15s; }
.ph-ver:hover { border-color:var(--accent-border); }
.ph-ver-label { font-size:11.5px; font-weight:700; white-space:nowrap; min-width:58px; padding:2px 6px; border-radius:4px; text-align:center; }
.ph-ver-nat { background:#e8f5e9;color:#2e7d32; }
.ph-ver-cas { background:#fff3e0;color:#e65100; }
.ph-ver-fm { background:#e3f2fd;color:#1565c0; }
.ph-ver-text { flex:1; font-size:14px; line-height:1.5; word-break:break-word; }
.ph-ver-speak { flex-shrink:0; font-size:15px; padding:4px 6px; }


.pron-sent-block { padding:12px 0; border-bottom:1px solid var(--line); }
.pron-sent-block:last-child { border-bottom:none; }
.pron-gen { font-size:12.5px; padding:5px 12px; }


.pron-sent-block { padding:14px 0; border-bottom:1px solid var(--line); }
.pron-sent-block:first-child { padding-top:4px; }
.pron-sent { font-size:14px; line-height:1.6; color:var(--text-1); margin-bottom:8px; word-break:break-word; }
.pron-actions { display:flex; gap:8px; flex-wrap:wrap; }
.pron-picker-title { margin: 9px 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.pron-picker { display: grid; gap: 6px; max-height: 166px; overflow-y: auto; padding-right: 2px; }
.pron-choice { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--panel-2); border-radius: 9px; padding: 7px 9px; cursor: pointer; color: var(--text-1); }
.pron-choice:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.pron-choice.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.pron-choice small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 700; margin-bottom: 2px; }
.pron-choice span { display: block; font-size: 12.5px; line-height: 1.4; word-break: break-word; }
.pron-current-label { margin-top: 12px; color: var(--accent); font-size: 11.5px; font-weight: 800; }
