/* ==========================================================================
   学到汇AI 客户端 UI 设计系统（v1.2.0-alpha2 重设计）
   参考 Kimi / Claude / 豆包 2025 风格：浅色暖灰底、白色卡片、靛蓝紫主色
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --brand: #5b5bd6;
  --brand-hover: #4c4cc9;
  --brand-light: rgba(91, 91, 214, 0.09);
  --brand-border: rgba(91, 91, 214, 0.35);
  --text-1: #1f2329;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --bg-page: #f7f7f5;
  --bg-sidebar: #f9f9f8;
  --bg-hover: #efefeb;
  --border: #e5e7eb;
  --border-light: #eeeeeb;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(31, 35, 41, 0.04), 0 8px 24px rgba(31, 35, 41, 0.05);
  --shadow-lift: 0 4px 8px rgba(31, 35, 41, 0.05), 0 14px 32px rgba(31, 35, 41, 0.09);
  --shadow-input: 0 2px 10px rgba(31, 35, 41, 0.05);
  --bg-card: #ffffff;
  --bg-chip: #f3f3f0;
  --bg-table-head: #fafaf8;
  --scrollbar: rgba(31, 35, 41, 0.14);
  --scrollbar-hover: rgba(31, 35, 41, 0.24);
  --checkin-bg: linear-gradient(135deg, #fffaf0 0%, #fffdf7 100%);
  --checkin-border: #f3e3bd;
  --transition: all 0.18s ease;

  /* Element Plus 主题覆盖 */
  --el-color-primary: #5b5bd6;
  --el-color-primary-light-3: #8585e1;
  --el-color-primary-light-5: #adadea;
  --el-color-primary-light-7: #cbcbf2;
  --el-color-primary-light-8: #ddddf7;
  --el-color-primary-light-9: #eeeeFB;
  --el-color-primary-dark-2: #4a4ab8;
  --el-border-radius-base: 8px;
  --el-border-radius-round: 22px;
  --el-dialog-border-radius: 14px;
  --el-messagebox-border-radius: 14px;
  --el-text-color-primary: #1f2329;
  --el-text-color-regular: #4b5563;
  --el-border-color: #e5e7eb;
  --el-border-color-light: #ebebeb;
  --el-border-color-lighter: #f0f0ee;
  --el-fill-color-light: #f4f4f2;
}

/* ---------- 暗黑主题（设置页切换，documentElement[data-theme="dark"]） ---------- */
[data-theme="dark"] {
  --brand: #6c6ce0;
  --brand-hover: #7c7ce8;
  --brand-light: rgba(108, 108, 224, 0.16);
  --brand-border: rgba(108, 108, 224, 0.45);
  --text-1: #e5e7eb;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --bg-page: #1a1a1d;
  --bg-sidebar: #151517;
  --bg-hover: #2e2e33;
  --bg-card: #26262a;
  --bg-chip: #2c2c31;
  --bg-table-head: #232326;
  --border: #3a3a3f;
  --border-light: #333338;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 4px 8px rgba(0, 0, 0, 0.30), 0 14px 32px rgba(0, 0, 0, 0.40);
  --shadow-input: 0 2px 10px rgba(0, 0, 0, 0.30);
  --scrollbar: rgba(255, 255, 255, 0.16);
  --scrollbar-hover: rgba(255, 255, 255, 0.28);
  --checkin-bg: linear-gradient(135deg, rgba(212, 136, 6, 0.14) 0%, rgba(212, 136, 6, 0.06) 100%);
  --checkin-border: rgba(212, 136, 6, 0.35);

  /* Element Plus 暗色覆盖 */
  --el-color-primary: #6c6ce0;
  --el-color-primary-light-3: #8b8be8;
  --el-color-primary-light-5: #aaaaf0;
  --el-color-primary-light-7: #3a3a55;
  --el-color-primary-light-8: #30304a;
  --el-color-primary-light-9: #28283e;
  --el-color-primary-dark-2: #7c7ce8;
  --el-bg-color: #26262a;
  --el-bg-color-page: #1a1a1d;
  --el-bg-color-overlay: #2b2b30;
  --el-fill-color-blank: #26262a;
  --el-fill-color: #2a2a2f;
  --el-fill-color-light: #2e2e33;
  --el-fill-color-dark: #333338;
  --el-fill-color-extra-light: #232326;
  --el-text-color-primary: #e5e7eb;
  --el-text-color-regular: #c0c4cc;
  --el-text-color-secondary: #9ca3af;
  --el-text-color-placeholder: #6b7280;
  --el-text-color-disabled: #5b6068;
  --el-border-color: #3a3a3f;
  --el-border-color-light: #35353a;
  --el-border-color-lighter: #303035;
  --el-border-color-extra-light: #2c2c31;
  --el-disabled-bg-color: #2e2e33;
  --el-disabled-text-color: #6b7280;
  --el-disabled-border-color: #3a3a3f;
  --el-mask-color: rgba(0, 0, 0, 0.65);
  --el-box-shadow: 0 12px 32px 4px rgba(0, 0, 0, 0.36), 0 8px 20px rgba(0, 0, 0, 0.40);
  --el-box-shadow-light: 0 0 12px rgba(0, 0, 0, 0.35);
  --el-box-shadow-lighter: 0 0 6px rgba(0, 0, 0, 0.30);
  --el-box-shadow-dark: 0 16px 48px 16px rgba(0, 0, 0, 0.50), 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- 全局 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app {
  height: 100%;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-1);
}
body { overflow: hidden; background: var(--bg-page); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 登录页 ============ */
.login-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(91, 91, 214, 0.10), transparent 60%),
    radial-gradient(760px 420px at 95% 110%, rgba(91, 91, 214, 0.08), transparent 60%),
    var(--bg-page);
}
.login-card {
  width: 392px;
  padding: 0 36px 36px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.login-brand-bar {
  height: 4px;
  margin: 0 -36px 34px;
  background: linear-gradient(90deg, var(--brand) 0%, #9a9ae9 100%);
}
.login-lang { text-align: right; font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.login-lang span { cursor: pointer; padding: 0 2px; transition: var(--transition); }
.login-lang span:hover { color: var(--text-1); }
.login-lang span.on { color: var(--brand); font-weight: 600; }
.login-lang i { margin: 0 2px; font-style: normal; }
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(91, 91, 214, 0.28);
}
.login-sub { text-align: center; color: var(--text-3); font-size: 13px; margin: 10px 0 28px; }
/* 批次1.5补充 联合品牌：合作方 logo 图（登录页/侧栏，与主名并列） */
.partner-logo { height: 34px; max-width: 180px; object-fit: contain; flex-shrink: 0; }
.partner-logo-sm { height: 30px; max-width: 130px; }
.login-input { margin-bottom: 14px; }
.code-row { display: flex; gap: 10px; }
.code-btn { width: 130px; flex-shrink: 0; }
.login-tip { font-size: 12px; color: #d48806; margin: 12px 0 20px; }
.login-btn { width: 100%; font-weight: 600; }

/* ============ 主界面布局 ============ */
.main-page { height: 100%; display: flex; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 14px;
}
.logo-text { font-size: 17px; font-weight: 700; color: var(--text-1); letter-spacing: 0.5px; }
.logo .logo-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
/* P58 渠道横版 logo（selfLogoUrl 非空时替代方形 icon）：高度优先、宽度自适应、去方框阴影 */
.login-logo .channel-logo { width: auto; height: 64px; max-width: 260px; border-radius: 0; box-shadow: none; object-fit: contain; }
.sidebar .logo .channel-logo { width: auto; height: 36px; max-width: 200px; border-radius: 0; box-shadow: none; object-fit: contain; }
.about-logo .channel-logo { width: auto; height: 44px; max-width: 240px; border-radius: 0; box-shadow: none; object-fit: contain; }
.ver-badge {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-3);
  background: var(--bg-hover);
  border-radius: 8px;
  padding: 2px 6px;
  margin-left: 2px;
  letter-spacing: 0;
}
.sidebar-scroll { flex: 1; overflow-y: auto; padding-bottom: 8px; }

.new-chat {
  margin: 2px 14px 14px;
  padding: 10px 0;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  transition: var(--transition);
}
.new-chat:hover { border-color: var(--brand-border); color: var(--brand); box-shadow: 0 2px 8px rgba(91, 91, 214, 0.10); }

.func-list { padding: 0; }
.func-item {
  margin: 0 8px 2px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
  transition: var(--transition);
}
.func-item:hover { background: var(--bg-hover); color: var(--text-1); }
.func-item.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }

.nav-group {
  padding: 16px 20px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-3);
}
.sidebar-scroll > .func-item { margin: 0 8px 2px; }

/* 2026-09-27 侧栏手风琴分组（清爽白：组头 12px faint + 展开 .2s 过渡） */
.nav-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 8px 2px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  user-select: none;
  transition: var(--transition);
}
.nav-group-head:hover { background: var(--bg-hover); color: var(--text-2); }
.nav-group-head .nav-group-name { flex: 1; letter-spacing: 0.5px; }
.nav-group-head .nav-arrow { display: inline-flex; transition: transform .2s ease; }
.nav-group-head .nav-arrow.fold { transform: rotate(-90deg); }
.nav-group-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .2s ease;
}
.nav-group-body.fold { grid-template-rows: 0fr; }
.nav-group-inner { overflow: hidden; min-height: 0; }
.nav-group-inner .func-item { padding-left: 22px; }

/* 固定底部菜单（滚动区外，不随菜单滚动） */
.sidebar-pinned {
  flex-shrink: 0;
  padding: 6px 0 2px;
  border-top: 1px solid var(--border-light);
}

/* 会话列表 */
.conv-list { margin: 0 8px 6px; max-height: 260px; overflow-y: auto; }
.conv-loading { padding: 8px 14px; font-size: 12px; color: var(--text-3); }
.conv-item {
  display: flex;
  align-items: center;
  padding: 7px 10px 7px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: var(--transition);
}
.conv-item:hover { background: var(--bg-hover); color: var(--text-1); }
.conv-item.active { background: var(--brand-light); color: var(--text-1); font-weight: 500; }
.conv-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 悬浮滚动显示全标题（英华修批5 件2）：JS 平移溢出部分，悬浮时去掉省略号避免尾部遮挡 */
.conv-title:hover { text-overflow: clip; }
.conv-ops { display: none; flex-shrink: 0; margin-left: 6px; }
.conv-item:hover .conv-ops { display: inline-flex; gap: 6px; }
.conv-op { font-size: 12px; opacity: 0.6; }
.conv-op:hover { opacity: 1; }

