/* ══════════════════════════════════════════════════════════════
   云学谷 · 智能数学 · 学习机端（2400×1600 横屏）
   设计基调：白色主色 + 蓝/浅蓝点缀 + 磨砂玻璃（毛玻璃）卡片 + 清爽深色字
   —— 主流学习机（作业帮 / 科大讯飞 / 学而思）当前一代的轻亮视觉语言，
     适合初中高中学生审美，长时间学习不易疲劳。
   图标：C4D 风格 3D 渲染图（assets/c4d/*.png），小图标用 emoji。
   缩放：html 用 vw 等比缩放 —— 同一份界面在学习机与笔记本预览上比例一致。
   ══════════════════════════════════════════════════════════════ */

/* ───────────── 设计令牌 ───────────── */
:root {
  --bg: #f0f5ff;
  --bg2: #ffffff;
  --bg-grad: linear-gradient(180deg, #f2f8ff 0%, #e2eeff 46%, #d1e3fc 100%); /* v191 整页浅蓝渐变（马总：不要网格、不要横块） */

  --glass-a: rgba(255, 255, 255, 0.78);
  --glass-b: rgba(235, 245, 255, 0.64);
  --glass-c: rgba(255, 255, 255, 0.55);
  --line: rgba(59, 130, 246, 0.12);
  --line2: rgba(59, 130, 246, 0.24);

  --tx: #0f172a;
  --tx2: #475569;
  --tx3: #94a3b8;

  --blue: #3b82f6;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #f43f5e;

  --grad: linear-gradient(135deg, #3b82f6, #60a5fa);
  --grad-gold: linear-gradient(135deg, #fbbf24, #f59e0b);
  --grad-good: linear-gradient(135deg, #34d399, #22d3ee);

  --shadow-soft: 0 0.6rem 1.6rem rgba(59, 130, 246, 0.08), 0 0.2rem 0.5rem rgba(15, 23, 42, 0.04);
  --shadow-soft-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  --r-lg: 1.35rem;
  --r-md: 1rem;
  --r-sm: 0.7rem;

  /* ══════════ 字号体系 · 5 级（v219 建立，全站唯一来源） ══════════
     规则：UI 文字只允许这 5 级，禁止再写裸数值（新增会触发 check-type-scale.js 报错）
     比例 1.25（音乐比例），从大到小：1号 2.0 → 2号 1.6 → 3号 1.25 → 4号 1.0 → 5号 0.82
     用法：
       1号 = 顶部导航、页面主标题（一屏最多 1 处）
       2号 = 弹窗标题、版块标题、卡片主标题
       3号 = 列表主文、菜单项、表单标签、图标旁主文字、按钮主文字
       4号 = 正文段落、说明文字、表格内容、次级按钮
       5号 = 辅助注释、角标、副标题、hint（最小可读，禁止更小）
     行高配对：大字号收紧、小字号放松 —— --lh-1 1.2 / --lh-2 1.32 / --lh-3 1.45 / --lh-4 1.6 / --lh-5 1.6
     例外（白名单，不算 UI 文字）：首页展示型巨型字（≥2.1rem）、装饰性微标（<0.6rem） */
  --fs-1: 2rem;
  --fs-2: 1.6rem;
  --fs-3: 1.25rem;
  --fs-4: 1rem;
  --fs-5: 0.82rem;
  --lh-1: 1.2;
  --lh-2: 1.32;
  --lh-3: 1.45;
  --lh-4: 1.6;
  --lh-5: 1.6;

  /* ═══════ 弹窗尺寸体系 v220（马总 2026-10-27：按内容分类定档，禁止逐个手调） ═══════
     档位由「内容形态」决定，不看页面：
       xs 确认型   ：1 句话 + 2 按钮（退出登录、删除确认）
       sm 表单型   ：≤4 字段（改密码、登录）
       md 选择型   ：并排选项卡片（练习难度、模式选择）
       lg 表单分组 ：多组字段/多段（完善学习信息）
       xl 阅读型   ：长内容滚动阅读（试卷详情、知识星图全屏）
     内部规格（字号/控件高/圆角/间距）全档一致，只有宽度不同。 */
  --dlg-w-xs: 26rem;
  --dlg-w-sm: 34rem;
  --dlg-w-md: 44rem;
  --dlg-w-lg: 56rem;
  --dlg-w-xl: min(84rem, 92vw);

  --dlg-r: 1.25rem;              /* 卡片圆角 */
  --dlg-pad: 2rem 2.2rem;        /* 内容区标准内边距 */
  --dlg-pad-ft: 1.3rem 2.2rem 1.9rem; /* 底部按钮区内边距 */
  --dlg-gap: 1.2rem;             /* 区块间距 */
  --dlg-mask: rgba(15, 23, 42, 0.45);
  --dlg-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.28);
  --dlg-maxh: 88vh;              /* 任何弹窗最高不超过此值，超出内部滚动 */

  --ctl-h: 3.1rem;               /* 输入框/下拉框统一高度（触摸友好） */
  --ctl-r: 0.72rem;              /* 控件圆角 */
  --ctl-gap: 0.65rem;            /* 字段间距 */
  --btn-h: 3rem;                 /* 弹窗按钮统一高度 */
  --btn-r: 0.8rem;
}

/* ───────────── 基础 ───────────── */
* { box-sizing: border-box; }

/* v218 学习机 App 化三件套（马总 2026-10-27）：
   ① 去掉点按/聚焦后的黄框（WebView focus ring）
   ② 禁长按弹「复制/分享/全选」菜单（App 不应出现系统文字选择菜单）
   ③ 去点按灰色闪块；输入类控件保留文字选择能力 */
* { -webkit-tap-highlight-color: transparent; }
*::-moz-focus-inner { border: 0; }
/* 通配去焦点框：覆盖所有可聚焦元素（含 tabindex 的 div、原生 select 的 ROM 高亮） */
*:focus { outline: none !important; }
body {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, [contenteditable="true"], .selectable {
  -webkit-user-select: text; user-select: text;
  -webkit-touch-callout: default;
}

/* 学习机是 2400×1600 固定屏幕 → 用 vw 等比缩放，保证版式在任何缩放级别下一致 */
html { font-size: clamp(13px, 1.04vw, 25px); }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg-grad);
  color: var(--tx);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body { position: relative; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; }
.hidden { display: none !important; }
.dim { color: var(--tx3); }
.tiny { font-size: var(--fs-5); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.22); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.38); }

/* ───────────── 背景光效（科技感底子） ───────────── */
.bg-fx, .login-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.orb.o1 { width: 46rem; height: 46rem; left: -12rem; top: -16rem; background: radial-gradient(circle, #93c5fd 0%, rgba(147, 197, 253, 0) 68%); opacity: 0.45; }
.orb.o2 { width: 40rem; height: 40rem; right: -10rem; top: -10rem; background: radial-gradient(circle, #c4b5fd 0%, rgba(196, 181, 253, 0) 68%); opacity: 0.4; }
.orb.o3 { width: 44rem; height: 44rem; left: 32%; bottom: -22rem; background: radial-gradient(circle, #67e8f9 0%, rgba(103, 232, 249, 0) 70%); opacity: 0.32; }
.grid-lines {
  position: absolute; inset: 0;
  display: none; /* v191 马总：去掉带网格的底层渐变与中间横块，改整页渐变 */
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.055) 1px, transparent 1px);
  background-size: 3.4rem 3.4rem;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
}

/* ───────────── 磨砂玻璃卡片 ───────────── */
.glass {
  position: relative;
  background: linear-gradient(158deg, var(--glass-a), var(--glass-b) 55%, var(--glass-c));
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow:
    var(--shadow-soft),
    var(--shadow-soft-inset);
}

.card { padding: 1.1rem 1.25rem; }
.card-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.card-head h3 { margin: 0; font-size: var(--fs-4); font-weight: 700; letter-spacing: 0.01em; }
.card-head > *:last-child { margin-left: auto; }

.sec-title {
  display: flex; align-items: center; gap: 0.55rem;
  margin: 1.1rem 0 0.65rem; font-size: var(--fs-4); font-weight: 700;
}
.sec-title:first-child { margin-top: 0; }
.sec-title i {
  width: 0.26rem; height: 1rem; border-radius: 4px;
  background: var(--grad); box-shadow: 0 0 0.7rem rgba(59, 130, 246, 0.8);
}
.sec-title button { margin-left: auto; }

/* ───────────── 通用控件 ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.62rem 1.15rem; border-radius: 0.85rem;
  font-size: var(--fs-5); font-weight: 600; white-space: nowrap;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid var(--line2);
  color: var(--tx);
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
}
.btn:hover { background: rgba(59, 130, 246, 0.13); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 0.7rem 1.6rem rgba(59, 130, 246, 0.35);
}
.btn.primary:hover { box-shadow: 0 0.9rem 2rem rgba(59, 130, 246, 0.5); }
.btn.gold { background: var(--grad-gold); border-color: transparent; color: #3a2405; }
.btn.ghost { background: rgba(255, 255, 255, 0.55); border-color: var(--line); }
.btn.tiny { padding: 0.34rem 0.7rem; font-size: var(--fs-5); border-radius: 0.6rem; gap: 0.3rem; }
.btn-ic { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.16rem 0.55rem; border-radius: 999px;
  font-size: var(--fs-5); font-weight: 600; letter-spacing: 0.02em;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid var(--line2);
  color: var(--tx2);
  white-space: nowrap;
}
.chip.amber { background: rgba(245, 181, 68, 0.14); border-color: rgba(245, 181, 68, 0.35); color: #b45309; }
.chip.bad { background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.32); color: #be123c; }
.chip.ok { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.32); color: #047857; }
.chip-btn {
  padding: 0.3rem 0.7rem; border-radius: 999px; font-size: var(--fs-5);
  background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line2); color: var(--tx2);
}
.chip-btn:hover { color: var(--blue); background: rgba(59, 130, 246, 0.12); }

.tag {
  display: inline-block; padding: 0.22rem 0.6rem; border-radius: 999px;
  font-size: var(--fs-5); color: var(--tx2);
  background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line);
}

.bar { height: 0.42rem; border-radius: 999px; background: rgba(59, 130, 246, 0.1); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar.gold > i { background: var(--grad-gold); }
.bar.good > i { background: var(--grad-good); }

.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tab {
  padding: 0.42rem 0.95rem; border-radius: 999px; font-size: var(--fs-5);
  background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line); color: var(--tx2);
}
.tab.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0.4rem 1rem rgba(59, 130, 246, 0.3); }
.tab.on:hover { color: #fff; }
.tab:not(.on):hover { color: var(--blue); }

/* ══════════════════ 登录 ══════════════════ */
.login {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg-grad); overflow: hidden; z-index: 100;
}
.login-card {
  position: relative; z-index: 2;
  width: var(--dlg-w-sm); max-width: 92vw; padding: var(--dlg-pad);
  background: linear-gradient(158deg, var(--glass-a), var(--glass-b) 60%);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--line2);
  border-radius: var(--dlg-r);
  box-shadow: var(--shadow-soft), var(--shadow-soft-inset);
}
.login-brand { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.lg-logo {
  width: 3rem; height: 3rem; border-radius: 1rem; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: var(--fs-2); font-weight: 700;
  box-shadow: 0 0.7rem 1.6rem rgba(59, 130, 246, 0.35);
}
.lg-logo-img {
  width: 3.2rem; height: 3.2rem; display: block; object-fit: contain;
  filter: drop-shadow(0 0.5rem 1.2rem rgba(59, 130, 246, 0.4));
}
.login-brand h1 { margin: 0; font-size: var(--fs-3); letter-spacing: 0.02em; }
.login-brand p { margin: 0.2rem 0 0; font-size: var(--fs-5); color: var(--tx3); letter-spacing: 0.12em; }

.lg-fields { display: flex; flex-direction: column; gap: 0.85rem; }
.lg-fields label { display: flex; flex-direction: column; gap: 0.35rem; }
.lg-fields span { font-size: var(--fs-5); color: var(--tx2); }
.lg-fields input, .lg-fields select {
  padding: 0.72rem 0.95rem; border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line2);
  color: var(--tx); outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.lg-fields input::placeholder { color: var(--tx3); }
.lg-fields input:focus, .lg-fields select:focus {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.lg-fields select option { background: #f8fbff; color: var(--tx); }

.lg-go {
  width: 100%; margin-top: 1.4rem; padding: 0.85rem;
  border-radius: 0.95rem; font-size: var(--fs-4); font-weight: 700; color: #fff;
  background: var(--grad);
  box-shadow: 0 0.9rem 2rem rgba(59, 130, 246, 0.35);
  transition: transform 0.16s, box-shadow 0.16s;
}
.lg-go:hover { transform: translateY(-2px); box-shadow: 0 1.2rem 2.6rem rgba(59, 130, 246, 0.5); }
.lg-go:disabled { opacity: 0.6; transform: none; }
.lg-hint { margin: 0.9rem 0 0; font-size: var(--fs-5); color: var(--tx3); text-align: center; line-height: 1.5; }
.lg-hint.bad { color: #e11d48; }

/* ══════════════════ 应用外壳 ══════════════════ */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; }

/* ───────── 顶部信息栏 ───────── */
.topbar {
  flex: 0 0 auto; position: relative; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.72));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.tb-left { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.ava {
  flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-4); font-weight: 700; color: #fff;
  background: var(--grad);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 0.5rem 1.2rem rgba(59, 130, 246, 0.32);
}
.who { min-width: 0; }
.who b { display: block; font-size: var(--fs-4); }
.who-meta { display: flex; gap: 0.35rem; margin-top: 0.22rem; }

.topnav {
  display: flex; gap: 0.15rem; padding: 0;
  border-radius: 0; background: none; border: 0;
}
.nav-btn {
  padding: 0.88rem 1.9rem; border-radius: 0.9rem; border: 0; background: none;
  font-size: var(--fs-2); font-weight: 600; color: var(--tx2); white-space: nowrap;
  position: relative;
  transition: color 0.16s;
}
.nav-btn:hover { color: var(--blue); background: none; }
.nav-btn.on {
  color: var(--blue); background: none; box-shadow: none;
}
/* 选中态：文字变蓝 + 字下线条（参考作业帮导航），微弧圆头短横线 */
.nav-btn.on::after {
  content: ''; position: absolute; left: 50%; bottom: 0.25rem;
  transform: translateX(-50%);
  width: 55%; height: 0.3rem; border-radius: 0.15rem;
  background: var(--blue);
}

.tb-right { display: flex; align-items: center; gap: 0.55rem; justify-self: end; }
.clock { font-size: var(--fs-5); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tx2); }
.icon-btn {
  width: 2rem; height: 2rem; border-radius: 0.6rem; display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.07); border: 1px solid var(--line2); color: var(--tx2);
}
.icon-btn:hover { color: var(--blue); background: rgba(59, 130, 246, 0.13); }

/* ───────── 内容区 ───────── */
.main {
  flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;   /* v215：WebView 触摸滚动惯性加固（Y16 划不动的兜底） */
  touch-action: pan-y;                 /* v215：显式允许纵向触摸平移 */
  padding: 1.05rem 1.15rem 9.4rem;      /* 底部留出 dock 的高度（v182 dock 放大后加高） */
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
}
/* 每个页面都撑满可视高度 —— 否则学习机大屏上底部会出现一大片死空间。
   做法：.view 是纵向 flex，最后一个区块 flex:1 自动吃掉剩余高度。 */
.view {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 1rem;
  animation: viewIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.view > * { flex: 0 0 auto; }
.view > *:last-child { flex: 1 1 auto; }
.view > .sec-title { margin: 0; }
@keyframes viewIn { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }

/* ───────── 底部导航 dock（白色磨砂玻璃胶囊 + 干净 C4D 图标+文字） ───────── */
/* dock 上方的渐隐遮罩：任何页面滚动内容接近 dock 时淡出到页面底色，
   保证 dock 按钮下方永远不出现内容残影。z-index 在内容区(10)之上、dock(40)之下。 */
.dock-fade {
  position: fixed; left: 0; right: 0; bottom: 0; height: 8rem;
  z-index: 35; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(232, 241, 255, 0) 0%,
    rgba(232, 241, 255, 0.55) 40%,
    rgba(232, 241, 255, 0.92) 70%,
    #e8f1ff 100%);
}
.dock {
  position: absolute; left: 50%; bottom: 0.95rem; transform: translateX(-50%);
  z-index: 40;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 2rem;
  box-shadow: var(--shadow-soft), var(--shadow-soft-inset);
}
.dock-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.22rem;
  width: 7rem; padding: 0.38rem 0.2rem 0.3rem;
  border-radius: 1rem;
  background: transparent;
  color: var(--tx2); font-size: var(--fs-4); font-weight: 600;
  transition: transform 0.18s, color 0.18s, background 0.18s;
}
.dock-btn img {
  width: 3.5rem; height: 3.5rem; object-fit: contain;
  filter: drop-shadow(0 0.35rem 0.6rem rgba(59, 130, 246, 0.18));
  transition: transform 0.18s;
}
.dock-btn:hover { background: rgba(59, 130, 246, 0.08); color: var(--blue); transform: translateY(-3px); }
.dock-btn:hover img { transform: scale(1.08) rotate(-3deg); }
.dock-btn.on { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.dock-btn.on img { transform: scale(1.06); }

/* ══════════════════ 首页 ══════════════════ */
.home-top { display: grid; grid-template-columns: 1.62fr 1fr; gap: 1rem; }

.hero {
  display: grid; grid-template-columns: 1.75fr 1fr; gap: 1rem;
  padding: 1.5rem 1.7rem;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -6rem; top: -8rem;
  width: 24rem; height: 24rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0) 68%);
  pointer-events: none;
}
.hero-l { position: relative; z-index: 1; }
.hero-hi { font-size: var(--fs-5); color: var(--cyan); letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.hero h1 {
  margin: 0 0 0.6rem; font-size: var(--fs-1); line-height: 1.16; letter-spacing: -0.01em;
  background: linear-gradient(96deg, #0f172a 20%, #3b82f6 60%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 0 1.15rem; font-size: var(--fs-5); color: var(--tx2); line-height: 1.6; max-width: 30rem; }
.hero-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 0.45rem; margin-top: 1rem; flex-wrap: wrap; }

.hero-r { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; position: relative; z-index: 1; }
.ring { position: relative; width: 8.6rem; height: 8.6rem; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(59, 130, 246, 0.09); stroke-width: 10; }
.ring-fg {
  fill: none; stroke: #5b8cff; stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 314.16; stroke-dashoffset: 314.16;
  filter: drop-shadow(0 0 0.6rem rgba(91, 140, 255, 0.85));
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-txt b { display: block; font-size: var(--fs-1); line-height: 1.1; }
.ring-txt span { font-size: var(--fs-5); color: var(--tx3); }
.ring-lv { font-size: var(--fs-5); color: var(--tx2); text-align: center; }

.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.mini { padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.mini i { font-size: var(--fs-3); font-style: normal; }
.mini b { font-size: var(--fs-2); line-height: 1.15; font-variant-numeric: tabular-nums; }
.mini span { font-size: var(--fs-5); color: var(--tx3); }

.home-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.last-lesson .ll-q {
  font-size: var(--fs-4); font-weight: 700; margin-bottom: 0.45rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.last-lesson .ll-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.85rem; }

/* ── 空状态（新学生第一次打开学习机看到的就是这里）──
   绝不能只丢一行字在一张 800px 高的卡片里：居中 + 大图标 + 「怎么用」+ 下一步动作。 */
.empty-wrap {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.75rem; padding: 1rem 2.5rem;
}
.empty-ic {
  font-size: 3.2rem; line-height: 1;
  filter: drop-shadow(0 0.6rem 1.4rem rgba(59, 130, 246, 0.5));
}
.empty-t { margin: 0; font-size: var(--fs-3); font-weight: 700; letter-spacing: -0.01em; }
.empty-p {
  margin: 0; max-width: 34rem;
  font-size: var(--fs-5); line-height: 1.75; color: var(--tx2);
}
.empty-p b { color: var(--tx); }

/* 空状态里的「三步上手」 */
.ll-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; width: 100%; max-width: 46rem; margin-top: 0.35rem; }
.ll-steps > div {
  padding: 0.85rem 0.9rem; border-radius: var(--r-md); text-align: left;
  background: rgba(59, 130, 246, 0.04); border: 1px solid var(--line);
}
.ll-steps b {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-bottom: 0.45rem;
  border-radius: 50%; font-size: var(--fs-5); color: #fff; background: var(--grad);
  box-shadow: 0 0.4rem 1rem rgba(59, 130, 246, 0.5);
}
.ll-steps span { display: block; font-size: var(--fs-5); font-weight: 700; }
.ll-steps i { display: block; margin-top: 0.15rem; font-size: var(--fs-5); font-style: normal; color: var(--tx3); line-height: 1.5; }

/* 上节课的四个课堂指标 */
.ll-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 0.9rem; }
.ll-stats > div {
  padding: 0.6rem 0.7rem; border-radius: var(--r-md);
  background: rgba(59, 130, 246, 0.04); border: 1px solid var(--line);
}
.ll-stats b { display: block; font-size: var(--fs-3); line-height: 1.15; font-variant-numeric: tabular-nums; }
.ll-stats span { display: block; font-size: var(--fs-5); color: var(--tx3); margin-top: 0.1rem; }

/* 板书 / 老师的观察 两列 */
.ll-cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0.9rem; margin-bottom: 0.4rem; }
.ll-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ll-sec {
  margin: 0 0 0.5rem; font-size: var(--fs-5); font-weight: 700; color: var(--tx2);
  letter-spacing: 0.02em;
}
.ll-board {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  padding: 0.75rem 0.9rem; border-radius: var(--r-sm);
  background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line);
  font-size: var(--fs-5); line-height: 1.75; color: var(--tx2);
  word-break: break-word;
  /* 板书是多行文本，HTML 默认会把换行折叠成空格 —— 那样几个行内公式会挤成一坨 */
  white-space: pre-wrap;
}
.ll-board .katex { font-size: 0.95em; }
.ll-obs { margin: 0; padding: 0 0 0 1.05rem; display: flex; flex-direction: column; gap: 0.35rem; }
.ll-obs li { font-size: var(--fs-5); line-height: 1.55; color: var(--tx2); }
.ll-obs li::marker { color: var(--cyan); }
.ll-btns { margin-top: auto; padding-top: 0.9rem; }

.weak-mini { display: flex; flex-direction: column; gap: 0.5rem; }
.wm-row {
  display: grid; grid-template-columns: 1.35rem 1fr auto 7rem 2.8rem;
  align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.65rem; border-radius: var(--r-sm);
  background: rgba(59, 130, 246, 0.03);
  border: 1px solid transparent;
  transition: background 0.16s, border-color 0.16s;
}
.wm-row:hover { background: rgba(59, 130, 246, 0.065); border-color: var(--line); }
.wm-row .wm-idx {
  width: 1.35rem; height: 1.35rem; border-radius: 0.4rem; display: grid; place-items: center;
  font-size: var(--fs-5); font-weight: 700; color: var(--tx3);
  background: rgba(59, 130, 246, 0.05); border: 1px solid var(--line);
}
.wm-row .nm { font-size: var(--fs-5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-row .src {
  font-size: var(--fs-5); padding: 0.06rem 0.34rem; border-radius: 0.3rem; white-space: nowrap;
  color: var(--cyan); background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
/* 非课堂来源时留空 —— 但格子必须占住。少了这一列，后面的进度条会掉进 auto 列被压成 0 宽 */
.wm-row .src:empty { visibility: hidden; }
.wm-row .pct { font-size: var(--fs-5); color: var(--tx3); text-align: right; font-variant-numeric: tabular-nums; }

/* ── 首页一屏适配 ──
   快捷入口磁贴已移除；首页只剩「英雄区 + 4 数据小卡 + 两张内容卡」。
   目标：2400×1600 学习机上正好一屏显示完，绝不出现上下滚动。 */
#view-home { min-height: 0; }
.home-mid { min-height: 0; align-items: stretch; }
.home-mid > .card { display: flex; flex-direction: column; min-height: 0; }

/* 「继续上次的课」：卡片内纵向撑开，板书/观察吃掉中段，按钮吸到卡片底部 */
.home-mid .last-lesson { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.home-mid .last-lesson .ll-cols { flex: 1 1 auto; min-height: 0; }

/* 「待巩固的知识点」：条目在卡片内均匀铺开，填满但不拥堵 */
.home-mid .weak-mini { flex: 1 1 auto; justify-content: space-evenly; min-height: 0; }
/* 空状态时反过来要居中（由 .empty-wrap 自己撑满） */
.home-mid .weak-mini > .empty-wrap { margin: 0; }

/* ══════════════════ 我的 ══════════════════ */
.mine-top { display: grid; grid-template-columns: 1.1fr 1.5fr; gap: 1rem; }
.profile-card { display: flex; flex-direction: column; justify-content: space-between; }
.pc-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.pc-ava {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--fs-3); font-weight: 700; color: #fff;
  background: var(--grad); border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0.6rem 1.4rem rgba(59, 130, 246, 0.45);
}
.pc-who { flex: 1; min-width: 0; }
.pc-who b { display: block; font-size: var(--fs-4); }
.pc-who span { font-size: var(--fs-5); color: var(--tx3); }
.pc-rows { display: flex; flex-direction: column; gap: 0.45rem; }
.pc-row { display: flex; justify-content: space-between; gap: 0.6rem; font-size: var(--fs-5); padding-bottom: 0.45rem; border-bottom: 1px dashed rgba(59, 130, 246, 0.07); }
.pc-row span:first-child { color: var(--tx3); }
.pc-row span:last-child { color: var(--tx); font-weight: 600; }
.pc-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }

.mine-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.stat-card {
  padding: 1rem 1.1rem; border-radius: var(--r-lg);
  background: linear-gradient(158deg, var(--glass-a), var(--glass-b) 60%);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(59, 130, 246, 0.12);
}
.stat-card b { display: block; font-size: var(--fs-2); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-card span { display: block; font-size: var(--fs-5); color: var(--tx3); margin: 0.15rem 0 0.6rem; }

.mine-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.weak-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.weak-list li {
  display: grid; grid-template-columns: 1fr auto 5.5rem 2.6rem; align-items: center; gap: 0.55rem;
  font-size: var(--fs-5);
}
.weak-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weak-list .src {
  font-size: var(--fs-5); padding: 0.08rem 0.4rem; border-radius: 999px;
  background: rgba(34, 211, 238, 0.12); color: #0e7490; border: 1px solid rgba(34, 211, 238, 0.3);
}
.weak-list .track { height: 0.36rem; border-radius: 999px; background: rgba(59, 130, 246, 0.08); overflow: hidden; }
.weak-list .track i { display: block; height: 100%; border-radius: 999px; background: var(--grad-gold); }
.weak-list .pct { text-align: right; color: var(--tx3); font-size: var(--fs-5); font-variant-numeric: tabular-nums; }

.lesson-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.lesson-list li {
  padding: 0.7rem 0.85rem; border-radius: var(--r-md);
  background: rgba(59, 130, 246, 0.04); border: 1px solid var(--line);
}
.lesson-list .lq { font-size: var(--fs-5); font-weight: 600; margin-bottom: 0.32rem; }
.lesson-list .lm { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: var(--fs-5); color: var(--tx3); }

/* ══════════════════ AI 老师（互动课堂） ══════════════════ */
/* ⚠️ 这里不能写 align-items:start —— 那会让右侧舞台不拉伸，课堂内容全挤在顶部。
   左栏保持自身高度用 align-self:start 单独控制即可。 */
.tutor-grid { display: grid; grid-template-columns: 15rem 1fr; gap: 1rem; min-height: 0; }

.tutor-side {
  padding: 1.2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  align-self: start; position: sticky; top: 0;
}

/* 数字人：4 态状态机 */
.ta { width: 8.5rem; height: 8.5rem; position: relative; }
.ta svg { width: 100%; height: 100%; overflow: visible; }
.ta .ta-eyes { transform-origin: 60px 64px; animation: taBlink 4.4s infinite; }
@keyframes taBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.ta .ta-mouth { transform-origin: 60px 79px; }
.ta .ta-wave { fill: none; stroke: transparent; stroke-width: 2; }
.ta.is-thinking { animation: taTilt 2.4s ease-in-out infinite; }
@keyframes taTilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg) translateY(-3px); } }
.ta.is-speaking .ta-mouth { animation: taTalk 0.3s ease-in-out infinite; }
@keyframes taTalk { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(2.1); } }
.ta.is-speaking .ta-wave, .ta.is-listening .ta-wave {
  stroke: #22d3ee; animation: taWave 1.5s ease-out infinite;
}
.ta.is-listening .ta-wave { stroke: #34d399; }
@keyframes taWave { 0% { r: 52; opacity: 0.75; } 100% { r: 68; opacity: 0; } }
.ta::after {
  content: ''; position: absolute; inset: -0.5rem; border-radius: 50%;
  box-shadow: 0 0 2.4rem rgba(59, 130, 246, 0.55); opacity: 0; transition: opacity 0.3s;
}
.ta.is-speaking::after, .ta.is-listening::after { opacity: 1; }
.ta.is-listening::after { box-shadow: 0 0 2.4rem rgba(52, 211, 153, 0.6); }

.ta-name { font-size: var(--fs-4); font-weight: 700; }
.ta-state { font-size: var(--fs-5); color: var(--cyan); }

.mic {
  width: 100%; padding: 0.7rem; border-radius: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line2); color: var(--tx);
  font-size: var(--fs-5); font-weight: 600;
  transition: background 0.16s, box-shadow 0.16s;
}
.mic i { font-style: normal; font-size: var(--fs-4); }
.mic:hover:not(:disabled) { background: rgba(59, 130, 246, 0.11); }
.mic.live {
  background: linear-gradient(135deg, #34d399, #22d3ee); color: #04211b; border-color: transparent;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: micPulse 1.3s infinite;
}
@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 0.7rem rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.mic-hint { font-size: var(--fs-5); color: var(--tx3); text-align: center; line-height: 1.5; min-height: 2.2em; }

.sw-list { width: 100%; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.2rem; }
.sw { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-5); color: var(--tx2); cursor: pointer; }
.sw input {
  appearance: none; -webkit-appearance: none;
  width: 2.1rem; height: 1.15rem; border-radius: 999px; position: relative;
  background: rgba(59, 130, 246, 0.12); border: 1px solid var(--line2);
  transition: background 0.2s; cursor: pointer; flex: 0 0 auto;
}
.sw input::after {
  content: ''; position: absolute; top: 0.09rem; left: 0.11rem;
  width: 0.85rem; height: 0.85rem; border-radius: 50%; background: #fff;
  transition: transform 0.2s;
}
.sw input:checked { background: var(--grad); border-color: transparent; }
.sw input:checked::after { transform: translateX(0.92rem); }

.stage { padding: 1.05rem 1.15rem; display: flex; flex-direction: column; min-height: 0; }

/* 开始卡片：撑满舞台并垂直居中，大屏上不会缩在左上角 */
.starter { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.5rem; padding: 1rem 0; }
.starter h2 { margin: 0; font-size: var(--fs-2); }
.starter-sub { margin: 0 0 0.8rem; font-size: var(--fs-5); color: var(--tx3); }
.starter-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; width: 100%; max-width: 40rem; }
.big {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 1.2rem 0.7rem; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.65); border: 1px solid var(--line2); color: var(--tx);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.big i { font-style: normal; font-size: var(--fs-1); }
.big b { font-size: var(--fs-4); }
.big span { font-size: var(--fs-5); color: var(--tx3); }
.big:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.9); border-color: rgba(59, 130, 246, 0.5); }

.starter-input, .starter-preview { width: 100%; max-width: 40rem; margin-top: 0.9rem; }
.starter-input textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: 0.9rem; resize: vertical;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line2);
  color: var(--tx); outline: none; font-size: var(--fs-5); line-height: 1.6;
}
.starter-input textarea::placeholder { color: var(--tx3); }
.starter-input textarea:focus { border-color: rgba(59, 130, 246, 0.65); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
.starter-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.7rem; }
.starter-row .go { margin-left: auto; }
.starter-preview img { max-width: 100%; max-height: 18rem; border-radius: var(--r-md); border: 1px solid var(--line2); margin: 0 auto; }
.preview-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.6rem; }
.preview-row .go { margin-left: auto; }

.seg { display: flex; gap: 0.2rem; padding: 0.2rem; border-radius: 0.75rem; background: rgba(59, 130, 246, 0.05); border: 1px solid var(--line); }
.seg button { padding: 0.34rem 0.85rem; border-radius: 0.55rem; font-size: var(--fs-5); color: var(--tx2); }
.seg button.on { background: var(--grad); color: #fff; }

.go, .ghost {
  padding: 0.55rem 1.05rem; border-radius: 0.8rem; font-size: var(--fs-5); font-weight: 600;
  background: var(--grad); color: #fff; border: 0;
  box-shadow: 0 0.6rem 1.4rem rgba(59, 130, 246, 0.42);
  transition: transform 0.16s, box-shadow 0.16s;
}
.go:hover { transform: translateY(-1px); box-shadow: 0 0.8rem 1.8rem rgba(59, 130, 246, 0.6); }
.ghost {
  background: rgba(59, 130, 246, 0.05); color: var(--tx2); border: 1px solid var(--line2); box-shadow: none;
}
.ghost:hover { color: var(--blue); background: rgba(59, 130, 246, 0.11); }
.ghost.sm { padding: 0.36rem 0.75rem; font-size: var(--fs-5); border-radius: 0.6rem; }
.ghost.danger { color: #be123c; border-color: rgba(251, 113, 133, 0.4); }
.ghost.danger:hover { background: rgba(251, 113, 133, 0.12); }

/* 课堂：占满舞台，气泡区自己滚动 */
.classroom { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.cls-bar { display: flex; align-items: center; gap: 0.55rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.lp { flex: 1; height: 0.42rem; border-radius: 999px; background: rgba(59, 130, 246, 0.08); overflow: hidden; min-width: 5rem; }
.lp > i { display: block; height: 100%; width: 4%; border-radius: 999px; background: var(--grad); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lp-text { font-size: var(--fs-5); color: var(--tx2); white-space: nowrap; }

.board { margin-top: 0.7rem; border-radius: var(--r-md); background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line); }
.board-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--line); font-size: var(--fs-5); }
.board-head button { margin-left: auto; }
.board-body { padding: 0.8rem 0.95rem; font-size: var(--fs-5); line-height: 1.85; white-space: pre-wrap; overflow-x: auto; }

.chat { flex: 1 1 auto; min-height: 12rem; overflow-y: auto; padding: 0.9rem 0.2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.msg { display: flex; gap: 0.55rem; align-items: flex-start; }
.msg .who {
  flex: 0 0 auto; width: 1.85rem; height: 1.85rem; border-radius: 0.6rem;
  display: grid; place-items: center; font-size: var(--fs-5); font-weight: 700;
  background: var(--grad); color: #fff;
}
.msg.student { flex-direction: row-reverse; }
.msg.student .who { background: rgba(59, 130, 246, 0.14); color: var(--tx); }
.bubble {
  max-width: 78%; padding: 0.7rem 0.9rem; border-radius: 1rem;
  background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line);
  font-size: var(--fs-5); line-height: 1.75;
}
.msg.student .bubble { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.4); }
.m-head { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.m-phase, .m-step, .m-title {
  font-size: var(--fs-5); padding: 0.1rem 0.45rem; border-radius: 999px;
  background: rgba(59, 130, 246, 0.09); border: 1px solid var(--line); color: var(--tx2);
}
.m-step { background: rgba(245, 181, 68, 0.14); color: #b45309; border-color: rgba(245, 181, 68, 0.32); }
.m-say { white-space: pre-wrap; }
.m-board {
  margin-top: 0.55rem; padding: 0.55rem 0.7rem; border-radius: 0.7rem;
  background: rgba(59, 130, 246, 0.07); border-left: 2px solid rgba(34, 211, 238, 0.7);
  font-size: var(--fs-5); line-height: 1.8; overflow-x: auto;
}
.msg.thinking .bubble { display: flex; align-items: center; gap: 0.55rem; color: var(--tx3); font-size: var(--fs-5); }
.msg.thinking em { font-style: normal; }
.dots { display: inline-flex; gap: 0.18rem; }
.dots i { width: 0.36rem; height: 0.36rem; border-radius: 50%; background: var(--cyan); animation: dotB 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.16s; }
.dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes dotB { 0%, 60%, 100% { opacity: 0.28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.notice {
  align-self: center; max-width: 90%; padding: 0.4rem 0.85rem; border-radius: 999px;
  font-size: var(--fs-5); color: var(--tx2);
  background: rgba(59, 130, 246, 0.04); border: 1px solid var(--line);
}
.notice.bad { color: #be123c; background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.28); }
.notice.good { color: #047857; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.28); }

.answer { border-top: 1px solid var(--line); padding-top: 0.7rem; }

/* ═══════ v167 题目精讲模式：左题目 / 右板书（参考竞品；右上角小云老师卡） ═══════ */
.pz-mini {
  position: absolute; top: 1rem; right: 1.1rem; z-index: 8;
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(0.6rem); -webkit-backdrop-filter: blur(0.6rem);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  box-shadow: 0 0.45rem 1.3rem rgba(31, 51, 102, 0.16);
}
.pz-mini img { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #ffe3c4; }
.pz-mini-t { display: flex; flex-direction: column; line-height: 1.25; }
.pz-mini-t b { font-size: var(--fs-5); color: var(--tx1); }
.pz-mini-t i { font-style: normal; font-size: var(--fs-5); color: var(--tx2); }
.pz-mini-ask {
  border: none; cursor: pointer; border-radius: 999px; padding: 0.32rem 0.75rem;
  background: linear-gradient(135deg, #3f8cff, #2f6ef2); color: #fff; font-weight: 800; font-size: var(--fs-5);
  box-shadow: 0 0.3rem 0.8rem rgba(47, 110, 242, 0.35);
}
#view-tutor.pz { position: relative; }
#view-tutor.pz .tutor-grid { grid-template-columns: 1fr; }
#view-tutor.pz .tutor-side { display: none; }
#view-tutor.pz .stage { position: relative; }
#view-tutor.pz .classroom {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: 'bar bar' 'qz board' 'chat board';
  gap: 0.8rem; min-height: 0;
}
#view-tutor.pz .cls-bar { grid-area: bar; }
#view-tutor.pz .cam-queue { grid-column: 1 / -1; }
#view-tutor.pz .qz-pane { grid-area: qz; }
#view-tutor.pz .board { grid-area: board; margin-top: 0; display: flex; flex-direction: column; min-height: 0; }
#view-tutor.pz .board-body { flex: 1 1 auto; overflow-y: auto; font-size: var(--fs-4); }
#view-tutor.pz .chat { grid-area: chat; min-height: 0; }
#view-tutor.pz .answer { grid-column: 1; }
#view-tutor.pz .mini-report { grid-column: 1 / -1; }
.qz-pane {
  position: relative; border-radius: var(--r-md);
  background: #fbf7ee; border: 1px solid rgba(160, 130, 80, 0.25);
  box-shadow: inset 0 0 2.2rem rgba(200, 160, 90, 0.12);
  display: flex; flex-direction: column; min-height: 9rem; overflow: hidden;
}
.qz-tag {
  align-self: flex-start; margin: 0.55rem 0.75rem 0;
  font-weight: 800; font-size: var(--fs-5); color: #7a5a1e;
}
.qz-imgwrap { flex: 1 1 auto; min-height: 0; padding: 0.5rem 0.75rem 0.75rem; display: flex; }
.qz-imgwrap img { max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; border-radius: 0.4rem; }
.ans-q { margin: 0 0 0.55rem; font-size: var(--fs-5); }
.ans-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ans-row input {
  flex: 1; min-width: 10rem; padding: 0.55rem 0.85rem; border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line2); color: var(--tx); outline: none;
}
.ans-row input:focus { border-color: rgba(59, 130, 246, 0.65); }
.opt {
  padding: 0.5rem 1rem; border-radius: 0.75rem; font-size: var(--fs-5);
  background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line2); color: var(--tx);
}
.opt:hover { background: rgba(59, 130, 246, 0.22); border-color: rgba(59, 130, 246, 0.6); }
.ans-tips { display: flex; gap: 0.45rem; margin-top: 0.55rem; flex-wrap: wrap; }

.mini-report { margin-top: 0.8rem; padding: 0.9rem 1.05rem; border-radius: var(--r-md); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
.mini-report h3 { margin: 0 0 0.6rem; font-size: var(--fs-4); }
.mr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 0.5rem; }
.mr-item { text-align: center; }
.mr-item b { display: block; font-size: var(--fs-3); font-variant-numeric: tabular-nums; }
.mr-item span { font-size: var(--fs-5); color: var(--tx3); }
.mini-report .dim { color: var(--tx2); }

/* ══════════════════ AI 精准学 ══════════════════ */
.precise-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.cluster-list { display: flex; flex-direction: column; gap: 0.6rem; }
.cl-row { display: grid; grid-template-columns: 7.5rem 1fr 3.4rem; align-items: center; gap: 0.7rem; font-size: var(--fs-5); }
.cl-row .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-row .cv { text-align: right; font-size: var(--fs-5); color: var(--tx3); font-variant-numeric: tabular-nums; }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.kpi {
  padding: 0.85rem 0.95rem; border-radius: var(--r-md);
  background: rgba(59, 130, 246, 0.04); border: 1px solid var(--line);
}
.kpi b { display: block; font-size: var(--fs-2); line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi span { font-size: var(--fs-5); color: var(--tx3); }
.kpi.good b { color: #047857; }
.kpi.warn b { color: #b45309; }

.plan-hero { padding: 1.1rem 1.25rem; }
.ph-top { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.ph-top b { font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
.ph-top span { font-size: var(--fs-5); color: var(--tx2); }

.plan-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.8rem; }
.day-card {
  padding: 0.85rem 1rem; border-radius: var(--r-lg);
  background: linear-gradient(158deg, var(--glass-a), var(--glass-b) 60%);
  border: 1px solid var(--line);
  box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.1);
}
.day-card.today { border-color: rgba(59, 130, 246, 0.65); box-shadow: 0 0.9rem 2.2rem rgba(59, 130, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85); }
.day-head { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.55rem; font-size: var(--fs-5); }
.day-head b { font-size: var(--fs-5); }
.day-head .d { font-size: var(--fs-5); color: var(--tx3); }
.today-tag { font-size: var(--fs-5); padding: 0.08rem 0.45rem; border-radius: 999px; background: var(--grad); color: #fff; }
.tasks { display: flex; flex-direction: column; gap: 0.4rem; }
.task {
  display: grid; grid-template-columns: 1.5rem 1fr auto auto; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.6rem; border-radius: 0.7rem;
  background: rgba(59, 130, 246, 0.04); border: 1px solid var(--line);
  font-size: var(--fs-5);
}
.task.done { opacity: 0.55; }
.task.done .tn { text-decoration: line-through; }
.ck {
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-5); color: var(--tx3);
  background: rgba(59, 130, 246, 0.07); border: 1px solid var(--line2);
}
.task.done .ck { background: var(--grad-good); color: #04211b; border-color: transparent; }
.tf { font-size: var(--fs-5); padding: 0.06rem 0.4rem; border-radius: 999px; background: rgba(59, 130, 246, 0.07); color: var(--tx3); }
.tm { font-size: var(--fs-5); color: var(--tx3); }

/* ══════════════════ 培优 / 竞赛 ══════════════════ */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.9rem; }
.tier {
  padding: 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.4rem;
  text-align: left;
}
.tier-top { display: flex; align-items: center; gap: 0.55rem; }
.tier-ic { width: 2.5rem; height: 2.5rem; object-fit: contain; border-radius: 50%; padding: 0.25rem; background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.14)); filter: drop-shadow(0 0.4rem 0.7rem rgba(59, 130, 246, 0.12)); }
.tier b { font-size: var(--fs-4); }
.tier p { margin: 0; font-size: var(--fs-5); color: var(--tx3); line-height: 1.6; flex: 1; }
.tier .tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.7rem; }
.kp { padding: 0.75rem 0.9rem; border-radius: var(--r-md); background: rgba(59, 130, 246, 0.04); border: 1px solid var(--line); }
.kp .kn { font-size: var(--fs-5); font-weight: 600; margin-bottom: 0.3rem; }
.kp .km { display: flex; gap: 0.35rem; flex-wrap: wrap; font-size: var(--fs-5); color: var(--tx3); }
.stars { color: #f59e0b; letter-spacing: 0.05em; }

/* ══════════════════ 王牌练习（蓝调磨砂玻璃） ══════════════════ */
/* 错题本仍沿用 .wr-head / .pk-ic */
.wr-head {
  display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem;
}
.pk-ic { width: 3.4rem; height: 3.4rem; object-fit: contain; border-radius: 50%; padding: 0.35rem; background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.14)); filter: drop-shadow(0 0.5rem 0.9rem rgba(59, 130, 246, 0.12)); }

/* 外壳：左菜单 + 右主区
   高度策略：外壳精确贴合可用空间（.view 最后一个子元素 flex:1 自动撑满），
   右侧内容在 .pk-panel 内部滚动 —— 内容永远到不了 dock 下面。
   左侧栏高度 = 外壳高度，固定不受右侧内容多少影响，菜单+底部按钮始终完整可见。 */
/* ⚠️ 优先级关键：`.view > *:last-child`(0,2,0) 会盖过单类 `.pk-shell`(0,1,0)，
   必须用 #view-practice 前缀（1,0,0）才能压住，否则外壳仍被内容撑高、整页滚动。
   flex-basis 锁 0：视图/外壳高度 = 可用空间，与右侧内容多少无关（内容只在 .pk-panel 内滚）。 */
#view-practice { flex: 1 1 0; min-height: 0; }
#view-practice .pk-shell { display: flex; gap: 1rem; align-items: stretch; flex: 1 1 0; min-height: 0; overflow: hidden; }
.pk-side {
  flex: 0 0 17.05rem; min-height: 0; overflow-y: auto; border-radius: var(--r-lg); padding: 0.7rem 0.8rem 0.7rem;
  align-self: stretch;      /* v217：卡片拉伸到与右区同高（贴底），消除下方空余 */
  max-height: 100%;         /* 最高不超过屏幕可用区：任何屏幕都不会被底边裁切，内容超高时卡片内滚动 */
  display: flex; flex-direction: column; gap: 0.45rem;
  background: linear-gradient(158deg, rgba(59, 130, 246, 0.10), rgba(147, 197, 253, 0.16));
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 1rem 2.4rem rgba(30, 64, 130, 0.12);
  backdrop-filter: blur(12px);
}
.pk-brand { padding: 0.05rem 0.3rem 0.4rem; }
/* 练习页返回按钮：左侧栏顶部固定，回退来路页面（默认首页） */
.pk-back {
  display: flex; align-items: center; gap: 0.3rem; cursor: pointer; align-self: flex-start;
  padding: 0.28rem 0.85rem 0.28rem 0.45rem; border-radius: 999px;
  font-size: var(--fs-5); font-weight: 700; color: #1e40af;
  background: rgba(59, 130, 246, 0.10); border: 1px solid rgba(59, 130, 246, 0.25);
}
.pk-back i { font-style: normal; font-size: var(--fs-3); line-height: 1; transform: translateY(-0.06rem); }
.pk-back:hover { background: rgba(59, 130, 246, 0.20); }
.pk-brand-img { width: 100%; max-width: 13.75rem; display: block; margin: 0 auto; }
.pk-side-tt { font-size: var(--fs-5); font-weight: 800; color: var(--blue); letter-spacing: 0.08em; padding: 0.2rem 0.4rem 0.6rem; }
/* 主标题+副标题 双行卡片（参考竞品样式，加高） */
/* v217：菜单项 flex 拉伸，卡片贴底后各按钮均匀填满、不留空洞 */
.pk-nav-it {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  flex: 1 0 auto; min-height: 3.6rem;
  padding: 0.82rem 0.9rem; border: 1px solid transparent; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.55); color: #2b3a55;
  cursor: pointer; transition: all 0.18s ease; text-align: left;
  box-shadow: 0 0.35rem 0.9rem rgba(30, 64, 130, 0.06);
}
.pk-nav-it:hover { background: rgba(255, 255, 255, 0.85); transform: translateX(2px); }
.pk-nav-it.on {
  background: linear-gradient(135deg, var(--blue), #60a5fa); color: #fff;
  border-color: rgba(37, 99, 235, 0.5); box-shadow: 0 0.6rem 1.4rem rgba(37, 99, 235, 0.28);
}
/* v268：菜单图标换 3D PNG 图标（assets/icons/pk-*.png） */
.pk-nav-ic { width: 2.7rem; height: 2.7rem; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 0.3rem 0.6rem rgba(30, 64, 130, 0.18)); }
.pk-nav-tx { display: flex; flex-direction: column; gap: 0.22rem; min-width: 0; }
.pk-nav-tx b { font-size: var(--fs-4); font-weight: 800; line-height: 1.3; }
.pk-nav-tx small { font-size: var(--fs-5); color: var(--tx3); line-height: 1.4; }
.pk-nav-it.on .pk-nav-tx small { color: rgba(255, 255, 255, 0.88); }

/* 左栏底部：练习记录 + AI 1对1组卷 */
.pk-side-foot { margin-top: auto; display: flex; gap: 0.55rem; padding-top: 0.6rem; }
.pk-foot-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.65rem 0.4rem; border-radius: var(--r-md); cursor: pointer;
  font-size: var(--fs-5); font-weight: 800; transition: all 0.18s ease; white-space: nowrap;
}
.pk-foot-btn i { font-style: normal; font-size: var(--fs-4); }
.pk-foot-btn.ghost {
  background: rgba(255, 255, 255, 0.72); color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.32);
}
.pk-foot-btn.ghost:hover { background: rgba(59, 130, 246, 0.14); transform: translateY(-1px); }
.pk-foot-btn.primary {
  background: linear-gradient(135deg, var(--blue), #2563eb); color: #fff;
  border: 1px solid rgba(37, 99, 235, 0.55); box-shadow: 0 0.5rem 1.2rem rgba(37, 99, 235, 0.3);
}
.pk-foot-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0.7rem 1.6rem rgba(37, 99, 235, 0.38); }

.pk-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 0.9rem; }
/* v268：顶部大卡片固定高 150px（设备端 6rem），大标题前放模块 3D 图 */
.pk-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 6rem; flex: 0 0 auto; padding: 0 1.4rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(235, 245, 255, 0.64));
  border: 1px solid rgba(59, 130, 246, 0.16);
  backdrop-filter: blur(12px); box-shadow: 0 0.8rem 1.8rem rgba(30, 64, 130, 0.10);
}
.pk-top-tt { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.pk-top-img { width: 4.6rem; height: 4.6rem; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 0.4rem 0.8rem rgba(30, 64, 130, 0.20)); }
.pk-top-tx { min-width: 0; }
.pk-top-tt b { display: block; font-size: var(--fs-3); font-weight: 800; color: #1e3a8a; }
.pk-top-tt span { font-size: var(--fs-5); color: var(--tx3); }
.pk-book {
  display: inline-flex; align-items: center; gap: 0.45rem; flex: 0 0 auto;
  max-width: 22rem; padding: 0.55rem 0.95rem; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(147, 197, 253, 0.22));
  border: 1px solid rgba(59, 130, 246, 0.30); color: #1e40af; font-size: var(--fs-5); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all 0.18s ease;
}
.pk-book:hover { background: rgba(59, 130, 246, 0.22); transform: translateY(-1px); }
.pk-book-ic { font-size: var(--fs-4); }

.pk-diffbtn {
  display: inline-flex; align-items: center; gap: 0.35rem; flex: 0 0 auto;
  padding: 0.55rem 0.95rem; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(147, 197, 253, 0.22));
  border: 1px solid rgba(59, 130, 246, 0.30); color: #1e40af; font-size: var(--fs-5); font-weight: 600;
  white-space: nowrap; transition: all 0.18s ease;
}
.pk-diffbtn:hover { background: rgba(59, 130, 246, 0.22); transform: translateY(-1px); }
.pk-diffbtn b { font-weight: 800; color: #1d4ed8; }
.pk-diffbtn-ic { font-size: var(--fs-4); }
.pk-diffbtn-sw { font-size: var(--fs-5); font-weight: 800; }
.pk-top-acts { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }

.pk-panel { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 0.2rem; }

/* 同步练习：章节树（章折叠头 → 节小标题 → 知识点行） */
/* v229: 改回自然高度——v217 的「均分拉伸撑满面板」在章节少（如高中必修二仅 5 章）时每张卡被拉得过高，马总要求改回 */
.pk-tree { display: flex; flex-direction: column; gap: 0.7rem; }
.pk-chapter {
  border-radius: var(--r-lg); overflow: hidden;
  flex: 0 0 auto; min-height: 4.2rem; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.80), rgba(235, 245, 255, 0.66));
  border: 1px solid rgba(59, 130, 246, 0.16); box-shadow: 0 0.6rem 1.4rem rgba(30, 64, 130, 0.08);
}
.pk-chapter.open { flex: 0 0 auto; }
.pk-chapter-h {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; cursor: pointer;
  user-select: none; transition: background 0.15s ease;
}
.pk-chapter.open .pk-chapter-h { flex: 0 0 auto; }
.pk-chapter-h:hover { background: rgba(59, 130, 246, 0.07); }
.pk-chapter-dia { color: var(--blue); font-size: var(--fs-5); font-style: normal; }
.pk-chapter-h b { font-size: var(--fs-4); font-weight: 800; color: #1e3a8a; flex: 0 0 auto; }
.pk-chapter-n { font-size: var(--fs-5); color: var(--tx3); margin-left: 0.2rem; }
.pk-chapter-ar { margin-left: auto; font-style: normal; color: var(--blue); font-size: var(--fs-4); transition: transform 0.22s ease; }
.pk-chapter.open .pk-chapter-ar { transform: rotate(180deg); }
.pk-chapter-b { display: none; padding: 0.2rem 1.1rem 1rem; }
.pk-chapter.open .pk-chapter-b { display: block; }
.pk-sec { margin: 0.9rem 0 0.5rem; font-size: var(--fs-5); }
.pk-sec b { font-weight: 800; color: #1f2d44; }
.pk-kp {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.62rem 0.7rem;
  border-radius: var(--r-md); transition: background 0.15s ease; position: relative;
}
.pk-kp:hover { background: rgba(59, 130, 246, 0.08); }
.pk-kp.ind { margin-left: 1.1rem; padding-left: 0.9rem; border-left: 2px solid rgba(59, 130, 246, 0.18); }
.pk-kp-dot { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: rgba(59, 130, 246, 0.45); flex: 0 0 auto; }
.pk-kp-nm { flex: 1; min-width: 0; font-size: var(--fs-5); color: #2b3a55; font-weight: 500; }
.pk-kp-acts { display: flex; gap: 0.45rem; flex: 0 0 auto; }

/* 通用行（薄弱点 / 试卷 / 错题） */
.pk-row2 {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.1rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(235, 245, 255, 0.64));
  border: 1px solid rgba(59, 130, 246, 0.16); box-shadow: 0 0.6rem 1.4rem rgba(30, 64, 130, 0.08);
}
.pk-row2-main { flex: 1; min-width: 0; }
.pk-row2 .pn { font-size: var(--fs-4); font-weight: 700; color: #1f2d44; }
.pk-row2 .pc { font-size: var(--fs-5); color: var(--tx3); margin-top: 0.15rem; }
.pk-row2 .bar { width: 7rem; }
.pk-row2-acts { display: flex; gap: 0.5rem; flex: 0 0 auto; }

/* AI 拍练 */
.pk-snap {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center;
  padding: 2.4rem 1.5rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(235, 245, 255, 0.64));
  border: 1px solid rgba(59, 130, 246, 0.18); box-shadow: 0 0.8rem 1.8rem rgba(30, 64, 130, 0.09);
}
.pk-snap-ic { font-size: 3rem; }
.pk-snap b { font-size: var(--fs-3); color: #1e3a8a; }
.pk-snap p { font-size: var(--fs-5); color: var(--tx3); max-width: 32rem; line-height: 1.7; }
.pk-snap .btn { margin-top: 0.5rem; }

.pk-empty { padding: 2.4rem; text-align: center; color: var(--tx3); font-size: var(--fs-5); line-height: 1.8; }

/* ── 选择教材：全屏页（左上固定返回 · 册次/类型筛选 · 封面网格） ── */
body.bp-full .topbar { display: none !important; }
body.bp-full .dock { display: none !important; }
body.bp-full .dock-fade { display: none !important; }
.bp-page {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, #eaf3ff 0%, #f6f9ff 55%, #eef6ff 100%);
}
.bp-top {
  flex: 0 0 auto; display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.4rem; border-bottom: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px);
}
.bp-back {
  display: flex; align-items: center; gap: 0.3rem; cursor: pointer;
  padding: 0.45rem 0.95rem 0.45rem 0.55rem; border-radius: 999px;
  font-size: var(--fs-5); font-weight: 700; color: #1e40af;
  background: rgba(59, 130, 246, 0.10); border: 1px solid rgba(59, 130, 246, 0.25);
}
.bp-back i { font-style: normal; font-size: var(--fs-3); line-height: 1; transform: translateY(-0.08rem); }
.bp-back:hover { background: rgba(59, 130, 246, 0.2); }
.bp-tt { display: flex; align-items: baseline; gap: 0.7rem; }
.bp-tt b { font-size: var(--fs-3); font-weight: 800; color: #1e3a8a; }
.bp-tt span { font-size: var(--fs-5); color: var(--blue); font-weight: 600; }
.bp-top-r { margin-left: auto; font-size: var(--fs-5); color: var(--tx2); }
.bp-top-r b { color: #16a34a; }
.bp-top-r .dim { color: var(--tx3); }
.bp-filters {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0.7rem 1.4rem 0.55rem;
  background: rgba(255, 255, 255, 0.55); border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}
/* 筛选条铁律：单行排开，横向滚动，禁止折行 */
.bp-chips { display: flex; flex-wrap: nowrap; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.bp-chips::-webkit-scrollbar { display: none; }
.bp-chip {
  flex: 0 0 auto; cursor: pointer; font-size: var(--fs-5); font-weight: 700; color: var(--tx2);
  padding: 0.42rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(59, 130, 246, 0.18);
}
.bp-chip:hover { border-color: rgba(59, 130, 246, 0.45); }
.bp-chip.on {
  color: #fff; background: linear-gradient(135deg, var(--blue), #2563eb); border-color: transparent;
  box-shadow: 0 0.3rem 0.8rem rgba(37, 99, 235, 0.28);
}
.bp-chips-sub .bp-chip { font-size: var(--fs-5); padding: 0.34rem 0.85rem; }
.bp-grid-wrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1rem 1.4rem 1.2rem; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; }
.bp-card {
  position: relative; display: flex; flex-direction: column; gap: 0.35rem; cursor: pointer; text-align: left;
  padding: 0.7rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(59, 130, 246, 0.16);
  transition: all 0.15s ease;
}
.bp-card:hover { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0.5rem 1.2rem rgba(30, 64, 130, 0.12); transform: translateY(-2px); }
.bp-card.on { border-color: rgba(37, 99, 235, 0.65); background: rgba(59, 130, 246, 0.10); box-shadow: 0 0.5rem 1.2rem rgba(37, 99, 235, 0.18); }
.bp-card.match { border-color: rgba(34, 197, 94, 0.45); }
.bp-cover { display: block; aspect-ratio: 3 / 4; border-radius: 0.55rem; overflow: hidden; background: #dce9fb; }
.bp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%; height: 100%; color: #fff;
}
.bp-ph b { font-size: var(--fs-2); font-weight: 800; letter-spacing: 0.12em; text-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.18); }
.bp-ph i { font-style: normal; font-size: var(--fs-5); opacity: 0.92; }
.bp-nm { font-size: var(--fs-5); font-weight: 700; color: #1f2d44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-ed { font-size: var(--fs-5); color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-tag {
  position: absolute; top: 0.85rem; left: 0.85rem; font-style: normal; font-size: var(--fs-5); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a); padding: 0.12rem 0.5rem; border-radius: 0.5rem 0 0.5rem 0;
}
.bp-ck {
  position: absolute; top: 0.55rem; right: 0.55rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  font-style: normal; font-size: var(--fs-5); display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92); color: transparent; border: 1px solid rgba(59, 130, 246, 0.35);
}
.bp-card.on .bp-ck { background: linear-gradient(135deg, var(--blue), #2563eb); color: #fff; border-color: transparent; }
.bp-foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 1.4rem; border-top: 1px solid rgba(59, 130, 246, 0.14);
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(14px);
}
.bp-cnt { font-size: var(--fs-5); font-weight: 700; color: #1e3a8a; }
.bp-clear {
  margin-left: auto; cursor: pointer; font-size: var(--fs-5); font-weight: 600; color: var(--tx2);
  padding: 0.5rem 1.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line);
}
.bp-clear:hover { color: #dc2626; border-color: rgba(220, 38, 38, 0.35); }
.bp-done {
  cursor: pointer; font-size: var(--fs-4); font-weight: 800; color: #fff;
  padding: 0.55rem 2.2rem; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  box-shadow: 0 0.4rem 1rem rgba(37, 99, 235, 0.3);
}
.bp-done:hover { filter: brightness(1.06); }
/* ── 基础信息补填弹窗（年级/省市缺失时强制填写，不可点击遮罩关闭） ── */
.bp-guard {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: var(--dlg-mask); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); padding: 2rem 1.5rem;
}
.bp-guard.hidden { display: none; }
/* v220：归标准 lg 档（表单分组型），内部规格走统一 token */
.bp-guard-card {
  width: var(--dlg-w-lg); max-width: 100%; max-height: var(--dlg-maxh); overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff; border-radius: var(--dlg-r); padding: var(--dlg-pad);
  box-shadow: var(--dlg-shadow);
}
.bp-guard-tt { display: block; font-size: var(--fs-2); line-height: var(--lh-2); font-weight: 900; color: var(--tx); text-align: center; }
.bp-guard-tip { margin: 0.8rem 0 1.5rem; font-size: var(--fs-4); line-height: var(--lh-4); color: var(--tx2); text-align: center; }
.bp-g-block { margin-bottom: var(--dlg-gap); }
.bp-g-lab { display: block; font-size: var(--fs-3); font-weight: 800; color: var(--tx2); margin-bottom: 0.5rem; }
.bp-g-lab i { color: #ef4444; font-style: normal; }
.bp-guard .set-sel { height: var(--ctl-h); font-size: var(--fs-3); padding: 0 2.4rem 0 1rem; border-radius: var(--ctl-r); }
.bp-g-save {
  cursor: pointer; width: 100%; height: var(--btn-h); margin-top: 0.6rem;
  font-size: var(--fs-3); font-weight: 800; color: #fff;
  border-radius: var(--btn-r); border: none;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  box-shadow: 0 0.4rem 1rem rgba(37, 99, 235, 0.3);
}
.bp-g-save:disabled { opacity: 0.6; }
.bp-guard .set-region { display: flex; gap: 0.5rem; }
.bp-guard .set-region .set-sel { flex: 1 1 0; min-width: 0; }
/* 「我的教材」面板里的入口链接 */
.pcp-link {
  cursor: pointer; font-size: var(--fs-5); font-weight: 700; color: #1e40af;
  background: rgba(59, 130, 246, 0.10); border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px; padding: 0.18rem 0.7rem; margin-left: 0.3rem;
}
.pcp-link:hover { background: rgba(59, 130, 246, 0.2); }

/* 练习难度选择浮层：居中大卡片（复刻参考样式，蓝色色调） */
.pk-diffpop { position: fixed; inset: 0; z-index: 50; }
.pk-dp-mask {
  position: absolute; inset: 0;
  background: rgba(15, 32, 60, 0.40); backdrop-filter: blur(4px);
}
/* v220：难度选择 → 标准 md 档（选择型：并排选项卡片） */
.pk-dp-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: var(--dlg-w-md); max-width: calc(100vw - 3rem); max-height: var(--dlg-maxh);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--dlg-r);
  background: linear-gradient(170deg, #ffffff 0%, #eef5ff 100%);
  border: 1px solid rgba(59, 130, 246, 0.30);
  box-shadow: var(--dlg-shadow);
  padding: var(--dlg-pad);
  text-align: center;
}
.pk-dp-x {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; cursor: pointer; font-size: var(--fs-3);
  background: rgba(59, 130, 246, 0.10); border: 1px solid rgba(59, 130, 246, 0.25); color: #1e40af;
}
.pk-dp-x:hover { background: rgba(59, 130, 246, 0.22); }
.pk-dp-title { font-size: var(--fs-2); line-height: var(--lh-2); font-weight: 900; color: #1e3a8a; letter-spacing: 0.02em; }
.pk-dp-sub { margin: 0.7rem auto 0; max-width: 36rem; font-size: var(--fs-4); line-height: var(--lh-4); color: var(--tx2); }
.pk-dp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 1.5rem 0 1.6rem; }
.pk-dp-it {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  padding: 1.25rem 0.8rem 1.05rem; border-radius: 1.15rem; cursor: pointer;
  background: rgba(59, 130, 246, 0.05); border: 1.5px solid rgba(59, 130, 246, 0.16);
  transition: all 0.16s ease;
}
.pk-dp-it:hover { border-color: rgba(59, 130, 246, 0.45); transform: translateY(-2px); }
.pk-dp-it.on {
  border-color: var(--blue);
  background: linear-gradient(170deg, rgba(59, 130, 246, 0.12), rgba(147, 197, 253, 0.18));
  box-shadow: 0 0.7rem 1.6rem rgba(37, 99, 235, 0.22);
}
/* 六边形图标（蓝色系） */
.pk-dp-ic {
  width: 4.4rem; height: 4.4rem; display: flex; align-items: center; justify-content: center;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  background: linear-gradient(150deg, #bfdbfe, #60a5fa);
}
.pk-dp-it.on .pk-dp-ic { background: linear-gradient(150deg, #93c5fd, #3b82f6); }
.pk-dp-ic i { font-style: normal; font-size: var(--fs-1); line-height: 1; transform: translateY(0.1rem); }
.pk-dp-it > b { font-size: var(--fs-4); font-weight: 800; color: #1e3a8a; }
.pk-dp-stars { font-size: var(--fs-4); letter-spacing: 0.18em; color: #3b82f6; }
.pk-dp-stars em { font-style: normal; opacity: 0.45; }  /* 拔高的半颗星 */
.pk-dp-it small { font-size: var(--fs-5); line-height: 1.5; color: var(--tx3); max-width: 10rem; }
/* 选中勾角标（右下角） */
.pk-dp-ck {
  position: absolute; right: -1px; bottom: -1px; width: 1.7rem; height: 1.7rem;
  border-radius: 1.15rem 0 1.05rem 0; font-style: normal; font-size: var(--fs-5);
  display: flex; align-items: center; justify-content: center;
  background: rgba(59, 130, 246, 0.12); color: transparent;
}
.pk-dp-it.on .pk-dp-ck { background: linear-gradient(135deg, var(--blue), #2563eb); color: #fff; }
/* 我选好了 */
.pk-dp-ok {
  display: inline-block; min-width: 15rem; padding: 0.8rem 2.6rem; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), #2563eb); color: #fff;
  font-size: var(--fs-4); font-weight: 800; letter-spacing: 0.06em;
  border: 1px solid rgba(37, 99, 235, 0.55); box-shadow: 0 0.6rem 1.5rem rgba(37, 99, 235, 0.32);
  transition: all 0.16s ease;
}
.pk-dp-ok:hover { transform: translateY(-1px); box-shadow: 0 0.8rem 1.9rem rgba(37, 99, 235, 0.40); }

/* ══════════════════ 试卷中心 ══════════════════ */
.paper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 0.9rem; }
.paper { padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; justify-content: space-between; min-height: 11rem; }
.paper .pp-top { display: flex; align-items: center; gap: 0.5rem; }
.paper b { font-size: var(--fs-4); line-height: 1.4; }
.paper .pp-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; font-size: var(--fs-5); color: var(--tx3); }
.paper .pp-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; justify-content: flex-start; }
.paper .pp-foot .btn { margin-left: 0; }
.paper .pp-foot .btn.ghost { margin-left: auto; }

/* ══════════════════ 错题本 ══════════════════ */
.wr-stats { display: flex; gap: 1.4rem; }
.wr-stats div { text-align: center; }
.wr-stats b { display: block; font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.wr-stats span { font-size: var(--fs-5); color: var(--tx3); }
.wr-list { display: flex; flex-direction: column; gap: 0.7rem; }
.wr-row {
  padding: 0.9rem 1.1rem; border-radius: var(--r-lg);
  background: linear-gradient(158deg, rgba(251, 113, 133, 0.08), rgba(59, 130, 246, 0.03) 60%);
  border: 1px solid rgba(251, 113, 133, 0.22);
  box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.09);
}
.wr-row .wq { font-size: var(--fs-4); font-weight: 600; margin-bottom: 0.35rem; }
.wr-row .wm { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: var(--fs-5); color: var(--tx3); margin-bottom: 0.6rem; }
.wr-row .wa { display: flex; gap: 0.45rem; flex-wrap: wrap; }

/* ══════════════════ 记忆曲线复习带（S2） ══════════════════ */
.rv-band { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.9rem; }
.rv-head { display: flex; align-items: baseline; gap: 0.8rem; justify-content: space-between; padding: 0.1rem 0.2rem; }
.rv-head b { font-size: var(--fs-4); color: var(--tx); }
.rv-card { padding: 0.95rem 1.1rem; border-radius: var(--r-lg); }
.rv-card .rv-top { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.rv-card .rv-stem { font-size: var(--fs-4); font-weight: 600; line-height: 1.5; margin-bottom: 0.5rem; }
.rv-card .rv-opts { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: var(--fs-5); color: var(--tx2); margin-bottom: 0.55rem; }
.rv-card .rv-opt b { color: var(--blue); margin-right: 0.25rem; }
.rv-card .rv-act { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.rv-card .rv-ans { margin-top: 0.5rem; }
.rv-empty {
  padding: 0.9rem 1.1rem; border-radius: var(--r-lg); font-size: var(--fs-5); color: var(--tx3);
  background: rgba(59, 130, 246, 0.03); border: 1px dashed var(--line);
}

/* ══════════════════ 提示条 ══════════════════ */
.toast {
  position: fixed; left: 50%; bottom: 9.5rem; transform: translateX(-50%) translateY(1rem);
  z-index: 200; padding: 0.65rem 1.25rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line2);
  color: var(--tx); font-size: var(--fs-5);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.24s, transform 0.24s;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════ 修改初始密码弹窗 ══════════════════ */
/* v220：改为标准 sm 档（表单型，≤4 字段）+ 统一控件规格 */
.pw-mask {
  position: fixed; inset: 0; z-index: 300;
  background: var(--dlg-mask);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
}
.pw-card {
  width: var(--dlg-w-sm); max-width: 100%;
  max-height: var(--dlg-maxh); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-radius: var(--dlg-r);
  box-shadow: var(--dlg-shadow);
  animation: pwIn 0.22s ease-out;
}
@keyframes pwIn { from { opacity: 0; transform: translateY(0.8rem) scale(0.98); } to { opacity: 1; transform: none; } }
.pw-warn {
  padding: 1.6rem 2.2rem 1.4rem;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-bottom: 1px solid #fed7aa;
}
.pw-warn b {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-2); line-height: var(--lh-2); color: #c2410c; margin-bottom: 0.5rem;
}
.pw-warn b::before { content: '⚠️'; font-size: var(--fs-2); }
.pw-warn span { display: block; font-size: var(--fs-4); line-height: var(--lh-4); color: #9a3412; }
.pw-fields { padding: 1.6rem 2.2rem 0.4rem; display: flex; flex-direction: column; gap: var(--ctl-gap); }
.pw-fields label { display: flex; align-items: center; gap: 1rem; }
.pw-fields span { width: 7rem; flex: none; font-size: var(--fs-3); color: var(--tx2); text-align: right; }
.pw-fields input {
  flex: 1; min-width: 0; width: auto; height: var(--ctl-h);
  padding: 0 1rem; border-radius: var(--ctl-r);
  border: 1px solid var(--line2); font-size: var(--fs-3); color: var(--tx);
  outline: none; background: #f8fafc;
}
.pw-fields input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.12); }
.pw-tip { padding: 0.8rem 2.2rem 0; font-size: var(--fs-4); color: #b45309; line-height: var(--lh-4); }
.pw-btns { display: flex; gap: 0.8rem; padding: var(--dlg-pad-ft); justify-content: flex-end; }
.pw-btns button {
  height: var(--btn-h); min-width: 7rem; padding: 0 1.6rem;
  border-radius: var(--btn-r); font-size: var(--fs-3); font-weight: 700; cursor: pointer;
  border: 1px solid var(--line2); background: #fff; color: var(--tx2);
  transition: all 0.15s;
}
.pw-btns button:hover { border-color: var(--blue); color: var(--blue); }
.pw-btns .pw-ok {
  background: linear-gradient(135deg, var(--blue), #2563eb); border-color: transparent; color: #fff;
  box-shadow: 0 0.4rem 1rem rgba(37, 99, 235, 0.28);
}
.pw-btns .pw-ok:hover { filter: brightness(1.06); color: #fff; }
.pw-btns .pw-ok[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ── 退出账号确认弹窗（复用 pw-mask/pw-card/pw-btns）→ v220 归 xs 档（确认型） ── */
#pcLogout .pcm-tx { color: #d9534f; }
.lo-card { width: var(--dlg-w-xs); text-align: center; }
.lo-ico { font-size: 3rem; line-height: 1; padding-top: 2rem; }
.lo-tt { display: block; font-size: var(--fs-2); line-height: var(--lh-2); font-weight: 900; color: var(--tx); margin: 0.8rem 2rem 0; }
.lo-sub { display: block; font-size: var(--fs-4); line-height: var(--lh-4); color: var(--tx2); padding: 0.7rem 2.2rem 0; margin-bottom: 0.2rem; }
.lo-card .pw-btns { justify-content: center; }
.lo-ok { background: linear-gradient(135deg, #ef5350, #e53935) !important; border-color: #e53935 !important; }

/* ⚠️ grid 的行在容器被拉伸时默认会一起撑满（align-content:stretch），
   这几个网格必须按内容排，剩余空间留在底部，否则卡片会被拉成一条条高瘦块。 */
.kp-grid, .tier-grid, .paper-grid, .plan-days { align-content: start; }

/* ══════════════════ 适配兜底 ══════════════════ */
/* 窄屏（开发时用普通显示器预览）—— 保证不塌 */
@media (max-width: 1100px) {
  .home-top, .home-mid, .mine-top, .mine-cols, .precise-top { grid-template-columns: 1fr; }
  .tutor-grid { grid-template-columns: 1fr; }
  .tutor-side { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .ta { width: 5.5rem; height: 5.5rem; }
  .sw-list { width: auto; flex-direction: row; }
  .dock-btn { width: 4.2rem; }
  .dock-btn img { width: 2.1rem; height: 2.1rem; }
  .main { padding-bottom: 6.6rem; }
  .pk-row { grid-template-columns: 1fr auto; row-gap: 0.4rem; }
  .chat { max-height: 40vh; }
}

@media (max-width: 640px) {
  .topnav { overflow-x: auto; }
  .nav-btn { padding: 0.4rem 0.65rem; font-size: var(--fs-5); }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: var(--fs-2); }
  .starter-actions { grid-template-columns: 1fr; }
  .toast { bottom: 8rem; }
}

/* 学习机横屏（≥1600px）：底栏图标再放大一点，触控更准 */
@media (min-width: 1600px) {
  .dock { gap: 0.6rem; padding: 0.6rem 0.9rem; }
  .dock-btn { width: 6rem; }
  .dock-btn img { width: 3rem; height: 3rem; }
}

/* ══════════════════════════════════════════════════════════════
   D1 深空主题首页（2026-09-17 马总定稿）：
   顶栏 = 左 logo · 中 7 导航 · 右 状态+头像昵称；
   首页 = 3 大版块（领航卡 / 今日航线 / 我的星图），大色块 + C4D 图少文字；
   dock = 上 C4D 图标下文字；图标原图含背景存 assets/c4d/，人工抠图后替换
   ══════════════════════════════════════════════════════════════ */
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand-logo {
  width: 2.2rem; height: 2.2rem; border-radius: 0.7rem; display: grid; place-items: center;
  font-size: var(--fs-3); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #f25e6e);
  box-shadow: 0 0.4rem 1rem rgba(242, 94, 110, 0.4);
}
.brand-txt b { display: block; font-size: var(--fs-4); line-height: 1.2; }
.brand-txt span { font-size: var(--fs-5); color: var(--tx3); letter-spacing: 0.18em; }
.who-me {
  display: flex; align-items: center; gap: 0.55rem;
  padding-left: 0.75rem; border-left: 1px solid var(--line);
}
.who-me .who-meta { margin-top: 0.15rem; }

/* ───────── 首页 3 大版块 ───────── */
/* ───────── 大图标功能宫格（学习机定版 2026-10-20：以图为主 · 大字少文） ───────── */
.hm2 {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  grid-auto-rows: 9.2rem; gap: 1.1rem; margin-bottom: 1.4rem;
}
.hm2-card {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1.4rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 1.2rem 1.4rem; text-align: left;
  transition: transform 0.14s, box-shadow 0.14s;
}
.hm2-card::after { /* 顶部光晕，科技感 */
  content: ''; position: absolute; right: -18%; top: -55%; width: 75%; height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.hm2-card:hover { transform: translateY(-0.25rem); box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.35); }
.hm2-card:active { transform: scale(0.97); }
.hm2-card img {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-52%);
  height: 5.6rem; width: auto; filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.hm2-card b { position: relative; z-index: 1; font-size: var(--fs-2); font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.hm2-card i { position: relative; z-index: 1; margin-top: 0.35rem; font-style: normal; font-size: var(--fs-4); color: rgba(255, 255, 255, 0.78); }
/* 主推大卡：AI 老师一对一 */
.hm2-hero { grid-row: span 3; background: linear-gradient(155deg, #2a3f8f 0%, #4a2f9e 55%, #1a1440 100%); justify-content: center; align-items: center; text-align: center; padding: 1.6rem; }
.hm2-hero img { position: relative; right: auto; top: auto; transform: none; height: 11rem; margin-bottom: 1.2rem; filter: drop-shadow(0 1rem 2rem rgba(80, 60, 220, 0.55)); }
.hm2-hero b { font-size: var(--fs-1); }
.hm2-hero i { font-size: var(--fs-3); color: rgba(255, 255, 255, 0.85); }
.hm2-hero::before { content: ''; position: absolute; left: -20%; bottom: -30%; width: 80%; height: 70%; background: radial-gradient(50% 50% at 50% 50%, rgba(120, 90, 255, 0.45), transparent 70%); }
.hm2-ai {
  position: absolute; right: 1.1rem; top: 1.1rem; z-index: 1;
  padding: 0.3rem 0.85rem; border-radius: 2rem; font-size: var(--fs-4); font-weight: 900; font-style: normal;
  color: #fff; background: linear-gradient(90deg, #23c4ff, #7a5cff);
  box-shadow: 0 0 1.2rem rgba(80, 140, 255, 0.75); letter-spacing: 0.06em;
}
/* 功能卡配色：v191 真磨砂玻璃（参考 Clipboard_Screenshot：半透白玻璃+大模糊+亮描边） */
.c-cam, .c-pre, .c-pra, .c-pap, .c-wrg, .c-rep {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.44) 55%, rgba(255, 255, 255, 0.36) 100%);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.85), 0 0.8rem 2rem rgba(59, 130, 246, 0.14);
}
/* 相邻深浅交替，保留层次（第二组玻璃稍透一点） */
.c-pre, .c-pap, .c-rep {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.32) 55%, rgba(255, 255, 255, 0.26) 100%);
}
.hm2-card b { color: #14336e; text-shadow: 0 0.1rem 0.4rem rgba(255, 255, 255, 0.35); }
.hm2-card i { color: #5b76a8; }
.hm2-hero .hm2-hero-tt { color: #16346e; text-shadow: 0 0.1rem 0.4rem rgba(255, 255, 255, 0.6); } /* v196: 无遮罩米色底上改深蓝字（盖过 .hm2-card b）；v225 回退（v224 误改白，马总只要求子模块白字） */

/* ───────── v183 首页大卡：AI 超级老师视频背景 + 四模块（2×2 磨砂小卡） ───────── */
.hm2-hero { position: relative; overflow: hidden; background: #c4c8d2; justify-content: flex-end; align-items: stretch; padding: 1.2rem 1.2rem 1.2rem; } /* v221: 底色改蓝版墙色（原 #eae3d4 米色系旧黄版） */
.hm2-vid {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;        /* v221: 蓝版标准16:9视频，cover 等比裁剪不变形（人物在画面左侧，左对齐裁剪完整保留）；原 176%+fill 是旧黄版定制几何 */
  object-fit: cover; object-position: left center;
}
.hm2-hero::before { /* v221: 顶部渐隐改蓝版墙色 #c9cdd8（原米色在新视频上呈黄色雾罩）；保留渐隐用于顶部文字可读性 */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14%; z-index: 1;
  background: linear-gradient(180deg, rgba(201, 205, 216, 0.95) 0%, rgba(201, 205, 216, 0.45) 55%, rgba(201, 205, 216, 0) 100%);
  pointer-events: none;
}
/* 旧紫色光晕 ::before 已改为顶部渐隐（见 .hm2-vid 上方，v221 起为蓝版墙色） */
.hm2-hero .hm2-ai { top: 1rem; right: auto; left: 1rem; z-index: 2; }
/* 问候语：绝对定位到左上 AI 徽章下方，不遮挡老师面部 */
.hm2-hero .hm2-hi { position: absolute; left: 1rem; top: 1rem; z-index: 2; margin: 0; padding: 0.26rem 0.9rem; border-radius: 2rem; background: rgba(8, 14, 34, 0.6); font-size: var(--fs-4); } /* v192: AI 徽章已删，问候语回到顶部 */
.hm2-hero-tt {
  position: relative; z-index: 2; align-self: center; margin-top: 0.4rem;
  font-size: 2.1rem !important; font-weight: 900; color: #16346e;   /* v196: 无遮罩后米色底上改深蓝字；v225 回退 */
  text-shadow: 0 0.1rem 0.4rem rgba(255, 255, 255, 0.6); white-space: normal;
}
.hm2-mods {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem;
  width: 100%; margin-top: 0.7rem;
}
.hm2-mod {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem; text-align: center;
  padding: 0.6rem 0.3rem; border-radius: 1rem; cursor: pointer;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.75), 0 0.5rem 1.4rem rgba(120, 100, 60, 0.12);
  transition: background 0.15s, transform 0.15s;
}
.hm2-mod:hover { background: rgba(255, 255, 255, 0.55); transform: translateY(-2px); }
.hm2-mod:active { transform: scale(0.96); }
.hm2-hero .hm2-mod img { position: static; transform: none; height: 1.9rem; width: auto; filter: drop-shadow(0 0.2rem 0.5rem rgba(80, 60, 20, 0.25)); } /* v199: 恢复原尺寸（v192 放大一倍系误解，马总指示改回） */
.hm2-mod span { font-size: var(--fs-4); font-weight: 800; line-height: 1.2; color: #fff; text-shadow: 0 0.1rem 0.3rem rgba(20, 51, 110, 0.45); white-space: nowrap; } /* v225: 子模块文字改白字+深蓝微光晕（马总指定：题目精讲/智能组卷/AI一对一答疑/AI诊断规划） */

.home3 {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: 33rem 1fr;
  grid-template-rows: minmax(13.5rem, auto) 1fr; gap: 1rem;
}
.hero-new { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 0.95rem; padding: 1.35rem; position: relative; overflow: hidden; }
.hero-new::after {
  content: ''; position: absolute; right: -4.5rem; top: -4.5rem; width: 17rem; height: 17rem;
  border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  pointer-events: none;
}
.hn-top { display: flex; align-items: center; gap: 1.05rem; position: relative; z-index: 1; }
.hn-ava {
  width: 8.6rem; height: 8.6rem; border-radius: 1.5rem; object-fit: cover;
  border: 1px solid var(--line2); box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.12);
}
.hn-hello { min-width: 0; display: flex; flex-direction: column; gap: 0.32rem; }
.hn-hello b { font-size: var(--fs-2); line-height: 1.25; }
.hn-hello span { color: var(--tx2); font-size: var(--fs-5); }
.hn-line { display: flex; gap: 0.4rem; flex-wrap: wrap; position: relative; z-index: 1; }
.hn-prog { position: relative; z-index: 1; }
.hn-prog-head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-5); color: var(--tx2); }
.hn-prog-head b { font-size: var(--fs-3); color: #047857; font-variant-numeric: tabular-nums; }
.hn-bar { height: 0.55rem; border-radius: 0.3rem; background: rgba(59, 130, 246, 0.10); overflow: hidden; margin-top: 0.4rem; }
.hn-bar i { display: block; height: 100%; border-radius: 0.3rem; background: linear-gradient(90deg, #34d399, #22d3ee); transition: width 0.6s; }
.hn-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; position: relative; z-index: 1; }
.hn-minis > div {
  background: rgba(59, 130, 246, 0.045); border: 1px solid var(--line);
  border-radius: 0.9rem; padding: 0.62rem 0.72rem;
}
.hn-minis b { display: block; font-size: var(--fs-3); font-variant-numeric: tabular-nums; }
.hn-minis span { font-size: var(--fs-5); color: var(--tx3); }
.hero-new .hero-btns { margin-top: auto; position: relative; z-index: 1; }

.route { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.route-tiles { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.rt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.9rem; border-radius: 1.2rem;
  background: rgba(59, 130, 246, 0.04); border: 1px solid var(--line);
  transition: transform 0.18s, background 0.18s;
}
.rt:hover { transform: translateY(-3px); background: rgba(59, 130, 246, 0.08); }
.rt img {
  width: 5.6rem; height: 5.6rem; object-fit: contain; border-radius: 50%;
  padding: 0.55rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(147, 197, 253, 0.18));
  border: 1px solid var(--line); box-shadow: 0 0.5rem 1rem rgba(59, 130, 246, 0.12);
  filter: brightness(1.12) saturate(1.05);
  transition: transform 0.18s;
}
.rt:hover img { transform: scale(1.06) rotate(-2deg); }
.rt b { font-size: var(--fs-4); }
.rt span { font-size: var(--fs-5); color: var(--tx3); }

/* ───────── 我的星图（浅蓝磨砂玻璃 + 彩色 3D 多面体宝石 + 掌握度环，2026-10-15 马总定版） ───────── */
.starmap {
  padding: 1.1rem 1.2rem 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 0;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.82), rgba(228, 240, 255, 0.66) 55%, rgba(214, 232, 252, 0.6));
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 1.2rem 2.6rem rgba(56, 96, 170, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.starmap.glass {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.82), rgba(228, 240, 255, 0.66) 55%, rgba(214, 232, 252, 0.6));
  border-color: rgba(255, 255, 255, 0.75);
}
.starmap .card-head h3 { color: #1c3a78; }
.starmap .card-head #starMeta { margin-left: auto; color: #5a75a8; }
.star-wrap { flex: 1 1 auto; min-height: 180px; position: relative; border-radius: 0.85rem; overflow: hidden; }
.star-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star-svg .st-node { cursor: pointer; }
.star-svg .st-node:hover { filter: brightness(1.1) drop-shadow(0 0 5px rgba(90, 140, 255, 0.65)); }
.star-legend { display: flex; gap: 1.3rem; font-size: var(--fs-5); color: #4a6499; }
.star-legend .lg {
  display: inline-block; width: 0.66rem; height: 0.72rem; margin-right: 0.32rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); /* 小宝石（六边形）图例 */
}
.lg.g { background: linear-gradient(180deg, #8ff2cd, #2fd39a 55%, #0f9a6c); }
.lg.a { background: linear-gradient(180deg, #ffe9a1, #ffc53d 55%, #d18f00); }
.lg.r { background: linear-gradient(180deg, #ffc2d1, #ff7d9c 55%, #d94b74); }
.lg.i { background: linear-gradient(180deg, #b1d0ff, #5f9dff 55%, #2f66d8); }
.star-expand {
  margin-left: 0.55rem; width: 1.7rem; height: 1.7rem; flex: 0 0 auto;
  border-radius: 0.5rem; border: 1px solid rgba(120, 160, 230, 0.4);
  background: rgba(255, 255, 255, 0.6); color: #2c4f9e; font-size: var(--fs-5); line-height: 1; cursor: pointer;
  transition: background 0.16s, transform 0.16s;
}
.star-expand:hover { background: rgba(255, 255, 255, 0.92); transform: translateY(-1px); }

/* ───────── 拍照答疑 · 全屏相机 + 智能分块（2026-10-15 马总定版） ───────── */
.cam-view {
  position: fixed; inset: 0; z-index: 120; overflow: hidden;
  background: #0b1220; display: flex; flex-direction: column;
  animation: sfIn 0.18s ease;
}
.cam-view.hidden { display: none; }
/* ── v167 实时轮廓画布 + 小云老师提示条 ── */
.cam-ol { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cam-hintbar {
  position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%);
  z-index: 6; display: flex; align-items: center; gap: 0.7rem;
  background: rgba(12, 24, 48, 0.72); backdrop-filter: blur(0.5rem); -webkit-backdrop-filter: blur(0.5rem);
  border-radius: 999px; padding: 0.4rem 1.4rem 0.4rem 0.45rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
}
.cam-hintbar img {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 2px solid #fff; object-fit: cover; background: #ffe3c4;
}
.chb-txt p { margin: 0.12rem 0; color: #fff; font-size: var(--fs-5); font-weight: 700; letter-spacing: 0.02em; }
.chb-txt p + p { opacity: 0.92; }
.cam-view video {
  /* Y16 摄像头流为竖向，预览逆时针转 90° 才正向；宽高互换铺满横屏 */
  position: absolute; top: 50%; left: 50%;
  width: 100vh; height: 100vw; object-fit: cover;
  transform: translate(-50%, -50%) rotate(-90deg);
}
.cam-veil {
  position: absolute; inset: 0;
  /* 取景暗角：中央亮、四周压暗，引导把题目放进框内 */
  background: radial-gradient(72% 58% at 50% 46%, transparent 58%, rgba(4, 10, 24, 0.62) 100%);
}
.cam-frame { position: absolute; left: 7%; right: 8.5%; top: 14%; bottom: 9%; pointer-events: none; }
.cam-frame i { position: absolute; width: 2.4rem; height: 2.4rem; border: 0.28rem solid #6ea8ff; opacity: 0.95; }
.cam-frame .c1 { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 0.5rem 0 0 0; }
.cam-frame .c2 { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 0.5rem 0 0; }
.cam-frame .c3 { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 0.5rem; }
.cam-frame .c4 { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 0.5rem 0; }
.cam-top {
  position: relative; z-index: 5; display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.1rem; color: #eaf2ff;
  background: linear-gradient(180deg, rgba(4, 10, 24, 0.72), transparent);
}
.cam-top.solid { background: linear-gradient(180deg, rgba(10, 20, 40, 0.94), rgba(10, 20, 40, 0.82)); }
.cam-top b { font-size: var(--fs-4); }
.cam-top span { margin-left: auto; font-size: var(--fs-5); color: #9db3e0; }
.cam-rbtn {
  min-width: 2.5rem; height: 2.5rem; padding: 0 0.8rem; border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(10, 22, 44, 0.6);
  color: #eaf2ff; font-size: var(--fs-4); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s, transform 0.15s;
}
.cam-rbtn:hover { background: rgba(50, 90, 170, 0.65); transform: translateY(-1px); }
.cam-rbtn.big { width: 3rem; height: 3rem; font-size: var(--fs-3); }
.cam-rbtn.wide { height: 3rem; padding: 0 1.4rem; font-size: var(--fs-4); }
.cam-guide {
  position: relative; z-index: 5; margin: 0.4rem auto 0; padding: 0.45rem 1.1rem;
  border-radius: 2rem; font-size: var(--fs-5); color: #dfeaff;
  background: rgba(10, 22, 44, 0.66); border: 1px solid rgba(110, 168, 255, 0.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cam-side {
  /* 右侧竖排：图库（上）— 快门（垂直居中）— 翻转（下），不遮挡中央取景资料 */
  position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.cam-ctl {
  width: 3rem; height: 3rem; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(8, 16, 34, 0.55); display: grid; place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.cam-ctl svg {
  width: 1.7rem; height: 1.7rem; stroke: #fff; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.cam-ctl:hover { background: rgba(24, 48, 92, 0.75); transform: scale(1.06); }
.cam-ctl:active { transform: scale(0.92); }
.cam-shutter {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; cursor: pointer;
  border: 0.3rem solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.25);
  display: grid; place-items: center; transition: transform 0.12s;
}
.cam-shutter i { width: 3.3rem; height: 3.3rem; border-radius: 50%; background: #fff; transition: transform 0.12s; }
.cam-shutter:active { transform: scale(0.94); }
.cam-shutter:active i { transform: scale(0.86); }
.cam-err {
  position: absolute; z-index: 8; left: 50%; top: 44%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.4rem 1.8rem; border-radius: 1.1rem; text-align: center;
  background: rgba(10, 22, 44, 0.92); border: 1px solid rgba(255, 120, 140, 0.45); color: #ffd9e0;
}
.cam-err b { font-size: var(--fs-4); }
.cam-err span { font-size: var(--fs-5); color: #e8c9d2; max-width: 26rem; line-height: 1.6; }

/* 摄像头启动遮罩：盖住设备流首帧前的黑三角测试图案 */
.cam-boot {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: linear-gradient(160deg, #101b33, #0a1226); color: #cfe0ff; font-size: var(--fs-4);
}
.cam-boot i {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 0.3rem solid rgba(140, 180, 255, 0.3); border-top-color: #6fb4ff;
  animation: spin 0.9s linear infinite;
}
/* 分块选择层 */
.cam-view.seg { background: linear-gradient(160deg, #101b33, #0a1226); }
.seg-stage {
  position: relative; z-index: 3; flex: 1 1 auto; min-height: 0; margin: 0.6rem 1.1rem;
  border-radius: 1rem; overflow: hidden; border: 1px solid rgba(120, 165, 255, 0.3);
  display: grid; place-items: center; background: #060b18;
}
/* 包裹层与图片实际渲染尺寸完全一致 → 分块框百分比坐标精确对齐（不受居中黑边影响） */
.seg-inner { position: relative; display: inline-block; max-width: 100%; max-height: 100%; font-size: 0; touch-action: none; }
.seg-inner img { max-width: 100%; max-height: 78vh; display: block; }
#segBoxes { position: absolute; inset: 0; font-size: initial; }
#segBoxes img { max-width: none; max-height: none; }
/* 题框：实线圆角 + 左侧方形编号徽章（参考软件样式，无手动调节手柄） */
.seg-box {
  position: absolute; cursor: pointer; border-radius: 0.4rem;
  border: 0.18rem solid transparent; background: rgba(8, 12, 22, 0.45);
  transition: background 0.15s, border-color 0.15s;
}
.seg-box b {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-4); font-weight: 800; color: #fff;
  background: rgba(10, 14, 22, 0.82);
  border: 0; box-shadow: none;
  cursor: pointer; touch-action: none;
}
.seg-box b:active { transform: translate(-50%, -50%) scale(0.9); }
/* 点编号自动框选：脉冲高亮该题框 */
.seg-box.pulse { animation: segPulse 0.6s ease; }
@keyframes segPulse {
  0% { box-shadow: 0 0 0 0 rgba(80, 145, 255, 0.65); }
  70% { box-shadow: 0 0 0 1.2rem rgba(80, 145, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(80, 145, 255, 0); }
}
/* 选中：蓝色边框 + 蓝色编号（参考软件：未选黑色、选中蓝色），遮罩变浅提亮题目 */
.seg-box.on { border-color: #3f8cff; background: rgba(63, 140, 255, 0.10); }
.seg-box.on b { background: #3f8cff; }
.seg-loading {
  position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  background: rgba(6, 12, 28, 0.78); color: #cfe0ff; font-size: var(--fs-4);
}
.seg-loading i {
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  border: 0.2rem solid rgba(140, 180, 255, 0.35); border-top-color: #7fb2ff;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* 手指意图提示条（v259）：有手指 → 确认「就讲这道」；没手指 → 提示点选 */
.seg-finger {
  position: absolute; left: 50%; top: 0.8rem; transform: translateX(-50%);
  z-index: 7; max-width: 90%;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.55rem 0.9rem; border-radius: 0.8rem;
  background: rgba(12, 22, 44, 0.9); border: 1px solid rgba(120, 165, 255, 0.45);
  color: #dce9ff; font-size: var(--fs-4); box-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.35);
}
.seg-finger.hidden { display: none; }
.seg-finger.ok {
  background: linear-gradient(120deg, rgba(24, 116, 82, 0.94), rgba(16, 82, 130, 0.94));
  border-color: #57e0a2; color: #eafff4;
}
.seg-finger button {
  flex: 0 0 auto; height: 2.1rem; padding: 0 0.9rem; border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.38); background: rgba(255, 255, 255, 0.16);
  color: #fff; font-size: var(--fs-5);
}
/* 纸面取题场景：把"手指出题目"这句提示提亮，学生一眼看到该怎么做 */
.cam-hintbar.xy .chb-txt p:last-child { color: #8fe3ff; font-weight: 800; }
/* 顶栏右侧次要操作（重拍/手动框题/AI细分），底部只留 1v1 主按钮 */
.seg-ops { display: inline-flex; gap: 0.5rem; margin-left: 0 !important; }
.seg-ops .cam-rbtn { height: 2.4rem; min-width: 0; padding: 0 0.9rem; font-size: var(--fs-5); }
.seg-ops .cam-rbtn.on { background: rgba(87, 224, 162, 0.28); border-color: #57e0a2; color: #b8ffd9; }
.seg-cta {
  position: absolute; left: 0; right: 0; bottom: 1.1rem; z-index: 6;
  display: flex; justify-content: center; pointer-events: none;
}
/* 1v1题目精讲：人物+文字作为一个整体居中，左右边距相等；按钮宽度随内容自适应，全胶囊圆角；人物只向上探出、不越出左右。
   ⚠️ 必须用 .seg-cta 前缀提高特异性：容器 #segView 带 .seg 类，`.seg button`(.34rem/.85rem/.55rem) 会以 (0,1,1) 压过单类规则 (0,1,0) */
.seg-cta .seg-go1v1 {
  position: relative; pointer-events: auto; overflow: visible;
  display: inline-flex; align-items: center; justify-content: center;
  height: 4.2rem; padding: 0 2.4rem; border-radius: 999px;
  border: 0.16rem solid rgba(255, 255, 255, 0.95); cursor: pointer;
  background: linear-gradient(90deg, #ff8ac2 0%, #c98bf0 45%, #7fb0ff 100%);
  box-shadow: 0 0.45rem 1.4rem rgba(150, 80, 200, 0.45);
  transition: transform 0.14s, opacity 0.14s, box-shadow 0.14s;
}
.seg-cta .seg-go1v1 img {
  flex: none; align-self: flex-end; margin: 0 1.2rem 0 0;
  width: 4.4rem; height: 6rem; max-width: none;
  object-fit: contain; object-position: center bottom;
  border: 0; border-radius: 0; box-shadow: none; background: none;
  filter: drop-shadow(0 0.18rem 0.5rem rgba(60, 20, 80, 0.4));
}
.seg-cta .seg-go1v1 span {
  flex: none; align-self: center; margin: 0; position: relative; z-index: 2;
  font-size: var(--fs-2); font-weight: 900; color: #fff; letter-spacing: 0.05rem;
  text-shadow: 0 0.1rem 0.3rem rgba(120, 40, 120, 0.4); white-space: nowrap;
}
.seg-cta .seg-go1v1:hover { transform: translateY(-1px); box-shadow: 0 0.55rem 1.7rem rgba(150, 80, 200, 0.55); }
.seg-cta .seg-go1v1:active { transform: scale(0.97); }
.seg-cta .seg-go1v1:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
/* 手动框题：拖拽中的选框 */
.seg-man {
  position: absolute; z-index: 7; pointer-events: none;
  border: 0.22rem dashed #ffd166; background: rgba(255, 209, 102, 0.12);
  border-radius: 0.4rem;
}
/* 课堂内多题队列条 */
.cam-queue {
  display: flex; gap: 0.55rem; align-items: center; overflow-x: auto;
  padding: 0.5rem 0.8rem; margin: 0.3rem 0 0.5rem;
  border-radius: 0.9rem; background: rgba(120, 165, 255, 0.1);
  border: 1px dashed rgba(110, 160, 255, 0.4);
}
.cam-queue.hidden { display: none; }
.cq-item {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem; border-radius: 0.7rem; cursor: pointer;
  border: 1px solid rgba(110, 160, 255, 0.35); background: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-5); font-weight: 700; color: #2c4f9e;
}
.cq-item img { width: 2.6rem; height: 2rem; object-fit: cover; border-radius: 0.4rem; background: #fff; }
.cq-item.on { border-color: #3d6ee0; background: #eaf2ff; box-shadow: 0 0 0 2px rgba(61, 110, 224, 0.25); }
.cq-item.done { opacity: 0.55; }

/* ───────── 全屏知识星图（浅色玻璃面板，与首页星图同风格） ───────── */
.star-full {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(210, 228, 250, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: sfIn 0.22s ease;
}
@keyframes sfIn { from { opacity: 0; } to { opacity: 1; } }
.sf-panel {
  width: var(--dlg-w-xl); max-width: 96vw; max-height: var(--dlg-maxh); display: flex; flex-direction: column; gap: 0.7rem;
  padding: var(--dlg-pad); border-radius: var(--dlg-r);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.92), rgba(233, 242, 253, 0.86) 55%, rgba(219, 234, 251, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2rem 5rem rgba(40, 80, 150, 0.28);
}
.sf-head { display: flex; align-items: center; gap: 1rem; }
.sf-head h3 { margin: 0; font-size: var(--fs-3); color: #1c3a78; }
.sf-legend { display: flex; gap: 1.1rem; font-size: var(--fs-5); color: #4a6499; margin-left: auto; flex-wrap: wrap; }
.sf-legend .lg {
  display: inline-block; width: 0.66rem; height: 0.72rem; margin-right: 0.3rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.sf-close {
  width: 2.1rem; height: 2.1rem; flex: 0 0 auto; border-radius: 0.7rem;
  border: 1px solid rgba(120, 160, 230, 0.4); background: rgba(255, 255, 255, 0.6);
  color: #2c4f9e; font-size: var(--fs-4); cursor: pointer;
}
.sf-close:hover { background: rgba(255, 255, 255, 0.92); }
.sf-body {
  position: relative; width: 100%; aspect-ratio: 1000 / 620; max-height: 68vh;
  border-radius: 1rem; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.sf-body .star-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-tip { margin: 0; text-align: center; font-size: var(--fs-5); color: #5a75a8; }

/* ───────── 星图视图模式切换（星座视图 / 3D 星域） ───────── */
.sf-modes {
  display: inline-flex; gap: 0.2rem; padding: 0.18rem; margin-left: 0.35rem;
  border-radius: 0.62rem; background: rgba(120, 160, 230, 0.14);
  border: 1px solid rgba(120, 160, 230, 0.3);
}
.sf-mode {
  padding: 0.3rem 0.78rem; border: 0; border-radius: 0.48rem; cursor: pointer;
  background: transparent; color: #4a6499; font-size: var(--fs-5); font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}
.sf-mode:hover { color: #1c3a78; }
.sf-mode.on {
  background: linear-gradient(180deg, #3d6ee0, #2a4fb8); color: #fff;
  box-shadow: 0 0.25rem 0.7rem rgba(56, 108, 224, 0.45);
}

/* ───────── 3D 知识星域舞台（three.js canvas + 悬浮标签层） ───────── */
.sf-body.is3d {
  background:
    radial-gradient(38rem 26rem at 22% 34%, rgba(86, 126, 240, 0.3), transparent 68%),
    radial-gradient(34rem 24rem at 78% 62%, rgba(139, 92, 246, 0.22), transparent 68%),
    radial-gradient(26rem 18rem at 52% 94%, rgba(62, 230, 168, 0.1), transparent 70%),
    radial-gradient(120% 130% at 50% 34%, #16265a 0%, #0a1330 52%, #04081a 100%);
}
.s3-canvas {
  position: absolute; inset: 0; display: block;
  width: 100% !important; height: 100% !important;
  cursor: grab; touch-action: none;
}
.s3-canvas.grabbing { cursor: grabbing; }
.s3-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.s3-lb {
  position: absolute; top: 0; left: 0; text-align: center; white-space: nowrap;
  will-change: transform, opacity; transition: opacity 0.18s linear;
}
.s3-lb b {
  display: block; font-size: var(--fs-5); font-weight: 600;
  color: #cfe0ff; text-shadow: 0 0 6px rgba(4, 10, 26, 0.95), 0 0 2px rgba(4, 10, 26, 1);
}
.s3-lb i {
  display: block; font-style: normal; font-size: 0.56rem; margin-top: 0.08rem;
  color: #8ba7dd; text-shadow: 0 0 5px rgba(4, 10, 26, 0.95);
}
.s3-lb.ch b {
  font-size: var(--fs-5); font-weight: 800; color: #fff;
  text-shadow: 0 0 9px rgba(4, 10, 26, 0.98), 0 0 3px rgba(4, 10, 26, 1), 0 0 18px rgba(90, 140, 255, 0.5);
}
.s3-lb.ch i { font-size: var(--fs-5); color: #a9c3f0; }
.s3-lb.sb b { font-size: var(--fs-5); }
.s3-lb.sb i { font-size: 0.5rem; }
.s3-lb.pt b { font-size: 0.58rem; font-weight: 500; color: #9fd8ff; }
.s3-lb.pt i { font-size: 0.5rem; color: #6f8cc0; }
.s3-lb.core b {
  font-size: var(--fs-4); font-weight: 800; letter-spacing: 0.06em; color: #ffe9a8;
  text-shadow: 0 0 10px rgba(4, 10, 26, 0.98), 0 0 3px rgba(4, 10, 26, 1), 0 0 20px rgba(255, 200, 90, 0.65);
}
.s3-lb.rec b { color: #ffe6a4; }
.s3-lb u {
  display: inline-block; margin-top: 0.16rem; padding: 0.04rem 0.36rem;
  border-radius: 0.5rem; background: #ffd873; color: #5a3b00;
  font-size: 0.52rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 0 0.5rem rgba(255, 216, 115, 0.6);
}
@media (max-width: 760px) {
  .sf-head { flex-wrap: wrap; }
  .sf-modes { order: 9; margin-left: 0; }
  .s3-lb b { font-size: var(--fs-5); }
  .s3-lb.ch b { font-size: var(--fs-5); }
}

/* ───────── 作业辅导 ───────── */
/* ───────── 作业辅导（v283·马总：左竖卡占两行 + 中右 2×2 四卡，沿用首页玻璃风格） ───────── */
.hw-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;   /* 左竖卡略宽，中右两列等宽 */
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}
/* 左竖卡片：跨越两行，高度 = 两个卡片；背景图铺满 */
.hw-tall {
  grid-row: 1 / span 2;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.8rem; padding: 1.6rem 1.3rem;
}
.hw-tall-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; z-index: 0; pointer-events: none;
}
/* v287：白色渐变遮罩已按马总要求去掉，背景图原样显示 */
/* v290：文字块改卡片内左对齐（马总：由居中改为左对齐）；align-self:stretch 抵消父容器居中 */
.hw-tall-main { position: relative; z-index: 2; flex: 1 1 auto; align-self: stretch; width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; justify-content: flex-start; gap: 0.5rem; }
.hw-tall-tt { font-size: var(--fs-2); font-weight: 800; }
.hw-tall-sub { font-size: var(--fs-5); color: var(--tx2); }
/* v286：按钮金色渐变背景 + 上移半个按钮高度 */
.hw-tall-btn { position: relative; z-index: 2; margin-top: auto; }
#hwModeBtn {
  background: linear-gradient(135deg, #4f8dff 0%, #2f6bff 55%, #1a4fff 100%);
  border: none; color: #ffffff; font-weight: 800;
  font-size: var(--fs-4); padding: 0.75rem 1.5rem;
  text-shadow: 0 1px 2px rgba(10, 40, 140, 0.35);
  box-shadow: 0 0.5rem 1.2rem rgba(47, 107, 255, 0.4);
}
#hwModeBtn:active { transform: translateY(0.15rem); box-shadow: 0 0.3rem 0.7rem rgba(47, 107, 255, 0.35); }
#hwModeBtn { margin-bottom: 2rem; }
/* 四张等大小卡片（2×2）：左文右图横向长条，标题放大 */
.hw {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 0;
  padding: 1.4rem 1.6rem; border-radius: 1.4rem; text-align: left;
  transition: transform 0.18s, background 0.18s;
}
.hw:hover { transform: translateY(-4px); background: rgba(59, 130, 246, 0.08); }
.hw-txt { flex: 1 1 50%; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; min-width: 0; }
/* v286：图标包 .hw-ic 占卡片右半区并左右居中，图标放大 0.6 倍（7.2→11.5rem） */
.hw-ic { flex: 0 0 50%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.hw-ic img { flex: none; width: 11.5rem; height: 11.5rem; object-fit: contain; border-radius: 1.9rem; padding: 0.7rem; background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.14)); border: 1px solid var(--line); box-shadow: 0 0.6rem 1.2rem rgba(59, 130, 246, 0.1); filter: brightness(1.08) saturate(1.04); }
.hw b { font-size: var(--fs-2); font-weight: 800; letter-spacing: 0.01em; }
.hw span { font-size: var(--fs-5); color: var(--tx2); line-height: 1.5; }

/* ───────── dock C4D 图标：新图标已带透明底，直接显示，轻阴影提层次 ───────── */
.dock-btn img { filter: drop-shadow(0 0.35rem 0.6rem rgba(59, 130, 246, 0.18)); }

/* ───────── 顶栏右侧用户徽章（横排胶囊：左头像+橙角标·右昵称/年级两行） ───────── */
.user-chip {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.26rem 0.9rem 0.26rem 0.28rem;
  border-radius: 2rem;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.78), rgba(235, 245, 255, 0.62));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
}
.user-chip:hover { transform: translateY(-1px); border-color: var(--line2); }
.up-ava-wrap { position: relative; width: 2.5rem; height: 2.5rem; flex: none; }
.up-ava-wrap img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  object-position: 50% 22%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0.6rem rgba(59, 130, 246, 0.32), 0 0.3rem 0.7rem rgba(15, 23, 42, 0.08);
}
.up-badge {
  position: absolute; left: -0.25rem; bottom: -0.12rem;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-5); font-style: normal; color: #fff;
  background: linear-gradient(150deg, #ff8a3d, #ff5f6d);
  border: 1.5px solid rgba(11, 16, 38, 0.9);
  box-shadow: 0 0.15rem 0.4rem rgba(15, 23, 42, 0.12);
}
.up-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.up-txt b { font-size: var(--fs-4); color: var(--tx); max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-txt i { font-style: normal; font-size: var(--fs-5); font-weight: 600; color: var(--blue); }

/* ───────── 右缘悬浮用户徽章（竖排胶囊，保留） ───────── */
.user-pill {
  position: fixed; right: 0.85rem; top: 50%; transform: translateY(-50%);
  z-index: 45;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  width: 3.6rem; padding: 0.55rem 0.3rem 0.7rem;
  border-radius: 2rem;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.78), rgba(235, 245, 255, 0.62));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
}
.user-pill:hover { transform: translateY(-50%) scale(1.04); border-color: var(--line2); }
.user-pill b { font-size: var(--fs-5); color: var(--tx); max-width: 3.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.user-pill .up-grade {
  writing-mode: vertical-rl; letter-spacing: 0.22em;
  font-size: var(--fs-5); font-weight: 600;
  padding: 0.35rem 0.28rem; border-radius: 0.55rem;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid var(--line2);
  color: var(--blue);
}
.rt img, .hw img { filter: brightness(1.12) saturate(1.05); }

/* ═══════ 个人中心（左卡 + 右面板） ═══════ */
/* v215：个人中心两栏限高 + 各自内部滚动（菜单字体放大后侧栏超高，
   学习机触摸滚动不可靠 → 不依赖整页滚动，直接让两栏在视口内自滚） */
.pc-wrap {
  display: grid; grid-template-columns: 21rem 1fr; gap: 1.2rem; align-items: stretch;
  height: calc(100vh - 3.62rem - 1.05rem - 9.4rem);   /* 视口 - topbar - main上padding - dock留白 */
  min-height: 26rem;
}
.pc-side { padding: 1.4rem 1.1rem; display: flex; flex-direction: column; gap: 0.9rem; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.pcs-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.22rem; }
.pcs-ava {
  width: 4.6rem; height: 4.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7ea6ff, #3b6ef5); color: #fff;
  font-size: var(--fs-2); font-weight: 700;
  box-shadow: 0 0.5rem 1.3rem rgba(59, 110, 245, 0.35);
}
.pcs-name { display: flex; align-items: center; gap: 0.55rem; }
.pcs-name b { font-size: var(--fs-3); }
.pcs-edit {
  border: 1px solid var(--line); background: rgba(255,255,255,0.6); color: var(--tx2);
  font-size: var(--fs-5); font-weight: 600; padding: 0.22rem 0.55rem; border-radius: 2rem; cursor: pointer;
}
.pcs-edit:hover { color: var(--tx); border-color: rgba(59,130,246,0.5); }
.pcs-sub { font-size: var(--fs-5); color: var(--tx3); }
.pcs-badges { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: center; }
.pc-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border: 1px solid var(--line); background: rgba(255,255,255,0.55);
  border-radius: 2rem; padding: 0.26rem 0.66rem; font-size: var(--fs-5); color: var(--tx2);
}
.pc-badge b { color: var(--tx); font-weight: 700; }
/* v215：侧栏菜单字体放大 0.5 倍（马总 2026-10-27）*/
.pc-menu { display: flex; flex-direction: column; gap: 0.18rem; margin-top: 0.15rem; }
.pc-menu button {
  display: grid; grid-template-columns: 1.9rem auto 1fr auto; align-items: center; gap: 0.6rem;
  height: 3.05rem; overflow: hidden;
  width: 100%; text-align: left; padding: 0.5rem 0.9rem; border-radius: 0.9rem;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--tx); font-size: var(--fs-3); font-weight: 600;
  transition: background 0.16s, border-color 0.16s;
}
.pc-menu button:hover { background: rgba(59, 130, 246, 0.08); }
.pc-menu button.on { background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(59,130,246,0.06)); border-color: rgba(59,130,246,0.35); }
.pcm-ico { font-size: var(--fs-3); }
.pc-menu button { line-height: 1.35; }
.pcm-sub { line-height: 1.2; }
.pcm-sub { grid-column: 3; grid-row: 1; justify-self: end; font-size: var(--fs-4); color: var(--tx3); font-weight: 400; text-align: right; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-menu button b { grid-column: 4; grid-row: 1; color: var(--tx3); font-weight: 400; }

.pc-main { padding: 1.5rem 1.8rem; overflow-y: auto; }
.pcp { display: none; }
.pcp.on { display: block; }
.pcp-title { margin: 0 0 0.3rem; font-size: var(--fs-3); }
.pcp-tip { margin: 0 0 1rem; font-size: var(--fs-3); color: var(--tx3); }
.pcp-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.2rem; }

/* 学习设置（年级 + 所在地区，全自动匹配教材） */
.set-block { margin-bottom: 1.1rem; }
.set-lab { display: block; font-size: var(--fs-5); font-weight: 600; color: var(--tx2); margin-bottom: 0.5rem; }
.set-sel {
  appearance: none; -webkit-appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.8rem; border-radius: 0.7rem; cursor: pointer;
  background: rgba(255,255,255,0.7) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%233b82f6' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 0.7rem center;
  border: 1px solid var(--line); color: var(--tx1); font-size: var(--fs-5); min-width: 9rem;
}
.set-sel:focus { outline: none; border-color: rgba(59,130,246,0.6); }
.set-region { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.set-region .set-sel { flex: 1 1 8rem; min-width: 7rem; }
.set-hint { display: block; margin-top: 0.45rem; font-size: var(--fs-5); color: var(--tx3); }
.set-hint b { color: var(--blue, #3b82f6); font-weight: 600; }
.set-ok { margin: 0.2rem 0 0; font-size: var(--fs-5); color: #16a34a; }

/* 我的教材（选教材面板） */
.books-wrap { display: flex; flex-direction: column; gap: 1.1rem; }
.bk-group-h { font-size: var(--fs-4); font-weight: 700; color: var(--tx2); margin: 0 0 0.55rem; padding-left: 0.2rem; }
.bk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.7rem; }
.bk-card {
  position: relative; display: flex; gap: 0.7rem; align-items: center; text-align: left;
  padding: 0.7rem 0.8rem; border-radius: 0.9rem; cursor: pointer;
  background: rgba(255,255,255,0.6); border: 1px solid var(--line);
  transition: border-color .15s, background .15s, transform .1s;
}
.bk-card:hover { border-color: rgba(59,130,246,0.4); background: rgba(255,255,255,0.85); }
.bk-card.on { border-color: rgba(59,130,246,0.8); background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.05)); }
.bk-cover {
  flex: 0 0 3.4rem; width: 3.4rem; height: 4.6rem; border-radius: 0.4rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: rgba(59,130,246,0.08);
  box-shadow: 0 2px 6px rgba(20,40,80,0.12);
}
.bk-cover img { width: 100%; height: 100%; object-fit: cover; }
.bk-noimg { font-size: var(--fs-2); }
.bk-meta { display: flex; flex-direction: column; gap: 0.16rem; min-width: 0; }
.bk-name { font-size: var(--fs-5); font-weight: 700; color: var(--tx1); }
.bk-pub { font-size: var(--fs-5); color: #2563eb; }
.bk-vol { font-size: var(--fs-5); color: var(--tx3); }
.bk-check {
  position: absolute; top: 0.5rem; right: 0.55rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  display: none; align-items: center; justify-content: center; font-size: var(--fs-5); font-style: normal;
  background: #3b82f6; color: #fff;
}
.bk-card.on .bk-check { display: flex; }
.bk-card--match { border-color: rgba(59,130,246,0.55); box-shadow: 0 0.4rem 1.1rem rgba(59,130,246,0.14); }
.bk-tag {
  position: absolute; bottom: 0.5rem; right: 0.55rem; font-style: normal; font-size: var(--fs-5); font-weight: 700;
  color: #fff; background: linear-gradient(135deg,#22c55e,#16a34a); padding: 0.1rem 0.45rem; border-radius: 0.5rem;
}
.books-match { margin: 0 0 1rem; padding: 0.6rem 0.85rem; border-radius: 0.8rem; font-size: var(--fs-5); color: var(--tx2);
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(59,130,246,0.08)); border: 1px solid rgba(34,197,94,0.3); }
.books-match.dim { background: rgba(255,255,255,0.5); border-color: var(--line); color: var(--tx3); }
.books-match b { color: #16a34a; }

/* 学生信息 —— v215：档案排两列 + 字体放大 0.5 倍（马总 2026-10-27）*/
.info-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; max-width: none; }
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.3rem; border-radius: 0.9rem;
  background: rgba(255,255,255,0.55); border: 1px solid var(--line);
  font-size: var(--fs-3);
}
.info-row > span:first-child { color: var(--tx3); }
.info-row > span:last-child { font-weight: 600; }

/* 设备检测 */
.dev-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.8rem 1rem; border-radius: 0.9rem; margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.55); border: 1px solid var(--line);
}
.dev-ico { font-size: var(--fs-3); }
.dev-tx { flex: 1; display: grid; gap: 0.1rem; }
.dev-tx b { font-size: var(--fs-5); }
.dev-tx span { font-size: var(--fs-5); color: var(--tx3); }
.dev-tx em { font-style: normal; font-size: var(--fs-5); color: var(--tx3); }
.dev-tx em.good { color: #15803d; font-weight: 600; }
.dev-tx em.bad { color: #dc2626; font-weight: 600; }
.dev-tx em.warn { color: #b45309; font-weight: 600; }
.dev-tx em.dim { color: var(--tx3); }
.dev-detail {
  margin-top: 0.8rem; padding: 0.9rem 1rem; border-radius: 0.9rem;
  background: rgba(59,130,246,0.06); border: 1px dashed rgba(59,130,246,0.3);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem 1rem;
}
.dev-detail div { display: flex; justify-content: space-between; font-size: var(--fs-5); gap: 0.6rem; }
.dev-detail span { color: var(--tx3); }
.dev-detail b { font-weight: 600; }

/* 系统升级 */
.upg-card {
  padding: 0.95rem 1.1rem; border-radius: 0.95rem; margin-bottom: 0.8rem;
  background: rgba(255,255,255,0.55); border: 1px solid var(--line);
}
.upg-card > b { font-size: var(--fs-4); }
.upg-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; font-size: var(--fs-5); color: var(--tx2); }
.upg-ver { font-style: normal; font-weight: 700; color: #d69e2e; }
.upg-ver u { text-decoration: none; font-weight: 500; }
.upg-auto { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.upg-auto b { font-size: var(--fs-5); }
.upg-auto span { display: block; font-size: var(--fs-5); color: var(--tx3); margin-top: 0.15rem; }
.upg-auto .switch { flex: none; }
.upg-result { margin-top: 0.6rem; font-size: var(--fs-5); }
.upg-result .ok-t { color: #15803d; font-weight: 600; }
.upg-result .bad-t { color: #c0392b; font-weight: 600; }
.upg-new { border: 1px solid #f59e0b55; background: #fffbeb; border-radius: 10px; padding: 0.7rem 0.9rem; }
.upg-new b { color: #b45309; font-size: var(--fs-5); }
.upg-new p { margin: 0.3rem 0 0.55rem; color: #78716c; font-size: var(--fs-5); line-height: 1.5; }

/* 消息通知 */
.nt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.nt-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem; border-radius: 0.9rem;
  background: rgba(255,255,255,0.55); border: 1px solid var(--line);
}
.nt-item.unread { border-color: rgba(59,130,246,0.45); background: rgba(59,130,246,0.07); }
.nt-ico {
  width: 2.2rem; height: 2.2rem; border-radius: 0.65rem; display: grid; place-items: center;
  background: linear-gradient(135deg, #7ea6ff, #3b6ef5); font-size: var(--fs-4); flex: none;
}
.nt-tx { flex: 1; display: grid; gap: 0.12rem; }
.nt-tx b { font-size: var(--fs-5); }
.nt-tx span { font-size: var(--fs-5); color: var(--tx2); }
.nt-item time { font-size: var(--fs-5); color: var(--tx3); }

/* 意见反馈 */
.fb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.fb-item {
  padding: 0.85rem 1rem; border-radius: 0.9rem; cursor: pointer;
  background: rgba(255,255,255,0.55); border: 1px solid var(--line);
  transition: border-color 0.16s;
}
.fb-item:hover { border-color: rgba(59,130,246,0.5); }
.fb-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.fb-head time { margin-left: auto; font-size: var(--fs-5); color: var(--tx3); }
.fb-cat {
  font-style: normal; font-size: var(--fs-5); font-weight: 600; padding: 0.14rem 0.55rem;
  border-radius: 2rem; background: rgba(59,130,246,0.12); color: #2f6fe4;
}
.fb-tag { font-style: normal; font-size: var(--fs-5); font-weight: 600; padding: 0.14rem 0.55rem; border-radius: 2rem; }
.fb-tag.ok { background: rgba(22,163,74,0.12); color: #15803d; }
.fb-tag.wait { background: rgba(217,119,6,0.12); color: #b45309; }
.fb-content { font-size: var(--fs-5); line-height: 1.55; }
.fb-last { margin-top: 0.4rem; font-size: var(--fs-5); color: #15803d; }
.fb-empty { text-align: center; padding: 2.2rem 0; color: var(--tx3); display: grid; gap: 0.3rem; }
.fb-empty b { color: var(--tx2); }
.ff-lab { display: block; font-size: var(--fs-5); color: var(--tx2); font-weight: 600; margin: 0.9rem 0 0.45rem; }
.ff-cats { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.ff-cat {
  border: 1px solid var(--line); background: rgba(255,255,255,0.6); color: var(--tx2);
  font-size: var(--fs-5); font-weight: 600; padding: 0.36rem 0.85rem; border-radius: 2rem; cursor: pointer;
}
.ff-cat.on { background: #3b6ef5; border-color: #3b6ef5; color: #fff; }
#fbText, .fb-reply textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: 0.85rem;
  border: 1px solid var(--line); background: rgba(255,255,255,0.7);
  font-family: inherit; font-size: var(--fs-5); color: var(--tx); outline: none; resize: vertical;
}
#fbText:focus, .fb-reply textarea:focus { border-color: rgba(59,130,246,0.6); }
.ff-count { text-align: right; font-size: var(--fs-5); color: var(--tx3); margin-top: 0.25rem; }
.ff-imgs { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.ff-add {
  width: 4.4rem; height: 4.4rem; border-radius: 0.8rem; border: 1px dashed var(--line);
  background: rgba(255,255,255,0.5); color: var(--tx3); font-size: var(--fs-5); cursor: pointer;
}
.ff-thumb { position: relative; width: 4.4rem; height: 4.4rem; }
.ff-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.8rem; border: 1px solid var(--line); }
.ff-thumb b {
  position: absolute; top: -0.35rem; right: -0.35rem; width: 1.25rem; height: 1.25rem;
  border-radius: 50%; background: #ef4444; color: #fff; font-size: var(--fs-5);
  display: grid; place-items: center; cursor: pointer;
}
/* 对话流 */
.fb-chat {
  display: flex; flex-direction: column; gap: 0.7rem;
  max-height: 24rem; overflow-y: auto; padding: 0.3rem 0.2rem;
}
.fb-msg { display: flex; flex-direction: column; gap: 0.2rem; max-width: 78%; }
.fb-msg.me { align-self: flex-end; align-items: flex-end; }
.fb-msg.hq { align-self: flex-start; align-items: flex-start; }
.fb-who { font-size: var(--fs-5); color: var(--tx3); }
.fb-bubble {
  padding: 0.65rem 0.9rem; border-radius: 0.95rem; font-size: var(--fs-5); line-height: 1.6;
}
.fb-msg.me .fb-bubble { background: linear-gradient(135deg, #3b6ef5, #5b8cff); color: #fff; border-bottom-right-radius: 0.3rem; }
.fb-msg.hq .fb-bubble { background: rgba(255,255,255,0.8); border: 1px solid var(--line); border-bottom-left-radius: 0.3rem; }
.fb-pics { display: flex; gap: 0.4rem; margin-top: 0.45rem; flex-wrap: wrap; }
.fb-pics img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 0.55rem; }
.fb-msg time { font-size: var(--fs-5); color: var(--tx3); }
.fb-reply { display: flex; gap: 0.6rem; align-items: flex-end; margin-top: 0.9rem; }
.fb-reply textarea { flex: 1; }
.fb-reply .btn { flex: none; }
/* v215：单行式菜单（sub 右对齐同行），以下三条为 v122 两行式旧定位，已同步更新 */
.pcm-tx { grid-column: 2; grid-row: 1; white-space: nowrap; min-width: 0; }
.pcm-ico { grid-column: 1; grid-row: 1; align-self: center; }
.pc-menu button b { grid-column: 4; grid-row: 1; }

/* ═══════ v122 首页纯宫格 · 学习机大屏版式（以图为主 · 大图标 · 少文字） ═══════ */
.home3 { padding: 1.6rem 2.6rem 0; }
.home3 .hero-new, .home3 .route, .home3 .starmap { display: none !important; }
.home3 .hm2 {
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-auto-rows: 11.6rem;
  gap: 1.3rem;
  margin-bottom: 0;
}
.hm2-card { border-radius: 1.7rem; padding: 1.6rem 1.8rem; }
.hm2-card img { height: 7rem; }
.hm2-card b { font-size: var(--fs-1); }
.hm2-card i { font-size: var(--fs-3); margin-top: 0.5rem; }
.hm2-hero img { height: 13.5rem; }
.hm2-hero b { font-size: 2.4rem; }
.hm2-hero i { font-size: var(--fs-3); }
.hm2-hi { position: relative; z-index: 1; margin-bottom: 0.6rem; font-size: var(--fs-3); letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.72); }
@media (min-height: 1000px) {
  .home3 .hm2 { grid-auto-rows: 12.4rem; }
  .hm2-hero img { height: 14rem; border-radius: 1.2rem; }
}
/* v122b: 宫格撑满 + 标题不换行 */
.home3 { display: block; width: 100%; }
.home3 .hm2 { width: 100%; max-width: none; flex: none; }
.hm2-card b { white-space: nowrap; }
.hm2-hero b { white-space: normal; }

/* ═══════ v123 底部导航：去背景胶囊条，纯图标+文字悬浮 ═══════ */
.dock {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 1.1rem;
  padding: 0.2rem 0.8rem;
}
.dock-btn { color: #4b5a74; font-size: var(--fs-5); }
.dock-btn img { filter: drop-shadow(0 0.4rem 0.7rem rgba(70, 90, 140, 0.22)); }
.dock-btn.on { background: rgba(59, 130, 246, 0.12); color: #1f6ef2; font-weight: 800; }

/* ═══════ v164 AI 超级老师入口（AI 老师视频循环播放 + 右侧操作区四卡片） ═══════ */
#view-ait { padding: 0; }
/* v165：fixed 铺满视口，任何窗口比例都不露底（修复超宽屏底部白条） */
.ait-stage {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background: #eef1f8;
}
.ait-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; pointer-events: none; }
/* —— 右侧操作区（标题行 + 2×2 卡片成组居中，参考原图；底部 AI 声明常驻） —— */
.ait-panel {
  position: absolute; top: 0; bottom: 0; right: 15px;  /* v164：整体再右移 15px（30→15） */
  width: 54%; min-width: 40rem;  /* v163：收窄并右移，卡片不再遮挡左侧老师；列距减半后卡片仍适配 */
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.2% 2.6% 1.6%;
  pointer-events: none;
}
.ait-panel > * { pointer-events: auto; }
.ait-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2.4%; }
.ait-who {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #ff9f43, #ff7a1a);
  color: #fff; font-weight: 800; font-size: var(--fs-4);
  border-radius: 999px; padding: 0.45rem 1rem 0.45rem 0.55rem;
  box-shadow: 0 0.3rem 0.9rem rgba(255, 122, 26, 0.35);
  white-space: nowrap;
}
.ait-who img { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #ffe3c4; }
/* v164：学生+老师两头像并排叠靠在胶囊最左侧（参考样式），文字在后 */
.ait-who img.av-tea { border-color: #ffd9b0; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); margin-left: -0.7rem; }
.ait-caret { font-style: normal; font-size: var(--fs-5); opacity: 0.9; margin-left: 0.1rem; }
.ait-title-img { height: 3.4rem; max-width: 52%; object-fit: contain; filter: drop-shadow(0 0.25rem 0.7rem rgba(122, 82, 0, 0.4)); }
.ait-cards {
  flex: 0 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 13.5% 2.25%;  /* v163：列距减半（4.5%→2.25%），行距保持 3 倍比例 */
}
.ait-card {
  position: relative; border: none; cursor: pointer;
  aspect-ratio: 1.9;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.26));
  backdrop-filter: blur(0.9rem) saturate(1.25); -webkit-backdrop-filter: blur(0.9rem) saturate(1.25);
  border-radius: 1.2rem;
  box-shadow: 0 0.6rem 1.6rem rgba(31, 51, 102, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 0 2.2rem rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2%;
  padding: 0 5.5% 0 7.5%;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  overflow: hidden;
}
.ait-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.36));
  transform: translateY(-0.2rem);
  box-shadow: 0 0.9rem 2rem rgba(31, 51, 102, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 0 2.2rem rgba(255, 255, 255, 0.3);
}
.ait-card:active { transform: scale(0.97); }
.ait-card-tt {
  font-size: var(--fs-1); font-weight: 800; color: #1f2c49;  /* v163：面板收窄后字号微调，保证六字+图标不溢出 */
  text-align: left; line-height: 1.25; letter-spacing: 0.02em;
  flex: 1; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* 小屏（<1500px）标题自动降号，保证「AI一对一答疑」六字不换行不溢出 */
@media (max-width: 1500px) { .ait-card-tt { font-size: var(--fs-2); } }
.ait-card img {
  width: 36%; max-height: 96%; object-fit: contain;
  /* v166：透明底图标直接叠在卡片上，仅保留浮起投影 */
  filter: drop-shadow(0 0.45rem 0.9rem rgba(40, 60, 120, 0.3));
}
/* v165：四张新 C4D 图标自带底色，统一样式（原圆形徽章特例已去除） */
.ait-foot {
  position: absolute; left: 0; right: 0; bottom: 3.2%;
  text-align: center;
  font-size: var(--fs-5); font-weight: 700; color: #fff;
  background: rgba(101, 67, 22, 0.42);
  border-radius: 999px; padding: 0.3rem 1.1rem;
  width: fit-content; margin: 0 auto;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(60, 40, 10, 0.4);
}

/* ═══════ v125 AI 超级老师满屏模式：隐藏顶栏/底部导航，场景全屏 ═══════ */
body.ait-full .topbar { display: none !important; }
body.ait-full .dock { display: none !important; }
body.ait-full .dock-fade { display: none !important; }  /* v162：底部白色渐变遮罩会盖住 AI 声明文字，满屏时一并隐藏 */
body.ait-full #main, body.ait-full main { padding: 0 !important; margin: 0 !important; }

/* ═══════ 王牌练习满屏模式：隐藏顶栏+底部导航+渐隐遮罩，完整展示练习中心 ═══════ */
body.pk-full .topbar { display: none !important; }
body.pk-full .dock { display: none !important; }
body.pk-full .dock-fade { display: none !important; }
body.pk-full #main, body.pk-full main { padding: 1rem 1.15rem 1.6rem !important; }
body.ait-full .ait-stage { width: 100%; height: 100vh; max-height: none; aspect-ratio: auto; }
body.ait-full .ait-video { height: 100%; }

/* ═══════ AI 超级老师页：左上角固定返回按钮（满屏模式下顶栏/dock 均隐藏，必须有出口） ═══════ */
.ait-back {
  position: fixed; top: 1.4rem; left: 1.4rem; z-index: 60;
  display: flex; align-items: center; gap: 0.35rem; cursor: pointer;
  padding: 0.5rem 1.1rem 0.5rem 0.6rem; border-radius: 999px;
  font-size: var(--fs-4); font-weight: 700; color: #1e40af;
  background: rgba(255,255,255,0.82); border: 1px solid rgba(59,130,246,0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0.3rem 1rem rgba(40,60,120,0.18);
}
.ait-back i { font-style: normal; font-size: var(--fs-2); line-height: 1; transform: translateY(-0.05rem); }
.ait-back:hover { background: rgba(255,255,255,0.95); }
.ait-back:active { transform: scale(0.96); }

/* ═══════ v127 AI 老师授课式讲题：三区白板（读题/板书/总结）+ 词卡提问 ═══════ */
#view-aitTutor { height: 100vh; overflow: hidden; }

/* —— 输入面板 —— */
.at-panel {
  max-width: 62rem; margin: 4rem auto; padding: 2rem 2.2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  background: rgba(255,255,255,0.92); border-radius: 1.6rem;
  box-shadow: 0 1.2rem 3rem rgba(90,110,200,0.14);
}
.at-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.at-badge {
  background: linear-gradient(135deg,#6d8dff,#8b5cf6); color: #fff;
  font-size: var(--fs-2); font-weight: 700; padding: 0.5rem 1.2rem; border-radius: 999px;
}
.at-sub { color: #6b7280; font-size: var(--fs-3); }
.at-input {
  width: 100%; border: 2px solid #e3e8f5; border-radius: 1.1rem;
  font-size: var(--fs-2); padding: 1rem 1.2rem; resize: vertical; min-height: 7rem;
  font-family: inherit; line-height: 1.6; background: #fbfcff;
}
.at-input:focus { outline: none; border-color: #8b9dff; }
.at-stage-row, .at-ex-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.at-lab { color: #9aa3b8; font-size: var(--fs-3); min-width: 5rem; }
.at-chip {
  border: 2px solid #e3e8f5; background: #fff; color: #4b5570;
  font-size: var(--fs-3); padding: 0.4rem 1.2rem; border-radius: 999px; cursor: pointer;
}
.at-chip.on { border-color: #6d8dff; background: #eef1ff; color: #3b56c9; font-weight: 700; }
.at-ex {
  border: 1.5px dashed #c9d3f2; background: #f8faff; color: #4b5570;
  font-size: var(--fs-3); padding: 0.45rem 1.1rem; border-radius: 0.9rem; cursor: pointer;
}
.at-ex:hover { border-color: #6d8dff; color: #3b56c9; }
.at-go {
  align-self: flex-end; border: none; cursor: pointer;
  background: linear-gradient(135deg,#5b7bff,#8b5cf6); color: #fff;
  font-size: var(--fs-2); font-weight: 700; padding: 0.9rem 2.6rem; border-radius: 1.1rem;
  box-shadow: 0 0.6rem 1.6rem rgba(100,110,255,0.35);
}
.at-go:disabled { opacity: 0.6; }
.at-warn { color: #c2410c; font-size: var(--fs-3); background: #fff4ed; border-radius: 0.8rem; padding: 0.7rem 1rem; }

/* —— 授课房间：上读题 / 中板书 / 下总结 —— */
.at-room {
  height: 100vh; display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.4rem 2rem 1.6rem; overflow: hidden; background: #eef1f8;
}
.at-topbar { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.at-back {
  border: none; background: rgba(255,255,255,0.9); color: #4b5570;
  font-size: var(--fs-3); padding: 0.5rem 1.2rem; border-radius: 999px; cursor: pointer;
}
.at-topic { font-size: var(--fs-2); font-weight: 800; color: #2b3450; flex: 1; }
.at-state {
  color: #6d8dff; font-size: var(--fs-3); background: rgba(255,255,255,0.9);
  padding: 0.4rem 1.1rem; border-radius: 999px; white-space: nowrap;
}
.at-zone-tag {
  position: absolute; top: -1rem; left: 1.4rem; z-index: 2;
  background: #5b7bff; color: #fff; font-size: var(--fs-3); font-weight: 700;
  padding: 0.2rem 1rem; border-radius: 999px;
}
.at-zone-blue { background: #8b5cf6; }
.at-zone-orange { background: #f59e0b; }

.at-readcard, .at-board, .at-sum {
  position: relative; background: rgba(255,255,255,0.96); border-radius: 1.4rem;
  box-shadow: 0 0.8rem 2rem rgba(90,110,200,0.10); padding: 1.6rem 1.8rem 1.2rem;
}
.at-readcard { flex: none; max-height: 24vh; overflow: auto; }
.at-board { flex: 1; overflow: auto; }
.at-sum { flex: none; }

/* 读题行 + 黄标条件（竞品：条件黄下划线） */
.at-line { font-size: var(--fs-2); color: #2b3450; line-height: 2; }
.at-mark { border-bottom: 3px solid #ffc53d; font-weight: 700; padding-bottom: 1px; }

/* 板书渐进书写行（手写感字体 + 紫色思路 + 虚拟铅笔） */
.at-steps { position: relative; display: flex; flex-direction: column; gap: 0.55rem; min-height: 3rem; }
.at-step { font-size: var(--fs-2); color: #2b3450; line-height: 1.9; animation: atIn 0.35s ease; }
.at-think { color: #3b56c9; }
.at-no {
  display: inline-flex; width: 1.9rem; height: 1.9rem; border-radius: 999px;
  background: #eef1ff; color: #5b7bff; font-size: var(--fs-3); font-weight: 700;
  align-items: center; justify-content: center; margin-right: 0.7rem; vertical-align: 2px;
}
.at-final-text {
  display: inline-block; background: #e8fbf3; color: #0f9a6c; font-weight: 800;
  border-radius: 0.7rem; padding: 0.25rem 1rem; border: 1.5px solid #9fe8cb;
}
@keyframes atIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 虚拟铅笔：绝对定位 + 滑动过渡 */
.at-pencil {
  position: absolute; width: 2.2rem; height: 2.2rem; left: 4px; top: 8px;
  transition: left 0.4s ease, top 0.4s ease; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(139,92,246,0.4)); z-index: 3;
}

/* 留空与填入（红字填入=学生答对；灰字=老师带过） */
.at-blank {
  display: inline-block; min-width: 6rem; text-align: center;
  border-bottom: 3px dashed #b7c1e2; color: #b7c1e2; font-weight: 800; margin: 0 0.3rem;
}
.at-blank.filled-good { color: #e02020; border-bottom-color: #e02020; }
.at-blank.filled-miss { color: #9aa3b8; border-bottom-color: #9aa3b8; }

/* SUMMARY 卡三件套：定理 + 流程链 + ⚠注意 */
.at-rule { font-size: var(--fs-2); font-weight: 800; color: #8a5a00; background: #fff7e0; border-radius: 0.8rem; padding: 0.6rem 1.1rem; }
.at-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.at-chain-node { background: #eef1ff; color: #3b56c9; font-size: var(--fs-3); font-weight: 700; padding: 0.4rem 1.1rem; border-radius: 999px; }
.at-chain-arrow { color: #8b5cf6; font-size: var(--fs-3); }
.at-warnline { margin-top: 0.7rem; color: #c2410c; font-size: var(--fs-3); }

/* 提问条：词卡（轮到你了） */
.at-askbar {
  flex: none; background: rgba(255,255,255,0.96); border-radius: 1.4rem;
  box-shadow: 0 0.8rem 2rem rgba(90,110,200,0.12); padding: 1.1rem 1.6rem;
}
.at-ask-hint { color: #8b5cf6; font-size: var(--fs-3); font-weight: 700; }
.at-cards { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.7rem; }
.at-card {
  border: 2px solid #d9e0f5; background: #fff; color: #2b3450;
  font-size: var(--fs-2); font-weight: 700; padding: 0.6rem 1.8rem; border-radius: 1rem; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.at-card:hover { border-color: #8b9dff; box-shadow: 0 0.3rem 1rem rgba(100,110,255,0.2); }
.at-card:active { transform: scale(0.95); }
.at-card.good { border-color: #0f9a6c; background: #e8fbf3; color: #0f9a6c; }
.at-card.bad { border-color: #f3c1c1; background: #fdf1f1; color: #c26060; opacity: 0.7; }
.at-feedback { margin-top: 0.6rem; font-size: var(--fs-3); min-height: 1.8rem; }
.at-feedback.good { color: #0f9a6c; }
.at-feedback.bad { color: #c2410c; }

/* 结束条 */
.at-end { flex: none; display: flex; justify-content: center; }
.at-again {
  border: none; cursor: pointer;
  background: linear-gradient(135deg,#5b7bff,#8b5cf6); color: #fff;
  font-size: var(--fs-2); font-weight: 700; padding: 0.9rem 3rem; border-radius: 999px;
  box-shadow: 0 0.6rem 1.6rem rgba(100,110,255,0.35);
}

/* v127b 观感修正：zone 徽章不裁切 + 顶部留白 */
.at-room { padding-top: 2.2rem; gap: 1.5rem; }
.at-readcard, .at-board, .at-sum { margin-top: 0.5rem; }
.at-board { padding-top: 1.8rem; }

/* ═══════ v128：徽章防裁切（改内联，不再绝对定位）+ 语音条 + 倒计时 + 护眼陪伴 ═══════ */
.at-zone-tag {
  position: static; display: inline-block;
  top: auto; left: auto; margin: 0 0 0.6rem;
}
.at-readcard, .at-board { padding-top: 1.4rem; }

/* 语音条（竞品同款：常驻底部，点击说话） */
.at-voice {
  flex: none; display: flex; align-items: center; gap: 1.1rem;
  background: rgba(255,255,255,0.96); border-radius: 1.4rem;
  box-shadow: 0 0.8rem 2rem rgba(90,110,200,0.12); padding: 1rem 1.5rem;
}
.at-mic {
  width: 4.8rem; height: 4.8rem; border-radius: 999px; border: none; flex: none;
  background: linear-gradient(135deg,#5b7bff,#8b5cf6); color: #fff;
  font-size: 2.1rem; cursor: pointer; transition: transform 0.12s;
  box-shadow: 0 0.5rem 1.4rem rgba(100,110,255,0.35);
}
.at-mic:active { transform: scale(0.92); }
.at-mic.rec {
  background: linear-gradient(135deg,#ef4444,#f97316);
  animation: atPulse 1.1s infinite;
}
@keyframes atPulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.45); }
  70% { box-shadow: 0 0 0 1.1rem rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.at-voice-main { flex: 1; min-width: 0; }
.at-voice-hint { color: #4b5570; font-size: var(--fs-3); }
.at-voice-hint.listen { color: #e02020; font-weight: 700; }
.at-voice-heard { color: #8b5cf6; font-size: var(--fs-3); min-height: 1.9rem; margin-top: 0.25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 提问倒计时（无反应老师主动推进） */
.at-count { color: #e02020; font-weight: 800; margin-left: 0.6rem; }
.at-ask-hint.nudge { color: #e02020; }

/* 护眼陪伴开关（topbar 小按钮，开启高亮） */
.at-eye-btn { opacity: 0.75; }
.at-eye-btn.on {
  opacity: 1; background: #fff7e0; color: #b45309;
  border: 1.5px solid #fbbf24; font-weight: 700;
}

/* ═══════ v129：白板一体化（一张板分区域）+ 手写体 + 悬浮语音胶囊 + 工具栏 + 水彩圈画 ═══════ */

/* —— 手写体：字母/数字 Caveat，中文霞鹜文楷（KaTeX 公式保持自身字体保证正确性） —— */
.at-sec .at-line,
.at-sec .at-step,
.at-sec .at-rule,
.at-sec .at-warnline,
.at-sec .at-chain-node,
.at-sec .at-feedback,
.at-sec .at-ask-hint {
  font-family: 'Caveat', 'Xiaolai SC', 'LXGW WenKai Lite', cursive;
}
.at-sec .at-line { font-size: var(--fs-1); }
.at-sec .at-step { font-size: var(--fs-1); }
.at-sec .at-rule { font-size: var(--fs-1); }
.at-sec .at-warnline { font-size: var(--fs-2); }
.at-sec .at-chain-node { font-size: var(--fs-1); }
.at-sec .at-feedback { font-size: var(--fs-2); }
.at-sec .at-ask-hint { font-size: var(--fs-1); }
.at-blank { font-size: var(--fs-1); }

/* —— 白板本体 —— */
.at-room { background: transparent; box-shadow: none; }
.at-wb-wrap { flex: 1; min-height: 0; position: relative; display: flex; }
.at-wb {
  flex: 1; min-height: 0; position: relative;
  display: flex; flex-direction: column;
  background: #fffdf6; border-radius: 1.8rem;
  box-shadow: 0 1.4rem 3.2rem rgba(80,90,150,0.16), inset 0 0 0 1px #f0ead8;
  overflow: hidden;
}
.at-sec { position: relative; padding: 1.7rem 2rem 1.2rem; }
.at-sec-q { flex: none; max-height: 26%; overflow: auto; border-bottom: 2px solid #ece5d2; }
.at-sec-b { flex: 1; min-height: 0; overflow: auto; }
.at-sec-s { flex: none; max-height: 34%; overflow: auto; border-top: 2px solid #ece5d2; background: #fffbea; }
.at-sec-tag {
  display: inline-block; margin-bottom: 0.7rem;
  background: #5b7bff; color: #fff; font-size: var(--fs-3); font-weight: 700;
  padding: 0.25rem 1.1rem; border-radius: 999px;
  font-family: 'Caveat', 'Xiaolai SC', 'LXGW WenKai Lite', cursive;
}
.at-tag-purple { background: #8b5cf6; }
.at-tag-orange { background: #f59e0b; }

/* 水彩圈画层：默认不拦截操作，选笔后激活 */
.at-ink { position: absolute; inset: 0; z-index: 4; pointer-events: none; touch-action: none; }
.at-ink.live { pointer-events: auto; cursor: crosshair; }

/* —— 提问条：浮在白板下部，不占布局空间 —— */
.at-askbar {
  position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.4rem; z-index: 6;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  border-radius: 1.5rem; box-shadow: 0 1rem 2.6rem rgba(80,90,150,0.22);
  padding: 1.2rem 1.7rem;
}

/* —— 悬浮语音胶囊（竞品同款：黑色，底部居中，叠加） —— */
.at-voice {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 8.6rem; z-index: 70;
  display: flex; align-items: center; gap: 1.3rem;
  background: rgba(24,26,36,0.92); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 1rem 1.5rem;
  box-shadow: 0 1.2rem 3rem rgba(20,22,40,0.45);
  min-width: 40rem; max-width: 60rem;
}
.at-vbtn {
  width: 5rem; height: 5rem; border-radius: 999px; border: none; flex: none;
  background: #3a3f52; color: #fff; font-size: 2.2rem; cursor: pointer;
}
.at-vbtn.rec { background: linear-gradient(135deg,#ef4444,#f97316); animation: atPulse 1.1s infinite; }
.at-vmid { flex: 1; min-width: 0; }
.at-vwave { display: flex; gap: 0.45rem; align-items: center; height: 1.4rem; }
.at-vwave i {
  width: 0.55rem; height: 0.9rem; border-radius: 999px;
  background: #8b8ff8; opacity: 0.35;
}
.at-voice.rec .at-vwave i { animation: atWave 0.9s ease-in-out infinite; background: #a5a9ff; opacity: 1; }
.at-voice.rec .at-vwave i:nth-child(2) { animation-delay: 0.1s; }
.at-voice.rec .at-vwave i:nth-child(3) { animation-delay: 0.2s; }
.at-voice.rec .at-vwave i:nth-child(4) { animation-delay: 0.3s; }
.at-voice.rec .at-vwave i:nth-child(5) { animation-delay: 0.4s; }
.at-voice.rec .at-vwave i:nth-child(6) { animation-delay: 0.5s; }
.at-voice.rec .at-vwave i:nth-child(7) { animation-delay: 0.6s; }
.at-voice.rec .at-vwave i:nth-child(8) { animation-delay: 0.7s; }
@keyframes atWave { 0%,100% { height: 0.7rem; } 50% { height: 1.4rem; } }
.at-vrow { display: flex; align-items: baseline; gap: 0.9rem; margin-top: 0.25rem; }
.at-vtime { color: #a5a9ff; font-size: var(--fs-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.at-vhint { color: #e8eaf6; font-size: var(--fs-3); }
.at-vhint.listen { color: #ffb4b4; font-weight: 700; }
.at-vheard { color: #9aa0c8; font-size: var(--fs-3); min-height: 1.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-vstop {
  width: 5rem; height: 5rem; border-radius: 999px; border: 3px solid #4a4f66; flex: none;
  background: #ef4444; cursor: pointer; position: relative;
}
.at-vstop::after {
  content: ''; position: absolute; inset: 30%;
  background: #b91c1c; border-radius: 0.5rem;
}
.at-vstop:active { transform: scale(0.92); }

/* —— 工具栏：悬浮底部中央（草稿本/笔/橡皮/颜色/撤销/清空） —— */
.at-tools {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 1.6rem; z-index: 60;
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 0.7rem 1.2rem;
  box-shadow: 0 1rem 2.6rem rgba(80,90,150,0.25), inset 0 0 0 1px #eef;
}
.at-tool {
  width: 4.4rem; height: 4.4rem; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; font-size: 2.1rem; display: inline-flex;
  align-items: center; justify-content: center; transition: background 0.12s;
}
.at-tool:hover { background: #eef1ff; }
.at-tool.on { background: #e6ebff; box-shadow: inset 0 0 0 2px #6d8dff; }
.at-tool-sep { width: 1.5px; height: 3rem; background: #e3e8f5; }
.at-colors { display: inline-flex; gap: 0.55rem; align-items: center; padding: 0 0.3rem; }
.at-color {
  width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px #d8def0; cursor: pointer; padding: 0;
}
.at-color.on { box-shadow: 0 0 0 3px #6d8dff; transform: scale(1.12); }

/* —— 草稿本面板 —— */
.at-draft {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: var(--dlg-w-xl); max-width: 96vw; height: min(52rem, 78vh); z-index: 90;
  background: #fffdf6; border-radius: var(--dlg-r);
  box-shadow: 0 2rem 5rem rgba(40,45,80,0.4);
  display: flex; flex-direction: column; overflow: hidden;
}
.at-draft-bar {
  flex: none; display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.3rem; background: #f4f0e2; border-bottom: 1.5px solid #e5dfc9;
}
.at-draft-title { font-weight: 800; color: #4b5570; font-size: var(--fs-2); flex: 1; }
.at-draft-btn {
  border: none; background: #fff; color: #4b5570; font-size: var(--fs-3);
  padding: 0.5rem 1.2rem; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 1.5px #e3ddc9;
}
.at-draft-close { background: #5b7bff; color: #fff; }
.at-draft canvas { flex: 1; width: 100%; touch-action: none; cursor: crosshair; background:
  repeating-linear-gradient(0deg, transparent, transparent 3.4rem, #f0ead8 3.4rem, #f0ead8 3.5rem); }

/* v129b 微调：题目区不截半行；提问条/胶囊/工具栏三层不互相遮挡 */
.at-sec-q { max-height: 30%; }
.at-askbar { bottom: 7.8rem; }
.at-voice { bottom: 21.5rem; }
.at-tools { bottom: 1.2rem; }

/* ═══════ v130：字号行距收紧 + 工具栏窄条右下（≤1/3宽）+ 胶囊贴底 + 黑笔默认 ═══════ */
.at-sec .at-line,
.at-sec .at-step { font-size: var(--fs-2); line-height: 1.8; }
.at-sec .at-rule { font-size: var(--fs-2); }
.at-sec .at-warnline { font-size: var(--fs-2); }
.at-sec .at-chain-node { font-size: var(--fs-2); padding: 0.3rem 0.9rem; }
.at-sec .at-feedback { font-size: var(--fs-2); }
.at-sec .at-ask-hint { font-size: var(--fs-2); }
.at-blank { font-size: var(--fs-2); min-width: 5rem; }
.at-steps { gap: 0.35rem; }
.at-sec { padding: 1.2rem 1.6rem 1rem; }

/* 工具栏：窄条悬浮右下（五个小按钮，宽度远小于 1/3 屏） */
.at-tools {
  left: auto; right: 1.2rem; transform: none;
  bottom: 1rem; padding: 0.4rem 0.55rem; gap: 0.25rem;
}
.at-tool { width: 3.2rem; height: 3.2rem; font-size: var(--fs-2); }

/* 语音胶囊：贴底居中（工具栏在右侧，互不遮挡） */
.at-voice { bottom: 1rem; min-width: 34rem; max-width: 44rem; padding: 0.8rem 1.2rem; gap: 1rem; }
.at-vbtn, .at-vstop { width: 4.2rem; height: 4.2rem; font-size: var(--fs-1); }

/* 提问条浮层位置相应上移 */
.at-askbar { bottom: 6.8rem; }

/* ═══════ v131：输入实时预览 + 胶囊缩小一半 + 铅笔跟手书写 ═══════ */
.at-preview {
  border: 1.5px dashed #d9e0f5; border-radius: 1rem;
  background: #fbfcff; color: #2b3450;
  font-size: var(--fs-2); padding: 0.7rem 1rem; line-height: 1.7;
}
.at-pencil { transition: top 0.4s ease; } /* left 交给逐帧扫动，跨行 top 平滑滑动 */

/* 胶囊整体缩小一半 */
.at-voice { min-width: 17rem; max-width: 24rem; padding: 0.45rem 0.7rem; gap: 0.5rem; bottom: 0.9rem; }
.at-vbtn, .at-vstop { width: 2.5rem; height: 2.5rem; font-size: var(--fs-4); }
.at-vstop { border-width: 2px; }
.at-vwave { height: 0.8rem; gap: 0.25rem; }
.at-vwave i { width: 0.35rem; height: 0.6rem; }
.at-vrow { gap: 0.5rem; margin-top: 0.15rem; }
.at-vtime { font-size: var(--fs-4); }
.at-vhint { font-size: var(--fs-4); }
.at-vheard { font-size: var(--fs-4); min-height: 1.2rem; }

/* ═══════ v132：输入框就地美化（contenteditable）+ 铅笔只扫文字宽度 ═══════ */
.at-input {
  min-height: 7rem; max-height: 16rem; overflow: auto;
  outline: none; cursor: text; white-space: pre-wrap;
}
.at-input:empty::before { content: attr(data-ph); color: #9aa3b8; }
.at-input .at-ph { color: #9aa3b8; }
.at-input .katex { font-size: 1.15em; }
.at-preview {
  border: 1.5px solid #d9e0f5; background: #f6f8ff;
  font-size: var(--fs-2); padding: 0.8rem 1.1rem;
}

/* ═══════ v133：首页宫格自适应视口高度，杜绝遮挡底部导航 ═══════ */
.home3 {
  display: flex; flex-direction: column;
  padding-bottom: 0.4rem;
  overflow: hidden;
}
.home3 .hm2 {
  flex: 1 1 auto; min-height: 0;
  grid-auto-rows: auto;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  row-gap: calc(clamp(0.7rem, 1.1vh, 1.3rem) * 2);      /* 三行卡片上下间距 ×2 */
  column-gap: calc(clamp(0.7rem, 1.1vh, 1.3rem) * 3);   /* 大卡与两列卡片列间距 ×3 */
}
.home3 .hm2-card { overflow: hidden; min-height: 0; }
@media (max-height: 940px) {
  .hm2-card { padding: 1.1rem 1.4rem; border-radius: 1.4rem; }
  .hm2-card img { height: 5.4rem; }
  .hm2-card b { font-size: var(--fs-2); }
  .hm2-card i { font-size: var(--fs-4); margin-top: 0.3rem; }
  .hm2-hero img { height: 9.5rem; margin-bottom: 0.7rem; }
  .hm2-hero b { font-size: var(--fs-1); }
  .hm2-hero i { font-size: var(--fs-4); }
}
@media (max-height: 780px) {
  .hm2-card img { height: 4.4rem; }
  .hm2-hero img { height: 7.5rem; }
}

/* ════════ AI 精准练进入页（参考金牌练习版面 · 蓝色磨砂玻璃） ════════ */
.pk-ai-banner {
  margin: 0.5rem 0 0.9rem;
  display: flex; align-items: center; gap: 1.1rem; padding: 0.9rem 1.3rem;
  border-radius: var(--r-lg); border: 1px solid rgba(59,130,246,0.20);
  background: linear-gradient(120deg, rgba(219,234,254,0.75), rgba(191,219,254,0.45) 55%, rgba(255,255,255,0.65));
  box-shadow: 0 0.8rem 2rem rgba(30,64,130,0.10); backdrop-filter: blur(12px);
}
.pk-ai-ava { width: 5.4rem; height: 5.4rem; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0.4rem 1.2rem rgba(30,64,130,0.18); flex: 0 0 auto; }
.pk-ai-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.32rem; }
.pk-ai-bt b { font-size: var(--fs-2); font-weight: 900; color: #16294d; letter-spacing: 0.01em; }
.pk-ai-bt b i { font-style: normal; color: var(--blue); }
.pk-ai-bt > span { font-size: var(--fs-5); color: var(--tx3); }
.pk-ai-dots { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: var(--fs-5); font-weight: 700; color: #2b3a55; }
.pk-ai-dots i { display: inline-block; width: 0.62rem; height: 0.62rem; border-radius: 50%; margin-right: 0.32rem; }
.pk-ai-dots .d-y { background: #f5b83d; }
.pk-ai-dots .d-b { background: #4f8ef7; }
.pk-ai-dots .d-g { background: #34c98e; }
.pk-ai-go {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.85rem 1.5rem; border: none; border-radius: 999px;
  background: linear-gradient(120deg, #3b82f6, #2563eb); color: #fff;
  font-size: var(--fs-4); font-weight: 900; letter-spacing: 0.02em;
  box-shadow: 0 0.6rem 1.6rem rgba(37,99,235,0.35); transition: all 0.15s;
}
.pk-ai-go i {
  font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(255,255,255,0.22);
  font-size: var(--fs-5); font-weight: 900;
}
.pk-ai-go:hover { filter: brightness(1.07); transform: translateY(-1px); }
.pk-ai-tabs { display: flex; align-items: flex-end; gap: 0.4rem; }
.pk-ai-tabs button {
  flex: 1; cursor: pointer; padding: 0.62rem 0.5rem; border: 1px solid rgba(59,130,246,0.18);
  border-radius: 0.7rem 0.7rem 0 0; background: rgba(255,255,255,0.45);
  font-size: var(--fs-4); font-weight: 800; color: var(--tx2); transition: all 0.15s;
}
.pk-ai-tabs button.on {
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border-color: transparent;
  border-radius: 0.7rem 0.7rem 0 0; box-shadow: 0 -0.3rem 1rem rgba(37,99,235,0.22);
}
.pk-ai-body {
  border-radius: 0 0.9rem 0.9rem 0.9rem; border: 1px solid rgba(59,130,246,0.16);
  background: rgba(255,255,255,0.55); backdrop-filter: blur(12px);
  padding: 0.9rem 1rem 1rem; overflow-y: auto; min-height: 0;
}
/* 同步：小节切换条（单行铁律）+ 星状知识图谱 */
.pk-ai-secbar { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.7rem; flex-wrap: nowrap; }
.pk-ai-sec-navs { display: flex; gap: 0.4rem; flex: 0 0 auto; }
.pk-ai-sec-nav {
  flex: 0 0 auto; width: 2.15rem; height: 2.15rem; border-radius: 0.55rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.pk-ai-sec-nav.prev {
  border: 1px solid rgba(59,130,246,0.32); background: rgba(255,255,255,0.82); color: #3b82f6;
}
.pk-ai-sec-nav.prev:hover { background: #dbeafe; }
.pk-ai-sec-nav.next {
  border: 1px solid #2563eb; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.28);
}
.pk-ai-sec-nav.next:hover { filter: brightness(1.08); }
.pk-ai-sec-sel { flex: 0 0 25%; min-width: 0; }
.pk-ai-sec-sel select {
  width: 100%; height: 2.15rem; border-radius: 0.6rem; padding: 0 0.7rem; cursor: pointer;
  border: 1px solid rgba(59,130,246,0.25); background: rgba(255,255,255,0.88);
  color: #16294d; font-size: var(--fs-5); font-weight: 700;
}
.pk-ai-graph {
  border-radius: 0.9rem; background: rgba(255,255,255,0.55);
  border: 1px solid rgba(59,130,246,0.14); overflow: hidden; max-height: 36rem; min-height: 26rem;
  display: flex; align-items: center; justify-content: center;
}
.pk-ai-graph svg { display: block; margin: 0 auto; }
.pk-ai-graph g.kp { cursor: pointer; }
.pk-ai-graph g.kp:hover { filter: drop-shadow(0 0 6px rgba(59,130,246,0.65)); }
.pk-ai-graph g.kp:hover text { fill: #1d4ed8; }
@keyframes pkspin { to { transform: rotate(360deg); } }
.pk-ai-graph .pk-orbit { transform-box: fill-box; transform-origin: center; animation: pkspin 18s linear infinite; }
/* 单元：章卡片网格 */
.pk-ai-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr)); gap: 0.7rem; }
.pk-ai-unit {
  border-radius: 0.8rem; padding: 0.8rem 0.7rem 0.7rem; text-align: center; cursor: pointer;
  background: linear-gradient(170deg, rgba(239,246,255,0.9), rgba(255,255,255,0.65));
  border: 1px solid rgba(59,130,246,0.14); transition: all 0.15s;
}
.pk-ai-unit:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-2px); box-shadow: 0 0.5rem 1.2rem rgba(30,64,130,0.12); }
.pk-ai-unit b { display: block; font-size: var(--fs-5); color: #16294d; line-height: 1.3; min-height: 2.1rem; }
.pk-ai-stars { color: #f5b83d; font-size: var(--fs-5); letter-spacing: 0.12em; margin: 0.25rem 0; }
.pk-ai-stars .off { color: #d7e3f7; }
.pk-ai-unit small { display: block; font-size: var(--fs-5); color: var(--tx3); }
.pk-ai-unit .uic { font-size: var(--fs-2); line-height: 1.15; }
/* 备考 */
.pk-ai-exam-tip { font-size: var(--fs-5); color: var(--tx2); padding: 0.2rem 0.2rem 0.6rem; }
.pk-ai-exam-tip b { color: var(--blue); }
.pk-ai-empty { text-align: center; color: var(--tx3); font-size: var(--fs-5); padding: 1.6rem 0.5rem; }

/* ══════════════════ 真题训练 ══════════════════ */
.pk-real-bar { display: flex; align-items: flex-end; gap: 0.7rem; flex-wrap: nowrap; margin: 0 0 0.6rem; }
.pk-real-field { display: flex; flex-direction: column; gap: 0.25rem; flex: 0 0 auto; }
.pk-real-lab { font-size: var(--fs-5); color: var(--tx3); padding-left: 0.1rem; }
.pk-real-sel { height: 2.2rem; border-radius: 0.6rem; border: 1px solid rgba(59,130,246,0.25); background: rgba(255,255,255,0.88); color: #16294d; font-size: var(--fs-5); font-weight: 700; cursor: pointer; }
.pk-real-field select.pk-real-sel { padding: 0 0.6rem; min-width: 5.5rem; }
.pk-real-region { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0 0.8rem; min-width: 6.5rem; }
.pk-real-caret { font-size: var(--fs-5); color: #3b82f6; margin-left: 0.1rem; }
.pk-real-field-years { flex: 1 1 auto; min-width: 0; }
.pk-real-years { display: flex; gap: 0.4rem; }
.pk-real-years .pk-yr { flex: 0 0 auto; height: 2.2rem; padding: 0 0.85rem; border-radius: 0.6rem; border: 1px solid rgba(59,130,246,0.25); background: rgba(255,255,255,0.7); color: #16294d; font-weight: 700; font-size: var(--fs-5); cursor: pointer; }
.pk-real-years .pk-yr.on { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border-color: transparent; box-shadow: 0 0.3rem 0.9rem rgba(37,99,235,0.28); }
.pk-real-cats { display: flex; gap: 0.5rem; margin: 0 0 0.45rem; flex-wrap: wrap; }
.pk-real-info { font-size: var(--fs-5); color: var(--tx3); margin: 0 0 0.5rem; }
.pk-real-info b { color: var(--blue); }
.pk-real-info .rk-warn { color: #c0392b; }
.pk-real-info .rk-ok { color: #1a9d57; font-weight: 700; }
.pk-real-list { display: flex; flex-direction: column; gap: 0.7rem; }
.pk-real-card { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0.95rem; border-radius: 0.9rem; }
.pk-real-cover { flex: 0 0 auto; width: 4.6rem; height: 5.6rem; border-radius: 0.5rem; background: linear-gradient(160deg, #ffd76a, #f6a623); position: relative; overflow: hidden; box-shadow: 0 0.4rem 1rem rgba(214,150,20,0.3); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #5a3a06; }
.pk-real-cover .pk-real-cy { font-size: var(--fs-4); font-weight: 800; line-height: 1.1; }
.pk-real-cover .pk-real-ct { font-size: var(--fs-5); margin-top: 0.15rem; }
.pk-real-cover .pk-real-stamp { position: absolute; right: 0.2rem; bottom: 0.2rem; font-style: normal; font-size: 0.56rem; background: rgba(192,57,43,0.92); color: #fff; padding: 0.05rem 0.28rem; border-radius: 0.25rem; transform: rotate(-8deg); }
.pk-real-main { flex: 1 1 auto; min-width: 0; }
.pk-real-name { font-size: var(--fs-4); font-weight: 700; color: #1f2d44; line-height: 1.35; }
.pk-real-meta { font-size: var(--fs-5); color: var(--tx3); margin-top: 0.25rem; }
.pk-real-acts { flex: 0 0 auto; display: flex; align-items: center; gap: 0.5rem; }
.pk-real-print { width: 2.2rem; height: 2.2rem; border-radius: 0.6rem; border: 1px solid var(--line); background: rgba(255,255,255,0.7); cursor: pointer; font-size: var(--fs-4); transition: all 0.15s; }
.pk-real-print:hover { background: #eaf1ff; border-color: rgba(59,130,246,0.4); }
/* 地区选择弹层 */
.rk-region-pop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.rk-rp-mask { position: absolute; inset: 0; background: rgba(15,28,54,0.38); backdrop-filter: blur(2px); }
.rk-rp-box { position: relative; width: var(--dlg-w-sm); max-width: 100%; max-height: var(--dlg-maxh); border-radius: var(--dlg-r); border: 1px solid rgba(59,130,246,0.18); box-shadow: 0 1.2rem 3rem rgba(20,40,80,0.35); display: flex; flex-direction: column; overflow: hidden; }
.rk-rp-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; font-weight: 800; color: #16294d; border-bottom: 1px solid rgba(59,130,246,0.12); }
.rk-rp-x { width: 1.8rem; height: 1.8rem; border-radius: 0.5rem; border: none; background: rgba(59,130,246,0.1); color: #3b82f6; cursor: pointer; font-size: var(--fs-5); }
.rk-rp-body { display: flex; min-height: 0; }
.rk-rp-provs { flex: 0 0 38%; border-right: 1px solid rgba(59,130,246,0.12); overflow-y: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.rk-rp-cities { flex: 1 1 auto; overflow-y: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.rk-prov, .rk-city { text-align: left; padding: 0.5rem 0.6rem; border-radius: 0.5rem; border: 1px solid transparent; background: rgba(255,255,255,0.5); cursor: pointer; font-size: var(--fs-5); color: #2a3b57; }
.rk-prov:hover, .rk-city:hover { background: #eaf1ff; }
.rk-prov.on, .rk-city.on { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.rk-rp-empty { color: var(--tx3); font-size: var(--fs-5); padding: 0.6rem; }

/* ═══════ v197 底部 dock 文字/图标各放大 0.5 倍（马总 2026-10-26） ═══════
   v216 马总 2026-10-27：整体缩小为原尺寸的 0.8 倍
   （10.4→8.32rem / 5.25→4.2rem / 1.17→0.936rem / 间距 1.1→0.88rem） */
.dock { gap: 0.88rem; padding: 0.16rem 0.64rem; }
.dock .dock-btn { width: 8.32rem; font-size: var(--fs-4); gap: 0.272rem; }
.dock .dock-btn img { width: 4.2rem; height: 4.2rem; }
.main { padding-bottom: 9.6rem; }
.dock-fade { height: 8.8rem; }

/* ═══════ v198 右侧 6 卡：图标右侧垂直居中+放大0.5倍，文字整体上下居中（马总 2026-10-26） ═══════ */
/* v201: 大卡类名是 hm2-card hm2-hero 双类，必须 :not(.hm2-hero) 排除，否则大卡内四模块图标与布局被污染 */
.home3 .hm2-card:not(.hm2-hero) { justify-content: center; padding-right: 9.4rem; }
.home3 .hm2-card:not(.hm2-hero) img {
  right: 1.85rem; top: 50%; transform: translateY(-50%);
  height: 6.6rem;                 /* 4.4rem(58.6px) × 1.5 = 87.8px */
}

/* ═══════ v204 数学竞赛：左 4/5 试卷区 + 右 1/5 赛事新闻区（马总 2026-10-27） ═══════ */
#view-contest { min-height: 0; } /* 关键：flex 链条加 min-height:0，否则列表撑开把内容沉到 dock 底下 */
.ct-wrap { flex: 1 1 auto; display: flex; gap: 1rem; min-height: 0; }
/* —— 左列 —— */
.ct-main { flex: 4 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 1rem 1.15rem; border-radius: var(--r-lg); }
.ct-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.8rem; flex-wrap: nowrap; }
.ct-tabs { display: inline-flex; background: rgba(59, 130, 246, 0.1); border-radius: 999px; padding: 0.22rem; flex: 0 0 auto; }
.ct-tabs button { border: 0; background: transparent; color: var(--tx2); font-size: var(--fs-4); font-weight: 600; padding: 0.42rem 1.15rem; border-radius: 999px; cursor: pointer; transition: 0.18s; }
.ct-tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 0.35rem 0.9rem rgba(59, 130, 246, 0.3); }
.ct-years { display: flex; gap: 0.45rem; flex: 1 1 auto; min-width: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
.ct-years::-webkit-scrollbar { height: 0; }
.ct-years button { flex: 0 0 auto; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.72); color: var(--tx2); font-size: var(--fs-5); padding: 0.3rem 0.85rem; border-radius: 999px; cursor: pointer; }
.ct-years button.on { background: #fff; border-color: var(--blue); color: var(--blue); font-weight: 800; box-shadow: 0 0.2rem 0.6rem rgba(59, 130, 246, 0.16); }
.ct-cnt { flex: 0 0 auto; color: var(--tx3); font-size: var(--fs-5); white-space: nowrap; }
.ct-list { flex: 1 1 auto; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; align-content: start; padding-right: 0.25rem; }
.ct-row { display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem; padding: 0.85rem 0.95rem 0.8rem; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); cursor: pointer; transition: 0.18s; }
.ct-row:hover { border-color: var(--blue); box-shadow: var(--shadow-soft), 0 0.5rem 1.2rem rgba(59, 130, 246, 0.14); transform: translateY(-2px); }
.ct-badge { display: none; }
.ct-badge.intl { display: none; }
.ct-info { flex: 1 1 auto; min-width: 0; }
/* v218：两行行距收紧（1.22→1.16），上边距与整体 padding 呼应，卡片上下留白一致 */
.ct-name { font-size: var(--fs-4); font-weight: 700; line-height: 1.16; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.32em; }
.ct-meta { margin-top: 0.28rem; font-size: var(--fs-5); color: var(--tx3); display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; }
.ct-go { flex: 0 0 auto; align-self: flex-end; font-size: var(--fs-5); color: var(--blue); font-weight: 800; margin-top: 0.1rem; }
.ct-empty { padding: 2.2rem 0; text-align: center; color: var(--tx3); font-size: var(--fs-5); }
/* 大卡片背景与顶部导航、底部 dock 的间距一致：底部空隙与顶部 1.05rem 相同
   （main 底 padding 9.4rem 已含 dock 区 9.7rem 的重叠，正 margin 抬回 1.4rem 后卡片底边距 dock 顶 ≈1.05rem） */
#view-contest { margin-bottom: -1.8rem; }
#view-contest .ct-list { padding-bottom: 1rem; }
#view-contest .ct-news-list { padding-bottom: 1rem; }
/* 新闻内部文章浮层正文 */
.ctn-body img { max-width: 100%; height: auto; border-radius: 0.4rem; }
.ctn-art { font-size: var(--fs-4); line-height: 1.85; color: var(--tx); }
.ctn-art p { margin: 0.55rem 0; }
.ctn-art section { display: block; }
.ctn-art a { color: var(--blue); pointer-events: none; }
/* —— 右列 —— */
.ct-side { flex: 1.5 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.ct-ad { flex: 0 0 auto; height: 100px; border-radius: var(--r-md); overflow: hidden; position: relative; background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.ct-ad img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.ct-ad-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tx3); font-size: var(--fs-5); text-align: center; padding: 0 0.7rem; line-height: 1.5; }
.ct-news { flex: 1 1 0; min-height: 0; border-radius: var(--r-md); padding: 0.7rem 0.8rem; display: flex; flex-direction: column; }
.ct-news-h { flex: 0 0 auto; font-size: var(--fs-5); font-weight: 800; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.ct-news-list { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; padding-right: 0.15rem; }
.ct-news-it { display: block; text-decoration: none; padding: 0.5rem 0.55rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.66); border: 1px solid var(--line); transition: 0.16s; cursor: pointer; }
.ct-news-it:hover { border-color: var(--line2); background: #fff; }
.ct-news-t { font-size: var(--fs-5); line-height: 1.36; color: var(--tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-news-d { margin-top: 0.25rem; font-size: var(--fs-5); color: var(--tx3); }

/* —— 竞赛试卷详情浮层 —— */
.ctp { position: fixed; inset: 0; z-index: 120; background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 2.2rem; }
.ctp.hidden { display: none; }
.ctp-card { width: var(--dlg-w-xl); max-width: 100%; max-height: var(--dlg-maxh); border-radius: var(--dlg-r); display: flex; flex-direction: column; padding: var(--dlg-pad); background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 1px solid var(--line); box-shadow: var(--dlg-shadow); }
.ctp-head { flex: 0 0 auto; display: flex; align-items: flex-start; gap: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.ctp-title { flex: 1 1 auto; min-width: 0; }
.ctp-title b { font-size: var(--fs-4); }
.ctp-sub { margin-left: 0.7rem; font-size: var(--fs-5); color: var(--tx3); }
.ctp-x { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.8); color: var(--tx2); cursor: pointer; font-size: var(--fs-4); }
.ctp-body { flex: 1 1 auto; overflow-y: auto; padding-top: 0.8rem; }
.ctp-q { padding: 0.85rem 0; border-bottom: 1px dashed var(--line); }
.ctp-q:last-child { border-bottom: 0; }
.ctp-no { display: inline-block; font-size: var(--fs-5); font-weight: 800; color: #fff; background: var(--grad); border-radius: 0.4rem; padding: 0.12rem 0.5rem; margin-right: 0.5rem; }
.ctp-stem { margin-top: 0.45rem; font-size: var(--fs-4); line-height: 1.75; color: var(--tx); white-space: pre-wrap; }
.ctp-stem img { max-width: 100%; border-radius: 0.4rem; }
.ctp-opt { margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.22rem; font-size: var(--fs-5); color: var(--tx2); }
.ctp-acts { margin-top: 0.5rem; display: flex; gap: 0.6rem; }
.ctp-btn { border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.8); color: var(--blue); font-size: var(--fs-5); font-weight: 700; border-radius: 999px; padding: 0.24rem 0.85rem; cursor: pointer; }
.ctp-sol { margin-top: 0.5rem; padding: 0.6rem 0.7rem; border-radius: 0.6rem; background: rgba(59, 130, 246, 0.06); font-size: var(--fs-5); line-height: 1.7; color: var(--tx2); white-space: pre-wrap; }
.ctp-sol.hidden { display: none; }
.ctp-sol img { max-width: 100%; border-radius: 0.4rem; }
.ctp-empty { padding: 2rem 0; text-align: center; color: var(--tx3); }

/* ══════════ AI 智能诊断（v213 · 确认制自适应测评） ══════════ */
.diag-hero { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--r-lg); cursor: pointer; border: 1px solid var(--line2); box-shadow: var(--shadow-soft); transition: transform 0.15s ease; }
.diag-hero:active { transform: scale(0.985); }
.diag-hero-l { flex: 1; min-width: 0; }
.diag-hero-l b { font-size: var(--fs-4); color: var(--tx); }
.diag-hero-l p { margin: 0.25rem 0 0; font-size: var(--fs-5); color: var(--tx2); line-height: 1.55; }
.diag-hero-go { flex: 0 0 auto; font-size: var(--fs-5); font-weight: 800; color: #fff; background: var(--grad); border-radius: 999px; padding: 0.5rem 1.15rem; box-shadow: 0 0.3rem 0.8rem rgba(59, 130, 246, 0.35); }
.diag-hero-go i { font-style: normal; margin-left: 0.25rem; font-weight: 600; }

.dg-card { padding: 1.4rem 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--line2); box-shadow: var(--shadow-soft); }
.dg-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.dg-head h2 { margin: 0; font-size: var(--fs-3); }
.dg-head p { margin: 0.2rem 0 0; font-size: var(--fs-5); }
.dg-ico { flex: 0 0 auto; width: 3rem; height: 3rem; display: grid; place-items: center; font-size: var(--fs-2); border-radius: 1rem; background: rgba(59, 130, 246, 0.1); }

.dg-rules { display: grid; gap: 0.6rem; margin: 0.9rem 0 1.2rem; }
.dg-rule { display: flex; flex-direction: column; gap: 0.12rem; padding: 0.7rem 0.9rem; border-radius: var(--r-md); background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line); }
.dg-rule b { font-size: var(--fs-5); color: var(--tx); }
.dg-rule span { font-size: var(--fs-5); color: var(--tx2); line-height: 1.5; }

.dg-go { display: block; width: 100%; border: 0; cursor: pointer; color: #fff; font-size: var(--fs-4); font-weight: 800; padding: 0.95rem 1rem; border-radius: var(--r-md); background: var(--grad); box-shadow: 0 0.4rem 1rem rgba(59, 130, 246, 0.35); }
.dg-go i { font-style: normal; font-weight: 600; font-size: var(--fs-5); opacity: 0.92; }
.dg-go:disabled { opacity: 0.6; cursor: default; }
.dg-ghost { display: block; width: 100%; margin-top: 0.6rem; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.7); color: var(--tx2); font-size: var(--fs-5); font-weight: 700; padding: 0.7rem; border-radius: var(--r-md); cursor: pointer; }
.dg-note { margin-top: 0.7rem; font-size: var(--fs-5); text-align: center; }

.dg-quiz { padding: 1.3rem 1.4rem; border-radius: var(--r-lg); border: 1px solid var(--line2); box-shadow: var(--shadow-soft); }
.dg-prog { height: 0.5rem; border-radius: 999px; background: rgba(59, 130, 246, 0.12); overflow: hidden; }
.dg-prog i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.3s ease; }
.dg-prog-meta { display: flex; justify-content: space-between; margin: 0.5rem 0 1.1rem; font-size: var(--fs-5); color: var(--tx3); }
.dg-q { font-size: var(--fs-3); line-height: 1.75; color: var(--tx); font-weight: 600; margin-bottom: 1.1rem; }
.q-img { display: inline-block; max-width: 100%; max-height: 240px; vertical-align: middle; margin: 0.35rem 0.5rem 0.35rem 0; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10); }
.dg-opt .q-img { max-height: 96px; margin: 0; box-shadow: none; }
.dg-opts { display: grid; gap: 0.6rem; }
.dg-opt { display: flex; align-items: center; gap: 0.75rem; text-align: left; padding: 0.85rem 1rem; border-radius: var(--r-md); border: 1.5px solid var(--line2); background: rgba(255, 255, 255, 0.75); cursor: pointer; font-size: var(--fs-4); color: var(--tx); line-height: 1.6; }
.dg-opt:active { border-color: var(--blue); background: rgba(59, 130, 246, 0.08); }
.dg-opt em { flex: 0 0 auto; font-style: normal; font-weight: 800; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 0.55rem; background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.dg-inrow { display: flex; gap: 0.6rem; }
.dg-input { flex: 1; min-width: 0; font-size: var(--fs-4); padding: 0.75rem 0.9rem; border-radius: var(--r-md); border: 1.5px solid var(--line2); background: #fff; color: var(--tx); }
.dg-input:focus { outline: none; border-color: var(--blue); }
.dg-submit { flex: 0 0 auto; border: 0; cursor: pointer; color: #fff; font-size: var(--fs-4); font-weight: 800; padding: 0 1.4rem; border-radius: var(--r-md); background: var(--grad); }

.dg-fb-head { font-size: var(--fs-4); font-weight: 800; margin-bottom: 0.7rem; }
.dg-fb-head.ok { color: var(--green); }
.dg-fb-head.no { color: var(--red); }
.dg-fb-ans { font-size: var(--fs-4); color: var(--tx); margin-bottom: 0.6rem; }
.dg-fb-ans b { color: var(--blue); }
.dg-fb-expl { font-size: var(--fs-5); line-height: 1.75; color: var(--tx2); background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.8rem 0.95rem; margin-bottom: 1.1rem; }
.dg-fb.hidden { display: none; }

.dg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0.4rem 0 1.1rem; }
.dg-stat { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.8rem 0.4rem; border-radius: var(--r-md); }
.dg-stat b { font-size: var(--fs-2); }
.dg-stat span { font-size: var(--fs-5); color: var(--tx2); }
.dg-stat.ok { background: rgba(16, 185, 129, 0.1); } .dg-stat.ok b { color: var(--green); }
.dg-stat.inf { background: rgba(59, 130, 246, 0.1); } .dg-stat.inf b { color: var(--blue); }
.dg-stat.no { background: rgba(244, 63, 94, 0.1); } .dg-stat.no b { color: var(--red); }

.dg-sec { margin: 1rem 0 0.5rem; font-size: var(--fs-4); }
.dg-sec.no { color: var(--red); } .dg-sec.mid { color: var(--gold); } .dg-sec.inf { color: var(--blue); }
.dg-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dg-chip { font-size: var(--fs-5); font-weight: 700; padding: 0.32rem 0.8rem; border-radius: 999px; }
.dg-chip.no { color: #be123c; background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.25); }
.dg-chip.mid { color: #92600a; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }
.dg-chip.inf { color: #1d4ed8; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.25); }

.dg-root { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--r-md); background: rgba(244, 63, 94, 0.07); border: 1px solid rgba(244, 63, 94, 0.22); }
.dg-root b { color: var(--red); font-size: var(--fs-5); }
.dg-root p { margin: 0.3rem 0 0; font-size: var(--fs-5); line-height: 1.7; color: var(--tx); }

.dg-path { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.dg-step { font-size: var(--fs-5); font-weight: 700; padding: 0.28rem 0.7rem; border-radius: 999px; background: rgba(59, 130, 246, 0.08); border: 1px solid var(--line2); color: var(--tx2); }
.dg-step.root { background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.3); color: #be123c; }
.dg-step.weak { text-decoration: underline dotted; }
.dg-arr { font-style: normal; color: var(--tx3); font-size: var(--fs-5); }

/* ═══════════════════════════════════════════════════════════════════════
   弹窗统一组件 v220（马总 2026-10-27 定）
   ───────────────────────────────────────────────────────────────────────
   新弹窗一律复制这段骨架，只改宽度档位（dlg-xs/sm/md/lg/xl），
   禁止再写自定义宽度/字号/内距。骨架：

   <div class="dlg-mask hidden" id="myDlg">
     <div class="dlg dlg-md" role="dialog" aria-modal="true">
       <div class="dlg-hd">
         <b class="dlg-tt">标题</b>
         <p class="dlg-sub">一句话说明（可省）</p>
       </div>
       <div class="dlg-bd">
         <label class="dlg-field"><span>字段名</span><input class="dlg-input" /></label>
         <label class="dlg-field"><span>选择项</span><select class="dlg-select">…</select></label>
       </div>
       <div class="dlg-ft">
         <button class="dlg-btn">取消</button>
         <button class="dlg-btn primary" id="myOk">确定</button>
       </div>
     </div>
   </div>

   内部规格：标题 fs-2 / 说明 fs-4 / 标签·控件·按钮 fs-3 / hint fs-5，
   控件高 --ctl-h、按钮高 --btn-h、卡片圆角 --dlg-r、内距 --dlg-pad。
   五档只差宽度，其余全一致。
   ═══════════════════════════════════════════════════════════════════════ */

.dlg-mask {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--dlg-mask);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: dlgFade 0.16s ease;
}
.dlg-mask.hidden { display: none; }
@keyframes dlgFade { from { opacity: 0; } to { opacity: 1; } }

.dlg {
  position: relative;
  width: var(--dlg-w-md);
  max-width: 100%;
  max-height: var(--dlg-maxh);
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--dlg-r);
  box-shadow: var(--dlg-shadow);
  overflow: hidden;
  animation: dlgPop 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes dlgPop { from { opacity: 0; transform: translateY(0.8rem) scale(0.98); } to { opacity: 1; transform: none; } }

/* 五档宽度：只改宽度 */
.dlg-xs { width: var(--dlg-w-xs); }
.dlg-sm { width: var(--dlg-w-sm); }
.dlg-md { width: var(--dlg-w-md); }
.dlg-lg { width: var(--dlg-w-lg); }
.dlg-xl { width: var(--dlg-w-xl); }

.dlg-hd { padding: var(--dlg-pad); padding-bottom: 0; text-align: center; flex: none; }
.dlg-tt { display: block; font-size: var(--fs-2); line-height: var(--lh-2); font-weight: 900; color: var(--tx); }
.dlg-sub { margin: 0.7rem 0 0; font-size: var(--fs-4); line-height: var(--lh-4); color: var(--tx2); }

.dlg-bd { padding: var(--dlg-pad); padding-top: var(--dlg-gap); display: flex; flex-direction: column; gap: var(--dlg-gap); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dlg-bd:first-child { padding-top: var(--dlg-pad); }

.dlg-ft { flex: none; padding: var(--dlg-pad-ft); display: flex; gap: 0.8rem; justify-content: flex-end; }

/* 字段：标签与控件同字号，标签在上（长文案）或同行（短文案）用 .row */
.dlg-field { display: flex; flex-direction: column; gap: 0.5rem; }
.dlg-field > span { font-size: var(--fs-3); font-weight: 700; color: var(--tx2); }
.dlg-field > span i { color: var(--red); font-style: normal; }
.dlg-field.row { flex-direction: row; align-items: center; gap: 1rem; }
.dlg-field.row > span { flex: 0 0 6.5rem; text-align: right; }

.dlg-input, .dlg-select, .dlg-textarea {
  width: 100%; height: var(--ctl-h);
  padding: 0 1rem; border-radius: var(--ctl-r);
  border: 1px solid var(--line2); background: #fff;
  font-size: var(--fs-3); color: var(--tx); font-family: inherit;
  outline: none;
}
.dlg-select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
.dlg-textarea { height: auto; min-height: 8rem; padding: 0.8rem 1rem; line-height: var(--lh-4); resize: vertical; }
.dlg-input:focus, .dlg-select:focus, .dlg-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14); }
.dlg-input::placeholder { color: var(--tx3); }

.dlg-btn {
  height: var(--btn-h); min-width: 7rem; padding: 0 1.5rem;
  border-radius: var(--btn-r); border: 1px solid var(--line2);
  background: #fff; color: var(--tx2);
  font-size: var(--fs-3); font-weight: 700; font-family: inherit; cursor: pointer;
  transition: 0.16s;
}
.dlg-btn:hover { border-color: var(--blue); color: var(--blue); }
.dlg-btn.primary { background: linear-gradient(135deg, var(--blue), #2563eb); border-color: transparent; color: #fff; box-shadow: 0 0.4rem 1rem rgba(37, 99, 235, 0.28); }
.dlg-btn.primary:hover { filter: brightness(1.06); color: #fff; }
.dlg-btn.danger { background: linear-gradient(135deg, var(--red), #e11d48); border-color: transparent; color: #fff; box-shadow: 0 0.4rem 1rem rgba(244, 63, 94, 0.26); }
.dlg-btn.danger:hover { filter: brightness(1.06); color: #fff; }
.dlg-btn[disabled] { opacity: 0.55; cursor: not-allowed; filter: none; }
.dlg-btn.wide { flex: 1; }

/* 确认型配套：图标 + 主文 */
.dlg-ico { font-size: 3rem; line-height: 1; text-align: center; }
.dlg-note { font-size: var(--fs-4); line-height: var(--lh-4); color: var(--tx2); text-align: center; margin: 0; }

/* ══════════ v222 动态模型馆（dmv）+ 培优页入口条 ══════════ */
.dm-entry {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.4rem 1.8rem; margin-bottom: 1.6rem; cursor: pointer;
  border-radius: 1.4rem; transition: transform 0.14s, box-shadow 0.14s;
}
.dm-entry:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(64, 140, 255, 0.18); }
.dm-entry img { height: 5.6rem; width: auto; }
.dm-entry-tx { display: flex; flex-direction: column; gap: 0.3rem; }
.dm-entry-tx b { font-size: var(--fs-2); }
.dm-entry-tx i { font-size: var(--fs-4); color: var(--tx2); font-style: normal; }
.dm-entry-go { margin-left: auto; color: var(--accent, #4a8cff); font-size: var(--fs-3); font-weight: 700; }

.dmv-head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.dmv-tabs { display: flex; gap: 0.6rem; }
.dmv-tabs button {
  border: 1px solid rgba(120, 160, 230, 0.35); background: rgba(255, 255, 255, 0.06);
  color: var(--tx1, #e8f0ff); border-radius: 999px; padding: 0.55rem 1.4rem;
  font-size: var(--fs-4); cursor: pointer; transition: background 0.14s;
}
.dmv-tabs button.on { background: linear-gradient(135deg, #3f8cff, #6db3ff); border-color: transparent; color: #fff; font-weight: 700; }
.dmv-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0 1.2rem; }
.dmv-chips button {
  border: 1px solid rgba(120, 160, 230, 0.28); background: transparent; color: var(--tx2, #9db4d8);
  border-radius: 999px; padding: 0.35rem 1rem; font-size: var(--fs-5); cursor: pointer;
}
.dmv-chips button.on { background: rgba(90, 150, 255, 0.22); border-color: rgba(90, 150, 255, 0.55); color: #cfe2ff; font-weight: 700; }
.dmv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.1rem; }
.dmv-card {
  position: relative; display: flex; flex-direction: column; gap: 0.4rem;
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.2rem; padding: 1.2rem 1.3rem; cursor: pointer; text-align: left;
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
}
.dmv-card:hover { transform: translateY(-3px); border-color: rgba(110, 165, 255, 0.5); box-shadow: 0 8px 26px rgba(64, 140, 255, 0.16); }
.dmv-card b { font-size: var(--fs-3); line-height: 1.35; }
.dmv-card i { font-size: var(--fs-5); color: var(--tx2, #9db4d8); font-style: normal; line-height: 1.4; }
.dmv-card em { font-size: var(--fs-5); color: #7fa8e8; font-style: normal; margin-top: 0.2rem; }
.dmv-card .dmv-tag {
  position: absolute; top: 0.9rem; right: 1rem; font-size: var(--fs-5);
  color: #8fb6f0; background: rgba(90, 150, 255, 0.14); border-radius: 999px; padding: 0.15rem 0.7rem;
}
.dmv-card.wide { grid-column: 1 / -1; }
.dmv-empty { grid-column: 1 / -1; text-align: center; color: var(--tx2, #9db4d8); padding: 3rem 0; font-size: var(--fs-4); }
.dmv-player { position: fixed; inset: 0; z-index: 80; background: rgba(5, 12, 30, 0.94); display: flex; flex-direction: column; padding: 1.2rem 1.6rem 1.6rem; }
.dmv-player-bar { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; color: #dfe9ff; }
.dmv-player-bar b { font-size: var(--fs-3); }
.dmv-player.hidden { display: none; }

/* v222b AIT 页模型上下文条 */
.ait-dmbar {
  display: flex; align-items: center; gap: 0.8rem; width: 100%;
  margin-top: 1rem; padding: 0.9rem 1.2rem; cursor: pointer;
  background: linear-gradient(135deg, rgba(63, 140, 255, 0.16), rgba(109, 179, 255, 0.08));
  border: 1px solid rgba(110, 165, 255, 0.45); border-radius: 1.1rem;
  color: var(--tx1, #e8f0ff); text-align: left; transition: transform 0.14s;
}
.ait-dmbar:hover { transform: translateY(-2px); }
.ait-dmbar.hidden { display: none; }
.ait-dmbar-ico { font-size: 1.6rem; }
.ait-dmbar-tx { flex: 1; font-size: var(--fs-4); line-height: 1.45; }
.ait-dmbar-tx b { color: #8fc0ff; }
.ait-dmbar-go { color: #8fc0ff; font-weight: 700; font-size: var(--fs-4); white-space: nowrap; }

/* ════════ 小云老师悬浮助手（一期：悬浮球 + 圈划 + 面板） ════════ */
.xy-ball {
  position: fixed; right: 0.5rem; top: 42%; z-index: 9600;
  width: 6.4rem; height: 7.6rem; padding: 0; border: 0; background: transparent;
  cursor: pointer; touch-action: none; user-select: none;
  filter: drop-shadow(0 0.4rem 0.9rem rgba(30, 64, 130, 0.30));
  transition: transform 0.18s ease;
}
.xy-ball:active { transform: scale(0.94); }
/* 透明人像层：原始 PNG 直出（无圆形裁剪、无边框），头顶与肩溢出背景圆外，底部渐隐 */
.xy-ball-ava {
  position: absolute; left: 50%; top: 0.95rem; transform: translateX(-50%);
  display: block; height: 5rem; width: auto;
  border: 0; border-radius: 0; background: transparent; z-index: 2;
}
/* 背景圆：浅蓝渐变 + 细白边，压在人像上方（人像像站在圆后），下缘插入按钮 */
.xy-ball-ring {
  position: absolute; left: 50%; top: 1.55rem; transform: translateX(-50%);
  width: 4.7rem; height: 4.7rem; border-radius: 50%; z-index: 1;
  background: linear-gradient(180deg, #e9f2ff, #c7defc);
  border: 0.12rem solid #fff;
  box-shadow: 0 0.25rem 0.7rem rgba(30, 64, 130, 0.16);
}
/* 「问老师」胶囊：粉红→亮蓝渐变；上缘被背景圆盖住一截（圆插入按钮，交叠不分家） */
.xy-ball-tx {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 3;
  width: max-content;
  padding: 0.3rem 1.05rem; border-radius: 999px;
  background: linear-gradient(95deg, #ff7ab0 8%, #ff8f9e 38%, #57b6ff 88%);
  color: #fff; font-size: var(--fs-5); font-weight: 800; letter-spacing: 0.08rem;
  box-shadow: 0 0.3rem 0.8rem rgba(87, 150, 255, 0.40);
}
.xy-ball.pulse .xy-ball-ring { animation: xyPulse 2.2s ease-in-out infinite; }
@keyframes xyPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(79,124,240,0.35);} 50% { box-shadow: 0 0 0 0.9rem rgba(79,124,240,0);} }

.xy-canvas {
  position: fixed; inset: 0; z-index: 9700; cursor: crosshair; touch-action: none;
  background: rgba(12, 28, 60, 0.22);
}
.xy-mark-hint {
  position: fixed; top: 2.4rem; left: 50%; transform: translateX(-50%); z-index: 9800;
  padding: 0.8rem 1.6rem; border-radius: 999px; background: rgba(16, 34, 70, 0.86);
  color: #fff; font-size: var(--fs-4); font-weight: 700; letter-spacing: 0.06rem;
  box-shadow: 0 0.5rem 1.2rem rgba(10, 25, 55, 0.4);
}
.xy-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9900;
  width: min(46%, 44rem); min-width: 30rem;
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, rgba(255,255,255,0.94), rgba(238,244,255,0.92));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-left: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: -1.2rem 0 3rem rgba(16, 40, 90, 0.22);
  transform: translateX(102%); transition: transform 0.26s ease;
}
.xy-panel.on { transform: translateX(0); }
.xy-hd { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(59,130,246,0.14); }
.xy-ava { width: 3.6rem; height: 3.6rem; border-radius: 1.1rem; object-fit: cover; border: 0.14rem solid #fff; box-shadow: 0 0.3rem 0.7rem rgba(30,64,130,0.25); } /* v234: 方形圆角直出（马总：不放圆内） */
.xy-hd-tx { flex: 1; min-width: 0; }
.xy-hd-tx b { display: block; font-size: var(--fs-4); color: #1e3a8a; }
.xy-hd-tx i { display: block; font-style: normal; font-size: var(--fs-6); color: var(--tx3); }
.xy-ic {
  width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid rgba(59,130,246,0.25);
  background: #fff; color: #3b82f6; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.xy-ic.off { color: #b7c3d8; }
.xy-quote {
  margin: 0.9rem 1.3rem 0; padding: 0.7rem 1rem; border-radius: 0.9rem;
  background: rgba(79, 124, 240, 0.08); border: 1px dashed rgba(79, 124, 240, 0.4);
  font-size: var(--fs-5); color: #33507e; max-height: 7rem; overflow: auto;
}
.xy-quote::before { content: '已圈选：'; font-weight: 800; color: #4f7cf0; }

/* ── 板书区（v252 教学引擎 V2：手写板书 + 手绘圈画）──────────────
   马总铁律：板书只写解题痕迹（式子/结论/关键词），老师的话一律进对话区。
   V2 的目标是让板书「像一位老师当着学生的面写出来的」：
     ① 手写体：中文霞鹜文楷 + 数字/字母 Caveat（均为 OFL，可商用，本地自托管）；
     ② 书写动画：每行用 clip-path 从左往右匀速揭示，时长按字数算（见 bdWrite）；
     ③ 圈画标注：红笔下划线 / 蓝笔圈 / 黄水彩一律走 SVG 手绘路径（bdInk 模块），
        不用 CSS border —— 完美的几何边框一眼就是机器画的，手绘要的正是那点不规则。
   纸面：淡点阵 + 左侧红书脊线，模拟备课本。 */
.xy-board {
  margin: 0.9rem 1.3rem 0; border-radius: 1rem; overflow: hidden;
  display: flex; flex-direction: column;
  flex: 0 0 auto; max-height: 40vh; min-height: 6rem;
  background:
    radial-gradient(rgba(178, 148, 92, 0.085) 0.7px, transparent 0.9px) 0 0 / 0.85rem 0.85rem,
    linear-gradient(180deg, #fffdf7, #fdf6e9);
  border: 1px solid rgba(176, 146, 86, 0.3);
  box-shadow: inset 0 0 2.4rem rgba(190, 160, 100, 0.1), 0 0.3rem 0.9rem rgba(120, 95, 50, 0.07);
}
.xy-board-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem; border-bottom: 1px dashed rgba(176, 146, 86, 0.38);
  background: rgba(255, 252, 244, 0.72);
  cursor: pointer;   /* v253：点标题折叠板书，长讲解时把地方让给对话 */
}
.xy-board-hd b { font-size: var(--fs-6); letter-spacing: 0.34rem; color: #8a6d3b; }
.xy-board-hd i { font-style: normal; font-size: var(--fs-6); color: #ab8e60; flex: 1; text-align: right; margin-right: 0.5rem; }
/* v253 折叠：板书收起后只剩一条标题栏，不再挤压对话区 */
.xy-bd-fold { font-style: normal; font-size: var(--fs-6); color: #ab8e60; transition: transform 0.2s ease; line-height: 1; }
.xy-board.bd-fold .xy-bd-fold { transform: rotate(-90deg); }
.xy-board.bd-fold .xy-board-bd { display: none; }
.xy-board.bd-fold { min-height: 0; }
.xy-board-bd { position: relative; flex: 1; overflow-y: auto; padding: 0.7rem 1.1rem 0.9rem 1.5rem; }
/* 左侧红书脊线（备课本的装订边） */
.xy-board-bd::before {
  content: ''; position: absolute; left: 0.72rem; top: 0.4rem; bottom: 0.4rem; width: 1px;
  background: linear-gradient(180deg, rgba(200, 90, 80, 0), rgba(200, 90, 80, 0.26) 18%, rgba(200, 90, 80, 0.26) 82%, rgba(200, 90, 80, 0));
  pointer-events: none;
}
.bd-line {
  font-family: 'Caveat', 'Xiaolai SC', 'LXGW WenKai Lite', "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: calc(var(--fs-5) * 1.1); color: #1f3b6e;
  line-height: 1.98; margin: 0.12rem 0;
  word-break: break-word;
}
.bd-h { font-weight: 800; color: #b45309; font-size: var(--fs-6); letter-spacing: 0.12rem; margin-top: 0.5rem; }
.bd-m { text-align: center; margin: 0.3rem 0; }
.bd-n { font-size: var(--fs-6); color: #8d7c60; }
.xy-board-bd .katex { font-size: 1.06em; }

/* ── v273 板书智能分栏（马总：一屏看完解题步骤）── */
.bd-flow { display: block; }
.bd-flow.bd-multi { display: flex; align-items: flex-start; gap: 0 2rem; }
.bd-flow.bd-multi .bd-col { flex: 1 1 0; min-width: 0; }
.bd-flow.bd-multi .bd-col + .bd-col {
  border-left: 1px dashed rgba(180, 83, 9, 0.32);
  padding-left: 2rem;
}
.bd-flow.bd-4 .bd-line { font-size: calc(var(--fs-5) * 0.88); line-height: 1.72; }
.bd-flow.bd-4 .bd-h { font-size: calc(var(--fs-6) * 0.9); }
.bd-flow.bd-4 .bd-n { font-size: calc(var(--fs-6) * 0.86); }
.bd-flow.bd-4 .katex { font-size: 0.94em; }

/* ── v261 板书画图（图形 IR → SVG）── */
.bd-g { margin: 0.35rem 0; text-align: center; }
.bd-g .fg-svg {
  max-width: 100%;
  height: auto;
  background: #fffdf6;
  border: 1px solid #eadfc6;
  border-radius: 0.5rem;
  padding: 0.35rem;
  box-shadow: 0 1px 0 rgba(120, 90, 40, 0.06);
}
.bd-fig-in { animation: bdFigIn 0.35s ease-out both; }
@keyframes bdFigIn { from { opacity: 0; transform: translateY(0.3rem); } to { opacity: 1; transform: none; } }
/* 图内元素依次「画」出来：delay 由渲染器按笔序写在 --fg-d 上 */
.fg-draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: fgDraw 0.6s ease-out forwards;
  animation-delay: var(--fg-d, 0ms);
}
@keyframes fgDraw { to { stroke-dashoffset: 0; } }
.fg-grid { stroke: #d8cdb4; stroke-width: 0.7; stroke-dasharray: 3 4; }
.fg-tick { stroke: #2b3440; stroke-width: 1.4; }
.fg-arrow { stroke: #2b3440; stroke-width: 1.7; fill: none; stroke-linecap: round; }
.fg-num { font-family: 'Caveat', 'Xiaolai SC', 'Kaiti SC', serif; font-size: 11px; fill: #6b6154; }
.fg-origin { font-family: 'Caveat', 'Xiaolai SC', 'Kaiti SC', serif; font-size: 12px; fill: #6b6154; font-style: italic; }
.fg-pt { font-family: 'Caveat', 'Xiaolai SC', 'Kaiti SC', serif; font-size: 14px; fill: #b45309; font-style: italic; font-weight: 700; }
.fg-lab { font-family: 'Xiaolai SC', 'Kaiti SC', 'STKaiti', serif; fill: #4a4238; }
.fg-eq { font-family: 'Caveat', 'Xiaolai SC', 'Kaiti SC', serif; font-size: 12px; fill: #3568d4; }
.fg-dot { fill: #2b3440; }
.fg-shade, .fg-fill { stroke: none; }

/* ── v261 题目还原卡 ── */
.xy-pcard { max-width: 96%; }
.xy-pcard .pc-hd {
  font-size: var(--fs-7); font-weight: 800; color: #7c5a12;
  background: linear-gradient(90deg, rgba(255, 205, 48, 0.28), rgba(255, 205, 48, 0.05));
  border-radius: 0.45rem 0.45rem 0 0;
  padding: 0.32rem 0.55rem;
}
.xy-pcard .pc-bd {
  border: 1px dashed #d9c79a; border-top: none;
  border-radius: 0 0 0.45rem 0.45rem;
  background: #fffdf6;
  padding: 0.45rem 0.6rem;
  max-height: 34vh; overflow-y: auto;
}
.xy-pcard .pc-tx { font-size: var(--fs-6); line-height: 1.75; color: #3c342a; word-break: break-word; }
.xy-pcard .pc-figs { margin-top: 0.4rem; display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.xy-pcard .pc-figs .fg-svg { background: #fff; border: 1px solid #eadfc6; border-radius: 0.45rem; max-width: 60%; height: auto; }
.xy-pcard .pc-ft { display: flex; gap: 0.5rem; margin-top: 0.45rem; }
.xy-pcard .pc-ft button {
  flex: 1; border: none; border-radius: 0.55rem; padding: 0.5rem 0.2rem;
  font-size: var(--fs-6); font-weight: 700; font-family: inherit;
}
.xy-pcard .pc-ok { background: linear-gradient(135deg, #2f9e6f, #26855d); color: #fff; }
.xy-pcard .pc-bad { background: #f1e9d8; color: #7c5a12; }

/* 书写揭示：JS 给行加 .bd-write 并设 --bd-dur（按字数算），结束后移除类。
   clip 只裁「正在写」的那一瞬，写完全部露出来（否则会裁掉标注的圈）。 */
.bd-line.bd-write { animation: bdWrite var(--bd-dur, 700ms) linear both; }
@keyframes bdWrite {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 -3% 0 0); }
}
/* 墨迹未干的暖边：书写瞬间行尾有一层极淡暖色，像笔尖刚离开纸 */
.bd-line { position: relative; }
.bd-line.bd-write::after {
  content: ''; position: absolute; top: 0.1em; bottom: 0.1em; width: 1.4rem; right: 0;
  background: linear-gradient(90deg, rgba(255, 214, 120, 0), rgba(255, 196, 92, 0.22));
  pointer-events: none;
}

/* ── 手绘标注容器（SVG 覆盖层）── */
.bd-mk { position: relative; display: inline-block; white-space: nowrap; }
.bd-mk .bd-tx { position: relative; }
/* svg 覆盖范围比文字略大：圈要绕到字外面去，下划线要出头 */
.bd-mk .bd-svg {
  position: absolute; left: -7px; top: -6px;
  width: calc(100% + 14px); height: calc(100% + 12px);
  overflow: visible; pointer-events: none;
}
.bd-mk .bd-svg path { vector-effect: non-scaling-stroke; }
/* 水彩边缘要糊一点才像颜料渗进纸里 */
.bd-mk .bd-svg path.bd-wash { filter: blur(0.55px); mix-blend-mode: multiply; }
/* 水彩层在文字下面（否则半透明黄会糊住字），笔画层在文字上面（红线要压在字脚上） */

/* 板书区出/入：讲题开始时淡入，关闭面板后隐藏 */
.xy-board.hidden { display: none; }
.xy-msgs { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; display: flex; flex-direction: column; gap: 0.8rem; }
.xy-m { max-width: 86%; padding: 0.85rem 1.05rem; border-radius: 1.1rem; font-size: var(--fs-5); line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.xy-m.ai { align-self: flex-start; background: #fff; border: 1px solid rgba(59,130,246,0.18); color: #24365a; border-top-left-radius: 0.3rem; }
.xy-m.me { align-self: flex-end; background: linear-gradient(120deg, #4f7cf0, #6a8df3); color: #fff; border-top-right-radius: 0.3rem; }
.xy-m.err { align-self: flex-start; background: #fdf0f0; border: 1px solid rgba(200,60,60,0.3); color: #a33; }
/* v249 教学引擎：老师的提问要一眼看见（等学生作答的那一句） */
.xy-m.xy-ask {
  background: linear-gradient(180deg, #fffdf4, #fff7e2);
  border: 1px solid rgba(212, 160, 60, 0.42);
  border-left: 0.3rem solid #e0a72c;
  color: #6b4a12; font-weight: 700;
}
.xy-m.typing { color: #7c8db0; }
.xy-chips { display: flex; gap: 0.5rem; padding: 0 1.3rem 0.6rem; flex-wrap: wrap; }
.xy-chip {
  padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid rgba(79,124,240,0.35);
  background: #fff; color: #3d6ad1; font-size: var(--fs-6); cursor: pointer; white-space: nowrap;
}
.xy-chip:active { background: rgba(79,124,240,0.1); }
.xy-in { display: flex; gap: 0.6rem; padding: 0.8rem 1.3rem 1.2rem; border-top: 1px solid rgba(59,130,246,0.14); }
.xy-in input {
  flex: 1; min-width: 0; height: 3.2rem; border-radius: 999px; border: 1px solid rgba(59,130,246,0.3);
  padding: 0 1.2rem; font-size: var(--fs-5); background: #fff; color: #24365a; outline: none;
}
.xy-in input:focus { border-color: #4f7cf0; }
.xy-send {
  height: 3.2rem; padding: 0 1.5rem; border-radius: 999px; border: 0;
  background: linear-gradient(120deg, #4f7cf0, #8a5cf0); color: #fff;
  font-size: var(--fs-5); font-weight: 800; cursor: pointer;
}
.xy-send:disabled { opacity: 0.55; }

/* v234: 对话面板——麦克风 / 状态栏 / 七彩光效 / 全屏讲解光晕 */
.xy-mic {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid rgba(59,130,246,0.3);
  background: #fff; font-size: 1.5rem; cursor: pointer; flex: 0 0 auto; line-height: 1;
}
.xy-mic.on { background: linear-gradient(120deg, #4f7cf0, #8a5cf0); border-color: transparent; }
.xy-status {
  min-height: 1.7rem; text-align: center; padding: 0 1.3rem;
  font-size: var(--fs-6); font-weight: 700; letter-spacing: 0.1rem; color: #4f7cf0;
}
.xy-rainbow {
  height: 0.65rem; border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: linear-gradient(90deg, #ff5c7a, #ff9f43, #ffe14d, #5dd97c, #3fc5f0, #4f7cf0, #a25cf0, #ff5c7a);
  background-size: 320% 100%;
  animation: xyFlow 2.8s linear infinite;
  opacity: 0; transition: opacity 0.25s ease; /* v236: idle 静默，不再常亮 */
}
.xy-rainbow.listen, .xy-rainbow.think { opacity: 1; }
@keyframes xyFlow { from { background-position: 0% 0; } to { background-position: -320% 0; } }
/* 学生说话：光效震动（加速 + 上下抖动） */
.xy-rainbow.listen { animation: xyFlow 0.85s linear infinite, xyShake 0.32s ease-in-out infinite; opacity: 1; }
@keyframes xyShake { 0%,100% { transform: translateY(0); } 50% { transform: translateY(0.14rem); } }
/* 思考中：慢速流动 + 呼吸明暗 */
.xy-rainbow.think { animation: xyFlow 5.5s linear infinite, xyDim 1.6s ease-in-out infinite; opacity: 1; }
@keyframes xyDim { 0%,100% { filter: brightness(1); } 50% { filter: brightness(0.62); } }
/* 老师讲解中（v257 马总：四角不能有缺口、颜色要鲜亮、四周均衡渐变、炫彩灯带）
   v263 重做：mask-composite 裁环方案在真机 WebView 上「声称支持、实际渲染失败」，
   彩虹 conic 整屏铺满盖住 UI（马总看到的光效压底/界面挤压/角落异色点就是它）。
   改用四条彩虹光带（多重 background，零 mask 依赖，所有内核行为一致），
   四条端点颜色严格同色衔接：左上/右上/右下/左下 = C1/C3/C4/C5，环首尾连续无缺口；
   色相流动用父级 hue-rotate（四条同步），呼吸用 opacity。 */
.xy-glow { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; }
/* v270b（马总：光带是硬边，要柔光晕）：弃多层叠台阶方案，改 4 个边条子元素——
   沿边方向多色渐变（绕色环游走、端点同色衔接），向内方向用「每个子元素自己的单层 mask」
   柔和羽化 3.6rem（与聆听光带同款手法，真机已验证单 mask 安全；v263 教训只禁 mask-composite 多层）。 */
.xy-glow-speak {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease;
  filter: saturate(2) brightness(1.34);
}
.xy-glow-speak i { position: absolute; display: block; pointer-events: none; }
.gs-t {
  top: 0; left: 0; right: 0; height: 2.2rem;
  background: linear-gradient(90deg, hsl(325,100%,64%), hsl(290,100%,66%), hsl(240,100%,66%), hsl(200,100%,62%), hsl(325,100%,64%));
  background-size: 240% 100%;
  animation: gsFlowX 4.2s ease-in-out infinite alternate;
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 16%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 100%);
          mask: linear-gradient(180deg, #000 0%, #000 16%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 100%);
}
.gs-r {
  top: 0; right: 0; bottom: 0; width: 2.2rem;
  background: linear-gradient(180deg, hsl(200,100%,62%), hsl(195,100%,64%), hsl(225,100%,66%), hsl(200,100%,62%));
  background-size: 100% 240%;
  animation: gsFlowY 4.2s ease-in-out infinite alternate-reverse;
  -webkit-mask: linear-gradient(270deg, #000 0%, #000 16%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 100%);
          mask: linear-gradient(270deg, #000 0%, #000 16%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 100%);
}
.gs-b {
  bottom: 0; left: 0; right: 0; height: 2.2rem;
  background: linear-gradient(90deg, hsl(272,100%,66%), hsl(320,100%,66%), hsl(250,100%,66%), hsl(225,100%,66%), hsl(272,100%,66%));
  background-size: 240% 100%;
  animation: gsFlowX 4.2s ease-in-out infinite alternate-reverse;
  -webkit-mask: linear-gradient(0deg, #000 0%, #000 16%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 100%);
          mask: linear-gradient(0deg, #000 0%, #000 16%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 100%);
}
.gs-l {
  top: 0; left: 0; bottom: 0; width: 2.2rem;
  background: linear-gradient(0deg, hsl(272,100%,66%), hsl(300,100%,66%), hsl(325,100%,64%), hsl(272,100%,66%));
  background-size: 100% 240%;
  animation: gsFlowY 4.2s ease-in-out infinite alternate;
  -webkit-mask: linear-gradient(90deg, #000 0%, #000 16%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 100%);
          mask: linear-gradient(90deg, #000 0%, #000 16%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 100%);
}
.xy-glow.speak .xy-glow-speak {
  opacity: 1;
  animation: xyGlowBreath 3.4s ease-in-out infinite;
}
/* v272（马总：去绿、蓝紫粉科技配色、变窄）：基础色相盘 195~325（蓝→紫→粉），永不出现绿；
   弃用 hue-rotate（滤镜矩阵会把高饱和蓝偏移出绿色），改为色带沿边滑动流动（首尾同色，滑动无跳变） */
@keyframes gsFlowX { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes gsFlowY { from { background-position: 0 0%; } to { background-position: 0 100%; } }
@keyframes xyGlowBreath {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}
/* 聆听中（参考图：屏幕底部大面积蓝紫渐变光带 + 底部中央大字）：光带流动 + 随说话震动 */
.xy-glow-listen {
  position: absolute; left: 0; right: 0; bottom: 0; height: 17rem;
  background:
    linear-gradient(0deg, rgba(28, 38, 110, 0.38), rgba(28, 38, 110, 0) 55%),
    linear-gradient(90deg, rgba(56, 150, 245, 0.88), rgba(96, 110, 245, 0.82) 40%, rgba(168, 100, 244, 0.78) 70%, rgba(255, 110, 170, 0.72), rgba(56, 150, 245, 0.82));
  /* v236: 纵向渐隐用 mask 统一做，顶部柔和消失不出硬边 */
  -webkit-mask: linear-gradient(0deg, #000 0%, #000 38%, rgba(0,0,0,0.5) 68%, rgba(0,0,0,0) 100%);
          mask: linear-gradient(0deg, #000 0%, #000 38%, rgba(0,0,0,0.5) 68%, rgba(0,0,0,0) 100%);
  background-size: 100% 100%, 260% 100%;
  opacity: 0; transition: opacity 0.3s ease;
}
.xy-glow.listen .xy-glow-listen {
  opacity: 1;
  animation: xyListenFlow 1.6s linear infinite, xyListenShake 0.4s ease-in-out infinite;
}
@keyframes xyListenFlow { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, -260% 0; } }
@keyframes xyListenShake { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(0.2rem) scaleY(1.05); } }
/* 聆听/讲解状态大字：底部中央白色粗体（与全屏光带配套） */
.xy-glow-tx {
  position: absolute; left: 50%; bottom: 4.2rem; transform: translateX(-50%);
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.14rem; color: #fff;
  text-shadow: 0 0.2rem 0.8rem rgba(30, 50, 120, 0.55);
  white-space: nowrap; display: none; align-items: center; gap: 0.8rem;
}
/* 聆听/讲解状态大字：v274b（马总：只取消「讲解中」这一个状态，聆听等其它状态保留）*/
.xy-glow.listen .xy-glow-tx { display: flex; }
.xy-glow.speak .xy-glow-tx { display: none; }
.xy-glow-tx i { font-style: normal; font-size: 1.9rem; line-height: 1; animation: xyDot 1.2s ease-in-out infinite; }
.xy-glow-tx i:nth-child(2) { animation-delay: 0.2s; }
.xy-glow-tx i:nth-child(3) { animation-delay: 0.4s; }
@keyframes xyDot { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }

/* v270 静默兜底「点击录音」：v275（马总：参考图定稿）——不是完整一颗球，
   是一颗大球只露出顶上一小段弧面：球心沉到屏幕外，上缘带渐变光晕罩住屏幕底部；
   顶部整体再向上渐隐。整块可点，点击 → 恢复一轮聆听 */
.xy-tap {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16rem;
  display: none; align-items: flex-end; justify-content: center;
  padding-bottom: 2.6rem;   /* v322（马总）：文字向下移一行（5rem→2.6rem） */
  -webkit-mask: linear-gradient(0deg, #000 44%, rgba(0,0,0,0.6) 74%, rgba(0,0,0,0) 98%);
          mask: linear-gradient(0deg, #000 44%, rgba(0,0,0,0.6) 74%, rgba(0,0,0,0) 98%);
  pointer-events: auto; cursor: pointer;
}
/* v327（马总 2026-11-01，参考视频流光）：椭圆紫底 → 多彩横向流光带
   紫→品红→蓝→青渐变横向流动（background-size 200% + position 0→200% 恰好一周期，无缝循环），
   单层椭圆 mask 羽化边缘（铁律：不用 mask-composite），光晕呼吸交由 xyTapBreath */
.xy-tap::before {
  content: ''; position: absolute; left: 50%; top: 9.5rem;
  transform: translateX(-50%);
  width: 150%; height: 30rem; border-radius: 50%;
  background: linear-gradient(90deg,
    #7c3bf5 0%, #c94bf0 12.5%, #7a5cff 25%, #3fb6f5 37.5%,
    #8a2ff0 50%, #d24bf0 62.5%, #4f7cf0 75%, #35c3f0 87.5%, #7c3bf5 100%);
  background-size: 200% 100%;
  animation: xyTapFlow 3.2s linear infinite;
  filter: blur(1.8rem) saturate(1.35);   /* v329（马总）：颜色更实——收小模糊 + 提饱和 */
}
/* v329：流向改为从左到右（position 从 200% 回落到 0） */
@keyframes xyTapFlow { from { background-position: 200% 0; } to { background-position: 0 0; } }
.xy-glow.tap .xy-tap { display: flex; animation: xyTapBreath 2.4s ease-in-out infinite; }
.xy-tap b {
  position: relative;
  font-size: 1.8rem; font-weight: 800; color: #fff; letter-spacing: 0.18rem;
  text-shadow: 0 0.2rem 1rem rgba(60, 20, 130, 0.8); white-space: nowrap;
}
@keyframes xyTapBreath { 0%,100% { opacity: 0.94; } 50% { opacity: 1; } }

/* ════════════════ v264 讲题界面整屏改版（马总 2026-10-29 定稿）════════════════
   左侧题目 + 右侧板书的双栏整屏版式；对话气泡全部退场（老师用嘴讲，屏幕只留解题痕迹）；
   AI 老师视频窗不做（人物视频驱动未实现）；背景用 AI 生成的暖木纹桌面（bg-desk.png）。
   只在讲题模式（.xy-full）生效，普通问答仍走原右侧卡片。 */
.xy-panel.xy-full {
  left: 0; width: 100%; min-width: 0;
  display: grid;
  grid-template-columns: 38% 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'hd     hd'
    'quote  board'
    'status status';
  gap: 0.9rem 1.3rem;
  padding: 1rem 1.5rem 0.6rem;
  /* v325（马总）：整页统一磨砂玻璃（沿用 .glass 标准配方），木纹桌面背景退场 */
  background: linear-gradient(158deg, var(--glass-a), var(--glass-b) 55%, var(--glass-c));
  backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-soft), var(--shadow-soft-inset);
}
/* 顶栏：只留标题与工具按钮，头像/副标题退场（视频窗不做） */
.xy-full .xy-hd { grid-area: hd; padding: 0 0.2rem; border-bottom: none; }
.xy-full .xy-rainbow { display: none; }   /* 面板内的七彩条退场，光反馈全交给整屏光效层 */
.xy-full .xy-ava { display: none; }
.xy-full .xy-hd-tx i { display: none; }
.xy-full .xy-hd-tx b { font-size: var(--fs-3); color: var(--tx); letter-spacing: 0.2rem; }
.xy-full .xy-ic { background: rgba(255, 255, 255, 0.85); border-color: rgba(59, 130, 246, 0.25); color: #3b82f6; }
#xyCam img { width: 1.7rem; height: 1.7rem; display: block; margin: auto; }

/* 左栏：题目（v325 统一磨砂玻璃卡，与整页同配方） */
.xy-full .xy-quote {
  grid-area: quote;
  display: block !important;          /* 讲题模式左栏永远在（js 已保证有内容） */
  margin: 0; max-height: none; height: 100%;
  overflow-y: auto;
  padding: 1.1rem 1.3rem 1.3rem;
  border: 1px solid var(--line); border-radius: 1rem;
  background: linear-gradient(158deg, var(--glass-a), var(--glass-b) 55%, var(--glass-c));
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--shadow-soft), var(--shadow-soft-inset);
  font-size: var(--fs-4); line-height: 1.9; color: var(--tx);
}
.xy-full .xy-quote::before {
  content: '题 目';
  display: block; margin-bottom: 0.6rem;
  font-size: var(--fs-4); font-weight: 800; letter-spacing: 0.5rem; color: #3b82f6;
}
/* 圈题来源的诊断小字仍保留，但去掉旧的「已圈选：」前缀样式 */
.xy-full .xy-quote > div:last-child { color: var(--tx3) !important; }

/* 右栏：板书（整栏高度；v325 马总定：不透明纯白，保证板书清晰） */
.xy-full .xy-board {
  grid-area: board; margin: 0; max-height: none; height: 100%; min-height: 0; flex: none;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.xy-full .xy-board-bd { padding: 1rem 1.6rem 1.2rem 2rem; }
.xy-full .bd-line { font-size: calc(var(--fs-4) * 1.04); }
/* v325：纯白板书的标题栏统一为蓝灰系（普通卡片模式板书头不受影响） */
.xy-full .xy-board-hd { background: rgba(248, 251, 255, 0.9); border-bottom: 1px dashed rgba(59, 130, 246, 0.28); }
.xy-full .xy-board-hd b { color: var(--tx); }
.xy-full .xy-board-hd i, .xy-full .xy-bd-fold { color: var(--tx3); }

/* 对话气泡整栏退场：老师的话只从嘴里说出来，不再落在屏幕上 */
.xy-full .xy-msgs { display: none; }

/* 整屏讲题时主界面 dock/顶栏收起（它们的 z-index 比面板高，会压在讲题界面上） */
body.xy-fullmode .dock,
body.xy-fullmode .topbar,
body.xy-fullmode .dock-fade { display: none !important; }

/* 底部：只留状态一行（v265 马总定：全程语音对话，chips 与话筒整体退场，操作全用嘴说） */
.xy-full .xy-status { grid-area: status; color: var(--tx2); padding: 0 0 0.2rem; min-height: 1.4rem; text-align: center; }
.xy-full .xy-chips, .xy-full .xy-in { display: none !important; }
/* 顶栏：拍题 + 退出（v269 马总定：恢复退出入口）；朗读常开不做开关 */
.xy-full #xySound { display: none !important; }

/* ════════════════ v266 取纸面题：讲课面板让位 ════════════════
   相机/选图层 z-index 120，面板 9900 —— 讲题界面开着时开相机，面板会把整个取景画面盖死。
   取题期间 body.xy-cammode 把面板藏掉，选中题目（xyOpenPanel）或关相机（camClose）再露出来。 */
body.xy-cammode .xy-panel { display: none !important; }
body.xy-cammode .xy-ball { display: none !important; }

/* ════════════════ v264 提问流光（xy-glow-ask）════════════════
   老师提问时：光从顶部中央向左右两侧展开 → 沿两边缘下行 → 到底边从两端向中央汇聚，
   底部中央绽开一朵光斑 —— 然后交给 listen/speak 的对话光效（光带四角天然衔接）。
   全部用 transform/clip-path 动画（WebView 91 无 filter 依赖，性能安全）。 */
.xy-glow-ask { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.xy-glow.ask .xy-glow-ask { opacity: 1; }
.xy-glow-ask i { position: absolute; display: block; pointer-events: none; }
/* 顶边：亮点从中央向两侧铺开（两端实色，与左右光带严格衔接，四角无缺口） */
.xy-glow-ask .ak-t {
  left: 0; right: 0; top: 0; height: 0.88rem;
  background: linear-gradient(90deg, #ff8ad4 0%, #ff9ad8 22%, #fff3d6 50%, #ffdf8a 78%, #ffd36e 100%);
  filter: saturate(1.7) brightness(1.28);
  transform: scaleX(0); transform-origin: 50% 50%;
}
.xy-glow.ask .ak-t { animation: akTop 0.42s ease-out forwards; }
@keyframes akTop { to { transform: scaleX(1); } }
/* 两边缘：光从顶部往底部流动（顶/底端色 = 顶边/底边端点色） */
.xy-glow-ask .ak-l, .xy-glow-ask .ak-r {
  top: 0.4rem; bottom: 0.4rem; width: 0.88rem;
  transform: scaleY(0); transform-origin: 50% 0;
}
.xy-glow-ask .ak-l {
  left: 0;
  background: linear-gradient(180deg, #ff8ad4 0%, #ff9fbe 30%, #e8a8e0 62%, #c9a2ff 100%);
  filter: saturate(1.7) brightness(1.22);
}
.xy-glow-ask .ak-r {
  right: 0;
  background: linear-gradient(180deg, #ffd36e 0%, #ffe19a 30%, #a9dcff 62%, #7bb4ff 100%);
  filter: saturate(1.7) brightness(1.22);
}
.xy-glow.ask .ak-l, .xy-glow.ask .ak-r { animation: akSide 0.5s ease-out 0.36s forwards; }
@keyframes akSide { to { transform: scaleY(1); } }
/* 底边：光从两端向中央汇聚（clip-path 两侧同时收拢） */
.xy-glow-ask .ak-b {
  left: 0; right: 0; bottom: 0; height: 0.88rem;
  background: linear-gradient(90deg, #c9a2ff 0%, #d8a8f0 24%, #b48cff 50%, #9ac2ff 76%, #7bb4ff 100%);
  filter: saturate(1.7) brightness(1.28);
  clip-path: inset(0 50% 0 50%);
}
.xy-glow.ask .ak-b { animation: akMeet 0.48s ease-out 0.82s forwards; }
@keyframes akMeet { to { clip-path: inset(0 0 0 0); } }
/* 汇聚点：底部中央绽开的光斑，脉两下——学生该开口了 */
.xy-glow-ask .ak-core {
  left: 50%; bottom: -2rem; width: 20rem; height: 6rem; margin-left: -10rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.98), rgba(255, 160, 220, 0.65) 42%, rgba(170, 140, 255, 0) 100%);
  filter: blur(0.35rem) saturate(1.6) brightness(1.2);
  opacity: 0; transform: scale(0.3);
}
.xy-glow.ask .ak-core { animation: akCore 0.9s ease-out 1.02s 2; }
@keyframes akCore {
  0% { opacity: 0; transform: scale(0.3); }
  40% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.55; transform: scale(1.05); }
}
/* 流光放完（约 2s）后 JS 会把状态切到 listen/speak —— ask 态下四条光带保持常亮做衔接 */

/* ══════════════════ 数学培优（v276）：复用王牌练习外壳 ══════════════════
   高度策略与 #view-practice 完全一致（外壳贴合可用空间，内容只在 .pk-panel 内滚） */
#view-advance { flex: 1 1 0; min-height: 0; }
#view-advance .pk-shell { display: flex; gap: 1rem; align-items: stretch; flex: 1 1 0; min-height: 0; overflow: hidden; }
/* v278（马总）：五版块统一换专属 3D 图（py-*.png，自带方形底+较多留白）——
   圆形裁切会切掉方底四角、黑白底混剪也花，改圆角方形应用图标风（cover 铺满）；
   图源留白大，尺寸比通用值放大一档保证主体清晰 */
#view-advance .pk-nav-ic {
  width: 3.1rem; height: 3.1rem;
  border-radius: 26%;
  background: transparent;
  object-fit: cover;
}
/* 打开页顶部大卡图标 / 动态模型馆入口卡图标：同款圆角方形 */
#view-advance .pk-top-img { width: 5.2rem; height: 5.2rem; border-radius: 26%; object-fit: cover; }
#view-advance .tier-ic { border-radius: 26%; object-fit: cover; padding: 0; background: transparent; }
/* v277（马总）：侧栏底部出现一条直边色带 = 大卡片向下偏移 1rem 的投影 + 底部内边距，
   培优页菜单少、下方空旷就露出来了（王牌练习底部有按钮占位看不到）。
   收紧：投影改成小偏移弱阴影（不再向下甩出一条带），底部内边距减小，
   卡片视觉上正好收在最后一个菜单项的圆角处 —— 全侧栏只有一个圆角卡片背景。 */
/* v280（马总）：培优菜单卡片高度对齐王牌练习（真机 71px）。
   根因：v280 给侧栏设 min-height≈594px 想让 5 张卡填满到 71px，但数学培优区可用高度仅 510px，
   侧栏被外壳 overflow:hidden 裁掉底部「解题大招/动态模型」卡 —— 即马总反馈的"截断了"。
   v281 修复：去掉过高 min-height（侧栏改回跟随可视区，min-height:0 不再超出被裁），
   卡片固定为与王牌练习一致的 5.3rem(≈71px)，侧栏自身 overflow-y:auto + 触摸滚动惯性，
   卡片多则向上滑、少则刚好放下，无论多少都可见、不截断。 */
/* v282（马总）：数学培优左侧菜单——顶部品牌图固定不动，仅下方导航卡片区滚动。
   5 个 pk-nav-it 包进 .pk-nav 滚动容器；.pk-side 自身不再整体滚动（overflow:hidden），
   返回+品牌图钉在顶部，多出的卡片在 .pk-nav 内上滑查看，不被外壳裁切、也不会把品牌图推出去。 */
#view-advance .pk-side { padding-bottom: 0.55rem; box-shadow: 0 0.4rem 0.9rem rgba(30, 64, 130, 0.08); gap: 0.9rem; min-height: 0; overflow: hidden; }
/* 仅导航卡片区可滚动：flex:1 占满剩余高度、min-height:0 允许收缩、自带触摸滚动惯性 */
#view-advance .pk-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 0.9rem; }
/* 菜单项固定高度（与王牌练习卡片等高 ≈71px），不拉伸，靠 .pk-nav 滚动容纳 */
#view-advance .pk-nav-it { flex: 0 0 auto; min-height: 5.3rem; }
/* 品牌图（数学培优 3D 图 + 新课标金牌培优），复用 .pk-brand-img 基础样式 */
#view-advance .pk-brand-img { max-width: 13.75rem; }
/* 面板内小节标题（重点拔高双区块用） */
.py-sec-tt {
  font-size: var(--fs-4); font-weight: 800; color: #1e3a8a;
  padding: 0.2rem 0.2rem 0.55rem; letter-spacing: 0.04em;
}
.py-sec-tt + .tier-grid, .py-sec-tt + .kp-grid { margin-bottom: 0.9rem; }

/* ════════════ 作业批改 · 框选题区 + 左卷右批改面板（v291，马总参考流程） ════════════ */
.cam-view.grade { background: #0e1526; }
.grade-stage { position: absolute; inset: 4.4rem 0.9rem 6.4rem; display: flex; gap: 0.9rem; }
.grade-left { flex: 1.05 1 0; min-width: 0; display: flex; flex-direction: column; }
.grade-inner { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 1rem; overflow: hidden; background: #f5f1e8; touch-action: none; }
.grade-inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.grade-tip { flex: 0 0 auto; margin-top: 0.55rem; text-align: center; color: #b9c4de; font-size: var(--fs-5); }
.grade-tip b { color: #fff; }
/* 四角框选题区 */
.grade-sel { z-index: 3; position: absolute; border: 0.22rem solid #ff4d5e; box-shadow: 0 0 0 999rem rgba(255, 76, 94, 0.10), 0 0 1.2rem rgba(255, 76, 94, 0.55); cursor: move; }
.gcorner { position: absolute; width: 1.7rem; height: 1.7rem; border: 0.32rem solid #ff4d5e; }
.gcorner.tl { left: -0.32rem; top: -0.32rem; border-right: none; border-bottom: none; border-radius: 0.4rem 0 0 0; }
.gcorner.tr { right: -0.32rem; top: -0.32rem; border-left: none; border-bottom: none; border-radius: 0 0.4rem 0 0; }
.gcorner.bl { left: -0.32rem; bottom: -0.32rem; border-right: none; border-top: none; border-radius: 0 0 0 0.4rem; }
.gcorner.br { right: -0.32rem; bottom: -0.32rem; border-left: none; border-top: none; border-radius: 0 0 0.4rem 0; }
.gtag { position: absolute; left: 0.2rem; top: 0.2rem; background: #ff4d5e; color: #fff; font-size: var(--fs-5); font-weight: 700; padding: 0.18rem 0.7rem; border-radius: 999rem; white-space: nowrap; }
/* 已批完题目的历史框（角标） */
.grade-done { position: absolute; inset: 0; pointer-events: none; }
.grade-done i { position: absolute; border: 0.14rem dashed rgba(64, 196, 120, 0.85); border-radius: 0.3rem; }
.grade-done i em { position: absolute; right: -0.1rem; top: -1.5rem; font-style: normal; background: #40c478; color: #fff; font-size: 0.62rem; padding: 0.06rem 0.4rem; border-radius: 999rem; }
/* 右侧批改面板 */
.grade-right { flex: 1 1 0; min-width: 0; border-radius: 1rem; background: #f2f4fa; display: flex; flex-direction: column; overflow: hidden; }
.grade-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; color: #5a6a8f; font-size: var(--fs-4); text-align: center; }
.grade-empty img { width: 5.2rem; height: 5.2rem; border-radius: 50%; object-fit: cover; opacity: 0.9; }
.grade-empty p { line-height: 1.7; }
.grade-empty b { color: #1e3a8a; }
.grade-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.gp-orig { flex: 0 0 auto; margin: 0.8rem 0.8rem 0.55rem; background: #fff; border-radius: 0.8rem; padding: 0.6rem 0.7rem 0.7rem; box-shadow: 0 0.2rem 0.7rem rgba(30, 58, 138, 0.08); }
.gp-orig-hd { font-size: var(--fs-5); font-weight: 800; color: #1e3a8a; margin-bottom: 0.45rem; }
.gp-orig-hd span { font-weight: 400; color: #8a94ab; margin-left: 0.4rem; }
.gp-orig img { display: block; width: 100%; max-height: 12rem; object-fit: contain; background: #fbf9f4; border-radius: 0.5rem; }
/* 文件夹标签 —— chrome-tabs（Adam Schwartz，GitHub 最著名标签库）官方形状：顶大圆角+底双内凹弯，path 原样照抄 */
.gp-tabs { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 0.4rem; padding: 0.8rem 0.8rem 0; }
.gp-tabs button { position: relative; border: none; background: transparent; color: #5a6a8f; font-size: var(--fs-5); font-weight: 700; padding: 0 1.3rem; height: 2.7rem; z-index: 0; }
.gp-tabs button svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; fill: #ccd8f2; pointer-events: none; }
.gp-tabs button span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.gp-tabs button.on { color: #1a4fff; z-index: 1; height: 3.05rem; }
.gp-tabs button.on svg { fill: #f2f4fa; }
.gp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0.7rem 0.8rem 0.9rem; }
/* 判定列表 */
.gp-verdict { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; background: #fff; border-radius: 0.65rem; padding: 0.5rem 0.75rem; margin-bottom: 0.45rem; font-size: 1.02rem; color: #24304d; font-weight: 700; cursor: pointer; }
.gp-verdict:active { background: #f4f7ff; }
.gp-verdict .gv-ok { color: #18a058; }
.gp-verdict .gv-bad { color: #e6434f; }
.gp-verdict .gv-fix { font-size: var(--fs-5); color: #8a94ab; font-weight: 400; }
.gp-sum { display: flex; gap: 0.55rem; margin-bottom: 0.6rem; }
.gp-sum i { flex: 1; font-style: normal; text-align: center; background: #fff; border-radius: 0.6rem; padding: 0.45rem 0; font-size: var(--fs-5); color: #5a6a8f; }
.gp-sum i b { display: block; font-size: 1.3rem; color: #1e3a8a; }
.gp-note { background: #fff8e8; border-radius: 0.65rem; padding: 0.6rem 0.75rem; font-size: var(--fs-5); color: #8a6d3b; line-height: 1.65; }
.gp-stem { background: #fff; border-radius: 0.65rem; padding: 0.6rem 0.75rem; font-size: var(--fs-5); color: #3c4a6b; line-height: 1.7; white-space: pre-wrap; }
.gp-soon { background: #eef2fb; border-radius: 0.65rem; padding: 0.7rem 0.8rem; color: #5a6a8f; font-size: var(--fs-5); line-height: 1.7; }
/* AI 老师气泡 */
.grade-bubble { position: absolute; left: 50%; bottom: 7rem; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 0.5rem; z-index: 5; max-width: 46%; pointer-events: none; }
.grade-bubble img { width: 4.2rem; height: 4.2rem; border-radius: 50%; object-fit: cover; border: 0.18rem solid #fff; box-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.35); flex: 0 0 auto; }
.gb-txt { background: linear-gradient(135deg, #6d5df1, #4636c9); color: #fff; font-size: var(--fs-5); line-height: 1.55; padding: 0.55rem 0.85rem; border-radius: 1rem 1rem 1rem 0.2rem; box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.35); }
/* 底部 CTA */
.grade-cta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 0.9rem; padding: 0.9rem 1rem 1.2rem; background: linear-gradient(180deg, rgba(14, 21, 38, 0) 0%, rgba(14, 21, 38, 0.9) 40%); }
.grade-go { border: none; border-radius: 999rem; padding: 0.72rem 2.4rem; font-size: var(--fs-4); font-weight: 800; color: #fff; background: linear-gradient(135deg, #4f8dff 0%, #2f6bff 55%, #1a4fff 100%); box-shadow: 0 0.4rem 1.1rem rgba(26, 79, 255, 0.45); }
.grade-go:disabled { opacity: 0.55; }
.grade-go.ghost { background: rgba(255, 255, 255, 0.12); box-shadow: none; border: 0.12rem solid rgba(255, 255, 255, 0.35); }
.grade-go.gold { background: linear-gradient(135deg, #ffcf4d, #ff9d2e); box-shadow: 0 0.4rem 1.1rem rgba(255, 157, 46, 0.4); color: #7a4a00; }
/* 批改 loading / 勋章 */
.grade-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.7rem; background: rgba(10, 15, 30, 0.55); z-index: 8; color: #dfe7ff; font-size: var(--fs-4); }
.grade-loading i { width: 1.2rem; height: 1.2rem; border: 0.22rem solid rgba(255, 255, 255, 0.25); border-top-color: #6d9dff; border-radius: 50%; animation: gspin 0.9s linear infinite; }
@keyframes gspin { to { transform: rotate(360deg); } }
.grade-medal { position: absolute; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center; background: rgba(8, 12, 26, 0.72); }
.gm-card { text-align: center; animation: gpop 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) both; }
.gm-badge { display: inline-flex; align-items: center; justify-content: center; width: 11rem; height: 11rem; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff3c4 0%, #ffd257 42%, #ff9d2e 78%, #f07d1a 100%); box-shadow: 0 0 0 0.9rem rgba(255, 210, 87, 0.18), 0 0 3rem rgba(255, 190, 60, 0.65), inset 0 -0.5rem 1.2rem rgba(200, 110, 10, 0.4); }
.gm-badge span { font-size: 5rem; font-weight: 900; color: #fff; text-shadow: 0 0.25rem 0.6rem rgba(180, 100, 0, 0.55); }
.gm-card b { display: block; margin-top: 1rem; font-size: var(--fs-2); color: #ffd257; letter-spacing: 0.12em; }
.gm-card .gm-sub { display: block; margin-top: 0.4rem; color: #dfe7ff; font-size: var(--fs-5); }
@keyframes gpop { 0% { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* ── v292 批改补充：AI 建议框 chips + 题号导航 chips ── */
.grade-suggest { flex: 0 0 auto; margin-top: 0.4rem; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.4rem; color: #8fa1c7; font-size: var(--fs-5); }
.gs-chip { border: 0.12rem solid rgba(110, 168, 255, 0.55); background: rgba(30, 52, 96, 0.55); color: #cfe0ff; font-size: var(--fs-5); font-weight: 700; padding: 0.28rem 0.75rem; border-radius: 999rem; }
.gs-chip:active { background: rgba(64, 110, 210, 0.65); }
.gp-chips { flex: 0 0 auto; display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.55rem 0.8rem 0; }
.gpc { flex: 0 0 auto; border: none; background: #e3e8f4; color: #5a6a8f; font-size: var(--fs-5); font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999rem; display: flex; align-items: center; gap: 0.3rem; }
.gpc i { font-style: normal; font-size: 0.72rem; color: #18a058; }
.gpc.on { background: linear-gradient(135deg, #4f8dff, #1a4fff); color: #fff; }
.gpc.on i { color: #bfe3ff; }

/* ── v293 批改框选改版：完整试卷 + 题块外黑遮罩 + 点选其他题块 ── */
.grade-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }
.grade-shade.hidden { display: none; }
.grade-blocks { position: absolute; inset: 0; z-index: 2; }
.grade-blocks.hidden { display: none; }
.gblk { position: absolute; border: 0.16rem dashed rgba(255, 255, 255, 0.85); border-radius: 0.4rem; background: rgba(255, 255, 255, 0.05); padding: 0; }
.gblk em { position: absolute; left: 0.25rem; top: 0.25rem; font-style: normal; background: rgba(18, 28, 52, 0.88); color: #fff; font-size: 0.72rem; font-weight: 800; min-width: 1.5rem; text-align: center; padding: 0.1rem 0.45rem; border-radius: 0.9rem; }
.gblk.on { border-style: solid; border-color: #ffd257; background: rgba(255, 210, 87, 0.10); }
.gblk.on em { display: none; } /* 选中块由红框的「第 N 题」标签标识，避免双角标 */

/* ═════════ v300 作业辅导重构（参考竞品版式：左今日作业 + 右添加作业/学生卡，磨砂玻璃沿用全站变量） ═════════ */
.hw2-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 1rem; min-height: 0; }
.hw2-main { display: flex; flex-direction: column; padding: 1.4rem 1.6rem; border-radius: 1.4rem; min-height: 0; }
.hw2-head { display: flex; align-items: center; justify-content: space-between; }
.hw2-tt { font-size: var(--fs-1); font-weight: 800; }
.hw2-self { border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.7); color: var(--tx); font-size: var(--fs-4); font-weight: 600; padding: 0.45rem 1.1rem; border-radius: 2rem; cursor: pointer; }
.hw2-self i { font-style: normal; margin-left: 0.3rem; color: var(--tx2); }
.hw2-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; color: var(--tx2); font-size: var(--fs-4); }
.hw2-cube { width: 7.5rem; height: 7.5rem; opacity: 0.92; }
.hw2-sep { border-top: 1px dashed var(--line2); margin: 0.8rem 0 1rem; }
.hw2-reco { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; margin-bottom: 1rem; }
.hw2-reco b { font-size: var(--fs-3); font-weight: 800; }
.hw2-reco-date { font-size: var(--fs-5); color: var(--tx3); }
.hw2-subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hw2-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem 1.1rem; border-radius: 1.2rem; background: linear-gradient(158deg, rgba(255, 255, 255, 0.9), rgba(235, 245, 255, 0.72)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.hw2-sub-ic { width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; color: #fff; font-size: var(--fs-3); }
.ic-ch { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.ic-ma { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.ic-en { background: linear-gradient(135deg, #34d399, #10b981); }
.hw2-sub b { font-size: var(--fs-3); font-weight: 800; }
.hw2-sub span { font-size: var(--fs-5); color: var(--tx2); }
.hw2-go { margin-top: auto; align-self: stretch; border: none; border-radius: 2rem; padding: 0.5rem 0; font-size: var(--fs-4); font-weight: 700; color: #fff; background: linear-gradient(135deg, #4f8dff, #1a4fff); cursor: pointer; box-shadow: 0 0.4rem 0.9rem rgba(47, 107, 255, 0.35); }
.hw2-go:active { transform: translateY(0.15rem); }
.hw2-go i { font-style: normal; margin-left: 0.25rem; }
.hw2-side { display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.hw2-add { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem; padding: 2.3rem 1rem; border-radius: 1.4rem; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s; }
.hw2-add:hover { transform: translateY(-3px); }
.hw2-add-ic { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: linear-gradient(135deg, #4f8dff, #1a4fff); color: #fff; font-style: normal; font-size: var(--fs-2); font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0.5rem 1.1rem rgba(47, 107, 255, 0.4); }
.hw2-add b { font-size: var(--fs-2); font-weight: 800; }
.hw2-add span { font-size: var(--fs-5); color: var(--tx2); }
.hw2-user { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.9rem; padding: 1.2rem 1.3rem; border-radius: 1.4rem; min-height: 0; }
.hw2-user-top { display: flex; align-items: center; gap: 0.8rem; }
.hw2-ava { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #3b82f6); color: #fff; font-style: normal; font-weight: 800; font-size: var(--fs-3); display: flex; align-items: center; justify-content: center; flex: none; }
.hw2-uid { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.hw2-uid b { font-size: var(--fs-3); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw2-uid span { font-size: var(--fs-5); color: var(--tx2); }
.hw2-hearts { display: flex; gap: 0.7rem; }
.hw2-hearts span { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 0.3rem; background: rgba(59, 130, 246, 0.08); border: 1px solid var(--line); border-radius: 2rem; padding: 0.4rem 0; font-size: var(--fs-4); font-weight: 700; }
.hw2-stats { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.2rem; }
.hw2-stats > div { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-4); }
.hw2-stats span { color: var(--tx2); }
.hw2-stats b { font-weight: 800; }

/* v301：作业模式改为二级页（入口恢复原四卡），左上角返回圆钮（参考图同款位置） */
#view-hwmode { position: relative; }
.hw2-back { position: absolute; top: 0.2rem; left: 0; z-index: 5; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px); color: var(--tx); font-size: var(--fs-2); line-height: 1; cursor: pointer; box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: center; }
.hw2-back i { font-style: normal; margin-top: -0.2rem; }
.hw2-back:active { transform: scale(0.94); }

/* v303：返回钮从绝对定位改入标题行内（马总反馈盖住「今日作业」）；统计数字右侧让位问老师悬浮球 */
.hw2-head-l { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.hw2-back { position: static; width: 2.4rem; height: 2.4rem; flex: none; }
.hw2-back i { margin-top: -0.15rem; }
.hw2-stats { padding-right: 3.6rem; }

/* ═════════ v304 添加作业页（参考竞品版式：去学科、卡片加宽）+ 今日作业清单 ═════════ */
.hwa-top { display: flex; align-items: center; gap: 0.8rem; }
.hwa-title { flex: 1 1 auto; text-align: center; font-size: var(--fs-1); font-weight: 800; }
.hwa-import { flex: none; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.72); color: var(--tx); border-radius: 2rem; padding: 0.5rem 1.2rem; font-size: var(--fs-4); font-weight: 600; cursor: pointer; }
.hwa-import:active { transform: scale(0.97); }
.hwa-card { width: min(78%, 66rem); margin: 1.6rem auto 0; border-radius: 1.6rem; padding: 2rem 2.6rem; display: flex; flex-direction: column; gap: 1.8rem; }
.hwa-sec { display: flex; flex-direction: column; gap: 0.95rem; }
.hwa-sec > label { font-size: var(--fs-3); font-weight: 800; }
.hwa-chips { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.chip { border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.78); color: var(--tx); border-radius: 2rem; padding: 0.58rem 1.6rem; font-size: var(--fs-4); font-weight: 600; cursor: pointer; }
.chip.on { background: linear-gradient(135deg, #4f8dff, #1a4fff); color: #fff; border-color: transparent; box-shadow: 0 0.4rem 0.9rem rgba(47, 107, 255, 0.35); }
.hwa-ta-wrap { position: relative; background: rgba(59, 130, 246, 0.06); border: 1px solid var(--line); border-radius: 1.1rem; padding: 0.95rem 1.05rem 2rem; }
.hwa-ta-wrap textarea { display: block; width: 100%; min-height: 7.5rem; border: none; background: transparent; resize: none; outline: none; font-size: var(--fs-4); font-family: inherit; color: var(--tx); line-height: 1.6; }
.hwa-count { position: absolute; right: 1rem; bottom: 0.6rem; font-size: var(--fs-5); color: var(--tx3); }
.hwa-actions { display: flex; justify-content: center; margin-top: 1.8rem; }
.hwa-publish { border: none; border-radius: 2.4rem; padding: 0.9rem 4.4rem; font-size: var(--fs-3); font-weight: 800; color: #fff; background: linear-gradient(135deg, #4f8dff, #1a4fff); cursor: pointer; box-shadow: 0 0.6rem 1.4rem rgba(47, 107, 255, 0.4); }
.hwa-publish:active { transform: translateY(0.15rem); }
.hwa-modal { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.38); }
.hwa-modal-box { width: 27rem; max-width: 84%; border-radius: 1.3rem; background: #ffffff; padding: 1.7rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; text-align: center; box-shadow: 0 1rem 2.6rem rgba(15, 23, 42, 0.28); }
.hwa-modal-box b { font-size: var(--fs-3); font-weight: 800; }
.hwa-modal-box p { font-size: var(--fs-4); color: var(--tx2); }
.hwa-modal-btns { display: flex; gap: 0.85rem; margin-top: 1.1rem; }
.hwa-modal-btns button { flex: 1 1 0; border-radius: 2.2rem; padding: 0.62rem 0; font-size: var(--fs-4); font-weight: 700; cursor: pointer; border: 1px solid var(--line2); background: #f1f5fb; color: var(--tx); }
.hwa-modal-btns button:last-child { background: linear-gradient(135deg, #4f8dff, #1a4fff); color: #fff; border-color: transparent; box-shadow: 0 0.4rem 0.9rem rgba(47, 107, 255, 0.35); }
/* 今日作业清单（参考竞品：标题计数 + 作业条 + 🌸奖励 + 写作业按钮） */
.hw2-list { display: flex; flex-direction: column; gap: 0.85rem; }
.hw2-ls-head { margin-bottom: 0.2rem; }
.hw2-ls-head b { font-size: var(--fs-2); font-weight: 800; }
.hw2-it { display: flex; align-items: center; gap: 1.1rem; padding: 1.05rem 1.25rem; border-radius: 1.2rem; background: linear-gradient(158deg, rgba(255, 255, 255, 0.9), rgba(235, 245, 255, 0.72)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.hw2-it-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.hw2-it-tx b { font-size: var(--fs-3); font-weight: 800; }
.hw2-it-tx span { font-size: var(--fs-5); color: var(--tx2); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hw2-it-rw { font-style: normal; font-size: var(--fs-5); color: var(--tx2); background: rgba(245, 158, 11, 0.14); border-radius: 1.2rem; padding: 0.12rem 0.6rem; align-self: flex-start; }
.hw2-it-go { flex: none; border: none; border-radius: 2.2rem; padding: 0.6rem 1.7rem; font-size: var(--fs-4); font-weight: 700; color: #fff; background: linear-gradient(135deg, #4f8dff, #1a4fff); cursor: pointer; box-shadow: 0 0.4rem 0.9rem rgba(47, 107, 255, 0.35); }
.hw2-it-go:active { transform: translateY(0.12rem); }

/* ═════════ v306 写作业（专注作业模式）：磨砂玻璃 + 双守护 + 双摄预览 ═════════ */
body.hw-full .topbar, body.hw-full .dock, body.hw-full .dock-fade { display: none !important; }
body.hw-full #main, body.hw-full main { padding: 0 !important; margin: 0 !important; }
.hww-wrap { display: grid; grid-template-columns: 1fr 17rem; gap: 1.1rem; height: calc(100vh - 1.6rem); padding: 0.8rem 0.9rem; box-sizing: border-box; }
.hww-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.hww-top { display: flex; align-items: center; gap: 0.7rem; }
.hww-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.38rem 0.95rem; border-radius: 2rem; font-size: var(--fs-5); font-weight: 700; color: var(--tx2); background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.hww-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0.5rem rgba(34, 197, 94, 0.7); }
.hww-tip { display: flex; align-items: center; gap: 0.7rem; margin: 0.9rem auto 0; max-width: 46rem; padding: 0.7rem 1.2rem; border-radius: 1.2rem; background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line); box-shadow: var(--shadow-soft); font-size: var(--fs-4); color: var(--tx); animation: viewIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hww-tip-ava { width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none; object-fit: cover; }
.hww-center { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.3rem; min-height: 0; }
.hww-clock { font-size: 4.4rem; font-weight: 800; color: var(--tx); letter-spacing: 0.04em; line-height: 1.1; text-shadow: 0 0.3rem 1rem rgba(59, 130, 246, 0.18); }
.hww-task { width: min(34rem, 84%); display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: 1.3rem; }
.hww-task-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.hww-task-tx b { font-size: var(--fs-3); font-weight: 800; }
.hww-task-tx span { font-size: var(--fs-5); color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hww-task-rw { flex: none; font-style: normal; font-size: var(--fs-4); font-weight: 700; color: var(--tx2); background: rgba(245, 158, 11, 0.14); border-radius: 1.2rem; padding: 0.25rem 0.75rem; }
.hww-btns { display: flex; gap: 3.2rem; }
.hww-cbtn { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; background: none; border: none; cursor: pointer; }
.hww-cbtn i { width: 3.7rem; height: 3.7rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: var(--fs-3); color: var(--tx); background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line2); box-shadow: 0 0.5rem 1.2rem rgba(59, 130, 246, 0.16); }
.hww-cbtn:active i { transform: scale(0.94); }
.hww-cbtn span { font-size: var(--fs-5); color: var(--tx2); font-weight: 600; }
.hww-side { display: flex; flex-direction: column; gap: 0.75rem; min-height: 0; position: relative; }
.hww-cam { position: relative; flex: 1 1 0; min-height: 0; border-radius: 1.2rem; overflow: hidden; background: rgba(15, 23, 42, 0.06); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.hww-cam video { width: 100%; height: 100%; object-fit: cover; display: block; background: #dbe6f5; }
.hww-teacher video { object-fit: cover; }
.hww-cam-tag { position: absolute; left: 50%; bottom: 0.45rem; transform: translateX(-50%); padding: 0.2rem 0.85rem; border-radius: 1.5rem; font-size: var(--fs-5); font-weight: 600; color: var(--tx); background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); white-space: nowrap; }
.hww-tools-btn { border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.8); color: var(--tx); border-radius: 2rem; padding: 0.55rem 0; font-size: var(--fs-4); font-weight: 700; cursor: pointer; }
.hww-tools { position: absolute; right: 0; bottom: 2.9rem; z-index: 30; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; padding: 0.95rem; border-radius: 1.3rem; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: 0 0.8rem 2rem rgba(15, 23, 42, 0.14); }
.hww-tools button { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; background: none; border: none; cursor: pointer; padding: 0.2rem 0.5rem; }
.hww-tools img { width: 3.4rem; height: 3.4rem; object-fit: contain; }
.hww-tools span { font-size: var(--fs-5); font-weight: 600; color: var(--tx); }
.hww-modal { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.38); }
.hww-modal-box { width: 28rem; max-width: 86%; border-radius: 1.4rem; padding: 2.2rem 1.6rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; background: rgba(255, 255, 255, 0.94); }
.hww-modal-ava { width: 4.6rem; height: 4.6rem; border-radius: 50%; object-fit: cover; margin-top: -3.4rem; border: 0.25rem solid #fff; box-shadow: 0 0.5rem 1.2rem rgba(15, 23, 42, 0.18); background: #eef4ff; }
.hww-modal-box b { font-size: var(--fs-3); font-weight: 800; }
.hww-modal-box p { font-size: var(--fs-4); color: var(--tx2); line-height: 1.55; }
.hww-modal-go { margin-top: 0.9rem; align-self: stretch; border: none; border-radius: 2.2rem; padding: 0.7rem 0; font-size: var(--fs-4); font-weight: 700; color: #fff; background: linear-gradient(135deg, #4f8dff, #1a4fff); cursor: pointer; box-shadow: 0 0.5rem 1.2rem rgba(47, 107, 255, 0.4); }
.hw2-it-go.done { background: #e2e8f0; color: var(--tx3); box-shadow: none; cursor: default; }

/* v307：摄像头未接入/未出画时显示占位提示，压掉空 video 的原生播放图标 */
.hww-cam.nocam video { visibility: hidden; }
.hww-cam.nocam::after { content: '未接入'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--tx3); font-size: var(--fs-4); background: linear-gradient(158deg, rgba(255, 255, 255, 0.65), rgba(235, 245, 255, 0.5)); }

/* v309 双摄分时复用：专注度卡改为「快照卡」，抓拍时显示最近桌面帧 + 抓拍中角标 */
.hww-cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hww-cam-grab { position: absolute; top: 0.45rem; right: 0.45rem; padding: 0.14rem 0.55rem; border-radius: 1.2rem; font-size: var(--fs-5); font-weight: 700; color: #fff; background: rgba(26, 79, 255, 0.82); animation: hwwPulse 1.1s ease-in-out infinite; }
@keyframes hwwPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ═════════ v310 写作业体验修正：视频过渡背景（防黑三角）+ 坐姿旋转 + 桌面快照微动 ═════════ */
.hww-vboot { position: absolute; inset: 0; z-index: 2; background: url('/student/assets/ai-teacher/teacher-fallback.jpg?v=313') center / cover no-repeat; }
.hww-vboot.vboot-mist { background: linear-gradient(158deg, rgba(255, 255, 255, 0.92), rgba(225, 238, 255, 0.88)); display: flex; align-items: center; justify-content: center; }
.hww-vboot.vboot-mist i { font-style: normal; font-size: var(--fs-5); color: var(--tx3); }
/* 坐姿视频：显示层宽高+旋转由 hwwFitRot 按 JS 设置，这里先给定位基准 */
.hww-cam video { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* 桌面快照 Ken Burns 微动：静止图也有呼吸感 */
.hww-cam img { animation: hwwKen 16s ease-in-out infinite alternate; }
@keyframes hwwKen { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(1.6%, -1.6%); } }

/* ═════════ v314 试卷中心入口改版：分类 chips + 更多/城市版本/优先推荐 筛选（磨砂玻璃，参考菁优版式） ═════════ */
/* v318 试卷中心入口页全屏：隐藏顶栏+底部导航（照抄 bp-full 模式，马总指定） */
body.pc-full .topbar { display: none !important; }
body.pc-full .dock { display: none !important; }
body.pc-full .dock-fade { display: none !important; }
body.pc-full .xy-ball { display: none !important; }
body.pc-full #main, body.pc-full main { padding: 1rem 1.15rem 1.4rem !important; }
.pc-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; flex-wrap: nowrap; }
.pc-head .pc-tabs { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.pc-head .pc-tabs::-webkit-scrollbar { display: none; }
.pc-fbtns { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pc-fbtn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; font-size: var(--fs-4, 15px); color: var(--tx2, #444); cursor: pointer; padding: 6px 4px; font-family: inherit; white-space: nowrap; }
.pc-fbtn i { font-style: normal; font-size: 11px; color: var(--tx3, #999); }
.pc-fbtn:active { opacity: .7; }
.pc-fsep { width: 1px; height: 16px; background: rgba(0,0,0,.12); flex-shrink: 0; }
.pc-info { font-size: var(--fs-3, 13px); color: var(--tx3, #888); margin: 0 2px 12px; }
.pc-info b { color: var(--tx1, #222); }
.pc-info .rk-ok { color: #2e9e5b; }
.pc-info .rk-warn { color: #d97706; }
/* 弹窗（更多 / 省份-城市-版本） */
.pc-pop { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; }
.pc-pop-mask { position: absolute; inset: 0; background: rgba(20, 30, 50, .35); backdrop-filter: blur(2px); }
/* v318 「更多」弹窗增大一级；省份城市版本弹窗改全屏 */
.pc-pop-box { position: relative; width: min(680px, 94vw); max-height: 88vh; overflow: auto; border-radius: 26px; padding: 28px 30px 22px; }
.pc-pop-box.wide { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; padding: 30px 40px 26px; }
.pc-pop-box.wide .pc-rp-col .pc-pop-chips { max-height: 56vh; }
.pc-pop-head { text-align: center; font-size: var(--fs-5, 17px); font-weight: 700; color: var(--tx1, #222); margin-bottom: 14px; position: relative; }
.pc-pop-x { position: absolute; right: 0; top: -2px; border: 0; background: transparent; font-size: 16px; color: var(--tx3, #999); cursor: pointer; padding: 4px; }
.pc-pop-sec { margin-bottom: 14px; }
.pc-pop-sec > b { display: block; font-size: var(--fs-4, 14px); color: var(--tx1, #333); margin-bottom: 8px; }
.pc-pop-sec > i { display: block; font-style: normal; font-size: var(--fs-3, 12px); color: var(--tx3, #999); margin: 8px 0 6px; }
.pc-pop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-chip { border: 0; background: rgba(120, 140, 180, .12); color: var(--tx2, #444); font-size: var(--fs-3, 13px); padding: 7px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.pc-chip.on { background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; box-shadow: 0 4px 10px rgba(63, 109, 255, .3); }
.pc-chip:active { transform: scale(.96); }
.pc-pop-foot { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.pc-pop-btn { flex: 0 0 140px; border: 0; padding: 11px 0; border-radius: 999px; font-size: var(--fs-4, 15px); background: rgba(120, 140, 180, .14); color: var(--tx2, #444); cursor: pointer; font-family: inherit; }
.pc-pop-btn.ok { background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; box-shadow: 0 6px 14px rgba(63, 109, 255, .35); }
.pc-rp-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.pc-rp-col > b { display: block; font-size: var(--fs-4, 14px); color: var(--tx1, #333); margin-bottom: 8px; }
.pc-rp-col .pc-pop-chips { max-height: 300px; overflow-y: auto; }
/* 优先推荐小下拉 */
.pc-sort-pop { position: fixed; z-index: 901; border-radius: 14px; padding: 6px; min-width: 132px; display: flex; flex-direction: column; }
.pc-sort-pop button { border: 0; background: transparent; padding: 10px 18px; border-radius: 10px; font-size: var(--fs-4, 14px); color: var(--tx2, #444); cursor: pointer; font-family: inherit; text-align: center; }
.pc-sort-pop button.on { color: var(--tx1, #222); font-weight: 700; }
.pc-sort-pop button:active { background: rgba(120, 140, 180, .12); }

/* ═════════ v330 AI精准学 · 全屏学习界面（参考竞品 16 图，磨砂玻璃） ═════════ */
body.px-full { overflow: hidden; }
body.px-full .topbar, body.px-full .dock, body.px-full .dock-fade { display: none !important; }
body.px-full #main, body.px-full main { padding: 0 !important; }
.jx-wrap { position: fixed; inset: 0; z-index: 840; display: flex; flex-direction: column; gap: 0.7rem; padding: 0.9rem 1rem 0.8rem;
  background: linear-gradient(165deg, #edf3fe 0%, #e6eefb 50%, #eef2fd 100%); }
.jx-back { position: static; width: 3.2rem; height: 3.2rem; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,0.6); color: var(--tx);
  font-size: 2.1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 0.3rem; }
.jx-back:active { transform: scale(0.94); }
.jx-top { display: flex; align-items: center; gap: 1.2rem;
  border-radius: 1.4rem; padding: 0.6rem 1.2rem; min-height: 4.8rem; }
.jx-brand { flex-shrink: 0; }
.jx-tabs { margin: 0 auto; flex-shrink: 0; }
.jx-brand b { font-size: 1.9rem; font-weight: 900; font-style: italic; letter-spacing: 0.1rem;
  background: linear-gradient(90deg, #4f7cff, #8a5cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.jx-brand i { font-style: italic; margin-left: 0.3rem; }
.jx-tabs { display: flex; gap: 0.6rem; background: rgba(255,255,255,0.55); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem; }
.jx-tabs button { border: 0; background: transparent; font-size: 1.5rem; font-weight: 700; color: var(--tx2); padding: 0.45rem 1.7rem; border-radius: 999px; cursor: pointer; font-family: inherit; }
.jx-tabs button.on { background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; box-shadow: 0 4px 12px rgba(63, 109, 255, 0.35); }
.jx-topr { display: flex; align-items: center; gap: 0.6rem; justify-content: flex-end; }
.jx-mini { border: 1px solid var(--line); background: var(--glass-b); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 1.3rem; color: var(--tx); padding: 0.55rem 1.2rem; border-radius: 999px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.jx-mini:active { transform: scale(0.96); }
.jx-book { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(91, 140, 255, 0.45); background: rgba(91, 140, 255, 0.12);
  font-size: 1.3rem; color: #3f6dff; font-weight: 600; padding: 0.55rem 1.2rem; border-radius: 999px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.jx-book i { font-style: normal; font-size: 1rem; }
.jx-main { flex: 1; display: flex; gap: 0.8rem; min-height: 0; }
.jx-side { width: 21.5rem; flex-shrink: 0; border-radius: 1.4rem; padding: 0.9rem 0.8rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.jx-side::-webkit-scrollbar { width: 4px; }
.jx-side-head { display: flex; align-items: center; justify-content: space-between; padding: 0.1rem 0.3rem 0.3rem; }
.jx-side-head b { font-size: 1.5rem; color: var(--tx); }
.jx-x { border: 0; background: transparent; color: var(--tx3); font-size: 1.4rem; cursor: pointer; }
.jx-ch { display: flex; flex-direction: column; gap: 0.45rem; }
.jx-ch-h { display: flex; align-items: center; gap: 0.5rem; border: 0; background: transparent; font-size: 1.35rem; font-weight: 700; color: var(--tx); padding: 0.5rem 0.3rem; cursor: pointer; text-align: left; font-family: inherit; }
.jx-ch-h i { font-style: normal; color: var(--tx3); font-size: 1.1rem; width: 1.2rem; }
.jx-it { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--glass-b); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 1.3rem; color: var(--tx); padding: 0.75rem 1rem; border-radius: 0.9rem; cursor: pointer; font-family: inherit; }
.jx-it.lv2 { margin-left: 1.2rem; width: calc(100% - 1.2rem); font-size: 1.25rem; padding: 0.65rem 0.9rem; }
.jx-it.on { background: linear-gradient(135deg, #6d8dff, #4f6dff); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(79, 109, 255, 0.35); }
.jx-it.dim2 { color: var(--tx3); }
.jx-ck { float: right; color: #22c55e; font-weight: 800; }
.jx-it.on .jx-ck { color: #fff; }
.jx-chip-card { border: 1px solid var(--line); background: var(--glass-b); border-radius: 1.2rem; padding: 1rem; text-align: center; display: flex; flex-direction: column; gap: 0.7rem; }
.jx-chip-card b { font-size: 1.4rem; color: var(--tx); }
.jx-chip-stats, .jx-chip-stats2 { display: flex; justify-content: space-around; font-size: 1.2rem; color: var(--tx2); }
.jx-chip-stats em { font-style: normal; color: #3f6dff; font-weight: 800; }
.jx-chip-stats2 b { font-size: 1.6rem; color: var(--tx); }
.jx-ring { width: 7rem; height: 7rem; margin: 0.2rem auto; border-radius: 50%; border: 0.45rem solid #e3eaff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.jx-ring i { font-style: normal; font-size: 1.7rem; font-weight: 900; color: var(--tx3); }
.jx-ring span { font-size: 1.05rem; color: var(--tx3); }
.jx-go { border: 0; background: linear-gradient(90deg, #a78bfa, #7c3aed); color: #fff; font-size: 1.35rem; font-weight: 700;
  padding: 0.7rem 2.4rem; border-radius: 999px; cursor: pointer; font-family: inherit; box-shadow: 0 5px 14px rgba(124, 58, 237, 0.35); }
.jx-go:active { transform: scale(0.96); }
.jx-go.big { align-self: center; padding: 0.7rem 3.2rem; }
.jx-stage { flex: 1; min-width: 0; border-radius: 1.4rem; position: relative; overflow: hidden; display: flex; }
.jx-gwrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0.6rem; position: relative; }
.jx-gwrap svg { width: 100%; height: 100%; max-height: 100%; }
.jx-legend-in { position: absolute; left: 0; right: 0; bottom: 0.6rem; display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  font-size: 1.15rem; color: var(--tx2); background: rgba(255,255,255,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 0.4rem 1rem; }
.jx-legend-in i, .jx-legend i { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; margin-right: 0.35rem; vertical-align: -0.05rem; }
.jx-legend-in em { font-style: normal; color: var(--tx3); margin-left: 0.6rem; }
.jx-stage-in { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.8rem; }
.jx-panel-title { text-align: center; font-size: 1.55rem; font-weight: 800; color: var(--tx); }
.jx-qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.jx-qcol { border: 1px solid var(--line); background: var(--glass-b); border-radius: 1.2rem; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.7rem; }
.jx-qcol > b { text-align: center; font-size: 1.4rem; color: var(--tx); }
.jx-qrow { display: flex; gap: 0.8rem; align-items: center; border-radius: 0.9rem; padding: 0.7rem 0.8rem; }
.jx-qrow.base { background: rgba(52, 199, 123, 0.12); }
.jx-qrow.hard { background: rgba(124, 92, 255, 0.14); }
.jx-tag { flex-shrink: 0; writing-mode: vertical-lr; letter-spacing: 0.3rem; font-size: 1.15rem; font-weight: 800; color: #fff; border-radius: 0.5rem; padding: 0.5rem 0.3rem; }
.jx-tag.g { background: linear-gradient(180deg, #34c77b, #1fa860); }
.jx-tag.p { background: linear-gradient(180deg, #8f7bff, #6c4fe0); }
.jx-qrow p { margin: 0; font-size: 1.25rem; color: var(--tx2); }
.jx-qrow .jx-go { font-size: 1.15rem; padding: 0.45rem 1.2rem; margin-left: auto; }
.jx-papers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.jx-paper { display: flex; align-items: center; gap: 0.8rem; border: 1px solid var(--line); background: var(--glass-b); border-radius: 1.1rem; padding: 0.9rem; cursor: pointer; font-family: inherit; text-align: left; }
.jx-pbadge { flex-shrink: 0; background: linear-gradient(160deg, #ffb46b, #f08c3a); color: #fff; font-size: 1.1rem; font-weight: 800; line-height: 1.25; border-radius: 0.7rem; padding: 0.5rem 0.55rem; text-align: center; }
.jx-pbadge.gold { background: linear-gradient(160deg, #ffd76b, #f0a83a); }
.jx-paper b { display: block; font-size: 1.3rem; color: var(--tx); }
.jx-paper span { font-size: 1.1rem; color: var(--tx3); }
.jx-rounds { display: flex; gap: 0.5rem; justify-content: center; padding: 0.2rem 0 0.4rem; }
.jx-rounds button { flex: 1; border: 1px solid var(--line); background: var(--glass-b); font-size: 1.25rem; color: var(--tx2); padding: 0.6rem 0; border-radius: 999px; cursor: pointer; font-family: inherit; }
.jx-rounds button.on { background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(63, 109, 255, 0.3); }
.jx-foot { display: flex; align-items: center; gap: 1.2rem; border-radius: 999px; padding: 0.55rem 1.4rem; min-height: 3.6rem; font-size: 1.25rem; color: var(--tx2); }
.jx-pill { display: inline-flex; align-items: center; gap: 0.4rem; background: linear-gradient(90deg, #4f7cff, #7a5cff); color: #fff; font-size: 1.15rem; font-weight: 700; border-radius: 999px; padding: 0.35rem 1rem; white-space: nowrap; }
.jx-pill i { font-style: normal; }
.jx-tip { flex: 1; text-align: center; color: var(--tx2); }
.jx-legend { display: flex; gap: 1rem; align-items: center; font-size: 1.15rem; color: var(--tx2); white-space: nowrap; }

/* ═════════ v316 试卷练习 · 全屏做题（初稿，参考马总 14 图：封面/答题/工具/判分） ═════════ */
body.pr-full { overflow: hidden; }
body.pr-full .topbar, body.pr-full .dock, body.pr-full .dock-fade { display: none !important; }
.pr-view { position: fixed; inset: 0; z-index: 850; background: linear-gradient(160deg, #eef4ff 0%, #e4ecfc 55%, #eaf0fd 100%); display: flex; flex-direction: column; }
.pr-page { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pr-page.hidden { display: none; }
.pr-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px 6px; }
.pr-top > b { flex: 1; text-align: center; font-size: var(--fs-5, 17px); color: var(--tx1, #222); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-top-sp { width: 40px; flex-shrink: 0; }
.pr-back { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.7); box-shadow: 0 2px 8px rgba(80,110,180,.15); font-size: 22px; color: var(--tx2, #444); cursor: pointer; flex-shrink: 0; }
/* 封面 */
.pr-paper-wrap { flex: 1; overflow: auto; padding: 10px 26px 26px; display: flex; justify-content: center; }
.pr-paper { position: relative; width: min(880px, 94%); border-radius: 24px; padding: 34px 40px 30px 56px; }
.pr-seal { position: absolute; left: 16px; top: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pr-seal span { font-size: var(--fs-4, 14px); color: #b08a4a; opacity: .55; writing-mode: horizontal-tb; }
.pr-seal i { flex: 1; width: 0; border-left: 1px dashed rgba(176, 138, 74, .45); }
.pr-group { background: rgba(240, 230, 210, .45); border-radius: 14px; padding: 16px 20px; margin-bottom: 14px; }
.pr-group-tag { display: inline-block; background: linear-gradient(135deg, #f3c96b, #e8b04a); color: #fff; font-size: var(--fs-3, 13px); padding: 3px 14px; border-radius: 999px; margin-bottom: 8px; }
.pr-group p { margin: 0; font-size: var(--fs-4, 14px); color: var(--tx2, #555); line-height: 1.7; }
.pr-total { text-align: center; font-size: var(--fs-3, 13px); color: var(--tx3, #999); margin: 10px 0 16px; }
.pr-go-wrap { text-align: center; }
.pr-go { border: 0; cursor: pointer; font-family: inherit; font-size: var(--fs-5, 17px); color: #6b4a12; background: linear-gradient(135deg, #f6d98d, #eec267); box-shadow: 0 8px 20px rgba(220, 170, 60, .35); padding: 13px 58px; border-radius: 999px; }
.pr-go:active { transform: scale(.97); }
.pr-go.ghost { background: rgba(120,140,180,.14); color: var(--tx2, #444); box-shadow: none; }
.pr-loading { text-align: center; color: var(--tx3, #888); font-size: var(--fs-4, 14px); padding: 40px 0; }
.pr-loading i { display: inline-block; width: 14px; height: 14px; border: 2px solid #c9d6f0; border-top-color: #5b8cff; border-radius: 50%; animation: prSpin 0.8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes prSpin { to { transform: rotate(360deg); } }
/* 答题顶栏 */
.pr-bar { display: flex; align-items: center; gap: 14px; padding: 12px 20px 6px; }
.pr-clock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-4, 15px); color: var(--tx2, #444); }
.pr-clock i { font-style: normal; font-size: 13px; }
.pr-dots { display: flex; gap: 10px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.pr-dots::-webkit-scrollbar { display: none; }
.pr-dot { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(120,140,180,.25); background: rgba(255,255,255,.65); color: var(--tx2, #555); font-size: var(--fs-4, 14px); cursor: pointer; font-family: inherit; }
.pr-dot.on { background: #fff; border-color: #e8b04a; color: #b07a1e; font-weight: 700; box-shadow: 0 3px 10px rgba(200,150,50,.25); }
.pr-dot.done { background: rgba(232, 176, 74, .18); border-color: rgba(232,176,74,.5); }
.pr-next { flex-shrink: 0; border: 0; cursor: pointer; font-family: inherit; font-size: var(--fs-4, 15px); color: #6b4a12; background: linear-gradient(135deg, #f6d98d, #eec267); box-shadow: 0 6px 16px rgba(220, 170, 60, .3); padding: 9px 26px; border-radius: 999px; }
.pr-next:active { transform: scale(.97); }
/* 工具栏 */
.pr-tools { display: flex; align-items: center; gap: 10px; padding: 6px 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pr-tools::-webkit-scrollbar { display: none; }
.pr-mode { font-size: var(--fs-3, 13px); color: var(--tx2, #555); white-space: nowrap; }
.pr-mode i { font-style: normal; font-size: 10px; color: var(--tx3, #999); }
.pr-tbtn { flex-shrink: 0; border: 0; background: transparent; font-size: var(--fs-3, 13px); color: var(--tx2, #555); cursor: pointer; padding: 6px 8px; border-radius: 10px; white-space: nowrap; font-family: inherit; }
.pr-tbtn:active, .pr-tbtn.on { background: rgba(232, 176, 74, .16); color: #b07a1e; }
.pr-tsep { width: 1px; height: 16px; background: rgba(0,0,0,.1); flex-shrink: 0; }
.pr-tsp { flex: 1; }
/* 题卡 */
.pr-stage { flex: 1; min-height: 0; position: relative; padding: 4px 26px 22px; display: flex; }
.pr-qcard { flex: 1; position: relative; border-radius: 22px; padding: 18px 26px; overflow: auto; }
.pr-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.pr-chip { font-size: var(--fs-3, 12px); padding: 3px 12px; border-radius: 999px; background: rgba(232, 176, 74, .15); color: #b07a1e; }
.pr-chip.dim { background: rgba(120,140,180,.1); color: var(--tx3, #888); }
.pr-qcontent { font-size: var(--fs-5, 16px); color: var(--tx1, #222); line-height: 1.8; }
.pr-qcontent img { max-width: 60%; max-height: 180px; }
.pr-opts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.pr-opt { display: flex; align-items: flex-start; gap: 4px; border: 0; cursor: pointer; font-family: inherit; background: rgba(255,255,255,.6); border-radius: 14px; padding: 12px 16px; min-width: 200px; max-width: 46%; text-align: left; font-size: var(--fs-5, 15px); color: var(--tx1, #222); line-height: 1.6; box-shadow: 0 2px 8px rgba(80,110,180,.08); }
.pr-opt img { max-width: 100%; max-height: 90px; }
.pr-opt.on { background: rgba(240, 220, 170, .5); box-shadow: inset 0 0 0 2px #e0b05a; }
.pr-ol { color: var(--tx2, #555); flex-shrink: 0; }
.pr-ansbox textarea { width: 100%; min-height: 120px; border-radius: 14px; border: 1.5px solid rgba(120,140,180,.25); background: rgba(255,255,255,.7); font-size: var(--fs-5, 15px); padding: 14px; font-family: inherit; resize: none; box-sizing: border-box; }
.pr-ink { position: absolute; inset: 0; z-index: 5; display: none; }
.pr-ink.active { display: block; }
/* 笔迹弹出 */
.pr-penpop { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 16px; box-shadow: 0 10px 30px rgba(60,90,160,.18); padding: 12px 18px; }
.pr-penrow { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.pr-penrow > span { font-size: var(--fs-3, 12px); color: var(--tx3, #888); }
.pr-c { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; display: inline-block; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.pr-c.on { outline: 2.5px solid #e8b04a; outline-offset: 2px; }
.pr-w { width: 26px; height: 26px; border-radius: 8px; background: rgba(120,140,180,.1); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pr-w.on { background: rgba(232, 176, 74, .25); }
.pr-w b { display: block; background: #444; border-radius: 50%; }
/* 直尺 */
.pr-ruler { position: absolute; z-index: 15; cursor: grab; touch-action: none; filter: drop-shadow(0 6px 12px rgba(100,80,40,.25)); }
/* 草稿 */
.pr-draft { position: absolute; right: 26px; bottom: 22px; z-index: 18; width: 520px; height: 400px; background: rgba(255,253,248,.96); border-radius: 14px; box-shadow: 0 10px 26px rgba(60,90,160,.2); display: flex; flex-direction: column; touch-action: none; }
.pr-draft-hd { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid rgba(0,0,0,.06); cursor: grab; }
.pr-draft-hd b { flex: 1; font-size: var(--fs-3, 12px); color: var(--tx2, #555); }
.pr-draft-hd button { border: 0; background: transparent; font-size: var(--fs-3, 12px); color: var(--tx3, #999); cursor: pointer; }
#prDraftCanvas { flex: 1; border-radius: 0 0 14px 14px; background: #fffdf8; cursor: crosshair; }
/* 问老师 */
.pr-ask { position: absolute; right: 18px; bottom: 18px; z-index: 16; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.85); box-shadow: 0 8px 20px rgba(60,90,160,.25); padding: 0; overflow: hidden; }
.pr-ask img { width: 100%; height: 74%; object-fit: cover; object-position: top; }
.pr-ask span { display: block; font-size: 10px; color: #fff; background: linear-gradient(135deg, #6a7cf0, #8a5cf0); line-height: 1.7; }
.pr-askpop { position: absolute; right: 92px; bottom: 18px; z-index: 25; width: 360px; max-height: 420px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 18px; box-shadow: 0 12px 32px rgba(60,90,160,.22); display: flex; flex-direction: column; overflow: hidden; }
.pr-ask-hd { display: flex; align-items: center; padding: 10px 14px; font-size: var(--fs-4, 14px); font-weight: 700; color: var(--tx1, #222); border-bottom: 1px solid rgba(0,0,0,.05); }
.pr-ask-hd button { margin-left: auto; border: 0; background: transparent; color: var(--tx3, #999); cursor: pointer; }
.pr-ask-body { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-4, 14px); }
.pr-ask-me { align-self: flex-end; background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; padding: 8px 14px; border-radius: 14px 14px 4px 14px; max-width: 80%; }
.pr-ask-ai { align-self: flex-start; background: rgba(120,140,180,.1); color: var(--tx1, #222); padding: 8px 14px; border-radius: 14px 14px 14px 4px; max-width: 85%; white-space: pre-wrap; }
.pr-ask-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(0,0,0,.05); }
.pr-ask-foot input { flex: 1; border: 1px solid rgba(120,140,180,.25); border-radius: 999px; padding: 8px 14px; font-size: var(--fs-4, 13px); font-family: inherit; background: #fff; }
.pr-ask-foot button { border: 0; border-radius: 999px; padding: 8px 18px; background: linear-gradient(135deg, #f6d98d, #eec267); color: #6b4a12; font-family: inherit; cursor: pointer; }
/* 弹窗（退出确认/反馈） */
.pr-modal { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; }
.pr-modal.hidden { display: none; }
.pr-modal-mask { position: absolute; inset: 0; background: rgba(40, 30, 20, .38); backdrop-filter: blur(2px); }
.pr-modal-box { position: relative; width: min(460px, 88vw); border-radius: 20px; padding: 26px 28px 20px; text-align: center; }
.pr-modal-title { font-size: var(--fs-5, 16px); font-weight: 700; color: var(--tx1, #222); text-align: left; margin-bottom: 12px; position: relative; }
.pr-modal-x { position: absolute; right: 0; top: 0; border: 0; background: transparent; color: var(--tx3, #999); cursor: pointer; font-size: 15px; }
.pr-exit-name { font-size: var(--fs-3, 13px); color: var(--tx3, #999); margin-bottom: 8px; }
.pr-modal-box > b { font-size: var(--fs-5, 17px); color: var(--tx1, #222); }
.pr-modal-box > p { margin: 6px 0 16px; font-size: var(--fs-4, 14px); color: var(--tx2, #666); }
.pr-modal-foot { display: flex; gap: 12px; justify-content: center; }
.pr-mbtn { flex: 0 0 130px; border: 0; padding: 11px 0; border-radius: 999px; font-size: var(--fs-4, 15px); background: rgba(120,140,180,.14); color: var(--tx2, #444); cursor: pointer; font-family: inherit; }
.pr-mbtn.ok { background: linear-gradient(135deg, #f6d98d, #eec267); color: #6b4a12; box-shadow: 0 6px 14px rgba(220, 170, 60, .3); }
.pr-fb-sec { text-align: left; margin-bottom: 14px; }
.pr-fb-sec > b { display: block; font-size: var(--fs-4, 14px); color: var(--tx1, #333); margin-bottom: 8px; }
.pr-fb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-fb-chip { border: 0; background: rgba(120,140,180,.1); color: var(--tx2, #555); font-size: var(--fs-3, 13px); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.pr-fb-chip.on { background: rgba(232, 176, 74, .22); color: #b07a1e; }
.pr-fb-sec { position: relative; }
.pr-fb-sec textarea { width: 100%; min-height: 90px; border-radius: 12px; border: 1px solid rgba(120,140,180,.22); background: rgba(255,255,255,.7); font-size: var(--fs-4, 13px); padding: 10px 12px 22px; font-family: inherit; resize: none; box-sizing: border-box; }
.pr-fb-count { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--tx3, #aaa); }
/* 完成页 */
.pr-done-stats { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 10px 0 20px; }
.pr-ds { text-align: center; min-width: 90px; }
.pr-ds b { display: block; font-size: 34px; color: var(--tx1, #222); }
.pr-ds.good b { color: #2e9e5b; }
.pr-ds.bad b { color: #e05a4a; }
.pr-ds span { font-size: var(--fs-3, 13px); color: var(--tx3, #888); }
.pr-done-tip { text-align: center; font-size: var(--fs-4, 14px); color: #b07a1e; margin: 0 0 16px; }

/* ════════ v333 节学习闭环（节面板/视频精讲/热身练习/1对1判错/恭喜弹窗） ════════ */
.jx-over { position: absolute; inset: 0; z-index: 60; }
.jx-over.hidden { display: none; }
.jl-mask { position: absolute; inset: 0; background: rgba(30, 34, 60, 0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 90; }
.jl-modal { position: absolute; z-index: 95; left: 50%; top: 50%; transform: translate(-50%, -50%);
  min-width: 30rem; max-width: 46rem; border-radius: 1.6rem; padding: 2.4rem 3rem 2rem; text-align: center;
  box-shadow: 0 18px 60px rgba(40, 50, 100, 0.28); }
.jl-modal h3 { font-size: 1.8rem; color: var(--tx); margin: 0 0 1.8rem; font-weight: 800; line-height: 1.5; }
.jl-m-btns { display: flex; gap: 1.4rem; justify-content: center; }
.jl-modal button { border: 0; font-size: 1.5rem; font-weight: 700; padding: 0.8rem 2.6rem; border-radius: 999px; cursor: pointer; font-family: inherit; }
.jl-modal .jl-no { background: rgba(120, 130, 170, 0.14); color: var(--tx2); }
.jl-modal .jl-no:active, .jl-modal .jl-yes:active { transform: scale(0.96); }

/* 节面板（左侧） */
.jl-side-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.1rem 0.2rem 0.4rem; }
.jl-back-dir { border: 1px solid var(--line); background: rgba(255,255,255,0.6); width: 2.6rem; height: 2.6rem; border-radius: 50%;
  color: var(--tx); font-size: 1.2rem; cursor: pointer; flex-shrink: 0; }
.jl-side-head b { font-size: 1.5rem; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jl-ring { width: 9.5rem; height: 9.5rem; margin: 0.7rem auto 1.2rem; border-radius: 50%; border: 0.5rem solid #e3eaff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,0.45); }
.jl-ring i { font-style: normal; font-size: 2.5rem; font-weight: 900; color: #3f6dff; line-height: 1; }
.jl-ring i em { font-style: normal; font-size: 1.3rem; }
.jl-ring span { font-size: 1rem; color: var(--tx3); margin-top: 0.3rem; }
.jl-task { border: 1px solid var(--line); border-radius: 1.1rem; background: var(--glass-b); padding: 0.8rem 0.9rem; margin-bottom: 0.6rem; }
.jl-task.lock { opacity: 0.62; }
.jl-task.done { border-color: rgba(34, 197, 94, 0.4); }
.jl-t-head { display: flex; align-items: center; gap: 0.5rem; }
.jl-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #c3cbe0; flex-shrink: 0; }
.jl-task.todo .jl-dot { background: #5b8cff; }
.jl-task.done .jl-dot { background: #22c55e; }
.jl-t-head b { font-size: 1.4rem; color: var(--tx); }
.jl-t-tag { margin-left: auto; font-size: 1.05rem; padding: 0.15rem 0.7rem; border-radius: 999px; white-space: nowrap; }
.jl-t-tag.todo { background: rgba(91, 140, 255, 0.14); color: #3f6dff; }
.jl-t-tag.done { background: rgba(34, 197, 94, 0.14); color: #16a34a; }
.jl-t-tag.lock { background: rgba(120, 130, 170, 0.16); color: var(--tx3); }
.jl-t-sub { margin: 0.4rem 0 0 1.3rem; font-size: 1.1rem; color: var(--tx3); }
.jl-weak { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; border: 1px dashed rgba(226, 90, 74, 0.4);
  border-radius: 0.8rem; padding: 0.5rem 0.7rem; background: rgba(226, 90, 74, 0.06); }
.jl-weak span { font-size: 1.15rem; color: var(--tx); }
.jl-weak em { font-style: normal; font-size: 1.05rem; color: #e05a4a; font-weight: 700; }
.jl-t-go { display: block; width: 100%; margin-top: 0.6rem; border: 0; border-radius: 999px; padding: 0.55rem 0;
  font-size: 1.3rem; font-weight: 700; cursor: pointer; font-family: inherit;
  background: linear-gradient(90deg, #a78bfa, #7c3aed); color: #fff; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }
.jl-t-go.hl { background: linear-gradient(90deg, #6ea0ff, #3f6dff); box-shadow: 0 4px 12px rgba(63, 109, 255, 0.35); }
.jl-t-go:active { transform: scale(0.97); }

/* 覆盖层页面骨架 */
.jl-page { position: absolute; inset: 0; border-radius: 1.4rem; display: flex; flex-direction: column; overflow: hidden; }
.jl-top { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.2rem; flex-shrink: 0; }
.jl-back { border: 1px solid var(--line); background: rgba(255,255,255,0.6); width: 3.2rem; height: 3.2rem; border-radius: 50%;
  color: var(--tx); font-size: 2.1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 0.3rem; flex-shrink: 0; }
.jl-back:active { transform: scale(0.94); }
.jl-title { flex: 1; text-align: center; font-size: 1.7rem; color: var(--tx); font-weight: 800; margin-right: 3.2rem; }
.jl-top > span { width: 3.2rem; }
/* 视频页 */
.jl-player { flex: 1; display: flex; flex-direction: column; padding: 0 1.4rem; min-height: 0; }
.jl-cover { flex: 1; border-radius: 1.2rem; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jl-cover-card { background: rgba(255, 255, 255, 0.92); border-radius: 1.4rem; padding: 2.2rem 4rem; text-align: center;
  box-shadow: 0 10px 34px rgba(30, 40, 90, 0.22); }
.jl-cover-card b { display: block; font-size: 2.6rem; color: #22315c; letter-spacing: 0.1rem; }
.jl-cover-card span { display: block; margin-top: 0.7rem; font-size: 1.3rem; color: #6b7799; }
.jl-cover-deco { position: absolute; right: 2.4rem; bottom: 1.8rem; font-size: 2.6rem; opacity: 0.9; }
.jl-ctrl { display: flex; align-items: center; gap: 1rem; padding: 1rem 0.6rem 0.8rem; color: #fff; }
.jl-play { font-size: 1.6rem; cursor: pointer; }
.jl-bar { flex: 1; height: 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.jl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6ea0ff, #a78bfa); border-radius: 999px; }
.jl-time { font-size: 1.2rem; opacity: 0.9; }
.jl-rate, .jl-fs { font-size: 1.2rem; opacity: 0.85; cursor: pointer; }
.jl-footbar { display: flex; align-items: center; justify-content: space-between; margin: 0.9rem 1.4rem 1.2rem; border-radius: 1.2rem; padding: 1rem 1.4rem; flex-shrink: 0; }
.jl-footbar b { font-size: 1.5rem; color: var(--tx); }
.jl-mst { margin-left: 1rem; font-size: 1.2rem; color: var(--tx3); }
.jl-mst em { font-style: normal; color: #e05a4a; font-weight: 800; }
.jl-goquiz { border: 0; border-radius: 999px; padding: 0.7rem 2.6rem; font-size: 1.5rem; font-weight: 700; cursor: pointer; font-family: inherit;
  background: linear-gradient(90deg, #a78bfa, #7c3aed); color: #fff; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.32); }
.jl-goquiz:active { transform: scale(0.96); }
/* 做题/解析页 */
.jl-steps { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.jl-step { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.65);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: var(--tx2); flex-shrink: 0; }
.jl-step.ok { background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; border-color: transparent; }
.jl-step.on { box-shadow: 0 0 0 0.4rem rgba(91, 140, 255, 0.25); }
.jl-step-line { width: 2.2rem; height: 0.3rem; border-radius: 999px; background: rgba(120, 130, 170, 0.3); }
.jl-next { border: 0; border-radius: 999px; padding: 0.65rem 2.2rem; font-size: 1.45rem; font-weight: 700; cursor: pointer; font-family: inherit;
  background: linear-gradient(90deg, #f0c060, #eda420); color: #fff; box-shadow: 0 4px 12px rgba(237, 164, 32, 0.35); white-space: nowrap; }
.jl-next:active { transform: scale(0.96); }
.jl-qwrap { flex: 1; overflow-y: auto; padding: 0.2rem 1.4rem 1.2rem; min-height: 0; display: flex; flex-direction: column; }
.jl-qcard { flex: 1; border-radius: 1.3rem; padding: 1.6rem 2rem; display: flex; flex-direction: column; min-height: 0; }
.jl-qtags { display: flex; gap: 0.7rem; margin-bottom: 1.1rem; }
.jl-qtag { font-size: 1.15rem; padding: 0.25rem 1rem; border-radius: 999px; background: rgba(91, 140, 255, 0.13); color: #3f6dff; font-weight: 700; }
.jl-qtag.video { background: rgba(167, 139, 250, 0.15); color: #7c3aed; }
.jl-stem { font-size: 1.7rem; line-height: 1.9; color: var(--tx); margin-bottom: 1.4rem; }
.jl-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.jl-opt { text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.72); border-radius: 1rem;
  font-size: 1.5rem; color: var(--tx); padding: 1rem 1.4rem; cursor: pointer; font-family: inherit; }
.jl-opt.on { border-color: #3f6dff; background: rgba(91, 140, 255, 0.12); box-shadow: 0 0 0 0.3rem rgba(91, 140, 255, 0.18); font-weight: 700; }
.jl-opts.ro .jl-opt { cursor: default; opacity: 0.85; }
.jl-opt.right { border-color: #22c55e; background: rgba(34, 197, 94, 0.12); opacity: 1 !important; font-weight: 700; }
.jl-opt.wrong { border-color: #ef4444; background: rgba(239, 68, 68, 0.1); opacity: 1 !important; text-decoration: line-through; }
/* 解析页 */
.jl-quiz.exp { }
.jl-ai-banner { display: flex; align-items: center; gap: 1rem; margin: 0 1.4rem; border-radius: 1.2rem; padding: 0.8rem 1.2rem; flex-shrink: 0; }
.jl-ai-ava { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: linear-gradient(135deg, #ffe0d2, #ffd0e0);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; flex-shrink: 0; }
.jl-ai-ava.big { width: 4.4rem; height: 4.4rem; font-size: 2.3rem; }
.jl-ai-banner b { flex: 1; font-size: 1.5rem; color: var(--tx); }
.jl-ai-go { border: 0; border-radius: 999px; padding: 0.55rem 1.8rem; font-size: 1.4rem; font-weight: 700; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35); white-space: nowrap; }
.jl-ai-go:active { transform: scale(0.96); }
.jl-banner-r { display: flex; gap: 1rem; flex-shrink: 0; }
.jl-banner-r i { font-style: normal; font-size: 1.25rem; color: var(--tx3); white-space: nowrap; }
.jl-exp-body { flex: 1; display: flex; gap: 1rem; padding: 1rem 1.4rem 0.4rem; min-height: 0; }
.jl-exp-left { flex: 1.25; border-radius: 1.3rem; padding: 1.4rem 1.8rem; overflow-y: auto; min-width: 0; }
.jl-exp-right { flex: 1; border-radius: 1.3rem; padding: 1.2rem 1.4rem; overflow-y: auto; min-width: 0; display: flex; flex-direction: column; }
.jl-er-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; }
.jl-er-tabs button { border: 0; background: transparent; font-size: 1.45rem; font-weight: 700; color: var(--tx3); padding: 0.3rem 1.1rem; border-radius: 999px; cursor: pointer; font-family: inherit; }
.jl-er-tabs button.on { background: linear-gradient(135deg, #f0c060, #eda420); color: #fff; }
.jl-er-body h4 { font-size: 1.5rem; color: var(--tx); margin: 0.4rem 0 0.7rem; }
.jl-diag { font-size: 1.35rem; line-height: 1.8; color: var(--tx2); background: rgba(239, 68, 68, 0.07); border: 1px dashed rgba(239, 68, 68, 0.35); border-radius: 0.9rem; padding: 0.8rem 1rem; }
.jl-diag em.bad { font-style: normal; color: #e05a4a; font-weight: 800; }
.jl-diag em.good { font-style: normal; color: #16a34a; font-weight: 800; }
.jl-diag-full { font-size: 1.35rem; line-height: 1.9; color: var(--tx2); }
.jl-red-tag { display: inline-block; font-size: 1.15rem; color: #fff; background: #e05a4a; border-radius: 0.5rem; padding: 0.15rem 0.7rem; margin-right: 0.7rem; vertical-align: 0.15rem; }
.jl-tips { margin: 0 0 1rem; padding-left: 2rem; }
.jl-tips li { font-size: 1.35rem; line-height: 1.9; color: var(--tx2); }
.jl-exp-text { white-space: pre-wrap; font-family: inherit; font-size: 1.4rem; line-height: 1.95; color: var(--tx); margin: 0; }
.jl-disclaimer { text-align: center; font-size: 1.15rem; color: var(--tx3); padding: 0.5rem 0 1rem; margin: 0; flex-shrink: 0; }
.jl-video-empty { text-align: center; padding: 3rem 0 2rem; }
.jl-ve-ico { font-size: 4.2rem; }
.jl-video-empty p { font-size: 1.45rem; color: var(--tx2); margin: 1rem 0 0.4rem; font-weight: 700; }
.jl-video-empty span { font-size: 1.2rem; color: var(--tx3); }
/* 1对1判错页头部 */
.jl-ai-say { flex: 1; display: flex; align-items: center; gap: 1rem; }
.jl-ai-say b { flex: 1; font-size: 1.55rem; color: var(--tx); }
.jl-ai-dark { border: 0; border-radius: 999px; padding: 0.7rem 1.9rem; font-size: 1.45rem; font-weight: 800; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, #3a2f1e, #14100a); color: #ffd98a; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); white-space: nowrap; }
.jl-ai-dark:active { transform: scale(0.96); }
.jl-gr-title b { font-size: 2rem; color: var(--tx); font-weight: 900; letter-spacing: 0.06rem; }
.jl-gr-title { margin-bottom: 0.6rem; }
/* 恭喜弹窗 */
.dim-bg { background: rgba(30, 34, 60, 0.5) !important; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.jl-done { position: absolute; z-index: 96; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44rem; border-radius: 1.8rem; padding: 2.2rem 2.4rem 2rem; text-align: center;
  box-shadow: 0 20px 70px rgba(30, 35, 80, 0.35); }
.jl-done-x { position: absolute; right: 1.4rem; top: 1.2rem; border: 0; background: transparent; font-size: 1.6rem; color: var(--tx3); cursor: pointer; }
.jl-done-hd { display: flex; flex-direction: column; align-items: center; }
.jl-thumb { font-size: 4.6rem; filter: drop-shadow(0 6px 14px rgba(240, 160, 60, 0.45)); }
.jl-cong { font-size: 3rem; font-weight: 900; color: #b07a1e; margin-top: 0.4rem;
  background: linear-gradient(90deg, #d99a2b, #f0c060); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.jl-done-sub { font-size: 1.5rem; color: var(--tx); font-weight: 700; margin: 1rem 0 1.4rem; }
.jl-done-stats { display: flex; border: 1px solid var(--line); border-radius: 1.1rem; background: rgba(255, 255, 255, 0.6); padding: 1rem 0; }
.jl-ds { flex: 1; }
.jl-ds b { display: block; font-size: 2.4rem; color: var(--tx); font-weight: 900; }
.jl-ds b em { font-style: normal; font-size: 1.2rem; font-weight: 400; color: var(--tx3); }
.jl-ds span { font-size: 1.2rem; }
.jl-done-weak { border: 1px solid var(--line); border-radius: 1.1rem; background: rgba(255, 255, 255, 0.6); margin-top: 1.2rem; padding: 0.9rem 1.2rem; text-align: left; }
.jl-dw-head { display: flex; justify-content: space-between; align-items: center; }
.jl-dw-head b { font-size: 1.4rem; color: #b07a1e; }
.jl-dw-head span { font-size: 1.15rem; color: var(--tx3); }
.jl-dw-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.7rem; }
.jl-dw-row span { font-size: 1.4rem; color: var(--tx); }
.jl-dw-row em { font-style: normal; font-size: 1.3rem; color: var(--tx3); font-weight: 800; }
.jl-done-rate { font-size: 1.3rem; color: var(--tx3); margin: 1.2rem 0 1rem; }
.jl-done-go { border: 0; border-radius: 999px; padding: 0.9rem 3.4rem; font-size: 1.55rem; font-weight: 800; cursor: pointer; font-family: inherit;
  background: #5a3d1e; color: #ffe9c8; box-shadow: 0 6px 16px rgba(90, 61, 30, 0.35); }
.jl-done-go:active { transform: scale(0.96); }

/* ════════ v334 同步 tab：诊断图谱 + AI老师学练闭环 ════════ */
.js-rediag { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: calc(100% - 1.6rem); margin: 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.55); color: var(--tx2);
  font-size: 1.3rem; font-weight: 700; padding: 0.6rem 0; cursor: pointer; font-family: inherit; }
.js-rediag:active { transform: scale(0.97); }
/* 节面板（同步版） */
.js-secline { display: flex; justify-content: space-between; padding: 0.2rem 0.3rem 0.6rem; font-size: 1.25rem; color: var(--tx2); }
.js-secline em { font-style: normal; font-weight: 800; color: var(--tx); }
.js-sestats { display: flex; margin: 0.4rem 0 0.9rem; border: 1px solid var(--line); border-radius: 1.1rem; background: rgba(255,255,255,0.55); padding: 0.8rem 0; }
.js-sestats > div { flex: 1; text-align: center; }
.js-sestats b { font-size: 1.9rem; color: var(--tx); font-weight: 900; }
.js-sestats b i { font-style: normal; font-size: 1.2rem; font-weight: 400; color: var(--tx3); }
.js-sestats span { display: block; font-size: 1.15rem; color: var(--tx3); margin-top: 0.2rem; }
.js-weakcard { border: 1px solid var(--line); border-radius: 1.1rem; background: var(--glass-b); padding: 0.9rem 1rem; margin-bottom: 1rem; }
.js-weaktag { display: inline-block; font-size: 1.05rem; color: #fff; background: linear-gradient(90deg, #f0a040, #eda420); border-radius: 999px; padding: 0.15rem 0.8rem; }
.js-weakname { font-size: 1.5rem; font-weight: 800; color: var(--tx); margin: 0.6rem 0 0.3rem; }
.js-weakcard em { font-style: normal; font-size: 1.2rem; color: var(--tx3); }
.js-weakcard em b { color: #e05a4a; }
/* 节点面板（当前选中） */
.js-np-cap { flex: 1; }
.js-np-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.2rem 0.7rem; }
.js-np-ico { font-size: 1.5rem; }
.js-np-head b { font-size: 1.65rem; color: var(--tx); }
.js-np-row { display: flex; justify-content: space-between; padding: 0.35rem 0.2rem; font-size: 1.3rem; color: var(--tx2); }
.js-np-row em { font-style: normal; font-weight: 800; color: var(--tx); }
.js-np-row em.red { color: #e05a4a; }
.js-trace { display: block; border: 0; background: transparent; color: #3f6dff; font-size: 1.3rem; font-weight: 700; padding: 0.3rem 0.2rem; cursor: pointer; font-family: inherit; text-align: left; }
.js-np-sec { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.2rem 0.4rem; }
.js-np-sec b { font-size: 1.45rem; color: var(--tx); }
.js-np-sec a { font-size: 1.25rem; color: #3f6dff; cursor: pointer; }
.js-errcard { border: 1px solid rgba(124, 58, 237, 0.35); border-radius: 1.1rem; background: rgba(124, 58, 237, 0.07); padding: 0.8rem 0.9rem; cursor: pointer; }
.js-ertag { display: inline-block; font-size: 1.1rem; color: #7c3aed; background: rgba(124, 58, 237, 0.14); border-radius: 999px; padding: 0.15rem 0.8rem; font-weight: 700; }
.js-errcard p { margin: 0.4rem 0; font-size: 1.2rem; color: var(--tx2); }
.js-errthumb { border-radius: 0.8rem; background: rgba(255,255,255,0.75); border: 1px dashed var(--line); padding: 0.7rem 0.8rem; font-size: 1.2rem; color: var(--tx2); }
.js-lerlist { margin-bottom: 0.9rem; }
.js-ler-row { display: flex; gap: 0.6rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--glass-b); padding: 0.55rem 0.7rem; margin-bottom: 0.5rem; }
.js-ler-n { font-size: 1.05rem; color: #fff; background: #7c3aed; border-radius: 0.5rem; height: fit-content; padding: 0.1rem 0.5rem; flex-shrink: 0; }
.js-ler-row b { font-size: 1.3rem; color: var(--tx); }
.js-ler-row b i { font-style: normal; font-size: 1.05rem; font-weight: 400; color: var(--tx3); margin-left: 0.4rem; }
.js-ler-row p { margin: 0.2rem 0 0; font-size: 1.12rem; color: var(--tx3); }
/* 覆盖层页面骨架（同步学练） */
.js-page { position: absolute; inset: 0; border-radius: 1.4rem; overflow: hidden; display: flex; flex-direction: column; }
/* 连接 AI 老师 */
.js-connect { background: linear-gradient(160deg, #141024 0%, #3a2a7a 34%, #7a3bd0 62%, #38c8e8 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; }
.js-connect.dark { background: radial-gradient(120% 120% at 50% 40%, #241a3a 0%, #120e1e 70%); }
.js-connect p { color: #fff; font-size: 1.7rem; font-weight: 700; letter-spacing: 0.1rem; }
.js-conn-ring { width: 15rem; height: 15rem; border-radius: 50%; padding: 0.55rem;
  background: conic-gradient(from 0deg, #ff7ac0, #a86ef5, #56c8ff, #ff7ac0);
  animation: jsRingSpin 2.6s linear infinite; filter: drop-shadow(0 0 34px rgba(200, 120, 255, 0.55)); }
.js-conn-ava { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff, #e8ddff 70%);
  display: flex; align-items: center; justify-content: center; font-size: 6rem; }
@keyframes jsRingSpin { to { transform: rotate(360deg); } }
.js-dots { display: flex; gap: 0.8rem; }
.js-dots i { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: rgba(255,255,255,0.9); animation: jsDot 1.2s ease-in-out infinite; }
.js-dots i:nth-child(2) { animation-delay: 0.2s; } .js-dots i:nth-child(3) { animation-delay: 0.4s; }
.js-dots.big i { width: 1.2rem; height: 1.2rem; }
@keyframes jsDot { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
/* 3步计划页 */
.js-plan { background: linear-gradient(155deg, #c9b4f0 0%, #b79aec 40%, #9a7fe0 74%, #7f66c8 100%); flex-direction: row; align-items: center; padding: 2rem 2.4rem; gap: 1.6rem; }
.js-plan-ava { width: 17%; display: flex; justify-content: center; }
.js-plan-ava span { font-size: 11rem; filter: drop-shadow(0 10px 22px rgba(40, 20, 90, 0.4)); }
.js-plan-main { flex: 1; display: flex; flex-direction: column; gap: 1.3rem; min-width: 0; }
.js-plan-head { display: flex; align-items: center; gap: 0.8rem; }
.js-plan-head b { font-size: 2.4rem; color: #2c2450; font-weight: 900; }
.js-plan-bubble { background: rgba(255,255,255,0.82); border-radius: 1.2rem; padding: 1rem 1.4rem; font-size: 1.5rem; color: #3a3160; line-height: 1.7; box-shadow: 0 6px 18px rgba(60, 40, 120, 0.18); }
.js-plan-cards { display: flex; gap: 1.4rem; }
.js-pcard { position: relative; flex: 1; background: rgba(255,255,255,0.88); border-radius: 1.4rem; padding: 1.4rem 1.2rem 1.2rem; text-align: center; box-shadow: 0 10px 26px rgba(50, 30, 110, 0.22); }
.js-pcard b { display: block; font-size: 1.7rem; color: #2c2450; }
.js-pcard p { margin: 0.5rem 0 0.8rem; font-size: 1.25rem; color: #6b6390; }
.js-pico { font-size: 4.6rem; margin: 0.4rem 0 1rem; }
.js-pbtn { border: 0; border-radius: 999px; padding: 0.65rem 2.4rem; font-size: 1.5rem; font-weight: 800; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, #cbb6f8, #9f7cf0); color: #fff; box-shadow: 0 5px 14px rgba(130, 90, 220, 0.45); }
.js-pbtn:active { transform: scale(0.95); }
.js-pdur { display: block; margin-top: 0.7rem; font-size: 1.15rem; color: #9a92bb; }
.js-pcorner { position: absolute; left: 0; top: 0.9rem; font-style: normal; font-size: 1.05rem; color: #fff;
  background: linear-gradient(90deg, #7c3aed, #a78bfa); border-radius: 0 999px 999px 0; padding: 0.2rem 0.9rem 0.2rem 0.5rem; }
.js-plan-ring { width: 11rem; height: 11rem; border-radius: 50%; border: 0.55rem solid rgba(255,255,255,0.35); border-top-color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,0.14); flex-shrink: 0; }
.js-plan-ring i { font-style: normal; font-size: 2.4rem; font-weight: 900; color: #fff; }
.js-plan-ring i em { font-style: normal; font-size: 1.2rem; }
.js-plan-ring span { font-size: 1.05rem; color: rgba(255,255,255,0.85); }
/* 通用头部（丢分点精讲/私教课/专练） */
.js-cap { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line); background: rgba(255,255,255,0.7);
  border-radius: 999px; padding: 0.45rem 1.2rem; font-size: 1.35rem; color: var(--tx); font-weight: 700; cursor: pointer; flex-shrink: 0; }
.js-ava-win { width: 8.6rem; height: 5.6rem; border-radius: 1rem; background: linear-gradient(135deg, #ffe8d8, #f3e2f0);
  display: inline-flex; align-items: center; justify-content: center; font-size: 3rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(60, 40, 90, 0.18); overflow: hidden; }
.js-ava-win.sm { width: 7rem; height: 4.6rem; font-size: 2.4rem; }
/* 个人丢分点精讲（暖纸质感） */
.js-loss { background: linear-gradient(170deg, #f6efe4 0%, #efe3d2 55%, #e9d9c8 100%); }
.js-loss-top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; flex-shrink: 0; }
.js-loss-title { flex: 1; text-align: center; font-size: 1.8rem; color: var(--tx); font-weight: 800; }
.js-loss-body { flex: 1; display: flex; gap: 1.1rem; padding: 0.2rem 1.2rem 0.6rem; min-height: 0; }
.js-loss-left { flex: 1.3; border-radius: 1.3rem; background: rgba(255, 253, 248, 0.92); padding: 1.2rem 1.6rem; overflow-y: auto; min-width: 0; display: flex; flex-direction: column; }
.js-loss-right { flex: 1; border-radius: 1.3rem; background: rgba(255, 253, 248, 0.8); padding: 1.2rem 1.4rem; overflow-y: auto; min-width: 0; }
.js-sec-lb { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.3rem; color: var(--tx2); margin-bottom: 0.7rem; }
.js-sec-lb i { font-style: normal; font-size: 1.15rem; color: #b0721e; background: #f8e7c8; border-radius: 0.4rem; padding: 0.12rem 0.6rem; }
.js-loss-q h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; color: var(--tx); margin: 0.4rem 0 0.8rem; }
.js-loss-q h4 i { width: 0.35rem; height: 1.4rem; border-radius: 999px; background: #e08c3a; }
.js-loss-q h4.mt { margin-top: 1.2rem; }
.js-stem { font-size: 1.6rem; line-height: 1.85; color: var(--tx); }
.js-stem.big { font-size: 1.75rem; margin: 0.6rem 0 1rem; }
.js-opts { display: flex; gap: 2.2rem; margin: 1.1rem 0 0.4rem; flex-wrap: wrap; }
.js-opts span { font-size: 1.5rem; color: var(--tx); }
.js-exp-box { border: 1px dashed #d8c8a8; border-radius: 1rem; background: rgba(255,255,255,0.6); min-height: 6.5rem; display: flex; align-items: center; justify-content: center; }
.js-think { font-size: 1.35rem; color: #a09070; }
.js-loss-foot { display: flex; justify-content: center; gap: 1.2rem; padding: 1rem 0 0.4rem; margin-top: auto; }
.js-btn-ghost { border: 1px solid #d8c8a8; background: #fffdf8; border-radius: 999px; padding: 0.7rem 2rem; font-size: 1.45rem; font-weight: 700; color: var(--tx); cursor: pointer; font-family: inherit; }
.js-btn-gold { border: 0; background: linear-gradient(135deg, #f5c878, #eda420); border-radius: 999px; padding: 0.7rem 2.2rem; font-size: 1.45rem; font-weight: 800; color: #fff; cursor: pointer; font-family: inherit; box-shadow: 0 4px 12px rgba(237, 164, 32, 0.35); }
.js-btn-gold:active, .js-btn-ghost:active { transform: scale(0.96); }
.js-btn-gold.sm { padding: 0.45rem 1.6rem; font-size: 1.3rem; }
.js-core-head { font-size: 1.7rem; font-weight: 900; color: var(--tx); margin-bottom: 0.8rem; }
.js-core-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; color: var(--tx2); margin-bottom: 0.8rem; }
.js-core-tag span { color: #e05a4a; background: rgba(224, 90, 74, 0.12); border-radius: 999px; padding: 0.15rem 0.8rem; font-weight: 700; }
.js-loss-right h5 { font-size: 1.5rem; color: var(--tx); line-height: 1.6; margin: 0.2rem 0 0.8rem; }
.js-core-p { font-size: 1.32rem; line-height: 1.85; color: var(--tx2); margin: 0 0 0.9rem; }
.js-core-p b { color: var(--tx); }
/* 考点私教课（蓝板书） */
.js-tutor { background: linear-gradient(180deg, #dfe9fb 0%, #cfe0f8 100%); }
.js-tutor-top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; position: relative; flex-shrink: 0; }
.js-menu-card { position: absolute; left: 4.6rem; top: 4.4rem; z-index: 20; width: 21rem; border-radius: 1.2rem; background: #fffdf6;
  box-shadow: 0 12px 34px rgba(40, 40, 80, 0.25); padding: 1.1rem 1.3rem; }
.js-menu-card b { font-size: 1.45rem; color: var(--tx); display: block; }
.js-menu-weak { font-size: 1.15rem; color: #e05a4a; }
.js-radio { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; color: var(--tx); padding: 0.55rem 0; cursor: pointer; }
.js-radio input { accent-color: #3f6dff; }
.js-board { flex: 1; margin: 0 3.4rem 1rem; position: relative; min-height: 0; }
.js-board-in { position: absolute; inset: 0; border-radius: 1.6rem; background: #f4f8ff; border: 0.5rem solid #7ea4e8;
  box-shadow: inset 0 0 0 0.2rem #b8cef2, 0 10px 30px rgba(50, 80, 150, 0.25); padding: 1.6rem 2.4rem; overflow-y: auto; cursor: pointer; }
.js-corner { position: absolute; width: 2.6rem; height: 2.6rem; background: linear-gradient(135deg, #f5c878, #e8a83a); }
.js-corner.tl { left: -1.1rem; top: -1.1rem; border-radius: 0.7rem 0 0.7rem 0.2rem; transform: rotate(-8deg); }
.js-corner.tr { right: -1.1rem; top: -1.1rem; border-radius: 0 0.7rem 0.2rem 0.7rem; transform: rotate(8deg); }
.js-corner.bl { left: -1.1rem; bottom: -1.1rem; border-radius: 0.2rem 0.7rem 0.7rem 0; transform: rotate(8deg); }
.js-corner.br { right: -1.1rem; bottom: -1.1rem; border-radius: 0.7rem 0.2rem 0 0.7rem; transform: rotate(-8deg); }
.js-b-kw { display: inline-block; font-size: 1.7rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, #5b9cf0, #3f6dff);
  border-radius: 0.8rem; padding: 0.4rem 1.8rem; margin-bottom: 1.2rem; box-shadow: 0 3px 10px rgba(63, 109, 255, 0.35); }
.js-b-title { display: inline-flex; align-items: center; gap: 0.7rem; background: linear-gradient(135deg, #5b9cf0, #3f6dff); color: #fff;
  font-size: 1.6rem; font-weight: 800; border-radius: 999px 999px 999px 0.4rem; padding: 0.5rem 1.6rem; margin-bottom: 1.2rem; }
.js-b-def { font-size: 1.9rem; color: #223; line-height: 1.9; margin: 0.6rem 0 1.2rem; }
.js-b-def .red, .js-b-geo .red { color: #d0342c; }
.ru { font-style: normal; text-decoration: underline; text-decoration-color: #d0342c; text-decoration-thickness: 0.18rem; text-underline-offset: 0.35rem; }
.js-b-figrow { display: flex; align-items: center; gap: 1.2rem; margin: 1rem 0; }
.js-fig { width: 9rem; height: 5.2rem; }
.js-b-arrow { font-size: 1.35rem; color: #445; }
.js-b-2col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.js-b-geo { font-size: 1.55rem; line-height: 2; color: #223; margin: 0 0 0.8rem; }
.js-b-geo i { font-style: italic; }
.js-tutor-foot { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0 0 1rem; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(140, 110, 220, 0) 0%, rgba(150, 100, 230, 0.35) 100%); }
.js-b-dots { display: flex; gap: 0.6rem; }
.js-b-dots i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: rgba(60, 60, 110, 0.3); }
.js-b-dots i.on { background: #3f6dff; }
.js-listening { font-size: 1.35rem; color: #fff; text-shadow: 0 1px 6px rgba(80, 60, 160, 0.6); }
.js-ai-mark { position: absolute; right: 1.6rem; bottom: 0.9rem; font-size: 1.1rem; color: rgba(90, 90, 140, 0.75); }
/* 1对1专练 */
.js-train { background: linear-gradient(180deg, #f3f5fa 0%, #e9edf6 100%); }
.js-train-top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; flex-shrink: 0; }
.js-qnum { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 0.22rem solid #eda420; color: #b0721e; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; margin-left: auto; }
.js-diff { position: relative; height: 0.5rem; border-radius: 999px; background: rgba(120, 130, 170, 0.25); margin: 0 1.4rem 0.4rem; flex-shrink: 0; }
.js-diff-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; border-radius: 999px; background: linear-gradient(90deg, #f5c878, #eda420); }
.js-diff span { position: absolute; top: 0.9rem; transform: translateX(-50%); font-size: 1.15rem; color: var(--tx3); white-space: nowrap; }
.js-toolbar { display: flex; align-items: center; gap: 1.1rem; padding: 1.4rem 1.6rem 0.6rem; color: var(--tx2); font-size: 1.3rem; flex-shrink: 0; flex-wrap: wrap; }
.js-toolbar b, .js-toolbar span[data-tool], .js-tb-dd { cursor: pointer; }
.js-toolbar b { font-size: 1.5rem; color: var(--tx2); }
.js-tb-dd { border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 1rem; background: rgba(255,255,255,0.7); font-weight: 700; color: var(--tx); }
.js-tb-sep { width: 1px; height: 1.6rem; background: rgba(120, 130, 170, 0.35); }
.js-tb-r { margin-left: auto; display: flex; gap: 1.1rem; }
.js-train-body { flex: 1; margin: 0.6rem 1.4rem 1.2rem; border-radius: 1.3rem; background: rgba(255,255,255,0.75); border: 1px solid var(--line); padding: 1.2rem 1.8rem; overflow-y: auto; min-height: 0; }
.js-ttags { display: flex; gap: 0.7rem; margin-bottom: 0.8rem; }
.js-ttags span { font-size: 1.15rem; border-radius: 999px; padding: 0.2rem 0.9rem; }
.js-ttags .t1 { background: #fde8d0; color: #b0721e; font-weight: 700; }
.js-ttags .t2 { background: #e8eef8; color: #4a6a9a; }
.js-ttags .t3 { background: #eef1f6; color: var(--tx3); }
.js-train-area { margin-top: 1.2rem; border: 1.5px dashed rgba(120, 130, 170, 0.4); border-radius: 1rem; min-height: 8rem;
  display: flex; align-items: center; justify-content: center; }
.js-train-area p { font-size: 1.3rem; color: var(--tx3); }
/* 错因详情页 */
.js-errdetail { background: linear-gradient(170deg, #cfd4f2 0%, #b9bce8 100%); padding: 0; }
.js-err-top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; flex-shrink: 0; }
.js-err-top b { flex: 1; text-align: center; font-size: 1.7rem; color: var(--tx); font-weight: 800; }
.js-err-card1 { display: flex; align-items: center; gap: 1rem; margin: 0.4rem 1.4rem 1rem; border-radius: 1.2rem; background: rgba(255,255,255,0.85); padding: 1rem 1.3rem; }
.js-err-card1 b { font-size: 1.55rem; color: var(--tx); display: block; }
.js-err-card1 p { margin: 0.2rem 0 0; font-size: 1.2rem; color: var(--tx3); }
.js-err-qcard { flex: 1; margin: 0 1.4rem 1.2rem; border-radius: 1.3rem; background: rgba(255,255,255,0.94); padding: 1.3rem 1.8rem; overflow-y: auto; min-height: 0; }
.js-err-qtitle { font-size: 1.55rem; color: var(--tx); display: block; margin-bottom: 0.5rem; }
.js-err-src { font-size: 1.15rem; color: var(--tx3); display: block; border-bottom: 1px solid rgba(120, 130, 170, 0.2); padding-bottom: 0.6rem; margin-bottom: 0.9rem; }
.js-rednote { margin-top: 1.1rem; font-size: 1.3rem; color: #d0342c; line-height: 1.7; }
/* 帮帮报告 */
.js-report { background: linear-gradient(180deg, #dfe7f8 0%, #d3ddf2 100%); }
.js-rp-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; }
.js-rp-ico { font-size: 6.5rem; filter: drop-shadow(0 8px 18px rgba(90, 110, 180, 0.35)); }
.js-rp-empty p { font-size: 1.5rem; color: var(--tx2); }
/* 授权弹窗 */
.js-auth { position: absolute; z-index: 96; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 42rem; border-radius: 1.6rem; padding: 2.2rem 2.4rem 2rem; text-align: center; box-shadow: 0 18px 60px rgba(30, 40, 90, 0.3); }
.js-auth h3 { font-size: 1.9rem; color: var(--tx); margin: 0 0 1rem; font-weight: 800; }
.js-auth p { font-size: 1.4rem; color: var(--tx2); line-height: 1.8; margin: 0 0 1.6rem; }

/* v334a 微调：计划页角标/掌握度环、私教课头像窗位置 */
.js-pcard { padding-top: 2.2rem; }
.js-pcard .js-pcorner { top: 0; }
.js-plan-ring { position: absolute; right: 12.5rem; top: 4.2rem; width: 9.5rem; height: 9.5rem; margin: 0; }
.js-tutor-top .js-ava-win { margin-left: auto; }

/* ════════ v335 备考页优化（参考图 1232~1238，磨砂玻璃体系） ════════ */
.je-chapter { border: 1px solid var(--line); border-radius: 1.2rem; background: var(--glass-b); padding: 0.8rem 0.9rem; margin-bottom: 0.8rem; }
.je-ch-h { display: flex; align-items: center; gap: 0.5rem; }
.je-ch-h b { flex: 1; font-size: 1.45rem; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.je-bell { border: 1px solid var(--line); background: rgba(255,255,255,0.6); border-radius: 50%; width: 2.4rem; height: 2.4rem; font-size: 1.15rem; cursor: pointer; flex-shrink: 0; }
.je-ch-stats { display: flex; gap: 0.9rem; margin-top: 0.5rem; font-size: 1.2rem; color: var(--tx2); }
.je-ch-stats em { font-style: normal; font-weight: 800; }
.je-ch-stats em.c { color: #3f6dff; }
.je-ch-stats em.g { color: #b0721e; }
.je-sec { border: 1px solid var(--line); border-radius: 1.1rem; background: var(--glass-b); margin-bottom: 0.6rem; overflow: hidden; }
.je-sec.on { border-color: rgba(91, 140, 255, 0.55); box-shadow: 0 0 0 0.25rem rgba(91, 140, 255, 0.14); }
.je-sec-h { display: flex; align-items: center; gap: 0.6rem; width: 100%; border: 0; background: transparent; text-align: left;
  font-size: 1.4rem; color: var(--tx); font-weight: 700; padding: 0.75rem 0.9rem; cursor: pointer; font-family: inherit; }
.je-sec-h i { width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 0.2rem solid #b9c3dd; flex-shrink: 0; }
.je-sec.on .je-sec-h i { border-color: #3f6dff; background: rgba(91, 140, 255, 0.25); }
.je-sub { border-top: 1px dashed var(--line); padding: 0.7rem 0.9rem 0.9rem; background: rgba(255,255,255,0.35); }
.je-sub-stats { display: flex; gap: 1.2rem; font-size: 1.2rem; color: var(--tx2); margin-bottom: 0.6rem; }
.je-sub-stats b { color: var(--tx); font-weight: 800; }
.je-weak { display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 0.8rem; background: rgba(91, 140, 255, 0.08); padding: 0.5rem 0.7rem; margin-bottom: 0.7rem; }
.je-weak span { font-size: 1.2rem; color: var(--tx); }
.je-weak em { font-style: normal; font-size: 1.1rem; color: var(--tx3); }
.je-weak em b { color: #e05a4a; }
.je-sub .jx-go { width: 100%; }
.je-badge { position: absolute; right: 1.6rem; top: 1.2rem; z-index: 5; display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--line); border-radius: 1rem; background: var(--glass-b); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  padding: 0.6rem 1.2rem; box-shadow: var(--shadow-soft); pointer-events: none; }
.je-badge span { font-size: 1.02rem; color: var(--tx3); }
.je-badge b { font-size: 1.6rem; color: #b0721e; letter-spacing: 0.15rem; }
.je-badge i { font-style: normal; font-size: 1.05rem; color: var(--tx2); letter-spacing: 0.5rem; }
.je-tutor { position: absolute; right: 1.6rem; bottom: 1.2rem; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.je-tutor-ava { width: 6.2rem; height: 6.2rem; border-radius: 50%; background: linear-gradient(135deg, #ffe8d8, #f3e2f0);
  display: flex; align-items: center; justify-content: center; font-size: 3.4rem; box-shadow: 0 6px 18px rgba(80, 60, 130, 0.25); border: 0.22rem solid #fff; }
.je-tutor em { font-style: normal; font-size: 1.25rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border-radius: 999px; padding: 0.28rem 1.2rem; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35); white-space: nowrap; }
.je-tutor:active { transform: scale(0.95); }
.je-lg { display: inline-flex; align-items: center; font-size: 1.25rem; color: var(--tx2); padding: 0.25rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.5); margin-left: 0.6rem; }

/* ═══ v336 中考 tab + 做题引擎（磨砂玻璃） ═══ */
.jc-chapter { margin: 0.4rem 0.4rem 0; border: 1px solid var(--line); background: var(--glass-b); border-radius: 1.2rem; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; }
.je-ch-h { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.je-ch-h b { font-size: 1.5rem; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-ch-ic { display: flex; gap: 0.4rem; flex-shrink: 0; }
.je-bell { border: 1px solid var(--line); background: #fff; border-radius: 0.7rem; font-size: 1.25rem; padding: 0.25rem 0.55rem; cursor: pointer; }
.jc-ch-meta { font-size: 1.15rem; color: var(--tx3); margin: 0.55rem 0 0.15rem; }
.jc-ch-meta em { font-style: normal; color: #3f6dff; font-weight: 700; }
.jl-ring.jc { width: 8.6rem; height: 8.6rem; margin: 0.7rem auto 0.9rem; }
.jl-ring.jc i { font-size: 2.2rem; color: #8a93a8; }
.jc-ch-stats { display: flex; justify-content: space-around; margin-bottom: 1rem; }
.jc-ch-stats b { display: block; font-size: 1.9rem; font-weight: 900; color: var(--tx); text-align: center; line-height: 1.2; }
.jc-ch-stats span { font-size: 1.05rem; color: var(--tx3); }
.jc-diag { border: 0; border-radius: 999px; padding: 0.75rem 0; font-size: 1.35rem; font-weight: 800; color: #fff; background: linear-gradient(90deg, #a78bfa, #6d5bff); box-shadow: 0 6px 14px rgba(109, 91, 255, 0.35); cursor: pointer; font-family: inherit; }
.jc-diag:active { transform: scale(0.97); }
.jx-legend-in.jc { pointer-events: none; }
.jc-rounds { position: absolute; top: 0.7rem; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 0.7rem; }
.jc-rounds button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--glass-b); color: var(--tx2); font-size: 1.3rem; font-weight: 600; padding: 0.55rem 2.2rem; border-radius: 999px; cursor: pointer; font-family: inherit; }
.jc-rounds button.on { background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(63, 109, 255, 0.3); }

/* 做题页 */
.jl-quiz.jc .jl-top { gap: 0.8rem; }
.jc-timer { font-size: 1.3rem; font-weight: 700; color: var(--tx2); white-space: nowrap; }
.jc-dots { flex: 1; display: flex; gap: 0.5rem; overflow-x: auto; justify-content: flex-start; padding: 0.2rem 0; }
.jc-dot { flex-shrink: 0; min-width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--tx2); font-size: 1.25rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.jc-dot.ok { background: #22c55e; color: #fff; border-color: transparent; }
.jc-dot.on { background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; border-color: transparent; box-shadow: 0 3px 8px rgba(63, 109, 255, 0.35); }
.jc-cur { flex-shrink: 0; min-width: 3rem; height: 3rem; border-radius: 50%; border: 0.22rem solid #e2593a; color: #e2593a; font-weight: 900; font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.4rem; }
.jc-cur em { font-style: normal; font-size: 1.05rem; color: var(--tx3); font-weight: 600; margin-left: 0.1rem; }
.jl-next.gold { background: linear-gradient(135deg, #f5b940, #eda420); box-shadow: 0 4px 10px rgba(237, 164, 32, 0.35); }
.jc-tools { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 1.4rem 0.3rem; flex-wrap: nowrap; overflow-x: auto; }
.jc-tools button { border: 0; background: transparent; color: var(--tx2); font-size: 1.22rem; cursor: pointer; font-family: inherit; padding: 0.3rem 0.55rem; border-radius: 0.6rem; white-space: nowrap; }
.jc-tools button.on { background: rgba(63, 109, 255, 0.12); color: #3f6dff; font-weight: 700; }
.jc-tools button.dim { color: var(--tx3); }
.jc-mode { font-size: 1.22rem; color: var(--tx2); font-weight: 600; white-space: nowrap; }
.jc-mode i { font-style: normal; font-size: 0.95rem; }
.jc-tsep { flex-shrink: 0; width: 1px; height: 1.8rem; background: var(--line); }
.jc-tsp { flex: 1; min-width: 0.5rem; }
.jc-rpanel { display: flex; gap: 0.6rem; justify-content: center; padding: 0.25rem 0 0.4rem; }
.jc-rpanel button { border: 1px solid var(--line); background: #fff; border-radius: 0.8rem; font-size: 1.2rem; padding: 0.45rem 0.9rem; cursor: pointer; font-family: inherit; color: var(--tx2); }
.jc-rpanel button.on { border-color: #3f6dff; color: #3f6dff; background: rgba(63, 109, 255, 0.08); font-weight: 700; }
.jl-qtag.yr { background: rgba(245, 185, 64, 0.16); color: #b0721e; }
.jc-blank { display: inline-block; min-width: 8rem; border-bottom: 0.22rem solid var(--tx2); margin-left: 0.6rem; vertical-align: -0.3rem; }
.jc-blank input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.6rem; text-align: center; width: 100%; padding: 0.1rem 0.4rem; }
.jc-blank.ro { min-width: 7rem; text-align: center; font-weight: 700; color: #3f6dff; border-bottom-color: #3f6dff; }
.jc-cursor { color: var(--tx3); }
.jc-pen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; touch-action: none; border-radius: inherit; cursor: crosshair; }

/* 作图工具浮层 */
.jc-inst { position: absolute; left: 50%; transform: translateX(-50%); z-index: 8; }
.jc-inst.ruler { bottom: 8%; }
.jc-inst.prot { top: 14%; }
.jc-inst.tri { bottom: 12%; }
.jc-inst svg { width: 34rem; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(43, 58, 94, 0.25)); }
.jc-inst.prot svg { width: 26rem; }
.jc-inst-x { position: absolute; right: -1rem; top: -1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: #e2593a; color: #fff; font-size: 1.2rem; cursor: pointer; }

/* 草稿全屏 */
.jc-draft { position: absolute; inset: 0; z-index: 30; background: #f7f5ef; display: flex; flex-direction: column; }
.jc-dr-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.4rem; border-bottom: 1px solid #e5e0d2; background: #fdfcf8; }
.jc-dr-bar span:first-child { font-weight: 800; color: var(--tx); font-size: 1.35rem; }
.jc-dr-bar button { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--tx2); }
.jc-draft canvas { flex: 1; touch-action: none; cursor: crosshair; }
.jc-dr-tip { text-align: center; color: var(--tx3); font-size: 1.05rem; padding: 0.4rem 0 0.6rem; margin: 0; }

/* 退出挽留（吉祥物） */
.jl-modal.jc-m { text-align: center; min-width: 30rem; }
.jc-mascot { font-size: 3.6rem; display: block; margin-bottom: 0.1rem; }
.jc-m-sub { display: block; font-size: 1.15rem; color: var(--tx3); margin-bottom: 0.3rem; }
.jl-modal.jc-m h3 { margin: 0 0 0.3rem; }
.jl-modal.jc-m p { margin: 0 0 1.1rem; color: var(--tx2); font-size: 1.25rem; }

/* 结果页 */
.jc-score { text-align: center; margin: 0.6rem 0 1rem; }
.jc-score b { font-size: 4rem; font-weight: 900; color: #3f6dff; line-height: 1.1; }
.jc-score em { font-style: normal; font-size: 1.5rem; color: var(--tx2); margin-left: 0.2rem; }
.jc-score span { display: block; font-size: 1.15rem; color: var(--tx3); margin-top: 0.2rem; }
.jc-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.2rem; }
.jc-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.45rem 1rem; font-size: 1.2rem; cursor: pointer; font-family: inherit; color: var(--tx2); }
.jc-chip.ok { color: #1fa860; border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.08); }
.jc-chip.bad { color: #e2593a; border-color: rgba(226, 89, 58, 0.5); background: rgba(226, 89, 58, 0.08); }
.jc-chip.wait { color: #b0721e; border-color: rgba(240, 168, 58, 0.5); background: rgba(240, 168, 58, 0.08); }
.jc-ai { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 0.8rem 1.2rem 0.3rem; border: 1px solid rgba(63, 109, 255, 0.35); background: rgba(63, 109, 255, 0.07); color: #3f6dff; font-size: 1.3rem; font-weight: 700; border-radius: 999px; padding: 0.6rem 0; cursor: pointer; font-family: inherit; }
.jc-ai:active { transform: scale(0.97); }

/* ═══════════════ v338 学情月报 · 全屏只读面板 ═══════════════
   整屏沿用 AI精准学的磨砂玻璃语言；只读往期归档 + 打印，
   不提供任何外部事实写入口（补录在 HQ 后台）。 */
body.rp-full { overflow: hidden; }
body.rp-full .topbar, body.rp-full .dock, body.rp-full .dock-fade { display: none !important; }
body.rp-full #main, body.rp-full main { padding: 0 !important; }
.rp-wrap { position: fixed; inset: 0; z-index: 845; display: flex; flex-direction: column; gap: 0.7rem;
  padding: 0.9rem 1rem 0.8rem; background: linear-gradient(165deg, #edf3fe 0%, #e6eefb 50%, #eef2fd 100%); }
.rp-top { display: flex; align-items: center; gap: 1.2rem; border-radius: 1.4rem; padding: 0.6rem 1.2rem;
  min-height: 4.8rem; flex-shrink: 0; }
.rp-back { width: 3.2rem; height: 3.2rem; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.6); color: var(--tx); font-size: 2.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-bottom: 0.3rem; }
.rp-back:active { transform: scale(0.94); }
.rp-brand { display: flex; align-items: baseline; gap: 1rem; }
.rp-brand b { font-size: 1.9rem; font-weight: 900; font-style: italic; letter-spacing: 0.08rem;
  background: linear-gradient(90deg, #4f7cff, #8a5cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rp-brand b i { font-style: italic; }
.rp-brand small { font-size: 1.15rem; color: var(--tx3); }
.rp-topr { margin-left: auto; display: flex; gap: 0.6rem; }
.rp-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.7rem; overflow: hidden; }
.rp-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; padding-bottom: 0.4rem; }
.rp-scroll::-webkit-scrollbar { width: 5px; }
.rp-scroll::-webkit-scrollbar-thumb { background: rgba(91,140,255,0.28); border-radius: 99px; }
.rp-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; flex-shrink: 0; }
.rp-chip { border: 1px solid var(--line); background: rgba(255,255,255,0.7); border-radius: 999px;
  padding: 0.45rem 1.3rem; font-size: 1.2rem; font-weight: 600; color: var(--tx2); cursor: pointer; font-family: inherit; }
.rp-chip.on { background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; border-color: transparent; }
.rp-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: 1.4rem; padding: 1.2rem 1.5rem; flex-shrink: 0; }
.rp-hero-l { min-width: 0; }
.rp-tag { display: inline-block; font-size: 1.05rem; color: #3f6dff; background: rgba(63,109,255,0.1);
  border-radius: 999px; padding: 0.25rem 0.9rem; margin-bottom: 0.5rem; }
.rp-hero h2 { font-size: 2rem; font-weight: 800; color: var(--tx); margin: 0 0 0.3rem; }
.rp-hero p { font-size: 1.15rem; color: var(--tx2); margin: 0; }
.rp-hero-r { display: flex; gap: 0.6rem; flex-shrink: 0; }
.rp-btn { border: 0; background: linear-gradient(135deg, #5b8cff, #3f6dff); color: #fff; font-weight: 700;
  font-size: 1.25rem; padding: 0.65rem 1.5rem; border-radius: 999px; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 12px rgba(63,109,255,0.28); white-space: nowrap; }
.rp-btn.ghost { background: rgba(255,255,255,0.75); color: var(--tx2); border: 1px solid var(--line); box-shadow: none; }
.rp-btn:active { transform: scale(0.97); }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.rp-kpi { background: rgba(255,255,255,0.75); border: 1px solid var(--line); border-radius: 1rem;
  padding: 0.9rem 0.6rem; text-align: center; }
.rp-kpi b { display: block; font-size: 1.9rem; font-weight: 800; color: #3f6dff; line-height: 1.25; }
.rp-kpi span { font-size: 1.05rem; color: var(--tx2); }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.rp-block, .rp-prov { background: rgba(255,255,255,0.72); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1rem 1.3rem; }
.rp-block h3, .rp-prov h3 { font-size: 1.35rem; margin: 0 0 0.5rem; color: var(--tx); }
.rp-block p, .rp-prov p { font-size: 1.2rem; color: var(--tx2); line-height: 1.7; margin: 0.35rem 0; }
.rp-block p b { color: #3f6dff; margin-right: 0.4rem; }
.rp-prov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 0.5rem 0 0.7rem; }
.rp-prov-grid div { display: flex; flex-direction: column; gap: 0.15rem; }
.rp-prov-grid b { font-size: 1.05rem; color: var(--tx3); font-weight: 600; }
.rp-prov-grid span { font-size: 1.15rem; color: var(--tx2); line-height: 1.5; }
.rp-tip { font-size: 1.1rem; color: var(--tx3); line-height: 1.6; padding: 0 0.5rem 0.5rem; }
.rp-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
  text-align: center; background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 1.4rem; padding: 2rem; }
.rp-empty-ic { font-size: 4rem; }
.rp-empty b { font-size: 1.8rem; color: var(--tx); }
.rp-empty p { font-size: 1.3rem; color: var(--tx2); max-width: 44rem; line-height: 1.8; margin: 0; }
.rp-empty .rp-note { font-size: 1.15rem; color: var(--tx3); }
.rp-foot { border-radius: 1.2rem; padding: 0.55rem 1.2rem; font-size: 1.1rem; color: var(--tx3); flex-shrink: 0; }
@media (max-width: 900px) {
  .rp-kpis { grid-template-columns: repeat(2, 1fr); }
  .rp-two, .rp-prov-grid { grid-template-columns: 1fr; }
  .rp-hero { flex-direction: column; align-items: flex-start; }
}