/* 侧边栏底部用户卡片 */
.sidebar-bottom {
  margin: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 13px;
}
.points-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.points-text { color: var(--text-2); }
.points-text b { color: var(--brand); font-size: 16px; }
.points-log-link { color: var(--text-3); cursor: pointer; margin-bottom: 12px; font-size: 12px; }
.points-log-link:hover { color: var(--text-2); text-decoration: underline; }
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-2);
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}
.user-entry { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.user-entry:hover .phone { color: var(--brand); }
.avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--brand-light);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.user-entry .phone { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: var(--transition); }
.logout { cursor: pointer; font-size: 12px; color: var(--text-3); transition: var(--transition); }
.logout:hover { color: #f56c6c; }

/* ---------- 聊天区 ---------- */
.chat-area { flex: 1; display: flex; flex-direction: column; background: var(--bg-page); min-width: 0; padding-bottom: var(--site-footer-h, 44px); /* H5：给固定底栏合规页脚让位（高度由 SiteFooter 实测写入 CSS 变量，渠道多行页脚自适应） */ }
/* 对话字号三档（标准/大/特大）：类切换 + 后代选择器直接覆写，只作用于对话区（气泡/思考区/输入框），不改全局 */
.chat-area.font-lg .msg-content { font-size: 17px; }
.chat-area.font-lg .msg-content .md-h1 { font-size: 19px; }
.chat-area.font-lg .msg-content .md-h2 { font-size: 17px; }
.chat-area.font-lg .msg-content .md-code { font-size: 16px; }
.chat-area.font-lg .input-card textarea { font-size: 17px; }
.chat-area.font-lg .reason-box { font-size: 14px; }
.chat-area.font-lg .msg-attach-item { font-size: 14px; }
.chat-area.font-lg .attach-file-card { font-size: 16px; }
.chat-area.font-xl .msg-content { font-size: 20px; }
.chat-area.font-xl .msg-content .md-h1 { font-size: 22px; }
.chat-area.font-xl .msg-content .md-h2 { font-size: 20px; }
.chat-area.font-xl .msg-content .md-code { font-size: 19px; }
.chat-area.font-xl .input-card textarea { font-size: 20px; }
.chat-area.font-xl .reason-box { font-size: 16px; }
.chat-area.font-xl .msg-attach-item { font-size: 16px; }
.chat-area.font-xl .attach-file-card { font-size: 19px; }
.font-scale-btn.el-button { font-weight: 700; letter-spacing: 1px; }
.chat-header {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
}
/* 我的作品页头部：类型筛选+搜索+上传+回收站入口较多，窄屏允许换行防止右侧按钮被挤出可视区 */
.works-header {
  flex-wrap: wrap;
  height: auto;
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 6px;
  row-gap: 6px;
}
.func-name { font-size: 16px; font-weight: 600; color: var(--text-1); }
.model-name {
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-hover);
  padding: 3px 10px;
  border-radius: 10px;
}
.conv-current {
  font-size: 13px;
  color: var(--text-2);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.export-btn { margin-left: auto; }

.msg-list { flex: 1; overflow-y: auto; padding: 20px 32px 8px; }
/* 对话时间分隔条（仿微信：相邻消息间隔超 5 分钟插入） */
.msg-time-divider { max-width: 760px; margin: -8px auto 24px; text-align: center; }
.msg-time-divider > span {
  display: inline-block; font-size: 12px; color: var(--text-3);
  background: var(--bg-chip, #f2f3f5); padding: 3px 12px; border-radius: 10px;
}
.empty-hint { text-align: center; color: var(--text-3); margin-top: 140px; font-size: 14px; }
.empty-hint::before { content: '✨'; display: block; font-size: 34px; margin-bottom: 14px; opacity: 0.6; }
.msg-row { display: flex; gap: 12px; max-width: 760px; margin: 0 auto 24px; }
.msg-row.user { justify-content: flex-end; }
.msg-row.assistant { justify-content: flex-start; }
.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, #8b8be6 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.bubble { max-width: 78%; min-width: 0; }
.msg-row.assistant .bubble { max-width: calc(100% - 44px); }
.msg-content {
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-row.user .msg-content {
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
  line-height: 1.65;
}
.msg-row.assistant .msg-content { color: var(--text-1); padding: 4px 0; }
.msg-content .md-h1 { font-size: 16px; font-weight: 700; margin: 12px 0 6px; color: var(--text-1); }
.msg-content .md-h2 { font-size: 14px; font-weight: 600; margin: 10px 0 4px; color: var(--text-1); }
.msg-content .md-li { padding-left: 14px; margin: 2px 0; }
.msg-content .md-code { background: var(--bg-2, #f2f3f5); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.msg-meta { font-size: 11px; color: var(--text-3); margin-top: 6px; padding-left: 2px; }
.attach-file-card {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; margin: 2px 6px 2px 0;
  background: var(--bg-2, #f2f3f5); border: 1px solid var(--border, #e4e7ed);
  border-radius: 8px; text-decoration: none; color: var(--text-1);
  font-size: 13px; cursor: pointer; transition: background .15s;
}
.attach-file-card:hover { background: var(--bg-3, #e8eaee); }
.attach-file-icon { font-size: 15px; }
.attach-file-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-file-meta { color: var(--text-3); font-size: 12px; }
.thinking { color: var(--text-3); }
.dots { animation: blink 1.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* 消息内附件/图片 */
.msg-attach { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg-attach-item { font-size: 12px; color: #fff; background: rgba(255, 255, 255, 0.18); border-radius: 10px; padding: 2px 8px; }
.msg-images { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg-image { max-width: 200px; max-height: 200px; border-radius: 8px; object-fit: cover; display: block; }

/* ---------- 输入区 ---------- */
.input-wrap { flex-shrink: 0; padding: 8px 32px 22px; display: flex; justify-content: center; }
/* 件4（英华验收修批2）：输入框顶部拖拽手柄 */
.input-drag-handle { height: 10px; margin: -4px -2px 2px; display: flex; align-items: center; justify-content: center; cursor: ns-resize; border-radius: 6px; }
.input-drag-handle span { width: 44px; height: 4px; border-radius: 2px; background: var(--border-light, #dcdfe6); transition: background .15s; }
.input-drag-handle:hover span { background: var(--el-color-primary); }
.input-card {
  width: 100%;
  max-width: 760px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px 8px;
  box-shadow: var(--shadow-input);
  transition: var(--transition);
}

/* 统一拖拽上传（英华修批5 件3）：v-drop-upload 指令拖入悬浮时的高亮态 */
.xdh-drop-over {
  outline: 2px dashed var(--brand, #2f6bff) !important;
  outline-offset: -2px;
  background: rgba(47, 107, 255, 0.06) !important;
  border-radius: 8px;
}
.input-card:focus-within {
  border-color: var(--brand-border);
  box-shadow: 0 4px 20px rgba(91, 91, 214, 0.12);
}
.input-card textarea,
.gen-input-card textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.6;
  font-family: inherit;
  color: var(--text-1);
  background: transparent;
}
.input-card textarea::placeholder,
.gen-input-card textarea::placeholder { color: var(--text-3); }
.input-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; padding-top: 6px; }
.input-actions .icon-btn.el-button {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-2);
  transition: var(--transition);
}
.input-actions .icon-btn.el-button:hover { background: var(--bg-hover); color: var(--text-1); }
.input-actions .icon-btn.el-button.is-disabled { color: var(--text-3); }
.input-actions .upload-btn.el-button {
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  padding: 0 12px;
  height: 32px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.input-actions .upload-btn.el-button:hover { background: var(--bg-hover); color: var(--text-1); border-color: var(--text-3); }
.input-actions .upload-btn.el-button.is-disabled { color: var(--text-3); }
.doc-mode-select { width: 116px; flex-shrink: 0; }

/* 输入区附件/图片 chip */
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 8px; }
.attach-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-1);
}
.attach-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-size { color: var(--text-3); }
.attach-parsed {
  font-size: 10px;
  color: var(--brand);
  background: rgba(91, 91, 214, 0.12);
  border-radius: 6px;
  padding: 1px 6px;
  flex-shrink: 0;
}
.attach-remove { cursor: pointer; color: var(--text-3); font-size: 14px; line-height: 1; }
.attach-remove:hover { color: #f56c6c; }
.img-chip {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.img-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  line-height: 14px;
  text-align: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.img-remove:hover { background: #f56c6c; }

/* 文档生成卡片（聊天气泡内） */
.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}
.doc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.doc-card-icon.word { background: #e8f0fe; }
.doc-card-icon.excel { background: #e6f4ea; }
.doc-card-icon.ppt { background: #fdeee8; }
.doc-card-icon.pdf { background: #fde8e8; }
.doc-card-info { flex: 1; min-width: 0; }
.doc-card-title { font-size: 14px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-card-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 通用页面区（创作/作品/活动/个人中心/设置） ============ */
.page-area { flex: 1; display: flex; flex-direction: column; background: var(--bg-page); min-width: 0; padding-bottom: var(--site-footer-h, 44px); /* H5：给固定底栏合规页脚让位（高度由 SiteFooter 实测写入 CSS 变量） */ }
.page-body { flex: 1; overflow-y: auto; padding: 20px 32px 28px; }
.section-title { font-size: 15px; font-weight: 600; color: var(--text-1); margin: 26px 0 12px; }
.empty-hint-sm { text-align: center; color: var(--text-3); padding: 48px 0; font-size: 13px; }
.empty-hint-sm::before { content: '🗂️'; display: block; font-size: 30px; margin-bottom: 10px; opacity: 0.5; }

/* 创作输入卡片 */
.gen-input-card {
  max-width: 860px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px 10px;
  box-shadow: var(--shadow-input);
  transition: var(--transition);
}
.gen-input-card:focus-within { border-color: var(--brand-border); box-shadow: 0 4px 20px rgba(91, 91, 214, 0.12); }
.gen-input-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 6px; }
.gen-cost-tip { font-size: 12px; color: #d48806; }

/* 作品卡片网格 */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.work-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.work-thumb { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--bg-chip); }
.work-file-box { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 46px; background: var(--bg-chip); }
/* 课件/示范课卡片缩略：iframe 加载在线预览首页，4 倍渲染后 scale(0.25) 铺满卡片，禁交互 */
.cw-thumb-wrap { height: 150px; overflow: hidden; background: var(--bg-chip); }
.cw-thumb-frame {
  width: 400%; height: 600px; border: 0; display: block;
  transform: scale(0.25); transform-origin: 0 0;
  pointer-events: none;
}
/* 教案学科配色文字卡（学科色块+学科名+标题前两行+学段） */
.lp-cover {
  flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 12px 14px; gap: 6px; font-size: 13px;
}
.lp-cover-subject {
  background: rgba(255, 255, 255, 0.22); color: #fff;
  font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
}
.lp-cover-title {
  color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-cover-meta { color: rgba(255, 255, 255, 0.85); font-size: 12px; min-height: 14px; }
.work-info { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.work-title { font-size: 13px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
/* 件7（英华修批5）：作品卡片上下左右对齐——标题固定行高截断、元信息强制单行、按钮区钉底（配合 .work-actions margin-top:auto） */
.work-info .work-title { height: 22px; line-height: 22px; flex: 0 0 auto; }
.work-info .work-meta { height: 16px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 0 auto; }

/* 按报告生成修订版：建议清单确认弹窗行（勾选框 + 可编辑条目） */
.rs-pick-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.rs-pick-row .el-checkbox { margin-top: 4px; }
.rs-pick-row .el-input { flex: 1; }

/* ============ 课件工坊 ============ */
.cw-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 0 0 10px; }
.cw-result-card {
  margin-top: 16px;
  max-width: 860px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}
.cw-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cw-result-title { font-size: 16px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-result-meta { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.cw-result-files { margin-top: 12px; }
.cw-files-label { font-size: 13px; color: var(--text-2); }
.cw-file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cw-file-item {
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  padding: 3px 10px;
}
.cw-download-btn { margin-top: 18px; width: 100%; font-weight: 600; }

/* 批K：大纲确认页 */
.outline-card { border-color: var(--brand-border); }
.outline-free-tip { font-size: 12px; color: #d48806; flex-shrink: 0; }
.outline-skip-link { font-size: 12px; color: var(--text-3); cursor: pointer; text-decoration: underline; }
.outline-skip-link:hover { color: var(--brand); }
.outline-error {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding: 10px 14px;
  font-size: 13px; color: #d4380d;
  background: #fff2e8; border: 1px solid #ffbb96; border-radius: var(--radius-sm);
}
.outline-raw-toggle {
  margin-top: 14px; font-size: 12px; color: var(--brand); cursor: pointer; user-select: none;
}
.outline-raw-text {
  width: 100%; margin-top: 8px; padding: 10px 12px;
  font-size: 12px; font-family: monospace; line-height: 1.6;
  color: var(--text-2); background: var(--bg-chip);
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  box-sizing: border-box; resize: vertical;
}
.outline-page-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.outline-page-card {
  display: flex; gap: 12px;
  background: var(--bg-chip);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.outline-page-no {
  flex-shrink: 0; width: 26px; height: 26px; margin-top: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--brand-light); border: 1px solid var(--brand-border); border-radius: 50%;
}
.outline-page-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.outline-field { display: flex; align-items: flex-start; gap: 8px; }
.outline-field-label {
  flex-shrink: 0; width: 76px; padding-top: 5px;
  font-size: 12px; color: var(--text-2); text-align: right;
}
/* M2：大纲媒体类型徽标（数学动画/AI视频/图片，只读） */
.media-type-badge {
  flex-shrink: 0; margin-top: 3px; padding: 1px 8px; border-radius: 10px;
  font-size: 11px; line-height: 18px; white-space: nowrap;
}
.media-type-badge.mt-manim { background: #e6f4ff; color: #0958d9; border: 1px solid #91caff; }
.media-type-badge.mt-ai_video { background: #f9f0ff; color: #531dab; border: 1px solid #d3adf7; }
.media-type-badge.mt-image { background: #f6ffed; color: #237804; border: 1px solid #b7eb8f; }
.outline-field .el-input, .outline-field .el-textarea { flex: 1; }
.outline-actions { margin-top: 16px; }

/* ============ 活动 ============ */
.comp-list { display: flex; flex-direction: column; gap: 14px; }
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  transition: var(--transition);
}
.comp-card:hover { box-shadow: var(--shadow-lift); }
.comp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comp-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
.comp-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-top: 8px; }
.comp-meta { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.comp-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.comp-ended-tip { font-size: 12px; color: var(--text-3); }
.comp-dialog-target { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.comp-work-list { min-height: 120px; }
.comp-work-item { padding: 4px 0; }
.comp-work-meta { font-size: 12px; color: var(--text-3); margin-left: 8px; }
.comp-file-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.comp-file-name { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 个人中心 ============ */
.checkin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--checkin-bg);
  border: 1px solid var(--checkin-border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 16px;
}
.checkin-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
.checkin-days { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.profile-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
}
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.profile-avatar:hover { border-color: var(--brand); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-fields { flex: 1; min-width: 0; }
.profile-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--text-1); }
.profile-row:last-child { margin-bottom: 0; }
.profile-label { width: 64px; flex-shrink: 0; color: var(--text-3); font-size: 13px; }
.points-card {
  flex-shrink: 0;
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, #8383e3 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  box-shadow: 0 8px 20px rgba(91, 91, 214, 0.25);
}
.points-card-num { font-size: 30px; font-weight: 700; }
.points-card-label { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.points-card-total { font-size: 11px; opacity: 0.75; margin-top: 8px; }
.profile-tabs { margin-top: 20px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 6px 20px 16px; }

/* 2026-09-27 个人中心布局重排：顶部用户卡 + KPI 小卡一行（清爽白，窄屏 2×2） */
.profile-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow-card);
}
.profile-user-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-user-card .profile-avatar { width: 64px; height: 64px; font-size: 30px; }
.profile-user-info { min-width: 0; }
.profile-user-name-row { display: flex; align-items: center; gap: 4px; }
.profile-name-input { width: 160px; }
.profile-user-phone { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.profile-points-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.profile-points-right .points-card-num { font-size: 26px; font-weight: 700; color: var(--brand); text-align: right; }
.profile-points-right .points-card-total { opacity: 1; color: var(--text-3); font-size: 11px; margin-top: 2px; text-align: right; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 35, 61, 0.10); }
.kpi-card.kpi-disabled { opacity: 0.55; cursor: default; }
.kpi-card.kpi-disabled:hover { transform: none; box-shadow: var(--shadow-card); }
.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}
.kpi-icon-orange { background: #fdf3e3; color: #e8912d; }
.kpi-icon-blue { background: #e8f0fd; color: #3b7dd8; }
.kpi-icon-green { background: #e6f6ec; color: #3aa655; }
.kpi-icon-purple { background: #f0ebfb; color: #7b5cd6; }
.kpi-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.kpi-data { font-size: 14px; font-weight: 600; color: var(--brand); margin-top: 6px; }
.kpi-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.kpi-loading { color: var(--text-3); }
.kpi-mini-bar { height: 6px; border-radius: 3px; background: var(--bg-hover); margin-top: 8px; overflow: hidden; }
.kpi-mini-bar-fill { height: 100%; border-radius: 3px; transition: width .3s ease; }
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-user-card { flex-direction: column; align-items: flex-start; }
  .profile-points-right { align-self: stretch; justify-content: space-between; }
}

/* ============ 设置 ============ */
.settings-card {
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 8px 24px;
  box-shadow: var(--shadow-card);
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-1);
}
.settings-row:last-child { border-bottom: none; }
.settings-label { width: 140px; flex-shrink: 0; color: var(--text-2); }
.update-last { font-size: 12px; color: var(--text-3); }

/* ============ 关于我们 ============ */
.about-body { text-align: center; padding: 6px 0 10px; }
.about-logo { font-size: 24px; font-weight: 700; color: var(--text-1); letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.about-ver { font-size: 12px; color: var(--text-3); margin: 8px 0 14px; }
.about-text { font-size: 13px; color: var(--text-2); line-height: 1.8; text-align: left; }

/* ============ 充值弹窗 ============ */
.pkg-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.pkg-card {
  width: calc(33.333% - 8px);
  min-width: 160px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.pkg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--brand-border); }
.pkg-card.active { border-color: var(--brand); background: var(--brand-light); }
.pkg-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.pkg-points { font-size: 13px; color: var(--brand); margin: 8px 0; }
.pkg-points .gift { color: #d48806; font-size: 11px; }
.pkg-amount { font-size: 18px; font-weight: 700; color: #f56c6c; }
.pay-channel { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; }
.dialog-actions { display: flex; justify-content: center; gap: 12px; }
.mock-pay { text-align: center; padding: 10px 0; font-size: 14px; color: var(--text-1); }
.mock-pay p { margin-bottom: 10px; }
.mock-tip { color: #d48806; font-size: 13px; }

/* ============ Element Plus 细节统一 ============ */
.profile-tabs-toolbar { display: flex; justify-content: flex-end; margin: 14px 4px -4px; }
.checkin-info { min-width: 0; }
.comp-dialog-body { padding: 0 2px; }
.el-table th.el-table__cell { background: var(--bg-table-head); color: var(--text-2); font-weight: 600; }
.el-dialog { border-radius: var(--radius-lg); }
.el-message-box { border-radius: var(--radius-lg); }
.el-pagination { --el-pagination-button-bg-color: var(--bg-card); }

/* 主题切换过渡（避免闪烁） */
body, .sidebar, .chat-area, .page-area, .login-card, .new-chat, .sidebar-bottom,
.input-card, .gen-input-card, .doc-card, .work-card, .cw-result-card, .comp-card,
.profile-card, .profile-tabs, .settings-card, .checkin-card, .pkg-card {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* ============ v1.2.0-alpha5：滑块安全验证 ============ */
.slider-captcha { padding: 4px 2px 12px; }
.slider-track {
  position: relative;
  height: 44px;
  border-radius: 22px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  overflow: hidden;
  user-select: none;
}
.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--brand-light);
  border-radius: 22px;
}
.slider-track.resetting .slider-fill { transition: width 0.25s ease; }
.slider-track.done .slider-fill { background: rgba(103, 194, 58, 0.16); }
.slider-tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-3);
  pointer-events: none;
}
.slider-track.done .slider-tip { color: #67c23a; font-weight: 600; }
.slider-handle {
  position: absolute;
  top: 2px;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--brand);
  cursor: grab;
  z-index: 2;
  touch-action: none;
}
.slider-track.resetting .slider-handle { transition: left 0.25s ease; }
.slider-track.done .slider-handle {
  background: #67c23a;
  border-color: #67c23a;
  color: #fff;
  cursor: default;
}
.captcha-aliyun {
  padding: 34px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ============ v1.3.0-alpha1：用户协议 ============ */
.agree-row { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.public-pc-row { margin-top: 8px; }
.public-pc-row .agree-text { color: var(--text-3); }
.agree-text { font-size: 12px; color: var(--text-2); }
.agree-link { color: var(--brand); cursor: pointer; transition: var(--transition); }
.agree-link:hover { text-decoration: underline; }
.agreement-body { padding: 0 4px; }
.agreement-ver { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.agreement-content {
  max-height: 400px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.9;
  padding-right: 8px;
}
.agreement-content p { margin-bottom: 10px; }

/* ============ v1.3.0-alpha2：视频生成参数面板（即梦风格） ============ */
.video-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.video-panel {
  width: 340px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 0;
}
.video-panel textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.7;
  font-family: inherit;
  color: var(--text-1);
  background: transparent;
}
.video-panel textarea::placeholder { color: var(--text-3); }
.vp-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.vp-label { font-size: 12px; color: var(--text-2); margin-bottom: 8px; font-weight: 600; }
.vp-duration-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.vp-duration-head .vp-label { margin-bottom: 0; }
.vp-stepper { display: flex; align-items: center; gap: 8px; }
.vp-stepper .el-button { width: 26px; height: 26px; padding: 0; }
.vp-duration-value { min-width: 50px; text-align: center; color: var(--brand); font-size: 18px; font-weight: 700; }
.vp-duration-value small { margin-left: 2px; font-size: 11px; font-weight: 500; }
.vp-duration-note { margin-top: 6px; padding: 8px 10px; border-radius: 7px; background: var(--bg-soft); color: var(--text-2); font-size: 11px; line-height: 1.55; }
.vp-ratios { display: flex; gap: 10px; }
.vp-ratio {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-2);
}
.vp-ratio:hover { border-color: var(--brand-border); }
.vp-ratio.active { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.vp-ratio-box { display: block; border: 1.5px solid currentColor; border-radius: 3px; }
.vp-ratio-box.r16x9 { width: 28px; height: 16px; }
.vp-ratio-box.r9x16 { width: 14px; height: 24px; }
.vp-ratio-box.r1x1 { width: 20px; height: 20px; }
.vp-ratio-text { font-size: 12px; }
.vp-cost { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.vp-cost b { color: var(--brand); font-size: 18px; }
.vp-generate { width: 100%; margin-top: 10px; font-weight: 600; }

.video-result { flex: 1; min-width: 0; }
.video-latest {
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.video-latest-box {
  position: relative;
  width: 320px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--bg-chip);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-latest-icon { font-size: 52px; }
.video-params-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  padding: 2px 8px;
}
.video-params-badge.sm { font-size: 10px; padding: 1px 6px; }
.video-hist-box { position: relative; }
.video-latest-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.video-latest-title { font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 1.5; }

/* 窄窗口下视频页上下排布 */
@media (max-width: 1100px) {
  .video-layout { flex-direction: column; }
  .video-panel { width: 100%; position: static; }
}

/* ============ v1.3.0-alpha4：图片生成参数面板与多图结果 ============ */
.vp-ratio-box.r4x3 { width: 24px; height: 18px; }
.vp-ratio-box.r3x4 { width: 16px; height: 21px; }

.img-latest {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.img-latest-grid { display: grid; gap: 10px; }
.img-latest-grid.n1 { grid-template-columns: minmax(0, 420px); }
.img-latest-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.img-latest-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-chip);
}
.img-latest-item img { width: 100%; height: 100%; max-height: 400px; object-fit: cover; display: block; }
.img-dl {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.img-dl:hover { background: var(--brand); }
.img-latest-info { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.work-thumb-wrap { position: relative; }

/* ============ 媒体预览（图片查看 / 视频播放） ============ */
.clickable { cursor: pointer; }
.work-thumb-wrap video.work-thumb { object-fit: cover; background: #000; }
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-badge.lg { width: 56px; height: 56px; font-size: 22px; }
.video-latest-thumb { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.media-preview-body { display: flex; justify-content: center; background: #000; border-radius: 8px; overflow: hidden; }
/* 件28（英华验收修批2）：图片预览翻页条 */
.media-preview-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.media-preview-page-no { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.media-preview-video { width: 100%; max-height: 65vh; }
.media-preview-img { max-width: 100%; max-height: 65vh; object-fit: contain; }

/* ============ v1.4.0-alpha1：AI 教案 / 课程维度选择 ============ */
.dim-label { font-size: 12px; color: var(--text-2); margin: 2px 0 8px; font-weight: 600; }
.dim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.dim-row .el-select { flex: 1; min-width: 150px; }
.cw-withlp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--text-1);
}
.cw-withlp-tip { font-size: 12px; color: var(--text-3); }
/* W2：教案先行双模式 */
.cw-mode-switch { margin-bottom: 12px; }
.cw-lesson-picker { margin-bottom: 12px; }
.cw-lp-summary {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--brand-border, rgba(34, 211, 238, 0.3));
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.06);
  font-size: 13px;
  color: var(--text-1);
}
.cw-lp-summary-title { font-weight: 600; margin-bottom: 2px; }
.cw-lp-summary-meta { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.cw-lp-summary-prompt {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cw-lp-refine-tip { margin-left: 12px; }
/* W3a：参考资料上传 */
.ref-upload-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.ref-upload-tip { font-size: 12px; color: var(--text-3); }
.ref-list { margin-bottom: 10px; }
/* W3c：三档计费 */
.cw-tier-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cw-tier-card {
  flex: 1;
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}
.cw-tier-card:hover { border-color: var(--brand-border, rgba(34, 211, 238, 0.4)); }
.cw-tier-card.active {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
}
.cw-tier-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.cw-tier-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cw-tier-price { font-size: 12px; color: #22d3ee; margin-top: 4px; min-height: 16px; }
.cw-custom-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cw-custom-label { font-size: 13px; color: var(--text-2); }
.cw-est-tip { font-size: 12px; color: #d48806; margin-bottom: 8px; }
.cw-billing { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.lp-result-card { border-color: var(--brand-border); }
.lp-error-tip {
  max-width: 860px;
  margin-top: 12px;
  font-size: 13px;
  color: #d48806;
  background: rgba(212, 136, 6, 0.08);
  border: 1px solid rgba(212, 136, 6, 0.3);
  border-radius: var(--radius);
  padding: 10px 16px;
}
.lp-sections { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.lp-section {
  background: var(--bg-chip);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.lp-sec-name { font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 6px; }
.lp-sec-content { font-size: 13px; color: var(--text-2); line-height: 1.8; white-space: pre-wrap; }
.lp-no-preview { color: var(--text-3); }
.work-cat { display: inline-block; font-size: 11px; color: var(--brand); background: var(--brand-light); border-radius: 8px; padding: 1px 8px; margin-right: 6px; }
.work-tags { font-size: 11px; color: var(--text-3); }

/* 组织 MVP-C：我的单位 */
.org-join-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.org-join-tip { font-size: 12px; color: var(--text-3); margin: 0; line-height: 1.7; }
.org-card .work-meta { display: flex; align-items: center; }
.org-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.org-brief-card { cursor: pointer; }

/* 关于我们-备案信息 */
.about-compliance { margin-top: 16px; border-top: 1px solid var(--border, #eee); padding-top: 12px; }
.about-compliance p { font-size: 12px; color: var(--text-3, #909399); line-height: 1.9; margin: 0; }

/* W4a：生成进度步骤条 */
.cw-progress-card { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 10px; background: rgba(34, 211, 238, 0.04); }
/* 1b：停止生成按钮区与已停止提示 */
.cw-stop-actions { margin-top: 10px; text-align: center; }
.cw-stopped-hint { margin-top: 10px; text-align: center; color: #b45309; font-size: 13px; font-weight: 600; }

/* 生成进度条（阶段文案 + 伪进度百分比，大纲/教研/学情解析等单请求生成过程复用） */
.gen-prog { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--brand-border, rgba(34, 211, 238, .35));
  border-radius: 10px; background: rgba(34, 211, 238, 0.04); }
.gen-prog-stage { font-size: 13px; color: var(--text-2, #606266); margin-bottom: 8px; }
.gen-prog-hint { font-size: 12px; color: var(--text-3, #909399); margin-top: 6px; }

/* AI 教研 */
.rs-free-tag { font-size: 11px; color: #67c23a; border: 1px solid #67c23a; border-radius: 10px; padding: 1px 8px; margin-left: 8px; font-weight: 400; }
.rs-filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rs-filter-row .el-select { width: 140px; }
.rs-filter-row .el-input { width: 180px; }
.rs-svc-list { margin-top: 4px; }
.rs-svc-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.rs-svc-cost { font-size: 12px; color: #d48806; margin-left: 10px; }
.rs-svc-list textarea { width: 100%; margin-top: 10px; border: 1px solid var(--border-light); border-radius: var(--radius); outline: none; resize: vertical; box-sizing: border-box; padding: 10px 12px; font-size: 13px; line-height: 1.6; font-family: inherit; color: var(--text-1); background: transparent; }
.rs-svc-list textarea::placeholder { color: var(--text-3); }
.rs-report-card { margin-top: 14px; }
.rs-report { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.7; color: var(--text-1); background: var(--bg-chip); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px; margin: 0; max-height: 420px; overflow-y: auto; }
/* 件8（英华修批5）：md 渲染态报告——取消 pre 折行语义，正常块级排版 */
.rs-report-md { white-space: normal; }
.rs-saved-tip { font-size: 12px; color: #67c23a; margin-top: 8px; }
.rs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cw-pool-row { align-items: center; gap: 8px; margin-top: 6px; }
.cw-pool-label { font-size: 12px; color: var(--text-2); }
.rs-demo-iframe { width: 100%; height: 70vh; border: 0; border-radius: 8px; background: #fff; }

/* 作品修订（教案/课件三层修改） */
.rv-work-name { font-size: 13px; color: var(--text-2); margin-left: 12px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-svc-list textarea.rv-code { font-family: Consolas, 'Courier New', monospace; font-size: 12px; line-height: 1.5; }
.rv-page-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.rv-preview { width: 100%; height: 82vh; border: 1px solid var(--border-light); border-radius: 8px; background: #fff; }
.rv-preview:fullscreen { width: 100vw; height: 100vh; border: none; border-radius: 0; }
.rv-degraded-warn { font-size: 12px; color: #e6a23c; margin-top: 8px; }

/* T4：学情分析（录入 → 老师确认 → 报告） */
.sa-steps { margin-bottom: 18px; }
.sa-card { max-width: 980px; }
.sa-tab-row { margin-bottom: 10px; }
.sa-warnings { background: #fdf6ec; border: 1px solid #f5dab1; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; }
.sa-warning-item { font-size: 12px; color: #e6a23c; line-height: 1.7; }
.sa-class-row { align-items: center; margin-bottom: 10px; }
.sa-table-wrap { overflow-x: auto; margin-bottom: 10px; }
.sa-table { border-collapse: collapse; width: 100%; }
.sa-table th, .sa-table td { border: 1px solid var(--border-light); padding: 4px 6px; font-size: 12px; color: var(--text-1); text-align: center; }
.sa-table th { background: var(--bg-chip); font-weight: 600; white-space: nowrap; }
.sa-th-name { min-width: 110px; }
.sa-th-op { min-width: 64px; }
.sa-subject-input { width: 96px; }
.sa-subject-head { display: flex; align-items: center; gap: 4px; justify-content: center; }
.sa-subject-del { cursor: pointer; color: var(--text-3); font-size: 14px; line-height: 1; padding: 2px 3px; border-radius: var(--radius-sm); }
.sa-subject-del:hover { color: #f56c6c; background: var(--bg-hover); }
.sa-score-input { width: 88px; }
[data-theme="dark"] .sa-warnings { background: rgba(230, 162, 60, 0.12); border-color: rgba(230, 162, 60, 0.4); }

/* T4 升级：学情驱动备课（推荐引导 / 卷面结构 / 薄弱点补救行动） */
.sa-recommend { color: var(--el-color-primary); font-weight: 600; }
.sa-max-item { display: inline-flex; align-items: center; gap: 4px; }
.sa-max-name { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.sa-th-point { min-width: 220px; }
.sa-weak-area { margin-bottom: 14px; }
.sa-weak-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sa-weak-card { border: 1px solid var(--border-light); border-radius: var(--radius); padding: 12px; background: var(--bg-chip); }
.sa-weak-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sa-weak-name { font-weight: 600; font-size: 13px; color: var(--text-1); }
.sa-sev { font-size: 11px; line-height: 1.4; padding: 1px 8px; border-radius: 999px; color: #fff; white-space: nowrap; }
.sa-sev-high { background: #f56c6c; }
.sa-sev-mid { background: #e6a23c; }
.sa-sev-low { background: #409eff; }
.sa-weak-suggestion { font-size: 12px; color: var(--text-1); line-height: 1.6; margin-bottom: 8px; }
.sa-weak-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* 上传试卷读题：题目内容列 + 推断薄弱点警示 */
.sa-th-content { min-width: 260px; }
.sa-inferred-warn { font-size: 12px; color: #e6a23c; line-height: 1.6; margin-bottom: 8px; }

/* 件21（英华验收修批2）：学情报告图表可视化（div 条形图，不引新图表库） */
.sa-charts { margin-bottom: 14px; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 12px 14px; background: var(--bg-chip); }
.sa-chart-block { margin-top: 10px; }
.sa-chart-title { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.sa-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sa-bar-label { flex: 0 0 120px; font-size: 12px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-bar-track { flex: 1; height: 14px; background: var(--bg-page, #eef1f6); border-radius: 7px; overflow: hidden; }
.sa-bar-fill { display: block; height: 100%; border-radius: 7px; background: var(--el-color-primary); transition: width .3s; min-width: 2px; }
.sa-bar-fill-band { background: #67c23a; }
.sa-bar-fill-kp { background: #e6a23c; }
.sa-bar-val { flex: 0 0 auto; font-size: 12px; color: var(--text-1); font-variant-numeric: tabular-nums; }
.sa-bar-full { color: var(--text-3); }
.sa-chart-hint { font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* 件29（英华验收修批2）：作品卡片按钮排版——主操作平铺 + "更多"下拉（三处卡片同构） */
/* 件7（英华修批5）：钉底补强——统一最小行高，按钮多/少（换行与否）卡片底部都对齐 */
.work-actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 6px; min-height: 30px; flex: 0 0 auto; gap: 2px 0; }
/* 英华二次实测补刀：Element 相邻按钮 margin-left:12px 在换行后仍作用于第二行首个按钮，
   导致按钮第二行比第一行右缩进（"两行左不齐"根因）——统一清零，用 gap 控距 */
.work-actions .el-button { margin-left: 0 !important; margin-right: 8px; }

/* B2.5-版本自愈横幅（顶置固定条，app.js 唤起） */
#xdh-heal-banner {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  align-items: center; justify-content: center; gap: 12px;
  background: #b45309; color: #fff; font-size: 13px; padding: 8px 16px;
}
#xdh-heal-btn {
  background: #fff; color: #b45309; border: 0; border-radius: 999px;
  font-size: 12px; font-weight: 600; padding: 3px 14px; cursor: pointer;
}

/* ---------- AI 助手一期：悬浮钮+侧滑面板 ---------- */
.asst-fab {
  position: fixed; right: 22px; bottom: 86px; z-index: 2000;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--el-color-primary, #2563eb); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
  transition: transform .15s ease;
}
.asst-fab:hover { transform: scale(1.06); }
.asst-fab .xdh-ic { width: 22px; height: 22px; }
.asst-panel {
  position: fixed; right: 22px; bottom: 140px; z-index: 2000;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: 70vh;
  background: var(--bg-card, #fff); border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
  display: flex; flex-direction: column; overflow: hidden;
}
.asst-slide-enter-active, .asst-slide-leave-active { transition: all .18s ease; }
.asst-slide-enter-from, .asst-slide-leave-to { opacity: 0; transform: translateY(12px); }
.asst-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}
.asst-close { cursor: pointer; color: var(--text-3, #94a3b8); padding: 0 4px; }
.asst-tip { padding: 6px 14px; font-size: 11px; color: var(--text-3, #94a3b8); border-bottom: 1px dashed var(--border-light, #e2e8f0); }
.asst-msgs { flex: 1; overflow-y: auto; padding: 10px 12px; }
.asst-empty { text-align: center; color: var(--text-3, #94a3b8); font-size: 12px; margin-top: 40px; line-height: 1.8; }
.asst-msg { margin-bottom: 10px; }
.asst-msg.user .asst-bubble { background: var(--el-color-primary, #2563eb); color: #fff; margin-left: auto; }
.asst-bubble {
  display: inline-block; max-width: 88%; padding: 8px 12px; border-radius: 12px;
  background: var(--bg-chip, #f1f5f9); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.asst-msg.user { text-align: right; }
.asst-src { font-size: 11px; color: var(--text-3, #94a3b8); margin-top: 3px; }
.asst-src-link { color: var(--el-color-primary, #2563eb); cursor: pointer; margin-right: 8px; }
.asst-src-link:hover { text-decoration: underline; }
.asst-fb { font-size: 11px; margin-top: 3px; }
.asst-fb-btn { cursor: pointer; color: var(--text-3, #94a3b8); margin-right: 10px; }
.asst-fb-btn:hover { color: var(--el-color-primary, #2563eb); }
.asst-fb-done { color: var(--text-3, #94a3b8); }
.asst-quick {
  margin: 0 12px 6px; font-size: 12px; color: var(--el-color-primary, #2563eb);
  cursor: pointer; user-select: none;
}
.asst-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border-light, #e2e8f0); }
.asst-input {
  flex: 1; border: 1px solid var(--border-light, #e2e8f0); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; outline: none; background: var(--bg-card, #fff); color: var(--text-1, #1e293b);
}
.asst-input:focus { border-color: var(--el-color-primary, #2563eb); }
.work-more-dd { margin-left: 12px; vertical-align: middle; }
.work-more-dd .el-button { margin-left: 0; }

/* 消息中心（限定 .page-area，避免误伤聊天区 .chat-area 的 .msg-list：聊天消息列表需与输入卡同 32px 侧距、760px 居中） */
.unread-badge { background: #f56c6c; color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: 6px; }

/* P51 版本合一：作品版本徽标与版本列表 */
.work-ver-badge { cursor: pointer; }
.ver-item { border: 1px solid var(--border-light); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.ver-head { display: flex; align-items: center; gap: 8px; }
.ver-latest { font-size: 12px; color: #67c23a; font-weight: 600; }
.ver-time { margin-left: auto; font-size: 12px; color: var(--text-3); }
.ver-note { font-size: 13px; color: var(--text-2); margin: 6px 0 2px; white-space: pre-wrap; word-break: break-all; }
.ver-ops { margin-top: 2px; }

/* 作品卡"已入库知识库"态：灰底禁用样式不可再提交，但可点击跳知识库对应文档 */
.kb-ingested-btn { color: #a8abb2 !important; cursor: pointer; }
.kb-ingested-btn:hover { color: var(--brand) !important; }

/* 我的知识库独立页（2026-09-27） */
.kb-page-stats { font-size: 12px; color: var(--text-3); margin-left: 12px; flex: 1; }
.kb-section { margin-bottom: 18px; }
.kb-section-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.kb-pending-list { display: flex; flex-direction: column; gap: 8px; }
.kb-pending-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid #e6a23c55;
  border-left: 3px solid #e6a23c;
  border-radius: var(--radius-sm);
}
.kb-pending-info { flex: 1; min-width: 0; }
.kb-pending-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.kb-pending-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.kb-pending-fail { font-size: 12px; color: #f56c6c; margin-top: 4px; }
.kb-pending-summary { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.el-table tr.kb-row-highlight td { background: var(--brand-light) !important; }
/* 我的专业发展（素养评价一期WP2）：方向进度卡片 + AI 分析确认页分项评分 */
.eval-domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.eval-domain-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; background: var(--card-bg, #fff); }
.eval-domain-card.clickable { cursor: pointer; }
.eval-domain-card.clickable:hover { border-color: var(--brand-color, #409eff); }
.eval-domain-card.active { border-color: var(--brand-color, #409eff); background: var(--brand-light, #ecf5ff); }
.eval-domain-card.off { opacity: 0.55; background: #f8fafc; }
/* 件23（英华验收修批2）：方向分组标题 + 点击联动定位高亮闪烁 */
.eval-domain-group { margin-top: 6px; }
.eval-domain-group-title { font-size: 12px; font-weight: 600; color: var(--text-2); margin: 8px 0 6px; }
.eval-domain-card.flash { border-color: var(--brand-color, #409eff); box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.25); }
.section-flash { animation: evalSectionFlash 2.4s ease; border-radius: 10px; }
@keyframes evalSectionFlash {
  0%, 60% { box-shadow: 0 0 0 4px rgba(64, 158, 255, 0.35); background: var(--brand-light, #ecf5ff); }
  100% { box-shadow: none; background: transparent; }
}
.eval-domain-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.eval-domain-meta { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.eval-domain-off { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.eval-domain-note { font-size: 11px; color: var(--text-3); margin-top: 4px; }
/* WP5 本期综合结论卡（定档后教师可见 final 结果与理由） */
.eval-overall-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; background: var(--card-bg, #fff); display: flex; align-items: center; gap: 12px; }
.eval-overall-card.pending { color: var(--text-2); font-size: 13px; background: #f8fafc; }
.eval-overall-grade { font-size: 16px; font-weight: 700; padding: 4px 14px; border-radius: 8px; white-space: nowrap; }
.eval-overall-grade.g-EXCELLENT { color: #16a34a; background: #f0fdf4; }
.eval-overall-grade.g-QUALIFIED { color: #2563eb; background: #eff6ff; }
.eval-overall-grade.g-BASIC { color: #d97706; background: #fffbeb; }
.eval-overall-grade.g-UNQUALIFIED { color: #dc2626; background: #fef2f2; }
.eval-overall-body { flex: 1; min-width: 0; }
.eval-overall-note { font-size: 13px; color: var(--text-1); line-height: 1.6; white-space: pre-wrap; }
.eval-overall-time { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.eval-score-item { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.eval-score-head { display: flex; align-items: center; justify-content: space-between; }
.eval-score-dim { font-size: 13px; font-weight: 600; color: var(--text-1); }
.eval-score-num { font-size: 16px; font-weight: 700; color: var(--brand-color, #409eff); }
.eval-score-ev { font-size: 12px; color: var(--text-2); margin-top: 4px; white-space: pre-wrap; word-break: break-all; }
/* 学业述评（WP3 域4）：掌握度色块/确认页左右栏 */
.nar-mastery { display: inline-block; min-width: 34px; padding: 1px 7px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.nar-confirm-grid { display: grid; grid-template-columns: 1fr 250px; gap: 16px; }
.nar-evidence { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--text-2); max-height: 380px; overflow-y: auto; }
.nar-ev-head { font-size: 12px; font-weight: 600; color: var(--text-1); }
.promote-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f56c6c; margin-left: 6px; vertical-align: 2px; }
.page-area .msg-list { padding: 16px 24px; max-width: 860px; }
.msg-item { background: var(--card-bg, #fff); border: 1px solid #ebeef5; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; cursor: pointer; }
.msg-item.unread { border-left: 3px solid #409eff; }
.msg-head { display: flex; align-items: center; gap: 8px; }
.msg-title { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-unread-dot { color: #f56c6c; font-size: 12px; }
.msg-time { color: #909399; font-size: 12px; }
.msg-preview { color: #606266; font-size: 13px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-tip { color: #909399; text-align: center; padding: 60px 0; }
/* 扫码支付 */
.qr-pay { text-align: center; padding: 8px 0; }
.qr-box img { width: 220px; height: 220px; }

/* ============ H5：登录页双 tab + 微信扫码 ============ */
/* 登录页改为纵向布局：卡片居中，合规页脚沉底 */
.login-page { flex-direction: column; }
.login-page .login-card { margin: auto; }
.login-page .site-footer { width: 100%; }
.login-tabs { margin-top: 4px; }
.login-tabs .el-tabs__item { font-size: 15px; }

.wx-empty { text-align: center; padding: 12px 0 4px; }
.wx-tip { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.wx-box { display: flex; flex-direction: column; align-items: center; padding: 4px 0; }
/* 微信官方 WxLogin 组件 iframe（300×400），小屏适当缩放 */
.wx-login-box { width: 300px; height: 400px; margin: -40px 0 -46px; overflow: hidden; }
.wx-login-box iframe { transform: scale(0.92); transform-origin: top center; }
.wx-fallback { padding: 30px 0; }
.wx-guide { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.7; max-width: 300px; text-align: center; }
.wx-status { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.wx-actions { margin-top: 8px; display: flex; gap: 18px; }
/* 常驻明文授权链接：弹窗被拦截时的最终兜底 */
.wx-raw-link { margin-top: 6px; font-size: 12px; color: var(--text-3); text-decoration: underline; word-break: break-all; }

/* ============ K5 合规页脚（读 /public/about，空不显示） ============ */
.site-footer {
  padding: 14px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.9;
}
/* 主界面：固定底栏（sidebar 宽 248px），实底背景不挡内容 */
.main-page .site-footer {
  position: fixed;
  left: 248px;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 4px 16px;
  line-height: 1.6;
  background: var(--bg-page);
  pointer-events: none;
}
.main-page .site-footer a { pointer-events: auto; }
.sf-text { margin-bottom: 2px; color: #b0b4bc; }
.sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.sf-links a { color: var(--text-3); text-decoration: none; }
.sf-links a:hover { color: var(--brand); }
/* 任务C：警徽图标与公安备案号作为一个整体参与换行（inline-flex + nowrap），图标不再单独串行 */
.sf-beian-link { display: inline-flex; align-items: center; white-space: nowrap; }
.sf-beian-icon { width: 14px; height: 14px; margin-right: 4px; }
.sf-copy { margin-top: 2px; color: #b0b4bc; }

/* ============ 批L-1：HTML 产物实时预览面板 ============ */
.pv-mask { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 2000; }
.pv-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 55%; min-width: 480px; background: var(--card-bg, #fff); z-index: 2001; display: flex; flex-direction: column; box-shadow: -4px 0 16px rgba(0,0,0,.12); }
.pv-panel:fullscreen { width: 100%; min-width: 0; }
.pv-toolbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border-light, #ebeef5); flex-shrink: 0; }
.pv-title { font-size: 13px; font-weight: 600; color: var(--text-1, #303133); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-modes { display: flex; gap: 4px; }
.pv-mode { font-size: 12px; padding: 3px 10px; border-radius: 999px; cursor: pointer; color: var(--text-3, #909399); border: 1px solid var(--border-light, #ebeef5); }
.pv-mode.active { color: #fff; background: var(--brand, #409eff); border-color: var(--brand, #409eff); }
.pv-tool { font-size: 15px; cursor: pointer; color: var(--text-3, #909399); padding: 2px 6px; }
.pv-tool:hover { color: var(--brand, #409eff); }
.pv-body { flex: 1; overflow: auto; display: flex; justify-content: center; background: var(--bg-chip, #f5f7fa); }
.pv-frame { border: none; height: 100%; background: #fff; }
.pv-desktop .pv-frame { width: 100%; }
.pv-tablet .pv-frame { width: 768px; max-width: 100%; box-shadow: 0 0 12px rgba(0,0,0,.08); }
/* 预览 iframe 容器：三端切换复用同一 iframe 元素；手机模式虚拟宽度渲染 + transform scale（宽高由 pvScaledFrameStyle 内联给出） */
.pv-frame-wrap { width: 100%; height: 100%; display: flex; justify-content: center; }
.pv-fw-mobile { overflow: hidden; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.08); justify-content: flex-start; }
.pv-fw-mobile .pv-frame { flex: none; }
.pv-tip { padding: 40px 20px; text-align: center; color: var(--text-3, #909399); font-size: 13px; line-height: 1.8; align-self: flex-start; width: 100%; }
.msg-pv-entry { margin-top: 8px; }
.attach-pv-link { font-size: 12px; color: var(--brand, #409eff); margin-left: 8px; white-space: nowrap; }

/* ============ 批L-1修复：AI 回复代码框（围栏代码块渲染 + 一键复制） ============ */
.code-box { margin: 8px 0; border-radius: 8px; overflow: hidden; background: #1e293b; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.code-box-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; background: #0f172a; }
.code-box-lang { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }
.code-copy-btn { font-size: 12px; color: #cbd5e1; background: transparent; border: 1px solid #334155; border-radius: 6px; padding: 2px 10px; cursor: pointer; }
.code-copy-btn:hover { color: #fff; border-color: #64748b; background: #1e293b; }
.code-box-pre { margin: 0; padding: 12px 14px; overflow: auto; max-height: 420px; font-size: 12px; line-height: 1.6; color: #e2e8f0; font-family: Consolas, Monaco, 'Courier New', monospace; }
.code-box-pre code { font-family: inherit; white-space: pre; }

/* ============ 批L-2：教案澄清面板 ============ */
.clarify-tip { font-size: 12px; color: #d48806; line-height: 1.6; margin: 0 0 12px; }
.clarify-item { margin-bottom: 14px; }
.clarify-q { font-size: 13px; font-weight: 600; color: var(--text-1, #303133); margin-bottom: 6px; }
.clarify-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 4px; }

/* ============ 批L-4：按钮预估积分 ============ */
.est-inline { font-size: 12px; color: #d48806; margin-right: auto; }
.est-insufficient { color: #f56c6c; font-weight: 600; }
.chat-est-tip { font-size: 11px; color: var(--text-3, #909399); margin-top: 6px; text-align: right; }

/* 思考过程折叠区（assistant 消息 reasoning 非空才渲染，默认折叠） */
.reason-box { margin-bottom: 6px; font-size: 12px; }
.reason-toggle { color: var(--text-3); cursor: pointer; user-select: none; }
.reason-toggle:hover { color: var(--text-2); }
.reason-content { margin-top: 4px; padding: 8px 10px; background: var(--bg-chip); border-radius: 6px; color: var(--text-3); white-space: pre-wrap; line-height: 1.6; max-height: 240px; overflow-y: auto; }
/* 流式输出光标：正文逐字追加时末尾闪烁竖线 */
.stream-live::after { content: '▍'; color: var(--text-3); animation: blink 1s infinite; }
/* 流式中断失败条（未扣积分，可重试） */
.msg-failed { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #e6a23c; }
/* P60：达单次输出上限截断标注（消息尾部，与 msg-failed 同色系但仅提示不可重试） */
.msg-truncated { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #909399; }

/* 协议确认弹窗里的可点链接（dangerouslyUseHTMLString 渲染，样式全局生效） */
.agree-dlg-link { color: var(--el-color-primary, #409eff); cursor: pointer; text-decoration: underline; }

/* 推广中心（批次0：推广有礼） */
.promote-top { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-bottom: 14px; }
.promote-invite-card { flex: 1; min-width: 320px; }
.promote-qr-card { width: 220px; text-align: center; }
.promote-qr-box { display: flex; justify-content: center; padding: 6px 0 2px; }
.promote-qr-box img { border-radius: 8px; max-width: 100%; }
.promote-code-row { display: flex; align-items: center; gap: 12px; }
.promote-code { font-size: 28px; font-weight: 700; letter-spacing: 2px; color: var(--brand, #4f7cff); }
.promote-link-row { display: flex; align-items: center; gap: 8px; }
.promote-stats { display: flex; gap: 32px; padding: 8px 0 6px; flex-wrap: wrap; }
.promote-stat-num { font-size: 24px; font-weight: 700; color: var(--text-1); }
.promote-stat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.promote-wd-tip { margin-left: 10px; font-size: 12px; color: var(--text-3); }
.promote-wd-min-tip { font-size: 12px; color: var(--text-3); line-height: 1.6; margin-top: 4px; }
.promote-become-tip { font-size: 12px; color: var(--text-3); padding: 4px 2px; }
/* 窄屏适配：邀请码/链接行允许换行，二维码卡占满 */
@media (max-width: 720px) {
  .promote-code-row, .promote-link-row { flex-wrap: wrap; }
  .promote-code { font-size: 22px; }
  .promote-qr-card { width: 100%; }
}

/* ==================== 批次2 WP3a：作业批改 ==================== */
.hw-header-actions { margin-left: auto; display: flex; gap: 8px; }
.hw-page .page-body { max-width: 1080px; }

/* 包月状态条 */
.hw-sub-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px;
  background: var(--bg-chip); border-radius: 10px; font-size: 13px; color: var(--text-2); }
.hw-sub-bar.hw-sub-on { background: #f0f7ff; color: #1d4ed8; }
.hw-sub-bar .el-button { margin-left: auto; }
.hw-sub-compare { color: var(--text-3); }

/* 任务卡片 */
.hw-task-list { display: flex; flex-direction: column; gap: 12px; }
.hw-task-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--bg-card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; cursor: pointer;
  transition: box-shadow .15s ease; }
.hw-task-card:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.hw-task-icon { font-size: 26px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-chip); border-radius: 10px; }
.hw-task-main { flex: 1; min-width: 0; }
.hw-task-title { font-size: 14px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-task-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.hw-task-progress { height: 6px; background: var(--bg-chip); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.hw-task-progress-bar { height: 100%; background: var(--brand, #4f7cff); border-radius: 3px; transition: width .3s; }
.hw-task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hw-task-count { font-size: 12px; color: var(--text-2); }
.hw-task-status { font-size: 12px; padding: 2px 10px; border-radius: 10px; background: var(--bg-chip); color: var(--text-3); }
.hw-task-status.hw-st-capturing { background: #e8f0ff; color: #3b6fe0; }
.hw-task-status.hw-st-judging { background: #fff4e0; color: #d97706; }
.hw-task-status.hw-st-confirming { background: #fdf0e5; color: #ea580c; }
.hw-task-status.hw-st-done { background: #e7f7ee; color: #16a34a; }
.hw-task-badge { font-size: 12px; color: #fff; background: #f43f5e; border-radius: 10px; padding: 1px 8px; }

/* 采集工作台 */
.hw-capture-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.hw-capture-sub { font-size: 12px; color: var(--text-3); margin-left: 10px; }
.hw-capture-count { font-size: 13px; color: var(--text-2); }
.hw-capture-body { display: flex; gap: 16px; align-items: flex-start; }
.hw-roster { width: 200px; flex-shrink: 0; background: var(--bg-card, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; padding: 10px; max-height: 560px; overflow-y: auto; }
.hw-roster-title { font-size: 12px; color: var(--text-3); padding: 2px 6px 8px; }
.hw-roster-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: default; font-size: 13px; }
.hw-roster-item.pickable { cursor: pointer; }
.hw-roster-item.pickable:not(.current):hover { background: var(--bg-chip); }
.hw-roster-item.captured { color: var(--text-3); opacity: .65; }
.hw-roster-item.current { background: #eceaff; color: var(--brand, #4f7cff); font-weight: 600; }
.hw-roster-item.missed { background: #fff7e0; color: #b45309; }
.hw-roster-seq { width: 20px; font-size: 12px; color: var(--text-3); }
.hw-roster-name { flex: 1; }
.hw-roster-state { font-size: 11px; }
/* bug修复包A-项1：已拍学生"重拍"小按钮 */
.hw-roster-reshoot { font-size: 11px; color: var(--brand, #4f7cff); cursor: pointer; padding: 1px 6px; border: 1px solid currentColor; border-radius: 8px; white-space: nowrap; }
.hw-roster-reshoot:hover { background: #eceaff; }
.hw-roster-reshoot.disabled { color: var(--text-3); cursor: not-allowed; background: none; }
/* bug修复包A-项2：主备人"成员请求汇总"提示条 */
.ct-req-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; margin-bottom: 10px; background: #fff7e0; border: 1px solid #f5d98b; border-radius: 10px; font-size: 13px; color: #b45309; }
.hw-shoot { flex: 1; min-width: 0; }
.hw-shoot-cur { text-align: center; margin-bottom: 14px; }
.hw-shoot-label { font-size: 13px; color: var(--text-3); }
.hw-shoot-name { font-size: 34px; font-weight: 700; color: var(--brand, #4f7cff); margin: 4px 0; }
.hw-shoot-seq { font-size: 12px; color: var(--text-3); }
.hw-shoot-box { border: 2px dashed var(--border, #cbd5e1); border-radius: 14px; padding: 40px 16px; text-align: center;
  cursor: pointer; background: var(--bg-card, #fff); }
.hw-shoot-box:hover { border-color: var(--brand, #4f7cff); }
.hw-shoot-hint { font-size: 16px; color: var(--text-1); }
.hw-shoot-guide { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.hw-shoot-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hw-shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hw-shot-thumb { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border, #e5e7eb); cursor: zoom-in; image-orientation: from-image; }
.hw-capture-tipbar { margin-top: 12px; font-size: 12px; color: #b45309; background: #fff7e0; border-radius: 8px; padding: 8px 12px; }
/* 扫码接力（WP4）：取景区上方二维码区块 */
.hw-relay { margin-bottom: 12px; text-align: center; }
.hw-relay-box { margin-top: 10px; padding: 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
  background: var(--bg-card, #fff); display: inline-block; }
.hw-relay-qr img { width: 180px; height: 180px; display: block; }
.hw-relay-tip { margin-top: 8px; font-size: 12px; color: var(--text-3); max-width: 220px; }
/* 摄像头拍摄（批次3-WP4 高拍仪 UVC 直采） */
.hw-cam-btn { width: 100%; margin-top: 10px; }
.hw-cam-devs { margin-bottom: 10px; }
.hw-cam-stage { position: relative; }
.hw-cam-video { width: 100%; max-height: 420px; background: #000; border-radius: 10px; display: block; }
.hw-cam-info { margin-top: 4px; font-size: 11px; color: #94a3b8; text-align: right; }
.hw-cam-error, .hw-cam-loading { padding: 48px 12px; text-align: center; font-size: 14px; }
.hw-cam-error { color: #dc2626; }
.hw-cam-loading { color: var(--text-3); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* 确认页 */
.hw-banner { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; background: var(--bg-chip); }
.hw-banner-warn { background: #fff7e0; color: #92400e; }
.hw-banner-warn .el-button { margin-top: 8px; }
.hw-banner-ok { background: #e7f7ee; color: #15803d; }
.hw-banner-err { font-size: 12px; margin-top: 4px; }
.hw-judging-text { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.hw-judging-sub { font-size: 12px; color: var(--text-3, #909399); }
.hw-confirm-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.hw-confirm-tip { font-size: 12px; color: var(--text-3); }
.hw-sub-card { background: var(--bg-card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; }
.hw-sub-card.hw-sub-doubt { background: #fffbe8; border-color: #f2d48a; }
.hw-sub-card.hw-sub-done { opacity: .8; }
.hw-group-head { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.hw-group-head.hw-group-doubt { color: #b45309; }
.hw-doubt-chips { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.hw-doubt-chips-label { font-size: 12px; color: #b45309; }
.hw-doubt-chips .hw-chip { cursor: pointer; }
.hw-as-warn-row td { color: #dc2626; background: #fef2f2; font-size: 12px; }
.hw-as-lv-WARN td { color: #b45309; background: #fffbeb; }
.hw-as-lv-REVIEW td { color: #6b7280; background: #f9fafb; }
.hw-as-stat { font-size: 12px; color: var(--text-2); margin: 6px 0 8px; }
.hw-as-gate-tip { font-size: 12px; color: #dc2626; margin-right: auto; }
.hw-sub-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hw-sub-thumb { width: 52px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border, #e5e7eb); cursor: zoom-in; image-orientation: from-image; }
.hw-sub-info { flex: 1; min-width: 160px; }
.hw-sub-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.hw-sub-seq { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 8px; }
.hw-sub-summary { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.hw-sub-ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hw-tag { font-size: 11px; padding: 2px 8px; border-radius: 8px; }
.hw-tag-doubt { background: #fde68a; color: #92400e; }
.hw-tag-diverged { background: #fecaca; color: #b91c1c; }
.hw-tag-lowres { background: #ffedd5; color: #c2410c; }
.hw-tag-confirmed { background: #dcfce7; color: #15803d; }
.hw-tag-src { background: #e0e7ff; color: #4338ca; }
.hw-tag-suggest { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.hw-sub-body { margin-top: 12px; border-top: 1px dashed var(--border, #e5e7eb); padding-top: 12px; }
.hw-sub-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hw-sub-imgs img { width: 110px; height: 150px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border, #e5e7eb); cursor: zoom-in; image-orientation: from-image; }
.hw-judge-error { font-size: 12px; color: #b91c1c; background: #fef2f2; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.hw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hw-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; padding: 3px 9px; border-radius: 8px;
  cursor: pointer; user-select: none; border: 1px solid transparent; }
.hw-chip-ok { background: #dcfce7; color: #15803d; }
.hw-chip-bad { background: #fee2e2; color: #b91c1c; }
.hw-chip-unsure { background: #fef3c7; color: #92400e; }
.hw-chip-modified { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b inset; }
.hw-chip-actions { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.hw-chip-tip { font-size: 12px; color: #b45309; }
.hw-essay-block { margin-bottom: 10px; }
.hw-essay-label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.hw-essay-text { font-size: 13px; color: var(--text-1); white-space: pre-wrap; line-height: 1.7; }
.hw-essay-issue { font-size: 13px; color: var(--text-1); margin-bottom: 6px; }
.hw-essay-quote { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.hw-essay-sug { font-size: 12px; color: #0369a1; margin-top: 2px; }

/* 结果页 */
.hw-report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.hw-report-title { font-size: 15px; font-weight: 600; }
.hw-report-cards { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hw-report-card { background: var(--bg-card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
  padding: 14px 20px; text-align: center; min-width: 120px; }
.hw-report-num { font-size: 24px; font-weight: 700; color: var(--text-1); }
.hw-report-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.hw-num-green { color: #16a34a; }
.hw-num-red { color: #dc2626; }
.hw-num-yellow { color: #d97706; }
.hw-rate-card { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hw-rate-num { font-size: 18px; font-weight: 700; }
.hw-rate-label { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.hw-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hw-panel { background: var(--bg-card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.hw-panel-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.hw-wrong-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.hw-wrong-rank { width: 18px; height: 18px; border-radius: 50%; background: #fee2e2; color: #b91c1c; font-size: 11px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hw-wrong-no { width: 70px; flex-shrink: 0; }
.hw-wrong-bar { flex: 1; height: 10px; background: var(--bg-chip); border-radius: 5px; overflow: hidden; }
.hw-wrong-bar-fill { height: 100%; background: #f87171; border-radius: 5px; }
.hw-wrong-count { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.hw-issue-row { font-size: 13px; color: var(--text-2); margin-bottom: 6px; line-height: 1.6; }
.hw-issue-count { color: var(--text-3); font-size: 12px; }
.hw-weak-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border, #e5e7eb); font-size: 13px; }
.hw-weak-row:last-child { border-bottom: none; }
.hw-weak-name { font-weight: 600; flex-shrink: 0; }
.hw-weak-items { flex: 1; color: var(--text-3); font-size: 12px; min-width: 0; }

/* 弹窗内表单 */
.hw-form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hw-form-label { width: 120px; font-size: 13px; color: var(--text-2); flex-shrink: 0; }
.hw-answer-chip { font-size: 12px; background: var(--bg-chip); border-radius: 8px; padding: 3px 8px; }
.hw-form-tip { width: 100%; font-size: 12px; color: var(--text-3); margin-top: -4px; }
.hw-answer-x { cursor: pointer; margin-left: 4px; color: var(--text-3); }
.hw-class-add { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.hw-class-row { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; margin-bottom: 8px; }
.hw-class-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.hw-class-meta { flex: 1; font-size: 12px; color: var(--text-3); }
.hw-students { border-top: 1px dashed var(--border, #e5e7eb); padding: 10px 12px; }
.hw-student-add { display: flex; gap: 8px; margin-bottom: 8px; }
.hw-student-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; }
.hw-import-meta { font-size: 13px; margin-bottom: 8px; }
.hw-import-warnings { background: #fff7e0; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.hw-import-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; max-height: 220px; overflow-y: auto; }
.hw-import-chip { font-size: 12px; background: var(--bg-chip); border-radius: 8px; padding: 3px 8px; }
.hw-purchase-body { text-align: center; padding: 6px 0; }
.hw-purchase-price { font-size: 30px; font-weight: 700; color: var(--brand, #4f7cff); }
.hw-purchase-points { font-size: 13px; color: var(--text-3); font-weight: 400; }
.hw-purchase-desc { font-size: 12px; color: var(--text-3); margin-top: 8px; line-height: 1.7; }
.hw-variant-block { margin-bottom: 14px; }
/* 件5（英华修批5）：已出变式练习记录行 */
.hw-variant-rec { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-light, #ebeef5); }
.hw-variant-rec:last-child { border-bottom: none; }
.hw-variant-rec-info { font-size: 13px; color: var(--text-main, #303133); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-variant-head { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hw-variant-content { font-size: 13px; white-space: pre-wrap; line-height: 1.7; background: var(--bg-chip);
  border-radius: 8px; padding: 10px 12px; margin: 0; }
/* 变式练习 支架渐隐三梯队分组展示（2026-09-27 快赢批） */
.hw-scaffold-group { margin-bottom: 12px; }
.hw-scaffold-title { font-size: 13px; font-weight: 700; color: var(--brand, #4f7cff); margin: 10px 0 6px; }
.hw-ex-card { background: var(--bg-chip); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.7; }
.hw-ex-head { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.hw-ex-solo { font-size: 11px; color: var(--brand, #4f7cff); background: rgba(79, 124, 255, .12); border-radius: 999px; padding: 1px 8px; }
.hw-ex-removed { font-size: 11px; color: #b26a00; background: rgba(230, 162, 60, .14); border-radius: 999px; padding: 1px 8px; }
.hw-ex-title { font-weight: 600; margin-bottom: 4px; }
.hw-ex-step { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line, #e5e7eb); }
.hw-ex-step-no { font-weight: 600; color: var(--text-2); }
.hw-ex-step-reason { color: var(--text-3); }
.hw-ex-block { margin-top: 6px; }
.hw-ex-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.hw-ex-line { font-size: 13px; }
.hw-ex-warn { margin-top: 6px; background: rgba(230, 162, 60, .1); border-radius: 6px; padding: 6px 8px; }
.hw-ex-blank { margin-top: 6px; border: 1px dashed var(--brand, #4f7cff); border-radius: 6px; padding: 8px 10px;
  color: var(--brand, #4f7cff); font-weight: 600; }
.hw-ex-answer { margin-top: 6px; color: var(--text-2); font-size: 12px; }

/* 手机浏览器采集页：名册与取景区纵排，可点可拍 */
@media (max-width: 720px) {
  .phone-homework .sidebar { display: none !important; }
  .phone-homework .main-page, .phone-homework .page-area { width: 100%; min-width: 0; }
  .phone-homework .main-page .site-footer { left: 0; width: 100%; }
  .phone-homework .chat-header { flex-wrap: wrap; height: auto; min-height: 60px; padding: 10px 12px; gap: 8px; }
  .phone-homework .hw-header-actions { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 6px; }
  .phone-homework .hw-header-actions .el-button { margin-left: 0; }
  .phone-homework .hw-confirm-toolbar > span:last-child, .phone-homework .hw-sub-ops { display: flex; flex-wrap: wrap; gap: 6px; }
  .phone-homework .hw-sub-ops .el-button { margin-left: 0; }
  .hw-page .page-body { padding: 12px 12px 20px; }
  .hw-capture-body { flex-direction: column; }
  .hw-roster { width: 100%; max-height: 180px; }
  .hw-shoot-name { font-size: 26px; }
  .hw-report-grid { grid-template-columns: 1fr; }
  .hw-task-card { flex-wrap: wrap; }
  .hw-task-side { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; gap: 8px; }
}

/* ===== 0906 修复包：连拍开关 / 名册学号 / 导入三列 / 图片查看器 ===== */
.hw-multipage { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.hw-multipage-label { font-size: 12px; color: var(--text-sub, #6b7280); }
.hw-class-tplbar { margin-bottom: 8px; font-size: 12px; }
.hw-student-no { font-size: 12px; color: var(--text-sub, #6b7280); }
.hw-import-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hw-import-table th, .hw-import-table td { padding: 4px 8px; border-bottom: 1px solid var(--border, #e5e7eb); text-align: left; }
.hw-import-table th { color: var(--text-sub, #6b7280); font-weight: 500; }
.hw-viewer-mask { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,.82); display: flex; flex-direction: column; }
.hw-viewer-toolbar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; flex-wrap: wrap; }
.hw-viewer-page { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; }
.hw-viewer-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 0 16px 16px; }
.hw-viewer-img { max-width: 92vw; max-height: calc(100vh - 120px); object-fit: contain; transition: transform .2s; image-orientation: from-image; background: #111; }

/* ===== 批次3-WP3：单位数据看板 + 我的班级数据 ===== */
.org-tabs { margin-bottom: 4px; }
.orgdash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.orgdash-card { background: var(--bg-chip, #f6f7fb); border-radius: 10px; padding: 12px 14px; text-align: center; }
.orgdash-num { font-size: 20px; font-weight: 700; color: var(--text-1, #303133); }
.orgdash-num.brand { color: var(--brand, #5b5bd6); }
.orgdash-label { font-size: 12px; color: var(--text-3, #909399); margin-top: 4px; }
.orgdash-funcs { margin-top: 8px; }
.orgdash-func-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 12px; }
.orgdash-func-name { width: 110px; flex: none; color: var(--text-2, #606266); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orgdash-func-barbox { flex: 1; min-width: 0; }
.orgdash-func-bar { height: 8px; border-radius: 4px; background: var(--brand, #5b5bd6); opacity: 0.8; }
.orgdash-func-val { width: 90px; flex: none; text-align: right; color: var(--text-3, #909399); }
.hwdash-totals { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-2, #606266); }
.hwdash-class-card { border: 1px solid var(--border, #ebeef5); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.hwdash-class-head { font-size: 14px; }
.hwdash-class-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text-2, #606266); }
.hwdash-wrong { margin-top: 8px; }
.hwdash-wrong-label { font-size: 12px; color: #e6a23c; margin-right: 6px; }

/* ===== 批次3.5-WP2：集备房间 ===== */
.ct-room-card { cursor: pointer; }
.ct-member-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-member-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-chip, #f6f7fb); border-radius: 16px; padding: 4px 12px; font-size: 13px; color: var(--text-2, #606266); }
.ct-member-remove { cursor: pointer; color: #f56c6c; font-weight: 700; margin-left: 2px; }
.ct-member-remove:hover { opacity: 0.75; }
.ct-invite-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.ct-report-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ct-report-md { background: var(--bg-chip, #f6f7fb); border-radius: 10px; padding: 12px 14px; max-height: 480px; overflow-y: auto; }
.ct-discuss-item { margin-top: 10px; border-top: 1px dashed var(--border, #e5e7eb); padding-top: 8px; }
.ct-discuss-q { font-size: 13px; font-weight: 600; color: var(--text-1, #303133); margin-bottom: 6px; }
.ct-discuss-a { background: var(--bg-chip, #f6f7fb); border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* 批次3.7-WP2：课程搜索反选 */
.kb-search-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; }
.kb-search-row .el-input { max-width: 280px; }
.kb-search-panel { border: 1px solid var(--border, #e4e7ed); border-radius: 10px; margin: 0 0 10px;
  max-height: 260px; overflow-y: auto; background: var(--bg-card, #fff); }
.kb-search-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--border, #f2f3f5); }
.kb-search-item:last-child { border-bottom: none; }
.kb-search-item:hover { background: var(--bg-chip, #f5f7fa); }
.kb-search-item-title { font-size: 13px; font-weight: 600; color: var(--text-1, #303133); }
.kb-search-item-tags { font-size: 12px; font-weight: 400; color: var(--text-2, #909399); margin-left: 6px; }
.kb-search-item-used { font-size: 11px; color: #67c23a; margin-left: 6px; }
.kb-search-item-path { font-size: 12px; color: var(--text-2, #909399); margin-top: 2px; line-height: 1.5; }
.kb-search-empty { padding: 12px; display: flex; align-items: center; gap: 10px;
  color: var(--text-2, #909399); font-size: 13px; }
.kb-search-more { padding: 6px 12px; font-size: 12px; color: #e6a23c; }

/* ===== 批次4 WP2：教学日历 ===== */
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cal-card { border: 1px solid var(--border, #ebeef5); border-radius: 10px; padding: 12px 14px; background: var(--bg-card, #fff); }
.cal-card-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.cal-card-title { font-size: 14px; font-weight: 600; color: var(--text-1, #303133); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--text-2, #909399); }
.cal-card-cls { font-size: 12px; color: var(--text-2, #606266); }
.cal-card-current { margin-top: 8px; font-size: 12px; color: #67c23a; }
.cal-card-ops { margin-top: 8px; display: flex; justify-content: flex-end; gap: 4px; }
.cal-row-current > td { background: #f0f9eb !important; }
.cal-form-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-form-file { font-size: 12px; color: var(--text-2, #909399); margin-bottom: 8px; }
.cal-warnings { border: 1px solid #f5dab1; background: #fdf6ec; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.cal-warnings-title { font-size: 12px; font-weight: 600; color: #e6a23c; margin-bottom: 4px; }
.cal-warning-item { font-size: 12px; color: #b88230; line-height: 1.6; }
.cal-reminder-card { border: 1px solid #c6e2ff; background: #ecf5ff; border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.cal-reminder-topic { font-size: 14px; font-weight: 600; color: var(--text-1, #303133); }
.cal-reminder-meta { font-size: 12px; color: var(--text-2, #909399); margin-top: 4px; }
.cal-reminder-ops { margin-top: 8px; display: flex; gap: 8px; }
/* 批次4 三入口弹窗 */
.cal-entry-tip { font-size: 12px; color: var(--text-2, #909399); line-height: 1.7; background: #f4f7fb; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.cal-entry-ops { display: flex; align-items: center; gap: 16px; }
.cal-tpl-link { font-size: 13px; }
.cal-entry-weeks { font-size: 12px; color: var(--text-2, #909399); align-self: center; }
.cal-gen-form { padding: 4px 2px; }

/* ==========================================================================
   批次X-WP5：设计 token 归一 + UI 低成本项（新样式用 token，存量不动）
   ========================================================================== */
:root {
  /* 主色阶（蓝紫刻度） */
  --brand-50: #eeeefb; --brand-100: #ddddf7; --brand-200: #cbcbf2; --brand-300: #adadea;
  --brand-400: #8585e1; --brand-500: #5b5bd6; --brand-600: #4c4cc9; --brand-700: #4a4ab8;
  /* 8px spacing 刻度 */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  /* 三级阴影 */
  --shadow-1: 0 1px 2px rgba(31, 35, 41, 0.06);
  --shadow-2: 0 1px 2px rgba(31, 35, 41, 0.04), 0 8px 24px rgba(31, 35, 41, 0.05);
  --shadow-3: 0 4px 8px rgba(31, 35, 41, 0.05), 0 14px 32px rgba(31, 35, 41, 0.09);
  /* 圆角四档 */
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  /* 字体七档 */
  --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px;
  /* 数字等宽字体 + 红笔保护色（判作业批注专用，与 Element 错误红脱钩） */
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --ink-red: #DC2626;
}
[data-theme="dark"] {
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-3: 0 4px 8px rgba(0, 0, 0, 0.30), 0 14px 32px rgba(0, 0, 0, 0.40);
}

/* 数字等宽：积分/看板数字/判作业统计对齐不跳动 */
.num { font-variant-numeric: tabular-nums; }
.hw-report-num, .pkg-amount, .func-val, .kpi-value, .stat-value { font-variant-numeric: tabular-nums; }

/* 红笔保护色：判作业批注/对错 chips 统一改用 --ink-red */
.hw-chip-bad { color: var(--ink-red); }
.hw-num-red { color: var(--ink-red); }
.hw-judge-error { color: var(--ink-red); }
.hw-cam-error { color: var(--ink-red); }

/* ===== 判作业二期-批1：掌握度热力 / 错题归因 / 改判历史 ===== */
.hw-result-tabs { margin-bottom: 12px; }
.hw-mastery-legend { font-size: 12px; color: var(--text-3); font-weight: 400; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-mastery-legend span { display: inline-flex; align-items: center; gap: 4px; }
.hw-mg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.hw-mg-dot.hw-mg-green { background: #bbf7d0; }
.hw-mg-dot.hw-mg-yellow { background: #fef08a; }
.hw-mg-dot.hw-mg-red { background: #fecaca; }
.hw-mg-dot.hw-mg-gray { background: #e5e7eb; }
.hw-mastery-scroll { overflow-x: auto; }
.hw-mastery-table { border-collapse: collapse; font-size: 12px; }
.hw-mastery-table th, .hw-mastery-table td { border: 1px solid var(--border, #e5e7eb); padding: 4px 8px; text-align: center; white-space: nowrap; }
.hw-mastery-table th { background: var(--bg-soft, #f8fafc); font-weight: 600; }
.hw-mastery-table .hw-mg-name { text-align: left; background: var(--bg-card, #fff); position: sticky; left: 0; }
.hw-mg-cell.hw-mg-green { background: #bbf7d0; color: #15803d; font-weight: 600; }
.hw-mg-cell.hw-mg-yellow { background: #fef08a; color: #a16207; font-weight: 600; }
.hw-mg-cell.hw-mg-red { background: #fecaca; color: #b91c1c; font-weight: 600; }
.hw-mg-cell.hw-mg-gray { background: #f1f5f9; color: #94a3b8; }
.hw-err-row { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.hw-err-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hw-err-no { font-weight: 600; }
.hw-err-wrong { font-size: 12px; color: var(--ink-red); }
.hw-etype { font-size: 11px; padding: 2px 8px; border-radius: 8px; background: #e0e7ff; color: #3730a3; }
.hw-etype.hw-etype-calc { background: #dbeafe; color: #1d4ed8; }
.hw-etype.hw-etype-model { background: #ede9fe; color: #6d28d9; }
.hw-etype.hw-etype-reading { background: #fef3c7; color: #b45309; }
.hw-etype.hw-etype-classify { background: #fee2e2; color: #b91c1c; }
.hw-err-repeat { font-size: 11px; color: #b45309; }
.hw-err-meta { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.hw-err-advice { font-size: 12px; color: var(--text-2); margin-top: 6px; background: var(--bg-soft, #f8fafc); border-radius: 8px; padding: 6px 8px; }
.hw-logs-scroll { overflow-x: auto; }
.hw-logs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hw-logs-table th, .hw-logs-table td { border-bottom: 1px solid var(--border, #e5e7eb); padding: 6px 8px; text-align: left; white-space: nowrap; }
.hw-logs-table th { color: var(--text-3); font-weight: 600; }

/* 按钮/卡片微交互（只动 transform/opacity，不改布局） */
.el-button { transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease,
  background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.el-button:not(.is-disabled):not(.is-loading):hover { transform: translateY(-2px); }
.el-button:not(.is-disabled):not(.is-loading):active { transform: scale(0.96); }
.gen-input-card, .doc-card, .work-card, .cw-result-card, .comp-card, .hw-report-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gen-input-card:hover, .doc-card:hover, .work-card:hover, .cw-result-card:hover, .comp-card:hover,
.hw-report-card:hover { transform: translateY(-2px); }

/* 全局焦点环（键盘可达性） */
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; border-radius: var(--r-sm); }

/* 骨架屏（design1 .sk） */
@keyframes sk-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk { background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%; animation: sk-pulse 1.5s ease-in-out infinite; }
[data-theme="dark"] .sk { background: linear-gradient(90deg, #333338 25%, #2c2c31 50%, #333338 75%);
  background-size: 200% 100%; }

/* 动效降级：用户系统开启"减少动态效果"时全部关停 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .el-button:not(.is-disabled):not(.is-loading):hover,
  .gen-input-card:hover, .doc-card:hover, .work-card:hover, .cw-result-card:hover, .comp-card:hover,
  .hw-report-card:hover { transform: none; }
}

/* 批次Y-WP1：特殊教育学段小字入口（默认折叠，点击后学段选择器最后出现） */
.kb-special-entry { font-size: 12px; margin-left: 2px; flex-shrink: 0; }
/* WP4 UX小修：述评待确认行淡色底纹 + 生成完成点击高亮第一行待确认 */
.el-table .nar-row-draft > td { background: #fdf6ec !important; }
.el-table .nar-row-highlight > td { background: #d9ecff !important; animation: narFlash 1.2s ease-in-out 3; }
@keyframes narFlash { 0%, 100% { background: #d9ecff; } 50% { background: #a0cfff; } }
.nar-done-notify { cursor: pointer; }
/* WP4 行为轨：域卡内 AI 建议块 + 证据下钻链接 */
.eval-beh { margin-top: 6px; border-top: 1px dashed #e2e8f0; padding-top: 6px; }
.eval-beh-score { font-size: 12px; font-weight: 600; color: var(--brand-color, #409eff); }
.eval-beh-conf { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
.eval-beh-sug { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.eval-beh-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--text-3); }
.eval-beh-insufficient { font-size: 11px; color: var(--text-3); margin-top: 6px; border-top: 1px dashed #e2e8f0; padding-top: 6px; }
.eval-ev-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.eval-ev-link-title { word-break: break-all; }

/* ===== P62-WPA 全站使用说明"?"帮助卡（help-entry 公共组件；内容走 t_help_page 后台维护） ===== */
.help-entry-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; border: 1px solid #c0c4cc; color: #909399; font-size: 12px; line-height: 1; cursor: pointer; user-select: none; vertical-align: middle; }
.help-entry-btn:hover { color: var(--el-color-primary); border-color: var(--el-color-primary); }
.help-step { display: flex; gap: 10px; margin-bottom: 12px; }
.help-step-no { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--el-color-primary); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.help-step-body { flex: 1; min-width: 0; }
.help-step-text { font-size: 13px; color: #303133; line-height: 1.7; }
.help-step-img { max-width: 100%; margin-top: 6px; border-radius: 6px; border: 1px solid #ebeef5; cursor: zoom-in; }
.help-effect { margin-top: 8px; padding: 10px 12px; background: #f4f7fc; border-radius: 8px; }
.help-effect-title { font-size: 13px; font-weight: 600; color: #303133; margin-bottom: 4px; }
.help-effect-text { font-size: 13px; color: #606266; line-height: 1.7; }
.help-effect-img { max-width: 100%; margin-top: 8px; border-radius: 6px; border: 1px solid #e4e9f2; display: block; cursor: zoom-in; }
/* 件1（英华验收修批2）：帮助卡图片点击放大灯箱（自写，不引新库） */
.help-zoom-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.78); display: flex; align-items: center; justify-content: center; z-index: 4000; cursor: zoom-out; }
.help-zoom-img { max-width: 92vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5); cursor: default; }
.help-video-player { width: 100%; margin-top: 10px; border-radius: 8px; background: #000; }

/* ---------- P62-WPB：新手任务卡 + 三条关键路径交互引导 ---------- */
.newbie-card { margin: 10px 12px; padding: 10px 12px; border: 1px solid #fde68a; background: linear-gradient(135deg, #fffbeb, #ffffff); border-radius: 10px; }
.newbie-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.newbie-card-title { font-size: 13px; font-weight: 600; color: #b45309; display: flex; align-items: center; gap: 4px; }
.newbie-card-progress { font-size: 11px; color: #94a3b8; flex: 1; text-align: right; }
.newbie-task { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed #f1f5f9; }
.newbie-task:first-of-type { border-top: none; }
.newbie-task-main { flex: 1; min-width: 0; }
.newbie-task-name { font-size: 12.5px; color: #334155; }
.newbie-task-cost { font-size: 11px; color: #94a3b8; line-height: 1.45; margin-top: 1px; }
.newbie-claimed { font-size: 12px; color: #16a34a; white-space: nowrap; }
.guide-overlay { position: fixed; inset: 0; z-index: 4000; background: rgba(15, 23, 42, .55); }
.guide-overlay:has(.guide-hole) { background: transparent; }
.guide-hole { position: fixed; z-index: 4001; border: 3px solid #f56c6c; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55); pointer-events: none; }
.guide-bubble { position: fixed; z-index: 4002; width: 360px; max-width: calc(100vw - 24px); background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.guide-step-tag { font-size: 12px; color: #f56c6c; font-weight: 600; margin-bottom: 6px; }
.guide-text { font-size: 14px; color: #334155; line-height: 1.7; min-height: 44px; }
.guide-ops { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.guide-skip { font-size: 12px; color: #94a3b8; cursor: pointer; }
.guide-skip:hover { color: #64748b; }
/* 英华三次实测补刀：md 表格渲染样式（报告预览真表格） */
.md-table { border-collapse: collapse; margin: 8px 0; width: auto; max-width: 100%; }
.md-table th, .md-table td { border: 1px solid var(--border, #dcdfe6); padding: 5px 12px; font-size: 12.5px; text-align: left; }
.md-table th { background: var(--bg-soft, #f2f4f8); font-weight: 600; }
/* 英华三次实测补刀②：el-dropdown 包装 div 自带 margin-left:12px（"更多"右缩 12px 的真凶） */
.work-actions .el-dropdown { margin-left: 0 !important; margin-right: 8px; }
/* 问题7（英华 10-14）：我的作品-生成中任务条 */
.gen-task-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.gen-task-card { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border, #dcdfe6); border-radius: 10px; background: var(--bg-soft, #f7f9fc); min-width: 280px; flex: 0 0 auto; }
.gen-task-card.failed { border-color: #f0b7b7; background: #fdf3f3; }
.gen-task-kind { font-size: 12px; font-weight: 600; color: var(--brand, #2f6bff); flex-shrink: 0; }
.gen-task-bar { flex: 1; height: 6px; border-radius: 3px; background: #e3e9f4; overflow: hidden; min-width: 90px; }
.gen-task-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2f6bff, #5b8cff); transition: width .5s; }
.gen-task-stage { font-size: 11px; color: var(--text-3, #909399); flex-shrink: 0; }
.gen-task-fail-text { font-size: 12px; color: #d03050; font-weight: 600; }
.gen-task-close { margin-left: auto; cursor: pointer; color: #909399; font-size: 14px; padding: 0 2px; }
.gen-task-close:hover { color: #d03050; }
/* 英华修批7-件1：生成中/失败作品卡封面（设计稿 gencard-mock 口径） */
.gen-cover-running { background: linear-gradient(135deg, #eef4ff 0%, #e0ebff 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; }
.gen-cover-failed { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; }
.gen-cover-badge { position: absolute; top: 8px; left: 8px; background: rgba(46, 95, 163, .12); color: #2e5fa3; font-size: 11px; padding: 2px 8px; border-radius: 8px; }
.gen-cover-badge.fail { background: #fecaca; color: #b91c1c; }
.gen-pulse { width: 30px; height: 30px; border-radius: 50%; background: #2e5fa3; opacity: .85; animation: genPulse 1.6s ease-in-out infinite; }
@keyframes genPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.18); opacity: .5; } }
.gen-cover-label { font-size: 13px; font-weight: 600; color: #2e5fa3; }
.gen-cover-label.fail { color: #b91c1c; }
.gen-cover-bar { width: 75%; height: 6px; background: #d7e3f7; border-radius: 3px; overflow: hidden; }
.gen-cover-bar i { display: block; height: 100%; background: #2e5fa3; border-radius: 3px; transition: width .5s; }
.gen-cover-meta { font-size: 11px; color: #64748b; max-width: 86%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gen-fail-icon { width: 30px; height: 30px; border-radius: 50%; background: #ef4444; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }

/* ===== 教师反馈 MVP（2026-11-09）：AI 客服面板页签 + 反馈表单 + 我的反馈 ===== */
.asst-tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--border, #e5e7eb); }
.asst-tab { padding: 8px 10px; font-size: 13px; color: var(--text-2, #6b7280); cursor: pointer; border-bottom: 2px solid transparent; }
.asst-tab.active { color: var(--brand, #2f6bff); border-bottom-color: var(--brand, #2f6bff); font-weight: 600; }
.asst-fb-panel { padding: 12px 14px; overflow-y: auto; flex: 1; }
.asst-fb-context { font-size: 12px; color: var(--text-3, #9ca3af); background: var(--bg-2, #f3f4f6); border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.asst-fb-textarea { width: 100%; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 10px; font-size: 13px; resize: none; box-sizing: border-box; font-family: inherit; }
.asst-fb-images { display: flex; gap: 8px; margin: 10px 0; }
.asst-fb-img { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border, #e5e7eb); }
.asst-fb-img img { width: 100%; height: 100%; object-fit: cover; }
.asst-fb-img-del { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.5); color: #fff; border-radius: 50%; width: 16px; height: 16px; font-size: 10px; text-align: center; line-height: 16px; cursor: pointer; }
.asst-fb-img-add { width: 56px; height: 56px; border: 1px dashed var(--border, #d1d5db); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3, #9ca3af); font-size: 20px; cursor: pointer; }
.asst-fb-impact { display: flex; gap: 6px; margin-bottom: 10px; }
.asst-fb-impact-opt { flex: 1; text-align: center; font-size: 12px; padding: 6px 4px; border-radius: 8px; background: var(--bg-2, #f3f4f6); color: var(--text-2, #6b7280); cursor: pointer; }
.asst-fb-impact-opt.active { background: var(--brand, #2f6bff); color: #fff; }
.asst-fb-reward-tip { font-size: 12px; color: #b45309; background: #fffbeb; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; line-height: 1.5; }
.asst-fb-ok { font-size: 12px; color: #059669; margin-top: 8px; }
.asst-fb-item { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.asst-fb-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.asst-fb-item-no { font-size: 12px; color: var(--text-3, #9ca3af); }
.asst-fb-item-status { font-size: 12px; color: var(--brand, #2f6bff); font-weight: 600; }
.asst-fb-item-content { font-size: 13px; line-height: 1.5; margin-bottom: 6px; word-break: break-all; }
.asst-fb-item-reply { font-size: 12px; color: var(--text-2, #4b5563); background: var(--bg-2, #f3f4f6); border-radius: 8px; padding: 6px 8px; margin-top: 4px; }
.asst-fb-item-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3, #9ca3af); margin-top: 6px; }
.asst-fb-reward-ok { color: #059669; font-weight: 600; }
.asst-fb-privacy { font-size: 11px; color: var(--text-3, #9ca3af); margin: -4px 0 10px; }
.asst-fb-supp { margin-top: 8px; }

/* 主观题评分细则与逐点判定（2026-11-13 第二批三期 V3） */
.hw-rubric-card{background:#fff;border:1px solid #e6ebf2;border-radius:12px;padding:14px 18px;margin:10px 0;box-shadow:0 2px 8px rgba(30,50,90,.05)}
.hw-rubric-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.hw-rubric-title{font-size:15px;font-weight:700;color:#1f2d3d}
.hw-rubric-warn{color:#b45309;font-size:12.5px;background:#fff8e6;border-radius:6px;padding:5px 10px;margin:6px 0}
.hw-rubric-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:6px}
.hw-rubric-table th{background:#f2f6fc;text-align:left;padding:6px 8px;color:#475669}
.hw-rubric-table td{padding:6px 8px;border-top:1px solid #eef1f6;vertical-align:top}
.hw-rubric-table .pt{color:#1d6fd1;font-weight:700;white-space:nowrap}
.hw-rubric-table .evi{color:#6b7c93;font-size:12px}
.hw-subj-stat{background:#eef5ff;border-radius:8px;padding:8px 14px;font-size:13px;margin:8px 0;color:#1f2d3d}
.hw-teach-tip{background:#f0fdf4;border:1px solid #b9e7c5;border-radius:8px;padding:8px 14px;font-size:13px;margin:8px 0;color:#15803d}
.hw-subj-item{border:1px solid #e6ebf2;border-radius:10px;padding:12px 14px;margin:10px 0;background:#fff}
.hw-subj-item.hw-subj-flag{border-color:#f0c48a;background:#fffaf3}
.hw-subj-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.hw-subj-final{color:#c2410c;font-weight:700}
.hw-subj-sug{color:#1d6fd1;font-weight:700}
.hw-subj-note{color:#6b7c93;font-size:12.5px;margin:4px 0}
.hw-subj-pv{font-size:13px;padding:3px 0;border-top:1px dashed #eef1f6}
.hw-pv-ok{color:#16a34a;font-weight:700;margin-right:4px}
.hw-pv-no{color:#c2410c;font-weight:700;margin-right:4px}
.hw-subj-evi{color:#6b7c93;font-size:12px;margin-left:8px}
.hw-subj-ops{display:flex;gap:8px;align-items:center;margin-top:10px;font-size:13px}
.hw-score-val{min-width:36px;text-align:center;font-weight:800;font-size:16px;border:1px dashed #c4cfdd;border-radius:6px;padding:3px 8px;background:#fbfdff}
.hw-ocr-pair{display:flex;gap:12px;margin:8px 0}
.hw-ocr-left{flex:1;border:1px solid #e2e8f0;border-radius:8px;padding:8px;background:#f8fafc}
.hw-ocr-right{flex:1;border:1px solid #e2e8f0;border-radius:8px;padding:8px}
.hw-ocr-lbl{font-size:11.5px;color:#8492a6;margin-bottom:4px}
.hw-ocr-text{font-size:13px;line-height:1.6}
.hw-ocr-crop{width:100%;height:110px;border-radius:6px;background-color:#f5f7fb}
