/* ============================================================
   style.css - 学生任务平台 全局样式
   设计语言：参考「今日任务 V2」——柔和渐变背景 / 白色大圆角卡片 /
   蓝紫渐变主色 / 触控优先（iPad 横竖屏 + Mac）
   ============================================================ */
:root {
  /* 文字 */
  --ink: #20303f;
  --ink2: #5c7186;
  --ink3: #9aabbd;
  /* 线条 */
  --line: #e8eef6;
  /* 主题色 */
  --blue: #4a9bff;
  --green: #22c993;
  --orange: #ff9f43;
  --pink: #ff6f9c;
  --purple: #8b7bff;
  --yellow: #ffc93f;
  --red: #ff6b6b;
  /* 渐变主色 */
  --grad: linear-gradient(135deg, #5aa8ff, #7f7bff);
  --grad-shadow: 0 5px 14px rgba(74, 155, 255, .3);
  /* 圆角（可爱风：更圆润） */
  --r: 22px;
  --r2: 16px;
  /* 阴影 */
  --sh: 0 6px 18px rgba(31, 60, 100, .08);
  --sh2: 0 10px 30px rgba(31, 60, 100, .14);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;

  /* ---- 兼容别名（旧视图类名引用） ---- */
  --primary: var(--blue);
  --primary-dark: #3a8ae6;
  --primary-light: var(--tint);
  --text: var(--ink);
  --text-2: var(--ink2);
  --text-3: var(--ink3);
  --border: var(--line);
  --card: #ffffff;
  --radius: var(--r);
  --radius-sm: var(--r2);
  --shadow: var(--sh);
  --shadow-lg: var(--sh2);
  --green-bg: #eafaf4;
  --red-bg: #ffeef0;
  --orange-bg: #fff3ec;
  --gray-bg: #f1f6fc;
  /* ---- 主色浅底（主题可覆盖：jade 主题换为墨绿浅底） ---- */
  --tint: #eaf3ff;       /* 主色浅底 */
  --tint-2: #e0eeff;     /* 主色浅底（深一档，用于渐变） */
  --tint-ink: #2b6ecf;   /* 浅底上的文字/强调 */
  --tint-line: #cfe2ff;  /* 浅底描边 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* v162：页面级横向溢出兜底。导航下拉(.nv-dd)收起态 visibility:hidden 仍占布局、
   会把文档 scrollWidth 撑出屏幕造成手机端横向抖动；clip 裁掉横向溢出且不产生滚动容器，
   不影响 sticky 侧栏；hidden 作为老浏览器回退（Chrome<90 / Safari<16）。 */
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(900px 500px at 110% -8%, #fff4dc 0%, rgba(255, 244, 220, 0) 60%),
    radial-gradient(800px 500px at -10% 0%, #dff1ff 0%, rgba(223, 241, 255, 0) 60%),
    linear-gradient(180deg, #e8f2ff 0%, #f7fbff 45%, #eefaf4 100%);
  background-attachment: fixed;
}
a { color: var(--blue); text-decoration: none; }
b, strong { font-weight: 800; }
em { color: var(--red); font-style: normal; }
button { font-family: inherit; }

/* ---- 可爱装饰：背景漂浮 emoji（置于内容之下） ---- */
body::before, body::after {
  position: fixed; z-index: -1; pointer-events: none;
  user-select: none; opacity: .5;
  animation: floaty 7s ease-in-out infinite;
}
body::before { content: "☁️"; top: 9%; left: 4%; font-size: 46px; }
body::after { content: "✨"; bottom: 15%; right: 5%; font-size: 36px; animation-delay: -3.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

::selection { background: rgba(74, 155, 255, .25); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #c9dcf3; border-radius: 999px;
  border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #a8c8ef; background-clip: content-box; }

/* ================= 顶部头部 =================
   v16 结构：两行式
     · .tb-main —— 第一行：品牌 + 右侧账号/操作
     · .topnav  —— 第二行：独立导航行（有独立宽度，不再和品牌互相挤压）
*/
.topbar {
  max-width: 1080px; margin: 0 auto;
  padding: 16px 18px 6px;
  display: flex; flex-direction: column;
}
.tb-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); min-width: 0; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(74, 155, 255, .35);
}
.brand-logo svg {
  width: 26px; height: 26px; stroke: #fff; fill: none;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-txt b { font-size: 19px; font-weight: 900; letter-spacing: .3px; }
.brand-txt span { font-size: 12.5px; color: var(--ink2); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.user-chip {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .8); border-radius: 16px;
  padding: 5px 12px 5px 6px; box-shadow: var(--sh);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-name { font-weight: 800; font-size: 13.5px; }
.user-sub { font-size: 11px; color: var(--ink3); }

/* ---- 电脑模式：顶部水平导航（独立一行，条目自动折行而非压缩文字） ---- */
.topnav {
  display: none; align-items: center; gap: 4px;
  flex-wrap: wrap;
  /* 左移 11px（= 胶囊内边距），让首个图标的左边缘与品牌 logo 对齐 */
  margin: 8px 0 0 -11px;
}
.tn-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 11px; border-radius: 999px;
  color: var(--ink2); font-size: 13px; font-weight: 800;
  letter-spacing: .2px; white-space: nowrap;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), background .15s, color .15s, box-shadow .15s;
}
.tn-link .nti { font-size: 16px; line-height: 1; flex: none; }
.tn-link:not(.on):hover {
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: var(--sh), inset 0 0 0 1.5px rgba(226, 236, 248, .95);
}
.tn-link:active { transform: scale(.95); }
.tn-link.on { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tn-link:focus-visible, .navtab:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

/* ---- 显示模式切换（📱 iPad / 🖥️ 电脑） ---- */
.mode-switch {
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82); border-radius: 999px;
  padding: 3px; box-shadow: var(--sh); flex-shrink: 0;
}
.mode-switch button {
  border: 0; background: none; cursor: pointer; font-family: var(--font);
  padding: 6px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: var(--ink3);
  display: flex; align-items: center; gap: 4px; line-height: 1;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), background .15s, color .15s;
}
.mode-switch button:active { transform: scale(.9); }
.mode-switch button.on { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); }

/* 头像 */
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 46px; height: 46px; font-size: 20px; }
.avatar-hero { width: 64px; height: 64px; font-size: 28px; box-shadow: 0 4px 14px rgba(99, 102, 241, .35); border: 3px solid rgba(255, 255, 255, .85); }

/* 学生首页 hello 区布局 */
.cal-hello-top { display: flex; align-items: center; gap: 14px; }
.cal-hello-text { flex: 1; min-width: 0; }
.cal-hello-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 0 !important; }
.cal-class-badge { background: rgba(255, 255, 255, .2); padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.cal-class-id { font-size: 12px; opacity: .85; font-family: ui-monospace, monospace; }
.cal-hello-tip { margin-top: 6px !important; font-size: 13px !important; opacity: .92; }

/* ================= 我的档案（学生自助维护） ================= */
.prof-card { padding: 22px; max-width: 880px; margin: 0 auto; }
.prof-head h2 { font-size: 20px; margin: 0 0 6px; }
.prof-head .hint { font-size: 13px; color: var(--ink3); margin: 0 0 16px; }
.prof-error { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; }
.prof-ok { background: #ecfdf5; color: #047857; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; }
.prof-grid { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.prof-avatar-col { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 4px; }
.prof-avatar-wrap .avatar-hero { width: 132px; height: 132px; font-size: 56px; }
.prof-avatar-ops { display: flex; gap: 6px; flex-direction: column; width: 100%; }
.prof-upload-label { display: block; text-align: center; cursor: pointer; }
.prof-tip { font-size: 12px; text-align: center; }
.prof-fields { display: flex; flex-direction: column; gap: 14px; }
.prof-locked { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; background: #f1f5f9; border-radius: 12px; }
.prof-locked .input { background: #f8fafc; color: var(--ink2); cursor: not-allowed; }
.prof-actions { display: flex; gap: 10px; margin-top: 8px; }

@media (max-width: 680px) {
  .prof-grid { grid-template-columns: 1fr; }
  .prof-locked { grid-template-columns: 1fr; }
  .prof-avatar-col { flex-direction: row; gap: 16px; }
  .prof-avatar-wrap .avatar-hero { width: 84px; height: 84px; font-size: 36px; }
}

/* ================= 底部导航（触控标签栏） =================
   v16：条目改为「按内容宽度、自动折行」，菜单变多时排成两行，
   不再把 10 个标签硬挤在一行里（文字不再被压扁/重叠）
*/
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-content: center;
  row-gap: 1px;
  padding-bottom: env(safe-area-inset-bottom);
}
.navtab {
  flex: 1 1 auto; min-width: 64px; padding: 9px 4px 7px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink3); font-size: 11.5px; font-weight: 800;
  text-align: center;
}
.navtab .nti { font-size: 21px; line-height: 1; transition: transform .15s; }
.navtab .ntl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navtab.on { color: var(--blue); }
.navtab.on .nti { transform: translateY(-2px); }
.navtab:active { opacity: .6; }

/* 宽屏（iPad 横屏 / Mac）：变为悬浮胶囊 dock */
@media (min-width: 1024px) {
  .tabbar {
    left: 50%; right: auto; bottom: 18px;
    transform: translateX(-50%);
    border: 1px solid var(--line); border-radius: 24px;
    box-shadow: var(--sh2);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    min-width: 400px; max-width: calc(100vw - 32px);
    justify-content: center;
  }
  .navtab {
    flex: 0 1 auto; min-width: 0;
    flex-direction: row; gap: 6px;
    padding: 9px 15px; border-radius: 16px; font-size: 13px;
  }
  .navtab .nti { font-size: 18px; }
  .navtab.on {
    background: var(--grad); color: #fff;
    box-shadow: var(--grad-shadow);
  }
  .navtab.on .nti { transform: none; }
}

/* ================= 显示模式（手动切换，覆盖自动判断） ================= */
/* 🖥️ 电脑模式：顶部导航 + 紧凑布局，隐藏底部标签栏 */
[data-uimode="desk"] .tabbar { display: none; }
[data-uimode="desk"] .topnav { display: flex; }
[data-uimode="desk"] .page { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
[data-uimode="desk"] .mode-switch button[data-m="desk"] { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); }
[data-uimode="desk"] .mode-switch button[data-m="touch"] { background: none; color: var(--ink3); box-shadow: none; }

/* 📱 iPad 触控模式：任何屏宽都使用底部大标签栏 + 大触控目标 */
[data-uimode="touch"] .topnav { display: none; }
[data-uimode="touch"] .tabbar {
  left: 0; right: 0; width: auto; bottom: 0; transform: none;
  border: 0; border-top: 1px solid var(--line); border-radius: 0;
  box-shadow: 0 -6px 24px rgba(31, 60, 100, .07);
  padding: 0 0 env(safe-area-inset-bottom); min-width: 0; max-width: none;
}
[data-uimode="touch"] .navtab {
  flex: 1 1 auto; min-width: 64px;
  flex-direction: column; gap: 2px;
  padding: 8px 4px 7px; border-radius: 0; font-size: 11.5px;
}
[data-uimode="touch"] .navtab .nti { font-size: 21px; }
[data-uimode="touch"] .navtab .ntl { white-space: nowrap; }
/* 宽屏触控（iPad 横屏 / 桌面触控）：图标与文字横排，条目按需折行 */
@media (min-width: 1024px) {
  [data-uimode="touch"] .navtab {
    flex-direction: row; gap: 6px;
    padding: 10px 13px; font-size: 13px;
  }
  [data-uimode="touch"] .navtab .nti { font-size: 18px; }
}
[data-uimode="touch"] .navtab.on { background: none; color: var(--blue); box-shadow: none; }
[data-uimode="touch"] .navtab.on .nti { transform: translateY(-2px); }
[data-uimode="touch"] .page { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
[data-uimode="touch"] .mode-switch button[data-m="touch"] { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); }
[data-uimode="touch"] .mode-switch button[data-m="desk"] { background: none; color: var(--ink3); box-shadow: none; }
/* touch 模式强制触控目标大小（即使鼠标操作） */
[data-uimode="touch"] .btn { min-height: 46px; }
[data-uimode="touch"] .btn-sm { min-height: 38px; }
[data-uimode="touch"] .input { padding: 12px 13px; }
[data-uimode="touch"] .tab { padding: 11px 18px; }
[data-uimode="touch"] .cal-cell { min-height: 60px; }
[data-uimode="touch"] .cal-nav-btn { width: 46px; height: 46px; }

/* ================= 页面骨架 ================= */
.page {
  max-width: 1080px; margin: 0 auto;
  padding: 10px 18px calc(104px + env(safe-area-inset-bottom));
}
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin: 6px 0 14px; flex-wrap: wrap;
}
.page-head h2 { font-size: 21px; font-weight: 900; letter-spacing: .3px; position: relative; display: inline-block; padding-bottom: 7px; }
.page-head h2::after {
  content: ''; position: absolute; left: 1px; bottom: 0;
  width: 36px; height: 6px; border-radius: 999px;
  background: var(--grad); opacity: .8;
}
.page-sub { color: var(--ink2); font-size: 13px; margin-top: 3px; }
.head-actions, .head-ops { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================= 按钮（可爱胶囊风） ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 0;
  font-size: 14.5px; font-weight: 800; font-family: var(--font);
  color: var(--ink2); background: #f1f6fc;
  cursor: pointer; line-height: 1.35; white-space: nowrap;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s, opacity .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.93); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(74, 155, 255, .42); }
.btn-primary:disabled { box-shadow: none; }
.btn-ghost { background: #fff; box-shadow: var(--sh); }
.btn-ghost:hover { box-shadow: var(--sh2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { box-shadow: 0 6px 16px rgba(255, 107, 107, .35); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 999px; }
.btn-big { padding: 14px 24px; font-size: 16px; border-radius: 999px; }
.btn-block { width: 100%; }
.btn-link { background: none; color: var(--blue); }
.link { color: var(--blue); font-weight: 700; cursor: pointer; }
.link-danger { color: var(--red); font-size: 13px; font-weight: 700; cursor: pointer; margin-left: 10px; background: none; border: 0; }

/* ================= 徽标 / 学科标签 ================= */
.badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.b-gray { background: #f1f6fc; color: var(--ink2); }
.b-blue { background: var(--tint); color: #2b6ecf; }
.b-green { background: #eafaf4; color: #179a6d; }
.b-orange { background: #fff3ec; color: #e08200; }
.b-red { background: #ffeef0; color: var(--red); }
.subject-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
}
.s-math { background: var(--tint); color: #2b6ecf; }
.s-chi { background: #fff0f3; color: #e0566b; }
.s-eng { background: #eafaf4; color: #179a6d; }
.s-phy { background: #eef0ff; color: #6a66e8; }
.s-chem { background: #fff3ec; color: #e08200; }
.s-bio { background: #e8f8f0; color: #189a72; }
.s-his { background: #f3edfd; color: #9257d8; }
.s-geo { background: #e8f6f6; color: #17989e; }
.s-pol { background: #ffeef0; color: #e0566b; }
.s-other { background: #f1f6fc; color: var(--ink2); }
.s-note { background: #fff3e0; color: #b45309; }

/* ================= 卡片 ================= */
.card {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--sh);
  margin-bottom: 14px;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 13px; flex-wrap: wrap;
}
.card-head h3 { font-size: 16.5px; font-weight: 900; display: flex; align-items: center; gap: 7px; }
.hint { color: var(--ink3); font-size: 12.5px; }
.muted { color: var(--ink3); font-size: 13px; }

/* ================= 统计卡片 ================= */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-grid-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card {
  background: #fff; border-radius: 20px;
  padding: 15px 8px; box-shadow: var(--sh); text-align: center;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--sh2); }
.stat-value { font-size: 27px; font-weight: 900; line-height: 1.15; }
.stat-label { color: var(--ink2); font-size: 12.5px; font-weight: 800; margin-top: 3px; }
.stat-sub { color: var(--ink3); font-size: 11.5px; margin-top: 1px; }
/* 可爱粉彩底色 */
.st-blue { background: #f0f7ff; }
.st-green { background: #eefaf5; }
.st-orange { background: #fff5ec; }
.st-indigo { background: #f0f0ff; }
.st-purple { background: #f6f0fd; }
.st-amber { background: #fff9e8; }
.st-gray { background: #f4f7fa; }
.st-blue .stat-value { color: #2b6ecf; }
.st-green .stat-value { color: #179a6d; }
.st-orange .stat-value { color: #e08200; }
.st-indigo .stat-value { color: #7a72ff; }
.st-purple .stat-value { color: #9257d8; }
.st-amber .stat-value { color: #d99a00; }
.st-gray .stat-value { color: #8fa1b5; }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; color: var(--ink3); font-weight: 800; font-size: 12px;
  padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid #f4f7fb; vertical-align: middle; }
.table tbody tr:hover { background: #f8fbfe; }
.table tbody tr:last-child td { border-bottom: none; }
.td-title { font-weight: 800; max-width: 260px; }
.td-mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink2); }
.td-desc { max-width: 220px; color: var(--ink2); }

/* 完成率 */
.rate { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.rate-bar {
  height: 10px; border-radius: 99px;
  background: linear-gradient(90deg, #4a9bff, #22c993);
  min-width: 3px; transition: width .5s cubic-bezier(.2, .9, .3, 1.2);
}
.rate span { font-size: 12.5px; font-weight: 900; color: var(--blue); white-space: nowrap; }
.rate-mini { flex: 1; max-width: 120px; background: #eaf0f7; border-radius: 99px; }
.rate-mini .rate-bar { background: linear-gradient(90deg, #4a9bff, #8b7bff); }
.rate-text { font-size: 12.5px; color: var(--ink2); font-weight: 700; white-space: nowrap; }

/* ================= 任务卡片 ================= */
.task-cards { display: flex; flex-direction: column; gap: 12px; }
.task-card {
  background: #fff; border-radius: 18px;
  box-shadow: var(--sh); padding: 16px 18px;
  display: flex; align-items: center; gap: 16px;
  transition: box-shadow .18s, transform .12s;
}
.task-card:hover { box-shadow: var(--sh2); }
.task-card:active { transform: scale(.99); }
.task-card-link { cursor: pointer; }
.task-card-main { flex: 1; min-width: 0; }
.task-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.task-card-title { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.task-card-meta { color: var(--ink3); font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; }
.dl-ok { color: var(--ink3); }
.dl-urgent { color: var(--red); font-weight: 800; }
.dl-expired { color: var(--ink3); }
.dl-none { color: var(--ink3); }
.task-card-progress { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.task-card-actions { display: flex; gap: 8px; flex-shrink: 0; }
.task-card-go { font-size: 22px; color: var(--ink3); flex-shrink: 0; }
.task-content { color: var(--ink); white-space: normal; margin-bottom: 12px; font-size: 15px; line-height: 1.75; }
.task-meta-line {
  display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink2); font-size: 13px;
  border-top: 1px dashed var(--line); padding-top: 12px;
}

/* ================= 工具栏 / Tabs ================= */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.toolbar-hint { color: var(--ink3); font-size: 13px; font-weight: 700; margin-left: auto; }
.tool-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tool-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  padding: 9px 17px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .78); box-shadow: var(--sh);
  color: var(--ink2); font-size: 14px; font-weight: 800; cursor: pointer;
  font-family: var(--font); transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), background .15s;
}
.tab:active { transform: scale(.96); }
.tab.active { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); }

/* ================= 表单 ================= */
.form-card { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.field-full { grid-column: 1 / -1; }
.field { margin-bottom: 4px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin: 10px 0 6px; color: var(--ink2); }
.input {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 13px;
  font-size: 16px; font-family: var(--font);
  background: #fbfdff; color: var(--ink); outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--blue); }
.input-sm { width: auto; min-width: 140px; padding: 9px 12px; font-size: 14px; border-radius: 12px; }
textarea.input { resize: vertical; line-height: 1.6; }
select.input { cursor: pointer; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.radio { display: flex; align-items: center; gap: 6px; font-size: 14.5px; cursor: pointer; }
.radio input { accent-color: var(--blue); width: 17px; height: 17px; }

/* 选择行 */
.chk-row {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 8px 10px; border-radius: 12px;
}
.chk-row:hover { background: #f4f8fc; }
.chk-row input, .stu-cb, .cls-cb { accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
.chk-inline { display: inline-flex; margin-right: 4px; }
.chk-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chk-info { display: flex; flex-direction: column; line-height: 1.3; }
.chk-info b { font-size: 13.5px; }
.chk-info i { font-size: 11.5px; color: var(--ink3); font-style: normal; }
.stu-ops { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.stu-list {
  max-height: 260px; overflow-y: auto;
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: 7px; background: #fbfdff;
}
.section-card { background: #fbfdff; }
.attach-now { margin-top: 8px; font-size: 13px; color: var(--ink2); }
.attach-now a { margin: 0 4px; }

/* 文件列表 */
.file-list-head { font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; background: #f6f9fd; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 7px; font-size: 13.5px;
}
.file-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.submission-view p { margin-bottom: 8px; }
.answer-box {
  background: #f6f9fd; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px; margin-bottom: 10px; white-space: normal; line-height: 1.7;
}

/* 提示条 */
.alert { padding: 11px 14px; border-radius: 13px; font-size: 13.5px; margin-top: 12px; font-weight: 700; }
.alert-warn { background: #fff8e6; color: #a06a00; border: 1px solid #ffe1a6; }
.warn-text { color: var(--red); font-size: 13px; font-weight: 700; }
.ok-text { color: #179a6d; font-weight: 800; }
.row-fail { color: var(--red); font-size: 12.5px; }

/* 密码结果框 */
.pwd-box {
  font-family: ui-monospace, Menlo, monospace; font-size: 19px; font-weight: 700;
  text-align: center; letter-spacing: 2px;
  background: #f4f8fc; border: 1.5px dashed #c9d8ec; border-radius: 12px;
  padding: 13px; margin: 9px 0; word-break: break-all;
}
.pwd-result p { font-size: 13.5px; margin: 5px 0; }
.batch-done {
  background: #eafaf4; border: 1.5px solid #bdebd7; color: #179a6d;
  border-radius: 13px; padding: 13px; font-size: 14px; font-weight: 700;
}

/* ================= 学习 APP 卡片 ================= */
.tips-card {
  display: flex; gap: 11px; align-items: center;
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
  border: 2px solid #cfe4ff; color: var(--ink2); font-size: 13.5px;
}
.tips-card span { font-size: 22px; }
.tips-card b { color: #1d4f8f; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.app-grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.app-card {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border-radius: 18px; padding: 14px; box-shadow: var(--sh);
  transition: box-shadow .18s, transform .12s; position: relative;
}
.app-card:hover { box-shadow: var(--sh2); }
.app-card:active { transform: scale(.985); }
.app-card-lg { flex-direction: column; align-items: flex-start; gap: 11px; }
.app-icon {
  width: 50px; height: 50px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.app-icon-letter {
  background: var(--grad); color: #fff; font-weight: 900; font-size: 21px;
  box-shadow: var(--grad-shadow);
}
.app-info { min-width: 0; flex: 1; }
.app-info b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-link, .app-link-text {
  font-size: 12px; color: var(--blue); word-break: break-all;
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-link-text { color: var(--ink3); margin-top: 2px; }
.app-open {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0; font-weight: 900; box-shadow: var(--grad-shadow);
}
.app-ops { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; }
.pf-list { display: flex; flex-direction: column; gap: 14px; }
.pf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pf-meta { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.pf-meta span { font-size: 12px; color: var(--ink3); }
.pf-student { padding: 16px 18px; }
.icon-preview {
  width: 86px; height: 86px; border-radius: 18px; overflow: hidden;
  border: 1.5px dashed #c9d8ec; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; background: #fbfdff;
}
.icon-preview img { width: 100%; height: 100%; object-fit: cover; }
.icon-ph { color: var(--ink3); font-size: 12px; }

/* 双列布局 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.list-vertical { display: flex; flex-direction: column; gap: 9px; }
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 14px;
  color: var(--ink); background: #fff; box-shadow: var(--sh);
  transition: box-shadow .15s;
}
.list-item:hover { box-shadow: var(--sh2); }
.list-item-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.list-item-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* ================= 弹窗 ================= */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 35, 55, .45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadeIn .18s ease;
}
.modal {
  background: #fff; border-radius: 22px; width: 100%; max-width: 480px;
  max-height: 86vh; overflow-y: auto; box-shadow: var(--sh2);
  animation: popUp .25s ease;
}
.modal-lg { max-width: 640px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 17px; font-weight: 900; }
.modal-x {
  border: none; background: #f1f6fc; width: 32px; height: 32px; border-radius: 50%;
  font-size: 17px; cursor: pointer; color: var(--ink2); line-height: 1;
}
.modal-x:hover { background: #e3ecf7; }
.modal-body { padding: 16px 20px; }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.modal-actions .btn { flex: none; min-width: 96px; }
/* v105：长表单弹窗（智能体创建/编辑）——底部按钮吸底，滚到哪都能看到「存草稿 / 发布」 */
.modal-sticky-actions .modal-actions {
  position: sticky; bottom: 0; z-index: 3;
  background: inherit; box-shadow: 0 -8px 16px rgba(20, 35, 55, .06);
}
.modal-actions .btn[disabled] { opacity: .55; cursor: default; }
.modal-actions .btn[disabled]:hover { transform: none; }
.confirm-modal h3 { padding: 20px 20px 0; font-size: 17px; font-weight: 900; }
.confirm-text { padding: 10px 20px; color: var(--ink2); font-size: 14.5px; line-height: 1.7; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ================= Toast ================= */
.toast-box {
  position: fixed; top: 14%; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  background: rgba(32, 48, 63, .93); color: #fff;
  padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 800;
  opacity: 0; transform: translateY(-12px);
  transition: all .25s; max-width: 86vw; box-shadow: var(--sh2); text-align: center;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: rgba(23, 130, 90, .95); }
.toast-error { background: rgba(214, 69, 69, .95); }

/* ================= 空态 / 加载 ================= */
.empty { text-align: center; padding: 42px 20px; color: var(--ink3); font-size: 14.5px; }
.empty-icon { font-size: 46px; margin-bottom: 10px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 42px; color: var(--ink3); }
.spinner {
  width: 22px; height: 22px; border: 3px solid #dbe6f2;
  border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 登录页（紫色科技风） ================= */
.login-wrap {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
  /* 深紫科技风背景（回归原视觉）。氛围光斑仅作装饰且无 backdrop-filter，不影响卡片清晰度 */
  background:
    radial-gradient(ellipse at 16% 10%, rgba(255, 92, 242, .38), transparent 55%),
    radial-gradient(ellipse at 84% 88%, rgba(110, 86, 255, .5), transparent 60%),
    linear-gradient(135deg, #2d1c70 0%, #4a2cc9 48%, #6b3ce7 100%);
  color: #fff;
}
/* 背景氛围光斑（渲染于卡片之后，纯装饰） */
.login-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(40px); pointer-events: none;
  animation: floaty 14s ease-in-out infinite;
}
.login-bg-orb1 { width: 300px; height: 300px; background: #ff5cf2; top: -110px; right: -90px; opacity: .5; }
.login-bg-orb2 { width: 360px; height: 360px; background: #6e56ff; bottom: -150px; left: -130px; opacity: .45; animation-delay: -5s; }
.login-bg-orb3 { width: 210px; height: 210px; background: #4cd0ff; top: 44%; left: 56%; opacity: .3; animation-delay: -9s; }

.login-card {
  position: relative; z-index: 1;
  background: #fff;                       /* 纯白实底，避免 backdrop-filter 在低端/特殊浏览器渲染异常导致整卡糊掉 */
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(33, 18, 92, .35), 0 6px 14px rgba(33, 18, 92, .18);
  width: 100%; max-width: 420px;
  padding: 36px 28px 28px;
  color: #2a1a64;
  /* 去除 popUp 动画：弹性曲线 cubic-bezier(0.34, 1.56, 0.64, 1) 在某些 Chromium 内核（企业微信/钉钉 webview）动画结束后会停在非整数 transform 缩放值，子像素渲染导致整卡模糊。改用纯 fadeIn 入场。 */
  animation: fadeIn .25s ease-out;
}

.login-hero { text-align: center; margin-bottom: 26px; }
.login-logo {
  width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 22px;
  background: linear-gradient(135deg, #7b5cff 0%, #ff5cf2 100%);
  color: #fff; font-size: 30px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(123, 92, 255, .42);
  animation: floaty 5s ease-in-out infinite;
}
.login-logo svg { width: 38px; height: 38px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.login-hero h1 {
  font-size: 26px; font-weight: 900; letter-spacing: 1.5px;
  background: linear-gradient(90deg, #4a2cc9, #ff5cf2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-subtitle { color: #6b5fa3; font-size: 13.5px; margin-top: 6px; letter-spacing: .3px; }

/* 角色选择卡 */
.login-roles { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.login-role {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(245, 240, 255, .9));
  border: 1px solid rgba(123, 92, 255, .15);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  user-select: none;
}
.login-role:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 92, 255, .35);
  box-shadow: 0 12px 24px rgba(91, 60, 231, .25);
}
.login-role:active { transform: scale(.98); }
.login-role.on { box-shadow: 0 0 0 3px rgba(123, 92, 255, .25), 0 12px 24px rgba(91, 60, 231, .25); }
.login-role-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.login-role-icon svg { width: 26px; height: 26px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-role-icon-teacher { background: linear-gradient(135deg, #4a2cc9, #7b5cff); box-shadow: 0 6px 14px rgba(74, 44, 201, .35); }
.login-role-icon-student { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 6px 14px rgba(16, 185, 129, .35); }
.login-role-text { flex: 1; min-width: 0; }
.login-role-text b { display: block; font-size: 16px; font-weight: 800; color: #2a1a64; }
.login-role-text span { display: block; font-size: 12.5px; color: #7d72b8; margin-top: 3px; letter-spacing: .2px; }
.login-role-arrow {
  font-size: 26px; color: #b5a5e8; font-weight: 300; line-height: 1;
  transition: transform .18s, color .18s;
}
.login-role:hover .login-role-arrow { transform: translateX(4px); color: #7b5cff; }

/* 账号密码表单（折叠态） */
.login-form { display: flex; flex-direction: column; gap: 6px; animation: fadeUp .35s ease-out; }
.login-form[hidden] { display: none; }
.login-back {
  align-self: flex-start; border: 0; background: transparent;
  color: #7b5cff; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 4px 0; margin-bottom: 4px; font-family: var(--font);
}
.login-back:hover { color: #4a2cc9; }
.login-form .field label { color: #2a1a64; font-weight: 700; font-size: 13px; }
.login-form .input {
  background: #f6f3ff; border-color: rgba(123, 92, 255, .25);
}
.login-form .input:focus {
  background: #fff; border-color: #7b5cff;
  box-shadow: 0 0 0 4px rgba(123, 92, 255, .15);
}
.login-error { color: #d33; font-size: 13px; min-height: 18px; text-align: center; font-weight: 700; }
.btn-block { width: 100%; padding: 13px 18px; font-size: 15px; }

/* 钉钉扫码按钮（绿色长条 + 渐变光晕） */
.btn-dingtalk {
  width: 100%; margin-top: 18px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #21c871 0%, #07d97e 100%);
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1px;
  cursor: pointer; font-family: var(--font);
  box-shadow: 0 12px 24px rgba(33, 200, 113, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-dingtalk svg { width: 22px; height: 22px; }
.btn-dingtalk:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(33, 200, 113, .45);
}
.btn-dingtalk:active:not(.disabled) { transform: scale(.98); }
.btn-dingtalk.disabled {
  background: linear-gradient(135deg, #9aa5b1 0%, #b9c1cd 100%);
  cursor: not-allowed; box-shadow: 0 6px 14px rgba(154, 165, 177, .25);
}

/* 管理员 fallback */
.login-fallback { text-align: center; margin-top: 14px; }
.login-fallback a {
  color: #7d72b8; font-size: 12.5px; text-decoration: none; font-weight: 700;
  border-bottom: 1px dashed rgba(125, 114, 184, .4); padding-bottom: 1px;
}
.login-fallback a:hover { color: #4a2cc9; border-color: #4a2cc9; }

/* 协议提示 */
.login-terms {
  text-align: center; color: #7d72b8; font-size: 11.5px;
  margin-top: 18px; line-height: 1.6;
}
.login-terms a { color: #5b3ce7; text-decoration: none; border-bottom: 1px solid rgba(91, 60, 231, .35); padding-bottom: 1px; }
.login-terms a:hover { color: #4a2cc9; border-color: #4a2cc9; }

/* 钉钉扫码弹窗 */
.dd-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 12, 60, .55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s ease-out;
}
/* 关键：HTML 的 [hidden] 属性优先级必须高于 .dd-mask 的 display:flex，否则遮罩默认覆盖全屏 */
.dd-mask[hidden] { display: none !important; }
.dd-panel {
  width: 92%; max-width: 360px;
  background: #fff; color: #2a1a64;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: popUp .35s cubic-bezier(.34, 1.56, .64, 1);
}
.dd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #2d1c70, #5b3ce7);
  color: #fff; font-weight: 800; font-size: 15px;
}
.dd-close {
  border: 0; background: rgba(255, 255, 255, .2); color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.dd-close:hover { background: rgba(255, 255, 255, .35); }
.dd-body { padding: 22px 20px 18px; text-align: center; }
.dd-qr-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 220px; height: 220px; margin: 0 auto 14px;
  border-radius: 18px; background: linear-gradient(135deg, #f6f3ff, #ece4ff);
  border: 1px dashed rgba(123, 92, 255, .35);
}
.dd-qr-wrap.dd-qr-bind-mode { width: auto; height: auto; padding: 18px; border-style: solid; }
.dd-spinner { color: #7d72b8; font-size: 13px; }
.dd-error { color: #d33; font-size: 13px; padding: 16px; }
.dd-tip { font-size: 13px; color: #7d72b8; margin-bottom: 12px; line-height: 1.6; }
.dd-tip-ok { color: #10b981; font-weight: 700; }
.dd-tip-bind { color: #4a2cc9; font-weight: 700; }
.dd-tip-expired { color: #d33; font-weight: 700; }
.dd-actions { display: flex; justify-content: center; gap: 10px; }
.dd-bind-form { width: 100%; max-width: 280px; text-align: left; }
.dd-bind-tip { font-size: 12.5px; color: #7d72b8; margin-bottom: 10px; text-align: center; }
.dd-bind-form .field label { color: #2a1a64; font-weight: 700; font-size: 12.5px; }

@keyframes popUp { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   学生端 · 任务行事历
   ============================================================ */

/* ---- 问候横幅（渐变 hero） ---- */
.cal-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px; padding: 19px 22px;
  background: linear-gradient(135deg, #5aa9ff 0%, #7f8cff 55%, #a77bff 100%);
  border-radius: 26px; color: #fff;
  box-shadow: 0 12px 28px rgba(90, 140, 255, .32);
}
.cal-hero::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .13); top: -110px; right: -60px;
}
.cal-hero::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255, 255, 255, .10); bottom: -70px; left: 30px;
}
.cal-hello { position: relative; z-index: 1; }
.cal-hello h2 { font-size: 20px; font-weight: 900; letter-spacing: .3px; }
.cal-hello p { color: rgba(255, 255, 255, .92); font-size: 13.5px; margin-top: 4px; }
.cal-hello p b { color: #fff; font-size: 16px; }
.cal-chips { display: flex; gap: 9px; position: relative; z-index: 1; }
.cal-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; font-weight: 800; color: #fff;
}
.cal-chip b { font-size: 17px; }
.cal-chip.c-todo b { color: #ffe9c9; }
.cal-chip.c-done b { color: #d3ffe9; }

/* ---- 日历卡片 ---- */
.cal-card { padding: 18px 18px 14px; }
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 13px;
}
.cal-title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-title { font-size: 19px; font-weight: 900; letter-spacing: .5px; }
.cal-today-btn {
  border: 0; background: #f1f6fc; color: var(--ink2);
  font-size: 12.5px; font-weight: 800; padding: 7px 14px; border-radius: 999px;
  cursor: pointer; font-family: var(--font); box-shadow: var(--sh);
  transition: transform .12s;
}
.cal-today-btn:active { transform: scale(.94); }
.cal-nav-btn {
  width: 40px; height: 40px; border-radius: 13px; border: 0;
  background: #fff; color: var(--ink2); font-size: 21px; line-height: 1;
  cursor: pointer; font-family: var(--font); box-shadow: var(--sh);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.cal-nav-btn:active { transform: scale(.92); }

.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px;
}
.cal-week span {
  text-align: center; font-size: 12px; font-weight: 800; color: var(--ink3);
  padding: 4px 0;
}
.cal-week span:first-child, .cal-week span:last-child { color: var(--pink); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { min-height: 54px; border-radius: 14px; border: 2.5px solid transparent; padding: 0; }
.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: #f5f9fd; cursor: pointer; font-family: var(--font);
  transition: transform .12s, background .15s, border-color .15s;
  padding: 4px 2px; width: 100%; height: 100%; border-radius: 14px;
}
.cal-day:active { transform: scale(.93); }
.cal-day.has-task { background: #eef6ff; }
.cal-day.is-today { border-color: #ffc93f; background: #fff8e6; }
.cal-day.is-selected { border-color: var(--blue); background: var(--tint); }
.cal-day.is-today .cal-num {
  background: var(--grad); color: #fff; border-radius: 50%;
  min-width: 27px; height: 27px;
  display: flex; align-items: center; justify-content: center;
}
.cal-num { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1; }
.cal-dots { display: flex; align-items: center; gap: 3px; height: 8px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.cal-dot-note { border-radius: 2px; }
.cal-more { font-size: 10px; color: var(--ink3); font-style: normal; font-weight: 800; margin-left: 1px; }
.cal-tip { text-align: center; color: var(--ink3); font-size: 12px; margin-top: 13px; }

/* ---- 单日时间线 ---- */
.day-card { padding: 18px 20px; }
.day-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.day-head h3 { font-size: 17.5px; font-weight: 900; }
.day-week { color: var(--ink3); font-size: 13px; font-weight: 700; }
.day-head-ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.timeline { position: relative; display: flex; flex-direction: column; }
.timeline::before {
  content: ''; position: absolute; left: 51px; top: 18px; bottom: 18px;
  width: 2px; background: #e4ecf4; border-radius: 2px;
}
.tl-item {
  display: flex; align-items: center; gap: 13px; padding: 12px 8px;
  border-radius: 14px; color: var(--ink); position: relative;
}
.tl-time {
  width: 52px; text-align: center; display: flex; flex-direction: column;
  line-height: 1.3; flex-shrink: 0; position: relative; z-index: 1;
}
.tl-time b { font-size: 14.5px; font-weight: 900; color: var(--ink2); }
.tl-time i { font-size: 10px; color: var(--ink3); font-style: normal; }
.tl-dot {
  width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0;
  border: 3px solid #fff; box-shadow: 0 0 0 1.5px #dbe6f2;
  position: relative; z-index: 1; margin-left: 18px;
}
.tl-dot-note { background: #ff9f43 !important; border-radius: 4px; }
.tl-card {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px;
  background: #fff; border: 1.5px solid transparent;
  border-radius: 16px; padding: 13px 15px; box-shadow: var(--sh);
  transition: box-shadow .15s, border-color .15s;
}
.tl-item:hover .tl-card { box-shadow: var(--sh2); }
.tl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-title { font-size: 15.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-meta { font-size: 12.5px; color: var(--ink3); }
.tl-go { font-size: 21px; color: var(--ink3); flex-shrink: 0; font-weight: 700; }
.tl-withdrawn .tl-card { background: #fbfcfe; border-style: dashed; border-color: var(--line); }
.tl-withdrawn .tl-title { color: var(--ink3); text-decoration: line-through; }
.withdrawn-hint { margin-top: 10px; }
.tl-note .tl-card { border-color: #ffe1a6; background: #fffaf0; }
.tl-note .tl-card:hover { border-color: #ffc93f; }
.tl-done .tl-card { opacity: 0.62; }
.tl-done .tl-title { text-decoration: line-through; color: var(--ink3); }

/* 提醒事项操作 */
.note-check { font-size: 20px; background: none; border: none; cursor: pointer; padding: 2px 4px; line-height: 1; }
.note-ops { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.note-ops button {
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); font-size: 15px;
  box-shadow: var(--sh); transition: transform .12s, border-color .15s;
}
.note-ops button:active { transform: scale(.92); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

/* ---- 大按钮（提交作业） ---- */
.btn-big { padding: 14px 22px; font-size: 16px; border-radius: 15px; }
.form-actions-big { gap: 12px; }
.form-actions-big .btn { flex: 1; min-height: 50px; font-size: 16px; }

/* ================= 应用内提醒横幅 ================= */
.remind-box {
  position: fixed; top: 16px; right: 16px; z-index: 1200;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px; width: calc(100vw - 32px);
}
.remind-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1.5px solid #ffd98a; border-left: 5px solid #ff9f43;
  border-radius: 16px; padding: 14px; box-shadow: 0 10px 30px rgba(31, 60, 100, .18);
  animation: remindIn .35s ease;
}
@keyframes remindIn { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
.remind-icon { font-size: 26px; line-height: 1.2; }
.remind-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.remind-title { font-size: 15px; font-weight: 800; }
.remind-time { font-size: 12px; font-weight: 800; color: #b45309; }
.remind-note { font-size: 12px; color: var(--ink3); }
.remind-ops { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.remind-fit { border-color: #b6e3d4; border-left-color: #18a87e; }
.remind-fit .remind-time { color: #0f7a5a; }

/* ================= 课程表 ================= */
.sched-guide { text-align: center; padding: 48px 24px; }
.sched-guide-icon { font-size: 52px; margin-bottom: 10px; }
.sched-guide h3 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.sched-guide p { color: var(--ink2); margin-bottom: 6px; font-size: 14px; }
.sched-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sched-grid { display: grid; gap: 8px; min-width: 640px; }
.sched-day-head {
  text-align: center; font-weight: 800; padding: 10px 0; border-radius: 12px;
  background: #f2f6fa; color: var(--ink2); font-size: 13.5px;
}
.sched-day-head.is-today { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); }
.sched-time {
  font-size: 12px; font-weight: 800; color: var(--ink3);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px 2px; line-height: 1.35;
}
.sched-time > b { font-weight: 900; color: var(--ink2); }
.sched-time > small { display: block; font-size: 11px; font-weight: 700; color: var(--ink3); }
.cls-src-hint {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px;
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  background: var(--tint); color: var(--blue); border: 1px solid var(--line);
}
.sched-cell {
  border-radius: 14px; padding: 11px 6px; text-align: center;
  display: flex; flex-direction: column; gap: 2px; min-height: 70px;
  justify-content: center; box-shadow: var(--sh);
}
.sched-cell b { font-size: 15px; font-weight: 900; }
.sched-cell span { font-size: 11px; opacity: .82; font-weight: 700; }
.sched-empty {
  min-height: 70px; border-radius: 14px;
  background: #f5f9fd; border: 1.5px dashed #e0e8f2;
}
.upload-box { text-align: center; padding: 20px 14px; border: 2px dashed #c9d8ec; border-radius: 16px; background: #fbfdff; }
.upload-icon { font-size: 40px; }
.upload-main { font-size: 16px; font-weight: 900; margin: 6px 0 4px; }
.upload-sub { font-size: 12px; color: var(--ink3); margin-bottom: 13px; line-height: 1.6; }
.upload-status { margin-top: 10px; font-size: 13px; color: #b45309; font-weight: 700; }
.upload-preview { max-width: 100%; max-height: 220px; border-radius: 12px; margin-top: 10px; border: 1px solid var(--line); }
.upload-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink3); font-size: 13px; font-weight: 700; }
.upload-divider::before, .upload-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.upload-paste { display: flex; flex-direction: column; gap: 10px; }
.upload-paste .btn { align-self: flex-start; }
/* Word 错题本导入区（导入弹窗首屏，蓝色强调与 CSV 区区分） */
.upload-word { border-color: #93b8e8; background: #f2f7ff; }
.upload-word .upload-main { color: #1d5fbf; }
.upload-word .upload-icon { filter: drop-shadow(0 3px 6px rgba(37,99,235,.25)); }
.paste-example {
  background: #f6f9fd; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-size: 12px; line-height: 1.7; color: var(--ink2);
  overflow-x: auto; margin: 0; white-space: pre;
}

/* ================= 响应式 ================= */
@media (max-width: 900px) {
  .stat-grid, .stat-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .mode-switch button { padding: 7px 9px; }
  .mode-switch .msl { display: none; }
}
@media (max-width: 720px) {
  .page { padding: 8px 14px calc(96px + env(safe-area-inset-bottom)); }
  .topbar { padding: 12px 14px 2px; }
  .brand-txt b { font-size: 17px; }
  .user-sub { display: none; }
  .page-head h2 { font-size: 19px; }
  .stat-grid, .stat-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat-value { font-size: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .task-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .task-card-actions { width: 100%; }
  .task-card-actions .btn { flex: 1; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 15px 16px; }
  .cal-hero { padding: 16px 18px; }
  .cal-chips { width: 100%; }
  .cal-chip { flex: 1; justify-content: center; }
  .cal-cell { min-height: 46px; }
  .cal-day .cal-num { font-size: 13.5px; }
  .tl-time { width: 42px; }
  .tl-time b { font-size: 13px; }
  .tl-dot { margin-left: 12px; width: 11px; height: 11px; }
  .timeline::before { left: 42px; }
  .tl-item { gap: 8px; }
  .tl-title { white-space: normal; }
  .form-actions-big { flex-direction: column; }
  .cal-tip { display: none; }
  .sched-grid { min-width: 560px; }
  .sched-time { font-size: 11px; }
  .sched-cell b { font-size: 13.5px; }
  .field-row { flex-direction: column; gap: 0; }
  .remind-box { top: 10px; right: 10px; }
  .modal-actions .btn { flex: 1; }
}
@media (max-width: 420px) {
  .app-grid, .app-grid-sm { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid-5 { grid-template-columns: 1fr 1fr; }
}

/* ---- 触屏（iPad）适配 ---- */
@media (pointer: coarse) {
  .btn { min-height: 46px; }
  .btn-sm { min-height: 38px; }
  .input { padding: 12px 13px; font-size: 16px; }
  .tab { padding: 11px 18px; font-size: 14.5px; }
  .cal-cell { min-height: 60px; }
  .cal-day .cal-num { font-size: 16px; }
  .cal-nav-btn { width: 46px; height: 46px; }
  .tl-item { padding: 14px 8px; gap: 12px; }
  .tl-time b { font-size: 15px; }
  .tl-card { padding: 14px 16px; }
  .list-item { padding: 13px 14px; }
  .modal-x { width: 38px; height: 38px; font-size: 19px; }
  .form-actions-big .btn { min-height: 56px; font-size: 17px; }
  .note-ops button { width: 44px; height: 44px; font-size: 17px; }
  .note-check { font-size: 23px; }
  .remind-ops .btn { min-height: 38px; }
  .sched-cell { min-height: 78px; padding: 12px 6px; }
  .sched-empty { min-height: 78px; }
  .upload-box .btn { min-height: 50px; font-size: 16px; }
  .navtab { padding: 11px 0 9px; }
}

/* iPad 竖屏 / 平板宽度 */
@media (min-width: 768px) and (max-width: 1023px) {
  .page { padding: 10px 22px calc(100px + env(safe-area-inset-bottom)); }
  .cal-card { padding: 20px 22px 16px; }
  .cal-grid { gap: 8px; }
  .cal-cell { min-height: 66px; }
  .cal-day .cal-num { font-size: 16px; }
}

/* ============================================================
   错题本模块（学生端 我的错题本 / 教师端 班级错题本概览）
   ============================================================ */
.btn-green {
  background: linear-gradient(135deg, #2ecf8f, #1fb37a);
  color: #fff; box-shadow: 0 5px 14px rgba(31, 179, 122, .32);
}
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31, 179, 122, .4); }
.btn-green:active { transform: scale(.93); }

/* tab 上的数量小圆点 */
.tab { display: inline-flex; align-items: center; gap: 6px; }
.tab-n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); color: var(--blue);
  font-size: 11.5px; font-weight: 900; display: inline-flex;
  align-items: center; justify-content: center;
}
.tab.active .tab-n { background: rgba(255, 255, 255, .92); color: #6a5cff; }

/* 错题卡片 */
.mk-list { display: flex; flex-direction: column; gap: 12px; }
.mk-card {
  background: #fff; border-radius: 18px; box-shadow: var(--sh);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 9px;
  transition: box-shadow .16s, transform .12s;
}
.mk-card:hover { box-shadow: var(--sh2); }
.mk-done { background: linear-gradient(180deg, #fbfefa, #fff); }
.mk-done .mk-content { color: var(--ink2); }
.mk-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-src { font-size: 11.5px; color: var(--ink3); font-weight: 800; margin-left: auto; }
.mk-src-imp { color: #b45309; }
.mk-content {
  font-size: 15.5px; font-weight: 800; line-height: 1.75; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.mk-wrong { font-size: 13px; color: #c25a6a; font-weight: 700; }
.mk-wrong s { opacity: .75; }
.mk-analysis { font-size: 13px; color: var(--ink2); font-weight: 700; }
.mk-ans { border-radius: 12px; background: #f2f9f4; padding: 2px 14px; font-size: 13.5px; }
.mk-ans summary {
  cursor: pointer; color: #179a6d; font-weight: 800; font-size: 13px;
  padding: 9px 0; list-style: none; display: flex; align-items: center; gap: 6px;
  user-select: none;
}
.mk-ans summary::before { content: '📖'; }
.mk-ans summary::-webkit-details-marker { display: none; }
.mk-ans[open] summary { border-bottom: 1px dashed #d4ecdf; }
.mk-ans div { padding: 10px 0 12px; line-height: 1.8; color: var(--ink2); font-weight: 600; white-space: pre-wrap; word-break: break-word; }
.mk-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 2px;
  border-top: 1px dashed var(--line); padding-top: 11px;
}
.mk-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.mk-date { color: var(--ink3); font-style: normal; font-weight: 600; }
.mk-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-del { color: var(--red) !important; }
.mk-dots { display: inline-flex; gap: 4px; align-items: center; margin-left: 2px; }
.mk-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #e4ecf4; display: inline-block; transition: background .2s, transform .2s;
}
.mk-dot.on { background: linear-gradient(135deg, #2ecf8f, #1fb37a); box-shadow: 0 2px 6px rgba(31, 179, 122, .45); }

/* 练习弹窗 */
.mk-pq {
  background: #f6f9fe; border: 1.5px solid #e3ecf6; border-radius: 14px;
  padding: 13px 15px; margin-bottom: 4px;
}
.mk-q { font-size: 15.5px; font-weight: 800; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.mk-ref {
  border-radius: 14px; background: #f0faf4; border: 1.5px solid #cdeeda;
  padding: 13px 15px; margin-top: 12px;
}
.mk-ref b { color: #179a6d; font-size: 13.5px; }
.mk-ref p { margin-top: 6px; color: var(--ink2); font-size: 14px; line-height: 1.8; font-weight: 600; white-space: pre-wrap; word-break: break-word; }
.mk-eval-tip { margin-top: 13px; font-weight: 800; font-size: 13.5px; color: var(--ink2); }
.mk-eval-btns { display: flex; gap: 10px; margin-top: 9px; }
.mk-eval-btns .btn { flex: 1; min-height: 44px; font-size: 15px; }
.mk-master-area {
  margin-top: 13px; border-radius: 14px; background: #fff9e8;
  border: 1.5px dashed #ffd76e; padding: 12px 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.mk-master-area[hidden] { display: none; }

/* ===== 教师端：分布条 / 排行榜 / 钻取 ===== */
.stat-grid-6 { grid-template-columns: repeat(6, 1fr); }
.legend { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink3); font-weight: 800; }
.lg { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.lg-m { background: #2ecf8f; }
.lg-r { background: #b7d7ff; }
.dist-row {
  display: grid; grid-template-columns: 108px minmax(120px, 1fr) auto auto;
  gap: 12px; align-items: center; padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.dist-row:last-child { border-bottom: none; }
.dist-name { display: flex; }
.dist-bar {
  height: 12px; border-radius: 999px; overflow: hidden;
  background: #eef3f9; display: flex;
}
.dist-seg { height: 100%; display: inline-block; transition: width .5s ease; }
.seg-m { background: linear-gradient(90deg, #22c993, #2ecf8f); border-radius: 999px 0 0 999px; }
.seg-r { background: #b7d7ff; }
.seg-m:first-child:last-child { border-radius: 999px; }
.dist-info { font-size: 12.5px; color: var(--ink2); white-space: nowrap; font-weight: 700; }
.dist-rate { font-size: 14px; font-weight: 900; color: #179a6d; min-width: 44px; text-align: right; }

.tm-stu-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.tm-stu {
  display: flex; align-items: center; gap: 12px; padding: 12px 6px;
  border-bottom: 1px dashed #edf2f8; cursor: pointer; flex-wrap: wrap;
  border-radius: 12px; transition: background .13s;
}
.tm-stu:last-child { border-bottom: none; }
.tm-stu:hover { background: #f4f9fe; }
.tm-stu:active { transform: scale(.995); }
.tm-rank {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  background: #f1f6fc; color: var(--ink2); font-size: 12.5px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}
.tm-stu:nth-child(-n + 4) .tm-rank { background: #fff3d6; color: #b45309; }
.tm-stu-main { flex: 1; min-width: 130px; display: flex; flex-direction: column; line-height: 1.35; }
.tm-stu-main b { font-size: 14.5px; }
.tm-stu-main span { font-size: 11.5px; color: var(--ink3); }
.tm-chip {
  font-size: 12px; font-weight: 800; color: var(--ink2);
  background: #f2f6fb; border-radius: 999px; padding: 5px 11px; white-space: nowrap;
}
.tm-chip.c-orange { background: #fff3ec; color: #e08200; }
.tm-chip.c-green { background: #eafaf4; color: #179a6d; }
.tm-go { color: var(--blue); font-weight: 800; font-size: 13px; white-space: nowrap; }
.rate-mini-m { flex: 1; max-width: 130px; }
.tm-rate-big {
  font-size: 15px; font-weight: 900; color: #179a6d; white-space: nowrap;
  background: #eafaf4; border-radius: 999px; padding: 6px 14px;
}
.tm-drill-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 16px 18px;
}
.tm-drill-head .pf-meta { flex: 1; min-width: 150px; }

.alert-ok { background: #eafaf4; color: #179a6d; border: 1px solid #cdeeda; }

@media (max-width: 1100px) {
  .stat-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .dist-row { grid-template-columns: 96px minmax(100px, 1fr); }
  .dist-info, .dist-rate { grid-column: 2; }
  .dist-rate { text-align: left; margin-top: -6px; }
}
@media (max-width: 720px) {
  .stat-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .tm-stu { gap: 9px; }
  .rate-mini-m { display: none; }
  .mk-eval-btns { flex-direction: column; }
}

/* ============================================================
   当日课程 + 课前提醒（每日任务首页集成）
   ============================================================ */
.cal-chip.c-cls b { color: #d9ecff; }

/* 单日面板顶部课程区块 */
.cls-today { margin-bottom: 14px; }
.cls-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.cls-head h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0; }
.cls-head-ops { display: flex; align-items: center; gap: 10px; }
.cls-head-ops .btn { padding: 4px 10px; font-size: 12px; }
.cls-list {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fbfdff;
}
.cls-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-bottom: 1px solid var(--line); transition: background .2s;
}
.cls-row:last-child { border-bottom: 0; }
.cls-row.cls-next { background: linear-gradient(90deg, #eef6ff, #f4f9ff); }
.cls-row .cls-chip {
  font-style: normal; font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 4px 10px; white-space: nowrap; flex-shrink: 0; min-width: 46px; text-align: center;
}
.cls-main { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-shrink: 0; }
.cls-main b { font-size: 13px; color: var(--ink); }
.cls-time { font-size: 12px; color: var(--ink2); white-space: nowrap; }
.cls-meta {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: var(--ink3);
}
.cls-state {
  font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px;
  white-space: nowrap; background: #f1f4f9; color: var(--ink3);
}
.cls-state.cls-st-done { background: #eef1f6; color: #a6b4c6; }
.cls-state.cls-st-going { background: #e2f9f1; color: #12a97c; }
.cls-state.cls-st-next { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); }
.cls-state.cls-st-wait { background: var(--tint); color: #4a9bff; }
/* v20b：课程表未配置时间的课程按「默认时段窗口」展示的课程标记 */
.cls-state.cls-st-default { background: #fff4e5; color: #c47a12; }
.cls-time.cls-time-na { color: #c47a12; font-weight: 700; }
.cls-win-hint {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #fff4e5; color: #c47a12; white-space: nowrap;
}
.cls-hidden-hint { margin: 8px 2px 0; font-size: 12px; color: var(--ink3); }
html[data-theme="jade"] .cls-state.cls-st-default { background: #f0e7d6; color: #8a6a2a; }
html[data-theme="jade"] .cls-time.cls-time-na { color: #8a6a2a; }
html[data-theme="jade"] .cls-win-hint { background: #f0e7d6; color: #8a6a2a; }

/* 空课表引导（日历首页） */
.cls-empty {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff8ec; border: 1px dashed #ffcf8d; color: #a0712f;
  border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-size: 12.5px;
}
.cls-empty .btn { white-space: nowrap; }

/* 课前提醒设置弹窗 */
.cls-pref-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-bottom: 14px;
  background: #fbfdff; cursor: pointer;
}
.cls-pref-row:has(input:checked) { border-color: #bcd9ff; background: #f2f8ff; }
.cls-pref-text { display: flex; flex-direction: column; gap: 3px; }
.cls-pref-text b { font-size: 14px; color: var(--ink); }
.cls-pref-text small { font-size: 12px; color: var(--ink3); }
.cls-pref-row input[type="checkbox"] {
  width: 44px; height: 24px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #dbe4ee; border-radius: 999px; position: relative; transition: background .2s;
  flex-shrink: 0; margin: 0;
}
.cls-pref-row input[type="checkbox"]::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: left .2s;
}
.cls-pref-row input[type="checkbox"]:checked { background: var(--blue); }
.cls-pref-row input[type="checkbox"]:checked::after { left: 23px; }

/* 窄屏（iPad 竖屏 / 手机）课程行纵向紧凑 */
@media (max-width: 720px) {
  .cls-row { flex-wrap: wrap; row-gap: 4px; }
  .cls-row .cls-chip { order: 1; }
  .cls-row .cls-main { order: 2; }
  .cls-row .cls-state { order: 3; margin-left: auto; }
  .cls-row .cls-meta { order: 4; flex-basis: 100%; padding-left: 0; }
}

/* ================= 🏃 健康页 ================= */
.page-sub { color: var(--ink3); font-size: 13px; margin: 2px 0 14px; }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.health-card-wide { grid-column: 1 / -1; }
.card-tag {
  background: linear-gradient(135deg, #ffe2a8, #ffd06b); color: #7a4b00;
  font-weight: 900; font-size: 13px; padding: 4px 11px; border-radius: 999px;
}
.remind-block { border-top: 1px dashed var(--bd); margin: 14px 0 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.remind-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.remind-label { font-weight: 800; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.remind-hint { font-weight: 500; font-size: 11.5px; color: var(--ink3); }
.remind-ctl { display: flex; align-items: center; gap: 10px; }
.input-time { width: 92px; padding: 6px 8px; }
.input-min { width: 70px; padding: 6px 8px; }
.ex-min-label { color: var(--ink3); font-size: 13px; }

/* iOS 风格开关 */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #cfd8e3; border-radius: 999px; transition: .2s; }
.switch .slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: .2s; }
.switch input:checked + .slider { background: var(--blue); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* 运动记录 */
.ex-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ex-add select { flex: 1; min-width: 150px; }
.ex-log-list { display: flex; flex-direction: column; gap: 8px; }
.ex-empty { color: var(--ink3); font-size: 13px; padding: 18px; text-align: center; background: var(--bg2); border-radius: 12px; }
.ex-more-wrap { text-align: center; padding: 10px 0 4px; }
.ex-more-btn { width: 100%; max-width: 360px; }
.ex-more-btn:disabled { opacity: .6; cursor: not-allowed; }
.ex-log-list:empty + .ex-more-wrap { display: none; }
.ex-log-row { display: flex; align-items: center; gap: 10px; background: var(--bg2); border-radius: 12px; padding: 9px 12px; }
.ex-ico { font-size: 18px; }
.ex-name { font-weight: 800; font-size: 14px; }
.ex-meta { color: var(--ink3); font-size: 12.5px; }
.ex-kcal { margin-left: auto; font-weight: 900; color: #e08200; font-size: 13.5px; }
.ex-del { border: none; background: transparent; color: var(--ink3); font-size: 18px; cursor: pointer; line-height: 1; padding: 0 2px; }
.ex-del:hover { color: #d6455a; }

/* AI 餐饮建议 */
.meal-metrics { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mm { background: linear-gradient(135deg, #e8f3ff, #f3ecff); border-radius: 14px; padding: 8px 16px; text-align: center; }
.mm b { display: block; font-size: 19px; font-weight: 900; color: #2b6ecf; }
.mm span { font-size: 11.5px; color: var(--ink3); }
.meal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.meal-card { background: var(--bg2); border-radius: 14px; padding: 12px; border: 2px solid transparent; }
.meal-highlight { background: linear-gradient(135deg, #fff6e6, #ffeccd); border-color: #ffcf7a; box-shadow: 0 4px 14px rgba(255,180,60,.25); }
.meal-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.meal-name { font-weight: 900; font-size: 15px; }
.meal-kcal { font-weight: 900; color: #e08200; font-size: 13.5px; }
.meal-items { display: flex; flex-direction: column; gap: 5px; margin-bottom: 7px; }
.meal-item { background: #fff; border-radius: 8px; padding: 5px 9px; font-size: 12.5px; font-weight: 700; }
.meal-item.muted { color: var(--ink3); font-weight: 500; }
.meal-sub { font-size: 11.5px; color: var(--ink3); }
.meal-tips { margin-top: 14px; background: #eafaf4; border-radius: 12px; padding: 10px 14px; color: #137a55; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.tips-ico { font-size: 15px; }
.meal-empty { color: var(--ink3); font-size: 13.5px; padding: 22px; text-align: center; background: var(--bg2); border-radius: 12px; }

/* ---------- AI 照片诊断 ---------- */
.diag-disclaimer { background: #fff4e5; border: 1px solid #ffd9a8; color: #9a5b00; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; font-weight: 600; line-height: 1.5; margin-bottom: 12px; }
.diag-disclaimer b { color: #c0392b; }
.diag-camera { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.diag-camera .btn-ghost { align-self: flex-start; }
.diag-preview-wrap { position: relative; align-self: center; width: 100%; max-width: 280px; }
.diag-preview { width: 100%; border-radius: 14px; border: 2px solid var(--bd); display: block; }
.diag-retake { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; cursor: pointer; }
.diag-loading { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--ink3); font-size: 13px; padding: 8px; }
.diag-loading[hidden] { display: none; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--bd); border-top-color: var(--blue); border-radius: 50%; display: inline-block; animation: sptspin .7s linear infinite; }
@keyframes sptspin { to { transform: rotate(360deg); } }

.diag-overall { background: linear-gradient(135deg, #eef5ff, #f3eeff); border-radius: 14px; padding: 12px 14px; font-weight: 900; font-size: 15px; color: var(--ink); margin: 14px 0 12px; display: flex; gap: 8px; align-items: center; }
.diag-ov-ico { font-size: 18px; }
.dim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dim-card { background: var(--bg2); border-radius: 14px; padding: 12px; border: 1px solid var(--bd); display: flex; flex-direction: column; gap: 8px; }
.dim-top { display: flex; align-items: center; gap: 6px; }
.dim-ico { font-size: 16px; }
.dim-title { font-weight: 900; font-size: 14px; }
.dim-status { margin-left: auto; font-size: 11.5px; font-weight: 900; }
.dim-score { --c: var(--blue); background: #eef3f8; background: color-mix(in srgb, var(--c) 12%, #fff); display: flex; align-items: baseline; justify-content: center; gap: 3px; border-radius: 12px; padding: 10px; }
.dim-num { font-size: 30px; font-weight: 900; color: var(--c); line-height: 1; }
.dim-unit { font-size: 12px; color: var(--ink3); font-weight: 700; }
.dim-sec { font-size: 12px; }
.dim-h { font-weight: 900; color: var(--ink2); margin-bottom: 3px; }
.dim-h-sug { color: #137a55; }
.dim-li { color: var(--ink2); line-height: 1.45; padding: 1px 0; }
.dim-li.muted { color: var(--ink3); }

.diag-history { margin-top: 14px; border-top: 1px dashed var(--bd); padding-top: 10px; }
.diag-history-head { font-weight: 900; font-size: 13.5px; color: var(--ink2); margin-bottom: 8px; display: flex; align-items: center; }
.link-btn { background: none; border: none; color: var(--blue); font-weight: 700; font-size: 12px; cursor: pointer; margin-left: auto; }
.diag-history-list { display: flex; flex-direction: column; gap: 8px; }
.dh-row { display: flex; align-items: center; gap: 10px; background: var(--bg2); border-radius: 12px; padding: 9px 12px; }
.dh-main { flex: 1; min-width: 0; }
.dh-ov { font-weight: 800; font-size: 13.5px; color: var(--ink); }
.dh-scores { font-size: 12.5px; font-weight: 800; display: flex; gap: 12px; margin: 3px 0; }
.dh-time { font-size: 11px; color: var(--ink3); }
.dh-del { width: 26px; height: 26px; border-radius: 50%; border: none; background: #ffe3e3; color: #e74c3c; font-size: 15px; cursor: pointer; flex: 0 0 auto; }

@media (max-width: 720px) {
  .health-grid { grid-template-columns: 1fr; }
  .meal-grid { grid-template-columns: repeat(2, 1fr); }
  .dim-grid { grid-template-columns: 1fr; }
}

/* ============== F3 课程表批量管理 ============== */
.sched-hero {
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(90,168,255,.10), rgba(127,123,255,.08));
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.sched-hero-txt { flex: 1 1 320px; min-width: 0; }
.sched-hero-txt p { margin: 0 0 10px; color: var(--ink); line-height: 1.7; }
.sched-hero-list {
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.9;
}
.sched-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 180px;
}
.sched-hero-actions .btn { white-space: nowrap; }

.sched-classes { margin-top: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--ink);
}
.chip i { color: var(--ink3); font-style: normal; font-size: 11.5px; }

/* 模态框里的导入工具 */
.sched-import-wrap { display: flex; flex-direction: column; gap: 12px; }
.sched-import-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sched-import-toolbar .hint { font-size: 12px; color: var(--ink3); }
.sched-import-config {
  background: var(--bg2);
  border-radius: 12px;
  padding: 12px 14px;
}
.sched-import-config .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 16px;
}
.sched-import-config .field label {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  color: var(--ink2);
  font-weight: 700;
}
.sched-import-status {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg2);
}
.sched-errors {
  background: #fff7f5;
  border: 1px solid #ffd6cd;
  border-radius: 12px;
  padding: 12px 14px;
}
.sched-preview {
  background: #f6fbff;
  border: 1px solid #d6e8ff;
  border-radius: 12px;
  padding: 12px 14px;
}
.sched-done {
  background: #f1fbf3;
  border: 1px solid #c5e8cb;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.row-warn { background: #fffbe6; }
.row-fail { background: #fff1ef; }

@media (max-width: 720px) {
  .sched-hero { flex-direction: column; }
  .sched-hero-actions { width: 100%; }
}

/* ============== F5 师生留言讨论 ============== */
.link-back { font-size: 13px; color: var(--ink3); text-decoration: none; }
.link-back:hover { color: var(--brand); }

/* chip 系列（复用 F3 的 .chip 并扩展颜色） */
.chip-blue   { background: var(--tint); color: #2f6fb5; border-color: #cfe2ff; }
.chip-purple { background: #f3eaff; color: #6f4eb8; border-color: #e1d3ff; }
.chip-green  { background: #e9f8ee; color: #2a8a4d; border-color: #c4ebcf; }
.chip-red    { background: #ffeaea; color: #c64545; border-color: #ffcfcf; }
.chip-ghost  { background: var(--bg2); color: var(--ink2); border-color: var(--line); }

/* 列表卡片 */
.disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.disc-card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.disc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(50,90,160,.10); border-color: var(--brand); }
.disc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.disc-title { margin: 4px 0 6px; font-size: 15.5px; }
.disc-desc { margin: 0 0 8px; font-size: 12.5px; color: var(--ink3); line-height: 1.5; max-height: 3em; overflow: hidden; }
.disc-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink3); font-size: 12px; }
.disc-meta span { white-space: nowrap; }

/* 详情头部 */
.disc-head + .hint { margin-left: 6px; }
.card-head-right { display: flex; gap: 8px; flex-wrap: wrap; }
.disc-desc-full {
  background: var(--bg2);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 8px 0 14px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.7;
}

/* 聊天 */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg2);
  border-radius: 14px;
  padding: 12px;
  max-height: 60vh;
  overflow-y: auto;
}
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.msg-avatar { flex: 0 0 auto; }
.msg-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 0;
  flex: 1;
  position: relative;
}
.msg-teacher .msg-body { background: var(--tint); border-color: #cfe2ff; }
.msg-student .msg-body { background: #fff; }
.msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--ink3);
}
.msg-meta b { color: var(--ink); font-size: 13.5px; }
.msg-role { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--bg2); color: var(--ink2); }
.msg-time { color: var(--ink3); }
.msg-content { margin-top: 4px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.msg-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .2s;
}
.msg-body:hover .msg-actions { opacity: 1; }
.msg-withdrawn .msg-content { color: var(--ink3); font-style: italic; }

.chat-input { margin-top: 10px; }
.chat-input textarea { resize: vertical; min-height: 56px; }
.chat-input-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

/* 成员管理 / 学生选择 */
.student-pick {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.student-pick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
}
.student-pick-row:hover { background: var(--bg2); }
.student-pick-row i { color: var(--ink3); font-size: 11.5px; font-style: normal; }

.dm-list { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px; max-height: 320px; overflow-y: auto; }
.dm-grid { display: flex; flex-direction: column; gap: 4px; }
.dm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg2);
}
.dm-row.teacher { background: var(--tint); }
.dm-info { flex: 1; min-width: 0; }
.dm-info b { display: block; font-size: 13.5px; }
.dm-info i { color: var(--ink3); font-size: 11.5px; font-style: normal; }
.dm-invite { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.dm-invite .input { flex: 1; }

.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

@media (max-width: 720px) {
  .card-head-right { width: 100%; }
  .chat { max-height: 50vh; }
}

/* ============== F6 推送 APP ============== */
.pa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.pa-card {
  display: flex;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  align-items: flex-start;
  transition: transform .15s, box-shadow .15s;
}
.pa-card.installed { background: #f1fbf3; border-color: #c5e8cb; }
.pa-card .app-icon { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto; object-fit: cover; }
.pa-card .app-icon-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.pa-info { flex: 1; min-width: 0; }
.pa-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.pa-head b { font-size: 14.5px; color: var(--ink); }
.pa-link {
  display: inline-block;
  color: var(--brand);
  font-size: 12px;
  text-decoration: none;
  margin-bottom: 4px;
  word-break: break-all;
}
.pa-link:hover { text-decoration: underline; }
.pa-desc { margin: 4px 0 0; font-size: 12.5px; color: var(--ink2); line-height: 1.5; }
.pa-meta { margin: 6px 0 0; font-size: 11.5px; color: var(--ink3); }
.pa-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex: 0 0 auto;
}
.pa-actions .btn { white-space: nowrap; }
.pa-actions .btn.warn { color: #c64545; }

.check { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.check input { margin: 0; }

@media (max-width: 720px) {
  .pa-card { flex-wrap: wrap; }
  .pa-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .pa-actions .btn { flex: 1 1 80px; }
}

/* ============= 巡检模块 ============= */
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.task-card { background: var(--bg2, #fff); border-radius: 12px; padding: 14px 16px; box-shadow: var(--sh1, 0 1px 4px rgba(0,0,0,0.04)); border: 1px solid var(--line, #e7eef6); display: flex; flex-direction: column; gap: 10px; transition: all .2s; }
.task-card:hover { box-shadow: var(--sh2, 0 4px 14px rgba(0,0,0,0.08)); transform: translateY(-2px); }
.task-card.card-overdue { border-color: #f5b5b5; background: #fff8f8; }
.task-card .task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.task-card .task-title { font-size: 16px; font-weight: 700; color: var(--ink1, #233247); }
.task-card .task-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink3, #6b7c93); font-size: 13px; }
.task-card .task-note { background: #f7faff; border-left: 3px solid #5aa8ff; padding: 6px 10px; border-radius: 4px; font-size: 13px; color: var(--ink2, #455a72); }
.task-card .task-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 8px; }
.stat-card { background: linear-gradient(135deg, #fff, #f5f9ff); border-radius: 12px; padding: 14px 16px; box-shadow: var(--sh1, 0 1px 4px rgba(0,0,0,0.04)); border: 1px solid var(--line, #e7eef6); text-align: center; }
.stat-card.s-green { background: linear-gradient(135deg, #f0fbf6, #eafaf4); }
.stat-card.s-red { background: linear-gradient(135deg, #fff5f5, #ffeef0); }
.stat-card.s-blue { background: linear-gradient(135deg, var(--tint), var(--tint-2)); }
.stat-card.s-orange { background: linear-gradient(135deg, #fff7f0, #fff3ec); }
.stat-card.s-gray { background: linear-gradient(135deg, #f6f8fa, #eef1f5); }
.stat-card .stat-value { font-size: 26px; font-weight: 800; color: var(--ink1, #233247); }
.stat-card .stat-label { font-size: 13px; color: var(--ink3, #6b7c93); margin-top: 4px; }

/* 清空名单弹窗:模式选择卡片 */
.clear-modes { display: flex; flex-direction: column; gap: 10px; }
.mode-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line, #e7eef6); border-radius: 10px; cursor: pointer; transition: all .15s; background: #fff; }
.mode-card:hover { border-color: var(--primary, #2b6ecf); box-shadow: var(--sh1, 0 1px 4px rgba(0,0,0,0.06)); }
.mode-card.on { border-color: var(--primary, #2b6ecf); background: var(--tint); box-shadow: 0 0 0 1px var(--primary, #2b6ecf) inset; }
.mode-card .mode-icon { font-size: 22px; line-height: 1.4; }
.mode-card .mode-body { flex: 1; }
.mode-card .mode-tag { display: inline-block; margin-left: 8px; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #eafaf4; color: #179a6d; font-weight: 600; vertical-align: 2px; }
.mode-card .mode-tag.danger { background: #ffeef0; color: #d6455a; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-bar .input { padding: 6px 10px; min-width: 100px; }
.filter-bar select.input { min-width: 110px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line, #e7eef6); margin-bottom: 14px; flex-wrap: wrap; }
.tabs .tab { padding: 8px 14px; cursor: pointer; color: var(--ink3, #6b7c93); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 6px 6px 0 0; transition: all .15s; }
.tabs .tab:hover { background: #f5f9ff; color: var(--ink1, #233247); }
.tabs .tab.on { color: var(--primary, #2b6ecf); border-bottom: 2px solid var(--primary, #2b6ecf); margin-bottom: -2px; font-weight: 700; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line, #e7eef6); border-radius: 22px; cursor: pointer; transition: all .15s; user-select: none; background: #fff; font-size: 14px; }
.radio-pill:hover { border-color: var(--primary, #2b6ecf); }
.radio-pill input[type=radio] { margin: 0; accent-color: var(--primary, #2b6ecf); }
.radio-pill:has(input:checked) { background: var(--tint); border-color: var(--primary, #2b6ecf); color: var(--primary, #2b6ecf); font-weight: 600; }

.req { color: #d6455a; font-weight: 700; margin-left: 2px; }
.text-red { color: #d6455a; font-weight: 600; }
.muted { color: var(--ink3, #6b7c93); font-size: 12.5px; }

.bar-chart { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; }
.bar-row { display: grid; grid-template-columns: 80px 1fr 70px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-label { color: var(--ink2, #455a72); font-weight: 500; }
.bar-track { position: relative; height: 16px; background: #f1f6fc; border-radius: 8px; overflow: hidden; }
.bar-done { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #5cd2a0, #179a6d); border-radius: 8px 0 0 8px; transition: width .4s; }
.bar-over { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff8a8a, #d6455a); border-radius: 8px 0 0 8px; transition: width .4s; opacity: 0.85; }
.bar-done + .bar-over { opacity: 0.7; }
.bar-val { text-align: right; color: var(--ink3, #6b7c93); font-variant-numeric: tabular-nums; }
.legend { margin-top: 8px; font-size: 12px; color: var(--ink3, #6b7c93); display: flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
.lg-done { background: #179a6d; }
.lg-over { background: #d6455a; }

.tbl-wrap { overflow-x: auto; }
.pager { display: flex; align-items: center; gap: 10px; margin-top: 12px; justify-content: flex-end; font-size: 13px; color: var(--ink3, #6b7c93); }
.pager .btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ================= 导航分组下拉（BYOD 巡检 / 学习类APP 等二级菜单） =================
   v16：面板更宽、留白更足、图标带圆角底板，展开有轻微位移淡入动效
*/
.nv-group { position: relative; display: flex; align-items: center; }
.nv-group-tab { position: relative; flex: 1 1 auto; display: flex; align-items: stretch; min-width: 64px; }
.nv-group-tab .navtab { width: 100%; }
.nv-caret { font-size: 9px; line-height: 1; opacity: .62; margin-left: 1px; transition: transform .18s; }
.nv-group.open .nv-caret, .nv-group-tab.open .nv-caret { transform: rotate(180deg); }
.nv-group-tab.open .navtab { background: var(--tint); color: var(--blue); }
[data-uimode="touch"] .nv-group-tab.open .navtab { background: var(--tint); color: var(--blue); }
@media (min-width: 1024px) { [data-uimode="touch"] .nv-group-tab.open .navtab { background: rgba(240,246,255,.9); color: var(--blue); } }

.nv-dd {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(.98);
  min-width: 226px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 22px 48px -16px rgba(31, 60, 100, .26), 0 2px 8px rgba(31, 60, 100, .05);
  display: flex; flex-direction: column; gap: 4px; z-index: 300;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nv-dd.open {
  visibility: visible; opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.nv-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 13px 8px 8px; border-radius: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--ink2);
  text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nv-dd-item .nti {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f2f7fd; font-size: 16px; line-height: 1;
  transition: background .15s;
}
.nv-dd-item:hover { background: #f4f8fe; color: var(--blue); }
.nv-dd-item:hover .nti { background: #e4eeff; }
.nv-dd-item.on { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); }
.nv-dd-item.on .nti { background: rgba(255, 255, 255, .24); }

/* 底部触控栏里的分组：面板向上弹出（位移方向相反） */
.nv-group-tab .nv-dd { top: auto; bottom: calc(100% + 14px); transform: translateX(-50%) translateY(6px) scale(.98); }
.nv-group-tab .nv-dd.open { transform: translateX(-50%) translateY(0) scale(1); }
@media (max-width: 420px) { .nv-group-tab .nv-dd { min-width: 190px; } }

/* ================= 按周抽检人名单(周次切换) ================= */
.roster-weeks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wk-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink2);
  font-size: 13.5px; font-weight: 800; font-family: var(--font);
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s, background .15s;
}
.wk-chip .badge { font-size: 11.5px; }
.wk-chip:hover { box-shadow: var(--sh); }
.wk-chip:active { transform: scale(.95); }
.wk-chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--grad-shadow); }
[data-uimode="touch"] .wk-chip { min-height: 44px; }

/* ================= 探究助手（学生自主探究式学习） ================= */
/* 功能大厅：数据概览 + 四大功能卡片 */
.inq-hero {
  background: var(--grad); border-radius: var(--r); padding: 20px 24px;
  box-shadow: var(--grad-shadow); margin-bottom: 20px;
}
.inq-hero-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.inq-stat { display: flex; align-items: baseline; gap: 8px; color: #fff; }
.inq-stat b { font-size: 26px; font-weight: 900; }
.inq-stat span { font-size: 12.5px; opacity: .85; font-weight: 700; }

.inq-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.inq-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border-radius: var(--r); padding: 22px 20px;
  box-shadow: var(--sh); text-decoration: none; color: var(--ink);
  border: 1.5px solid transparent; position: relative; overflow: hidden;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s, border-color .18s;
}
.inq-card:hover { transform: translateY(-4px); box-shadow: var(--sh2); border-color: var(--line); }
.inq-card:active { transform: scale(.97); }
.inq-card-icon {
  width: 52px; height: 52px; border-radius: 16px; display: flex;
  align-items: center; justify-content: center; font-size: 27px; margin-bottom: 2px;
}
.inq-card b { font-size: 16.5px; font-weight: 900; }
.inq-card span { font-size: 13px; color: var(--ink2); line-height: 1.55; flex: 1; }
.inq-card em { font-style: normal; font-size: 12.5px; font-weight: 800; }
.inq-c1 .inq-card-icon { background: var(--tint); } .inq-c1 em { color: #2b6ecf; }
.inq-c2 .inq-card-icon { background: #f3eeff; } .inq-c2 em { color: #6b4bd8; }
.inq-c3 .inq-card-icon { background: #fff4e2; } .inq-c3 em { color: #c77f14; }
.inq-c4 .inq-card-icon { background: #eafaf4; } .inq-c4 em { color: #179a6d; }

/* 最近测评列表 */
.inq-recent { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; }
.inq-recent-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 14px; font-size: 13.5px;
}
.inq-recent-row:hover { background: var(--bg, #f6f9fd); }
.inq-recent-row b { flex: 1; font-weight: 800; }
.inq-recent-row .muted { font-size: 12px; }
.inq-score { font-weight: 900; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; }
.inq-score.ok { background: #eafaf4; color: #179a6d; }
.inq-score.mid { background: #fff4e2; color: #c77f14; }
.inq-score.low { background: #ffeef0; color: var(--red); }

/* 学科小圆标 */
.inq-sub-chip {
  font-style: normal; font-size: 12px; font-weight: 800; white-space: nowrap;
  background: var(--tint); color: #2b6ecf; padding: 3px 10px; border-radius: 999px;
}

/* 预习课列表 */
.inq-lesson-list { display: flex; flex-direction: column; gap: 12px; }
.inq-lesson {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--card); border-radius: var(--r); padding: 16px 20px;
  box-shadow: var(--sh); color: var(--ink);
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), box-shadow .16s;
}
.inq-lesson:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.inq-lesson:active { transform: scale(.985); }
.inq-lesson-ico {
  width: 48px; height: 48px; border-radius: 15px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: #f2f6fc;
}
.inq-lesson-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.inq-lesson-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inq-lesson-title b { font-size: 15.5px; font-weight: 900; }
.inq-lesson-goals { display: flex; flex-direction: column; gap: 3px; }
.inq-lesson-goals span { font-size: 12.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-lesson-arrow { color: var(--ink3); font-size: 22px; font-weight: 900; }

/* 预习详情 */
.inq-lesson-detail { display: flex; flex-direction: column; gap: 16px; }
.inq-goals, .inq-tasks { display: flex; flex-direction: column; gap: 10px; padding: 4px 8px 8px; }
.inq-goals li { list-style: none; font-size: 14px; font-weight: 700; color: var(--ink); }
.inq-goals li::before { content: '🎯 '; }
.inq-tasks li { list-style: none; font-size: 14px; }
.inq-tasks label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.inq-tasks input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; margin-top: 1px;
  accent-color: var(--purple); cursor: pointer;
}
.inq-tasks input:checked + span { text-decoration: line-through; color: var(--ink3); }
.inq-content { font-size: 14.5px; line-height: 1.95; color: var(--ink); padding: 2px 6px 8px; }
.inq-kws { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 10px; }
.chip-mini { font-size: 11.5px; padding: 3px 10px; }
.inq-lesson-cta {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  flex-wrap: wrap; padding: 4px 2px;
}

/* 检索 */
.inq-searchbar { display: flex; gap: 10px; padding: 14px; margin-bottom: 12px; }
.inq-searchbar .input { flex: 1; font-size: 15px; }
.inq-result-tip { margin: 6px 2px 12px; font-size: 13px; }
.inq-result { margin-bottom: 12px; }
.inq-result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.inq-result-head b { font-size: 15px; font-weight: 900; }
.inq-result-head .muted { font-size: 12px; }
.inq-summary {
  font-size: 13.5px; line-height: 1.8; color: var(--ink); background: #f6f4ff;
  border-left: 3px solid var(--purple); border-radius: 8px; padding: 10px 14px;
}
.inq-summary b { color: #6b4bd8; }

/* 小练习 */
.inq-quiz-wrap { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.inq-quiz-qhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.inq-quiz-qhead b { font-size: 13px; color: var(--ink3); }
.inq-quiz-qtext { font-size: 15px; font-weight: 800; margin: 6px 0 12px; }
.inq-quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.inq-opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-size: 14px; font-family: var(--font);
  transition: border-color .14s, background .14s, transform .12s;
}
.inq-opt i {
  font-style: normal; width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #f2f6fc; color: var(--ink2); font-weight: 900; font-size: 13px;
}
.inq-opt:hover { border-color: var(--purple); }
.inq-opt:active { transform: scale(.99); }
.inq-opt.on { border-color: var(--purple); background: #f6f4ff; }
.inq-opt.on i { background: var(--purple); color: #fff; }
.inq-quiz-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; padding: 4px 2px;
}
[data-uimode="touch"] .inq-opt { min-height: 48px; }

/* 测评报告 */
.inq-report { display: flex; flex-direction: column; gap: 6px; }
.inq-report-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 8px 4px 14px; }
.inq-ring {
  --p: 0; width: 108px; height: 108px; border-radius: 50%; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), #eef3f9 0);
  position: relative;
}
.inq-ring::before {
  content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #fff;
}
.inq-ring b { position: relative; font-size: 24px; font-weight: 900; }
.inq-ring span { position: relative; font-size: 11.5px; color: var(--ink3); font-weight: 700; }
.inq-ring.ok { background: conic-gradient(#22c993 calc(var(--p) * 1%), #eef3f9 0); }
.inq-ring.mid { background: conic-gradient(#ff9f43 calc(var(--p) * 1%), #eef3f9 0); }
.inq-ring.low { background: conic-gradient(#ff6b6b calc(var(--p) * 1%), #eef3f9 0); }
.inq-report-cmt b { font-size: 16px; font-weight: 900; }
.inq-report-cmt p { font-size: 13.5px; color: var(--ink2); margin-top: 6px; line-height: 1.7; max-width: 460px; }
.inq-report-sec { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 8px; }
.inq-report-sec h4 { font-size: 14.5px; font-weight: 900; margin-bottom: 10px; }
.inq-points { display: flex; flex-wrap: wrap; gap: 8px; }
.inq-point {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 800;
}
.inq-point.ok { background: #eafaf4; color: #179a6d; }
.inq-point.bad { background: #ffeef0; color: var(--red); }
.inq-reco {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: #f6f9fd; margin-bottom: 8px;
}
.inq-reco b { font-size: 13.5px; }
.inq-reco p { font-size: 12.5px; margin-top: 4px; line-height: 1.6; }
.inq-detail { padding: 12px 14px; border-radius: 14px; background: #f8fafd; margin-bottom: 8px; }
.inq-detail-q { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.inq-detail-qtext { font-size: 14px; font-weight: 800; margin: 8px 0 4px; }
.inq-detail p { font-size: 13px; }
.inq-detail-exp { color: #6b4bd8; font-weight: 700; margin-top: 6px; }
.t-ok { color: #179a6d; font-weight: 800; }
.t-bad { color: var(--red); font-weight: 800; }

/* 实用工具 */
.inq-calc { max-width: 520px; }
.inq-calc .input { font-size: 20px; font-weight: 800; text-align: right; letter-spacing: 1px; }
.inq-calc-history {
  display: flex; flex-direction: column; gap: 3px; min-height: 26px;
  margin: 10px 2px; max-height: 150px; overflow: auto;
}
.inq-calc-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink3); }
.inq-calc-row b { color: var(--ink2); font-weight: 800; }
.inq-calc-pad {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.inq-key {
  min-height: 52px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; font-size: 19px; font-weight: 800; font-family: var(--font);
  color: var(--ink); cursor: pointer;
  transition: transform .1s, background .12s, box-shadow .12s;
}
.inq-key:hover { background: #f2f6fc; }
.inq-key:active { transform: scale(.94); }
.inq-key-fn { background: #eef3f9; color: var(--ink2); font-size: 16px; }
.inq-key-eq { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); border: none; }

.inq-plot-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.inq-plot-bar label { font-weight: 900; font-size: 16px; }
.inq-plot-bar .input { max-width: 260px; font-size: 15px; font-weight: 700; }
.inq-plot-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.inq-canvas {
  width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line);
  touch-action: none;
}

.inq-unit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.inq-unit-row .input { min-width: 110px; }
.inq-unit-eq { font-size: 20px; font-weight: 900; color: var(--ink3); }
.inq-unit-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.inq-unit-tr {
  display: flex; justify-content: space-between; padding: 9px 14px;
  background: #f6f9fd; border-radius: 10px; font-size: 13px; font-weight: 700;
}
.inq-unit-tr span:last-child { color: var(--ink2); }

@media (max-width: 640px) {
  .inq-hero-stats { gap: 10px 22px; }
  .inq-stat b { font-size: 21px; }
  .inq-lesson { padding: 14px; gap: 12px; }
  .inq-report-top { gap: 14px; }
  .inq-unit-row .input { flex: 1; min-width: 90px; }
}

/* ================= 校园智能体模块（老师端 / 学生端 / 管理端看板） ================= */
/* 设计参照参考站：暖米底 + 白卡 + 橙主色 + pastel 彩色块 */

/* ---- 广场外壳（老师 / 学生共用） ---- */
.agplaza {
  background: var(--ag-bg);
  border-radius: 20px;
  padding: 18px 20px 28px;
  position: relative;
  overflow: hidden;
}
.agplaza::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, color-mix(in srgb, var(--ag-accent) 16%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.agplaza::after {
  content: '';
  position: absolute;
  bottom: -160px; left: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, color-mix(in srgb, var(--ag-accent-2) 20%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.agplaza > * { position: relative; z-index: 1; }

/* 顶部 header：logo + 标题 + 搜索 + 用户卡 */
.agplaza-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.agplaza-brand { display: flex; align-items: center; gap: 12px; }
.agplaza-logo {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--ag-accent) 0%, var(--ag-accent-2) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ag-accent) 35%, transparent);
}
.agplaza-title h1 {
  margin: 0; font-size: 20px; color: var(--ag-ink); font-weight: 800; letter-spacing: -.5px;
}
.agplaza-title p {
  margin: 2px 0 0; font-size: 12.5px; color: var(--ag-ink-3);
}
.agplaza-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--ag-line); border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ag-accent) 6%, transparent);
  max-width: 520px;
}
.agplaza-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--ag-ink-2); font-family: inherit;
}
.agplaza-search input::placeholder { color: var(--ag-faint); }
.agplaza-user {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--ag-line); border-radius: 14px;
  padding: 6px 12px 6px 6px;
}
.agplaza-user .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ag-warm-1), var(--ag-accent-2));
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff;
  flex: none;
}
.agplaza-user .uname { font-size: 14px; font-weight: 700; color: var(--ag-ink); line-height: 1.2; }
.agplaza-user .urole { font-size: 11.5px; color: var(--ag-accent); font-weight: 600; }

/* Tab 栏 */
.agplaza-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--ag-tab-bg); border-radius: 14px;
  padding: 6px; margin-bottom: 18px;
}
.agplaza-tab {
  border: none; background: transparent;
  font-size: 14px; padding: 9px 18px; border-radius: 10px;
  color: var(--ag-tab-ink); cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 6px;
  transition: all .15s; font-weight: 600;
}
.agplaza-tab:hover { color: var(--ag-accent); }
.agplaza-tab.on {
  background: #fff; color: var(--ag-accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ag-accent) 15%, transparent);
  position: relative;
}
.agplaza-tab.on::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: -7px;
  height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ag-accent), var(--ag-accent-2));
}

/* 5 个 pastel 统计卡 */
.agplaza-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-bottom: 18px;
}
.agplaza-stat {
  background: #fff; border-radius: 16px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 14px rgba(180, 140, 100, .08);
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}
.agplaza-stat:hover { transform: translateY(-2px); }
.agplaza-stat .ic {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none;
}
.agplaza-stat .v {
  font-size: 22px; font-weight: 800; color: var(--ag-ink); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.agplaza-stat .l { font-size: 12.5px; color: var(--ag-tab-ink); margin-top: 2px; }
.agplaza-stat.s1 .ic { background: linear-gradient(135deg, #E8E4FF, #C7BCFF); }
.agplaza-stat.s2 .ic { background: linear-gradient(135deg, var(--ag-gold-1), var(--ag-gold-2)); }
.agplaza-stat.s3 .ic { background: linear-gradient(135deg, #D8F5DD, #B0EAC0); }
.agplaza-stat.s4 .ic { background: linear-gradient(135deg, #FFE0E6, #FFC2CC); }
.agplaza-stat.s5 .ic { background: linear-gradient(135deg, var(--ag-gold-3), var(--ag-gold-4)); }

/* 学科筛选 chip + 排序 */
.agplaza-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.agplaza-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.agplaza-chip {
  border: 1.5px solid var(--ag-line); background: #fff; color: var(--ag-chip-ink);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
  font-family: inherit; font-weight: 500;
  transition: all .15s;
}
.agplaza-chip:hover { border-color: var(--ag-accent); color: var(--ag-accent); }
.agplaza-chip.on {
  background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2));
  color: #fff; border-color: transparent; font-weight: 700;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ag-accent) 30%, transparent);
}
.agplaza-sort {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--ag-line);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; color: var(--ag-chip-ink); cursor: pointer;
  font-family: inherit; font-weight: 600;
}
.agplaza-sort:hover { border-color: var(--ag-accent); color: var(--ag-accent); }

/* v106：搜索按钮 / 清空按钮（搜索框仍是一颗胶囊，按钮嵌在右端） */
.agplaza-search { padding: 6px 7px 6px 18px; gap: 6px; }
.agplaza-kw-clear {
  flex: none; border: none; background: transparent; cursor: pointer;
  color: var(--ag-faint); font-size: 13px; line-height: 1; padding: 4px 5px; border-radius: 50%;
  font-family: inherit;
}
.agplaza-kw-clear:hover { color: var(--ag-accent); background: color-mix(in srgb, var(--ag-accent) 10%, transparent); }
.agplaza-search-go {
  flex: none; border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2));
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 999px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ag-accent) 28%, transparent);
  transition: transform .12s ease, filter .12s ease;
}
.agplaza-search-go:hover { filter: brightness(1.04); }
.agplaza-search-go:active { transform: scale(.97); }

/* v106：排序下拉（默认按热度 · 最新发布 · 好评率） */
/* 工具栏原本 z-index:1 会自建层叠上下文 → 下拉菜单被后面的卡片压住点不到，这里整体抬高（仍低于 modal 的 100） */
.agplaza-toolbar.agtb { position: relative; z-index: 60; }
.agplaza-sortwrap { position: relative; flex: none; }
.agplaza-sort.open { border-color: var(--ag-accent); color: var(--ag-accent); }
.agplaza-sortmenu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 152px; padding: 6px;
  background: #fff; border: 1.5px solid var(--ag-line); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(120, 90, 50, .16);
  display: flex; flex-direction: column; gap: 2px;
}
.agplaza-sortmenu[hidden] { display: none; }
.agplaza-sortmenu button {
  border: none; background: transparent; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ag-chip-ink);
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.agplaza-sortmenu button:hover { background: color-mix(in srgb, var(--ag-accent) 9%, transparent); }
.agplaza-sortmenu button.on {
  color: var(--ag-accent); background: color-mix(in srgb, var(--ag-accent) 13%, transparent);
}

/* v106：卡片上的发布日期（仅「最新发布」排序时显示） */
.agplaza-card .ag-date { margin-left: 6px; font-size: 11px; color: var(--ag-faint); white-space: nowrap; }

/* 卡片网格 4 列 */
.agplaza-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.agplaza-card {
  background: #fff; border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(180, 140, 100, .10);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  border: 1.5px solid var(--ag-line-soft);
}
.agplaza-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(180, 140, 100, .18);
}
.agplaza-card .ci {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--ag-warm-2), var(--ag-warm-3));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex: none;
}
.agplaza-card .ci.b1 { background: linear-gradient(135deg, var(--ag-warm-2), var(--ag-warm-3)); }
.agplaza-card .ci.b2 { background: linear-gradient(135deg, #E8E4FF, #C7BCFF); }
.agplaza-card .ci.b3 { background: linear-gradient(135deg, #D8F5DD, #B0EAC0); }
.agplaza-card .ci.b4 { background: linear-gradient(135deg, #FFE0E6, #FFC2CC); }
.agplaza-card .ci.b5 { background: linear-gradient(135deg, #CFE9FF, #A5D6FF); }
.agplaza-card .ci.b6 { background: linear-gradient(135deg, var(--ag-gold-3), var(--ag-gold-4)); }
.agplaza-card .head { display: flex; gap: 12px; align-items: flex-start; }
.agplaza-card .ht { flex: 1; min-width: 0; }
.agplaza-card .name { font-size: 16px; font-weight: 700; color: var(--ag-ink); margin: 0; line-height: 1.3; }
.agplaza-card .meta { font-size: 12px; color: var(--ag-ink-3); margin-top: 4px; }
.agplaza-card .meta .subj {
  background: var(--ag-accent-soft); color: var(--ag-accent-ink); padding: 2px 8px; border-radius: 999px;
  font-weight: 600; font-size: 11px; margin-left: 4px;
}
.agplaza-card .desc {
  font-size: 13px; color: var(--ag-ink-4); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0; min-height: 42px;
}
.agplaza-card .nums {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; padding: 10px 4px;
  background: var(--ag-card-soft); border-radius: 12px;
}
.agplaza-card .nums .n {
  text-align: center;
}
.agplaza-card .nums .v { font-size: 16px; font-weight: 800; color: var(--ag-ink); font-variant-numeric: tabular-nums; }
.agplaza-card .nums .l { font-size: 11px; color: var(--ag-ink-3); margin-top: 2px; }
.agplaza-card .nums .n.rate .v { color: var(--ag-accent); }

.agplaza-card .bar {
  height: 6px; border-radius: 3px;
  background: var(--ag-track); overflow: hidden; position: relative;
}
.agplaza-card .bar .fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--ag-accent-2), var(--ag-accent));
  transition: width .5s ease;
}

.agplaza-card .acts { display: flex; gap: 6px; }
.agplaza-card .acts button {
  flex: 1; border: none; cursor: pointer; font-family: inherit;
  border-radius: 10px; padding: 8px 4px; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  transition: all .15s;
}
.agplaza-card .acts .use { background: linear-gradient(135deg, var(--ag-act-2), var(--ag-act)); color: #fff; }
.agplaza-card .acts .use:hover { box-shadow: 0 4px 12px color-mix(in srgb, var(--ag-act) 35%, transparent); transform: translateY(-1px); }
.agplaza-card .acts .up { background: var(--ag-up-bg); color: var(--ag-up-ink); }
.agplaza-card .acts .up:hover { background: var(--ag-up-bg-2); }
.agplaza-card .acts .up.on { background: var(--ag-up-on-bg); color: var(--ag-up-on-ink); }
.agplaza-card .acts .down { background: #F2EDE5; color: #8a7d6a; }
.agplaza-card .acts .down:hover { background: #E8DFD0; }
.agplaza-card .acts .down.on { background: #E0D3C0; color: #5e4f3a; }

/* 老师端管理卡片（与广场卡风格一致但操作不同） */
.agplaza-card .acts .edit { background: var(--ag-act-soft); color: var(--ag-act); }
.agplaza-card .acts .edit:hover { background: var(--ag-act-soft-2); }
.agplaza-card .acts .del { background: #FFE8EC; color: #E04866; }
.agplaza-card .acts .del:hover { background: #FFD6DD; }
.agplaza-card .acts .off { background: #F2EDE5; color: #8a7d6a; }
.agplaza-card .acts .pub { background: linear-gradient(135deg, #5BE2A0, #2EBE76); color: #fff; }
.agplaza-card .acts .pub:hover { box-shadow: 0 4px 12px rgba(46, 190, 118, .35); transform: translateY(-1px); }
.agplaza-card .acts .share { background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2)); color: #fff; }
.agplaza-card .acts .share:hover { box-shadow: 0 4px 12px color-mix(in srgb, var(--ag-accent) 35%, transparent); transform: translateY(-1px); }

/* 悬浮 + 按钮（创建智能体） */
.agplaza-fab {
  position: absolute; right: 28px; bottom: 28px;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-deep));
  color: #fff; border: none; cursor: pointer;
  font-size: 32px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ag-accent-deep) 42%, transparent);
  transition: transform .15s ease;
  z-index: 5;
}
.agplaza-fab:hover { transform: scale(1.08) rotate(90deg); }

/* 空态 */
.agplaza-empty {
  grid-column: 1 / -1;
  background: #fff; border-radius: 18px; padding: 50px 20px;
  text-align: center; color: var(--ag-faint);
  border: 1.5px dashed var(--ag-line);
}
.agplaza-empty .ic { font-size: 48px; margin-bottom: 8px; }

/* 旧 agc-* 兼容（避免破坏现有调用） */
.agc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.agc-card { background: #fff; border: 1px solid var(--ag-line-soft); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.agc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.agc-toolbar .input { max-width: 220px; }
.agc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.agc-chip {
  border: 1px solid var(--ag-line); background: #fff; color: var(--ag-chip-ink);
  border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer;
  font-family: inherit;
}
.agc-chip.on { background: linear-gradient(135deg,var(--ag-accent),var(--ag-accent-2)); color: #fff; border-color: transparent; font-weight: 600; }
.agc-icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--ag-warm-2), var(--ag-warm-3));
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.agc-card-top { display: flex; gap: 12px; align-items: flex-start; }
.agc-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agc-meta { font-size: 12.5px; color: var(--ag-ink-3); margin-top: 3px; }
.agc-tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--ag-accent-soft); color: var(--ag-accent-ink); font-weight: 600; }
.agc-desc { font-size: 13px; color: var(--ag-ink-4); line-height: 1.7; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.agc-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--ag-ink-3); }
.agc-stats b { color: var(--ag-ink); }
.agc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agc-empty { grid-column: 1 / -1; }

/* 图标选择器 */
.agpick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.agpick button {
  aspect-ratio: 1; border: 1.5px solid var(--ag-line); border-radius: 10px;
  background: #fff; font-size: 20px; cursor: pointer; transition: all .12s; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
}
.agpick button:hover { border-color: var(--ag-accent); }
.agpick button.on { border-color: var(--ag-accent); background: var(--ag-accent-soft); box-shadow: 0 0 0 1px var(--ag-accent) inset; }

/* 分享弹窗 */
.agshare-url { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.agshare-url .input { flex: 1; font-size: 13px; color: var(--ag-ink-4); }
.agshare-qr { display: flex; justify-content: center; padding: 8px 0 4px; }
.agshare-qr .qrbox { background: #fff; border: 1px solid var(--ag-line); border-radius: 14px; padding: 10px; }
.agshare-text {
  background: var(--ag-card-soft); border: 1px dashed var(--ag-line); border-radius: 12px;
  padding: 12px; font-size: 13px; line-height: 1.8; color: var(--ag-ink-4); margin-top: 12px;
}
.agshare-tip { font-size: 12px; color: var(--ag-ink-3); margin-top: 8px; }

/* 学生端打分弹窗星星 */
.agstars { display: flex; gap: 8px; justify-content: center; margin: 6px 0 14px; }
.agstars button {
  font-size: 34px; line-height: 1; background: none; border: none; cursor: pointer;
  color: #E0D8C8; transition: transform .12s, color .12s; font-family: inherit; padding: 4px;
}
.agstars button.on { color: #FFB300; }
.agstars button:active { transform: scale(1.25); }

/* ================= 管理端：智能体数据看板（蓝色科技感强化） ================= */
.agdash {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(56, 189, 248, .32) 0%, transparent 55%),
    radial-gradient(900px 480px at 100% 10%, rgba(139, 92, 246, .28) 0%, transparent 55%),
    radial-gradient(700px 360px at 50% 100%, rgba(34, 211, 238, .18) 0%, transparent 60%),
    linear-gradient(160deg, #050B1F 0%, #0A1432 45%, #0E1B45 100%);
  border-radius: 24px;
  padding: 24px;
  color: #DCE7FF;
  box-shadow: 0 30px 60px rgba(5, 11, 31, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.agdash::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 180, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, .07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}
.agdash::after {
  content: ''; position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .5), rgba(139, 92, 246, .5), rgba(34, 211, 238, .4));
  z-index: -1; filter: blur(8px); opacity: .45;
}
.agdash > * { position: relative; z-index: 1; }

.agdash-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 14px; margin-bottom: 22px;
}
.agdash-head h2 {
  margin: 0; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: .5px;
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 0 18px rgba(56, 189, 248, .45);
}
.agdash-head h2 .globe {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #38BDF8, #8B5CF6);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  box-shadow: 0 0 20px rgba(56, 189, 248, .55);
}
.agdash-head .sub {
  font-size: 13px; color: #93B5FF; margin-top: 6px; letter-spacing: .3px;
}
.agdash-head .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.agdash-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34, 211, 238, .10); border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; color: #67E8F9; font-weight: 600;
}
.agdash-pulse .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22D3EE; box-shadow: 0 0 8px #22D3EE;
  animation: agdash-pulse 1.6s ease-in-out infinite;
}
@keyframes agdash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.agdash-days { display: flex; gap: 6px; }
.agdash-days button {
  border: 1px solid rgba(140, 180, 255, .28); background: rgba(80, 120, 220, .08);
  color: #A8C2FF; border-radius: 999px; padding: 6px 14px;
  font-size: 12.5px; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.agdash-days button:hover { color: #fff; border-color: rgba(140, 180, 255, .5); }
.agdash-days button.on {
  background: linear-gradient(135deg, #38BDF8, #818CF8);
  color: #fff; border-color: transparent; font-weight: 700;
  box-shadow: 0 4px 16px rgba(56, 189, 248, .45);
}

/* 顶部 5 张核心统计卡（带渐变光晕 + 大数字） */
.agdash-stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-bottom: 18px;
}
.agstat {
  position: relative;
  background: linear-gradient(160deg, rgba(110, 160, 255, .10), rgba(110, 160, 255, .03));
  border: 1px solid rgba(140, 180, 255, .22);
  border-radius: 18px;
  padding: 18px 18px 16px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform .2s ease, border-color .2s ease;
}
.agstat:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, .55);
}
.agstat::before {
  content: ''; position: absolute;
  top: -40%; right: -30%; width: 160px; height: 160px;
  background: radial-gradient(circle, var(--agc, #38BDF8) 0%, transparent 65%);
  opacity: .25; pointer-events: none;
}
.agstat::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--agc, #38BDF8), transparent);
  box-shadow: 0 0 14px var(--agc, #38BDF8);
}
.agstat .ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  margin-bottom: 8px;
}
.agstat .v {
  font-size: 32px; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1.1;
  text-shadow: 0 0 16px var(--agc, rgba(56, 189, 248, .45));
}
.agstat .l { font-size: 13px; color: #A8C2FF; margin-top: 6px; font-weight: 600; }
.agstat .d { font-size: 11.5px; color: #6B7FBC; margin-top: 3px; }
.agstat .spark {
  margin-top: 8px; height: 22px; position: relative;
}
.agstat .spark svg { width: 100%; height: 100%; }

/* 主体两栏（趋势图 + 评分分布） */
.agdash-panels {
  display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-bottom: 14px;
}
.agpanel {
  background: linear-gradient(160deg, rgba(40, 70, 150, .40), rgba(20, 35, 90, .55));
  border: 1px solid rgba(140, 180, 255, .18);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
}
.agpanel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .6), transparent);
}
.agpanel h3 {
  font-size: 15px; color: #DCE7FF; display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-weight: 700;
}
.agpanel h3 .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #38BDF8; box-shadow: 0 0 10px #38BDF8;
}
.agpanel h3 .extra { margin-left: auto; font-size: 11.5px; color: #6B7FBC; font-weight: 500; }

/* SVG 趋势线图样式 */
.agtrend { position: relative; height: 220px; }
.agtrend svg { width: 100%; height: 100%; overflow: visible; }
.agtrend .grid line { stroke: rgba(140, 180, 255, .10); stroke-dasharray: 4 4; }
.agtrend .axis text { fill: #6B7FBC; font-size: 11px; font-family: inherit; }
.agtrend .area { fill: url(#agtrend-grad); opacity: .9; }
.agtrend .line {
  fill: none; stroke: url(#agtrend-line);
  stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, .65));
}
.agtrend .pt { fill: #38BDF8; filter: drop-shadow(0 0 6px #38BDF8); }
.agtrend .pt-h { fill: #fff; stroke: #38BDF8; stroke-width: 2; }

/* 评分分布 - 圆形环 + 横向条形 */
.agrating {
  display: flex; gap: 18px; align-items: center;
}
.agrating-ring {
  width: 130px; height: 130px; position: relative; flex: none;
}
.agrating-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.agrating-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.agrating-ring .track { stroke: rgba(140, 180, 255, .12); }
.agrating-ring .arc { transition: stroke-dashoffset 1s ease; filter: drop-shadow(0 0 8px rgba(56, 189, 248, .5)); }
.agrating-ring .center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.agrating-ring .center .v { font-size: 26px; font-weight: 900; color: #fff; line-height: 1; }
.agrating-ring .center .l { font-size: 11px; color: #A8C2FF; margin-top: 4px; }
.agrating-list { flex: 1; }
.agrating-list .row {
  display: grid; grid-template-columns: 50px 1fr 50px;
  align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px;
}
.agrating-list .row .nm { color: #A8C2FF; font-weight: 600; }
.agrating-list .row .bar {
  height: 8px; border-radius: 4px;
  background: rgba(140, 180, 255, .14); overflow: hidden;
}
.agrating-list .row .bar .fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #38BDF8, #8B5CF6);
  box-shadow: 0 0 8px rgba(56, 189, 248, .5);
}
.agrating-list .row .v { color: #DCE7FF; text-align: right; font-variant-numeric: tabular-nums; }
.agrating-list .row.r5 .bar .fill { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.agrating-list .row.r4 .bar .fill { background: linear-gradient(90deg, #34D399, #10B981); }
.agrating-list .row.r3 .bar .fill { background: linear-gradient(90deg, #38BDF8, #818CF8); }
.agrating-list .row.r2 .bar .fill { background: linear-gradient(90deg, #FB923C, #F97316); }
.agrating-list .row.r1 .bar .fill { background: linear-gradient(90deg, #F43F5E, #DC2626); }

/* 班级参与度条形 */
.agbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12.5px; }
.agbar-row .nm { width: 100px; flex: none; color: #A8C2FF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-weight: 600; }
.agbar-row .track { flex: 1; height: 10px; border-radius: 999px; background: rgba(140, 180, 255, .10); overflow: hidden; position: relative; }
.agbar-row .bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38BDF8, #8B5CF6); box-shadow: 0 0 12px rgba(56, 189, 248, .55); transition: width .6s ease; position: relative; }
.agbar-row .bar::after {
  content: ''; position: absolute; right: 0; top: -2px; bottom: -2px; width: 2px;
  background: #fff; box-shadow: 0 0 8px #fff; border-radius: 1px;
}
.agbar-row .val { width: 70px; flex: none; color: #DCE7FF; font-variant-numeric: tabular-nums; text-align: right; }
.agbar-row .val small { color: #6B7FBC; font-size: 10.5px; margin-left: 2px; }

/* 三栏：排行 / 教师榜 / 最近评价 */
.agdash-grid {
  display: grid; grid-template-columns: 2fr 1.4fr 1.6fr; gap: 14px;
}

/* 排行表 */
.agdash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.agdash-table th {
  text-align: left; color: #93B5FF; font-weight: 600;
  padding: 10px 12px; border-bottom: 1px solid rgba(140, 180, 255, .18);
  font-size: 12px; white-space: nowrap;
}
.agdash-table td {
  padding: 12px; border-bottom: 1px solid rgba(140, 180, 255, .07);
  color: #DCE7FF; vertical-align: middle;
}
.agdash-table tbody tr { position: relative; transition: background .15s; }
.agdash-table tbody tr:hover td { background: rgba(56, 189, 248, .06); }
.agdash-table .rank-no {
  width: 40px; font-weight: 900; font-style: italic;
  font-variant-numeric: tabular-nums;
}
.agdash-table tr:nth-child(1) .rank-no {
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(252, 211, 77, .6));
}
.agdash-table tr:nth-child(2) .rank-no {
  background: linear-gradient(135deg, #E5E7EB, #94A3B8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.agdash-table tr:nth-child(3) .rank-no {
  background: linear-gradient(135deg, #FB923C, #C2410C);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.agdash-table .row-medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-weight: 900; font-size: 13px; color: #fff;
}
.agdash-table tr:nth-child(1) .row-medal { background: linear-gradient(135deg, #FCD34D, #F59E0B); box-shadow: 0 0 12px rgba(252, 211, 77, .5); }
.agdash-table tr:nth-child(2) .row-medal { background: linear-gradient(135deg, #CBD5E1, #94A3B8); }
.agdash-table tr:nth-child(3) .row-medal { background: linear-gradient(135deg, #FB923C, #C2410C); box-shadow: 0 0 12px rgba(251, 146, 60, .4); }
.agdash-table .agname { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.agdash-table .agname .ic {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #FFD9C0, #FFC2A0);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  flex: none;
}
.agdash-rate { color: #FCD34D; letter-spacing: 1px; font-weight: 700; }
.agdash-status { font-size: 11px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.agdash-status.published { background: rgba(52, 211, 153, .18); color: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, .25); }
.agdash-status.draft { background: rgba(148, 163, 184, .18); color: #94A3B8; }
.agdash-status.offline { background: rgba(248, 113, 113, .18); color: #F87171; }

/* 教师榜 - 头像 + 进度条 */
.agteacher-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid rgba(140, 180, 255, .08);
  font-size: 13px;
}
.agteacher-row:last-child { border-bottom: none; }
.agteacher-row .av {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #38BDF8, #8B5CF6);
  color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(56, 189, 248, .35);
}
.agteacher-row .info { flex: 1; min-width: 0; }
.agteacher-row .info .nm { font-weight: 700; color: #DCE7FF; }
.agteacher-row .info .meta { font-size: 11px; color: #6B7FBC; margin-top: 2px; }
.agteacher-row .nums { text-align: right; flex: none; min-width: 80px; }
.agteacher-row .nums .v { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.agteacher-row .nums .l { font-size: 10.5px; color: #93B5FF; }
.agteacher-row .nums .rate { color: #FCD34D; font-weight: 700; }
.agteacher-row .bar {
  width: 100%; height: 4px; border-radius: 2px;
  background: rgba(140, 180, 255, .12); overflow: hidden; margin-top: 4px;
}
.agteacher-row .bar .fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
  box-shadow: 0 0 6px rgba(56, 189, 248, .4);
}

/* 最新评价 - 玻璃卡 */
.agfb-item {
  display: flex; gap: 10px; padding: 12px 8px;
  border-bottom: 1px solid rgba(140, 180, 255, .08);
  font-size: 12.5px;
  transition: background .15s;
}
.agfb-item:hover { background: rgba(56, 189, 248, .06); border-radius: 10px; }
.agfb-item:last-child { border-bottom: none; }
.agfb-ico {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .25), rgba(139, 92, 246, .25));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(140, 180, 255, .2);
}
.agfb-main { flex: 1; min-width: 0; }
.agfb-top { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.agfb-name { color: #fff; font-weight: 700; }
.agfb-cls { color: #6B7FBC; font-size: 11px; }
.agfb-stars { color: #FCD34D; letter-spacing: 1px; font-size: 12px; }
.agfb-comment { color: #A8C2FF; margin-top: 4px; line-height: 1.55; }
.agfb-time { color: #6B7FBC; font-size: 10.5px; margin-top: 4px; }

@media (max-width: 1100px) {
  .agplaza-stats { grid-template-columns: repeat(3, 1fr); }
  .agdash-stats { grid-template-columns: repeat(3, 1fr); }
  .agdash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .agplaza-grid { grid-template-columns: repeat(2, 1fr); }
  .agplaza-head { grid-template-columns: 1fr; gap: 10px; }
  .agplaza-search { max-width: none; }
  .agdash-panels { grid-template-columns: 1fr; }
  .agplaza-stats { grid-template-columns: repeat(2, 1fr); }
  .agdash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .agdash { padding: 16px; border-radius: 16px; }
  .agstat .v { font-size: 24px; }
  .agplaza-grid { grid-template-columns: 1fr; }
  .agplaza-stats { grid-template-columns: 1fr 1fr; }
  .agplaza-card .nums { padding: 8px 2px; }
  .agpick { grid-template-columns: repeat(6, 1fr); }
}

/* =========================================================================
   v6 精修层：管理看板 → 极简科技蓝（去霓虹重装饰，留白大气）
   老师/学生端 → 统一浅色面板与卡片打磨（清晰 · 明了 · 简洁漂亮）
   追加于文件末尾，顺序覆盖旧规则
   ========================================================================= */

/* ---------- 一、管理端看板：收敛为「深空蓝底 + 单一青蓝强调 + 克制的光」 ---------- */
.agdash {
  background:
    radial-gradient(760px 420px at 92% -12%, rgba(66, 133, 255, .16), transparent 62%),
    radial-gradient(620px 340px at -6% 108%, rgba(34, 211, 238, .10), transparent 60%),
    linear-gradient(160deg, #0B1A3E 0%, #0A1330 55%, #0A1126 100%);
  border: 1px solid rgba(124, 170, 255, .16);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 22px 50px -22px rgba(6, 12, 34, .7), inset 0 1px 0 rgba(150, 185, 255, .10);
}
.agdash::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(96, 160, 255, .08), transparent 30%),
    linear-gradient(rgba(124, 170, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 170, 255, .04) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 26%, transparent 82%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 26%, transparent 82%);
  pointer-events: none;
}
.agdash::after { display: none; }
.agdash-head { align-items: center; margin-bottom: 24px; }
.agdash-head h2 { color: #F3F8FF; font-size: 21px; letter-spacing: .2px; text-shadow: none; }
.agdash-head h2 .globe {
  width: 34px; height: 34px; border-radius: 10px; font-size: 18px;
  background: linear-gradient(135deg, #2E7CF6, #22D3EE);
  box-shadow: 0 6px 16px -8px rgba(46, 124, 246, .9);
}
.agdash-head .sub { color: #8FA6D6; font-size: 12.5px; margin-top: 8px; }
.agdash-pulse {
  background: rgba(34, 211, 238, .07);
  border: 1px solid rgba(34, 211, 238, .22);
  color: #6FD9F0;
}
.agdash-days button {
  border: 1px solid rgba(124, 170, 255, .22);
  background: rgba(124, 170, 255, .06);
  color: #9DB4E2;
  border-radius: 10px; padding: 6px 13px;
}
.agdash-days button:hover { border-color: rgba(124, 180, 255, .5); background: rgba(124, 170, 255, .14); color: #fff; }
.agdash-days button.on {
  background: linear-gradient(135deg, #3B82F6, #22D3EE);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px -8px rgba(59, 130, 246, .9);
}

/* 统计卡：3 列（6 张自动 2 行 · 大气齐整） */
.agdash-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.agstat {
  background: linear-gradient(168deg, rgba(124, 170, 255, .09), rgba(124, 170, 255, .02) 72%);
  border: 1px solid rgba(124, 170, 255, .16);
  border-radius: 15px;
  padding: 16px 16px 13px;
  backdrop-filter: blur(4px);
}
.agstat:hover { transform: translateY(-2px); border-color: rgba(96, 170, 255, .45); }
.agstat::before, .agstat::after { display: none; }
.agstat .ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(150, 185, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(150, 185, 255, .12);
  font-size: 17px; margin-bottom: 12px;
}
.agstat .v { font-size: 29px; font-weight: 800; color: #fff; text-shadow: none; letter-spacing: -.5px; }
.agstat .l { font-size: 12.5px; color: #93A9D8; margin-top: 8px; }
.agstat .d { font-size: 11px; color: #5E75A8; margin-top: 4px; }
.agstat .spark { margin-top: 12px; }

/* 内容面板 / 图表细节 */
.agdash-panels { gap: 16px; margin-bottom: 16px; }
.agpanel {
  background: linear-gradient(168deg, rgba(124, 170, 255, .07), rgba(124, 170, 255, .015) 62%);
  border: 1px solid rgba(124, 170, 255, .14);
  border-radius: 15px; padding: 20px;
  backdrop-filter: blur(4px);
}
.agpanel::before { display: none; }
.agpanel h3 { font-size: 14.5px; color: #EAF2FF; margin: 0 0 15px; }
.agpanel h3 .dot {
  width: 8px; height: 8px; border-radius: 3px;
  background: linear-gradient(135deg, #3B82F6, #22D3EE);
  box-shadow: none;
}
.agpanel h3 .extra { color: #5E75A8; }
.agtrend { height: 208px; }
.agtrend .grid line { stroke: rgba(124, 170, 255, .08); }
.agtrend .axis text { fill: #5E75A8; font-size: 10.5px; }
.agtrend .area { opacity: .45; }
.agtrend .line { filter: none; }
.agtrend .pt { filter: none; }
.agrating-ring .track { stroke: rgba(124, 170, 255, .12); }
.agrating-ring .arc { filter: none; }
.agrating-ring .center .v { color: #fff; }
.agrating-ring .center .l { color: #8FA6D6; }
.agrating-list .row .nm { color: #9DB4E2; }
.agrating-list .row .bar { background: rgba(124, 170, 255, .13); }
.agrating-list .row .bar .fill { box-shadow: none; }
.agrating-list .row .v { color: #DCE7FF; }
.agbar-row .nm { color: #9DB4E2; }
.agbar-row .track { background: rgba(124, 170, 255, .12); }
.agbar-row .bar { background: linear-gradient(90deg, #3B82F6, #22D3EE); box-shadow: none; }
.agbar-row .bar::after { display: none; }
.agbar-row .val { color: #DCE7FF; }
.agbar-row .val small { color: #5E75A8; }
.agdash-grid { gap: 16px; margin-bottom: 16px; }
.agdash-table th { color: #9DB4E2; border-bottom-color: rgba(124, 170, 255, .14); }
.agdash-table td { color: #D6E2F6; border-bottom-color: rgba(124, 170, 255, .08); }
.agdash-table tbody tr:hover td { background: rgba(80, 140, 255, .07); }
.agdash-table .agname .ic {
  background: rgba(150, 185, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(150, 185, 255, .14);
  border-radius: 8px; font-size: 15px; width: 30px; height: 30px;
}
.agdash-rate { color: #FBBF24; }
.agdash-status.published { background: rgba(52, 211, 153, .13); color: #54E0A0; box-shadow: none; }
.agdash-status.draft { background: rgba(148, 163, 184, .14); color: #A9B4C6; }
.agdash-status.offline { background: rgba(248, 113, 113, .13); color: #FB8B8B; }
.agteacher-row .av { background: linear-gradient(135deg, #2E7CF6, #22D3EE); box-shadow: 0 6px 14px -6px rgba(46, 124, 246, .65); }
.agteacher-row .info .nm { color: #EAF2FF; }
.agteacher-row .info .meta { color: #5E75A8; }
.agteacher-row .bar { background: rgba(124, 170, 255, .12); }
.agteacher-row .bar .fill { background: linear-gradient(90deg, #3B82F6, #22D3EE); box-shadow: none; }
.agfb-ico {
  background: rgba(150, 185, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(150, 185, 255, .12);
  border-radius: 10px;
}
.agfb-name { color: #fff; }
.agfb-cls { color: #5E75A8; }
.agfb-comment { color: #A8BCE4; }
.agfb-time { color: #5E75A8; }

/* ---------- 二、老师/学生端：浅色内容面板（排行榜 / 反馈与暖米广场同风格） ---------- */
.agpanel-light {
  grid-column: 1 / -1;
  background: #fff;
  border: 1.5px solid var(--ag-line-soft);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px -12px rgba(150, 110, 60, .18);
}
.agpanel-light h3 { display: flex; align-items: center; gap: 9px; color: var(--ag-ink); font-size: 15px; font-weight: 800; margin: 0 0 16px; }
.agpanel-light h3 .dot { width: 10px; height: 10px; border-radius: 4px; background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2)); box-shadow: none; }
.agpanel-light h3 .extra { margin-left: auto; color: var(--ag-faint); font-size: 11.5px; font-weight: 600; }
.agpanel-light .table-wrap { margin: 0 -4px; }
.agpanel-light .agdash-table th { color: var(--ag-ink-3); border-bottom: 1px solid var(--ag-line-soft); padding: 9px 10px; font-size: 11.5px; }
.agpanel-light .agdash-table td { color: var(--ag-ink-5); border-bottom: 1px solid var(--ag-line-soft); padding: 11px 10px; }
.agpanel-light .agdash-table tbody tr:hover td { background: var(--ag-card-soft); }
.agpanel-light .agdash-table .agname { font-weight: 700; }
.agpanel-light .agdash-table .agname .ic { background: linear-gradient(135deg, var(--ag-accent-soft), var(--ag-warm-3)); box-shadow: none; border-radius: 8px; }
.agpanel-light .agdash-table .rank-no { font-style: normal; color: var(--ag-faint); }
.agpanel-light .agdash-status.published { background: #E6F8F0; color: #0E9F6E; box-shadow: none; }
.agpanel-light .agdash-status.draft { background: #F0F1F4; color: #8a90a0; }
.agpanel-light .agdash-status.offline { background: #FDECEE; color: #D6455A; }
.agpanel-light .agbar-row { margin-bottom: 12px; }
.agpanel-light .agbar-row .nm { color: #6b5e4d; }
.agpanel-light .agbar-row .track { background: var(--ag-track); }
.agpanel-light .agbar-row .bar { background: linear-gradient(90deg, var(--ag-accent), var(--ag-accent-2)); box-shadow: none; }
.agpanel-light .agbar-row .bar::after { display: none; }
.agpanel-light .agbar-row .val { color: #4a4135; }
.agpanel-light .agbar-row .val small { color: var(--ag-faint); }
.agpanel-light .agfb-item { border-bottom: 1px solid var(--ag-line-soft); padding: 13px 6px; }
.agpanel-light .agfb-item:hover { background: var(--ag-card-soft); border-radius: 12px; }
.agpanel-light .agfb-ico { background: linear-gradient(135deg, var(--ag-accent-soft), var(--ag-warm-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-accent) 12%, transparent); }
.agpanel-light .agfb-name { color: var(--ag-ink); }
.agpanel-light .agfb-cls { color: var(--ag-ink-3); }
.agpanel-light .agfb-stars { color: #F5A623; }
.agpanel-light .agfb-comment { color: var(--ag-ink-4); }
.agpanel-light .agfb-time { color: var(--ag-faint); }
.agpanel-light .agplaza-empty { background: var(--ag-card-soft); padding: 34px 20px; }

/* ---------- 三、广场与卡片细节打磨（老师/学生端版面 · 图标更精致） ---------- */
.agplaza::after { display: none; }
.agplaza::before { opacity: .75; }
.agplaza-head { margin-bottom: 20px; }
.agplaza-logo { box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--ag-accent) 65%, transparent); }
.agplaza-search { box-shadow: none; border-color: var(--ag-line); padding: 9px 16px; }
.agplaza-user .avatar { box-shadow: 0 0 0 3px #fff, 0 8px 18px -8px color-mix(in srgb, var(--ag-accent) 50%, transparent); }
.agplaza-tabs { background: var(--ag-tab-bg); padding: 5px; border-radius: 13px; margin-bottom: 18px; }
.agplaza-tab { padding: 8px 16px; border-radius: 9px; font-size: 13.5px; }
.agplaza-tab.on { box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--ag-accent) 50%, transparent); }
.agplaza-tab.on::after { display: none; }
.agplaza-stat { border: 1.5px solid var(--ag-line-soft); border-radius: 14px; padding: 13px 15px; box-shadow: 0 6px 18px -10px rgba(160, 120, 80, .25); }
.agplaza-stat .ic { border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); font-size: 22px; width: 44px; height: 44px; }
.agplaza-stat .v { font-size: 21px; }
.agplaza-card { border: 1px solid var(--ag-line-soft); border-radius: 16px; padding: 16px 16px 13px; box-shadow: 0 8px 22px -14px rgba(150, 110, 60, .25); }
.agplaza-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -18px rgba(150, 110, 60, .35); }
.agplaza-card .ci { border-radius: 15px; border: 1px solid rgba(255, 255, 255, .65); box-shadow: 0 10px 18px -10px rgba(150, 100, 50, .5), inset 0 -10px 16px -8px rgba(130, 80, 30, .18); font-size: 27px; line-height: 1; }
.agplaza-card .name { font-size: 15.5px; }
.agplaza-card .meta { font-size: 11.5px; color: var(--ag-ink-3); }
.agplaza-card .meta .subj { font-size: 10.5px; }
.agplaza-card .desc { font-size: 12.5px; color: var(--ag-ink-4); min-height: 40px; }
.agplaza-card .nums { background: transparent; border-top: 1px dashed var(--ag-line); border-radius: 0; padding: 9px 2px 2px; margin-top: 2px; }
.agplaza-card .nums .n + .n { border-left: 1px solid var(--ag-line-soft); }
.agplaza-card .nums .v { font-size: 16px; }
.agplaza-card .nums .l { font-size: 10.5px; color: var(--ag-ink-3); margin-top: 3px; }
.agplaza-card .nums .l i { font-style: normal; font-size: 11px; margin-right: 2px; vertical-align: -1px; }
.agplaza-card .nums .n.rate .v { color: var(--ag-accent); }
.agplaza-card .bar { margin-top: 2px; }
.agplaza-card .acts { flex-wrap: wrap; }
.agplaza-card .acts button { flex: 1 1 auto; min-width: 58px; height: 34px; border-radius: 10px; font-size: 12px; white-space: nowrap; padding: 0 6px; }
.agplaza-card .acts .use, .agplaza-card .acts .pub, .agplaza-card .acts .share { border: none; }

/* v6 响应式收尾 */
@media (max-width: 1200px) {
  .agplaza-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .agdash-grid { grid-template-columns: 1fr; }
  .agdash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .agplaza-grid { grid-template-columns: repeat(2, 1fr); }
  .agpanel-light { padding: 16px; }
  .agplaza-card .acts button { min-width: 72px; }
}
@media (max-width: 640px) {
  .agdash { padding: 16px; border-radius: 16px; }
  .agdash-head h2 { font-size: 17px; }
  .agstat .v { font-size: 24px; }
  .agdash-stats { grid-template-columns: 1fr; }
  .agpanel { padding: 16px; }
  .agtrend { height: 150px; }
  .agrating { flex-direction: column; align-items: stretch; }
  .agpanel-light h3 { font-size: 13.5px; }
}

/* ============================================================
 * v7 — 教师批量导入 双标签（Excel 上传 / 文本粘贴）样式
 * ============================================================ */
.tb-tabs {
  display: flex; gap: 4px; margin: -4px 0 18px;
  border-bottom: 1px solid #E8DFD0;
}
.tb-tab {
  border: none; background: transparent; cursor: pointer;
  padding: 9px 18px 11px; font-size: 14px; font-weight: 600;
  color: #87724A; border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-family: inherit;
  transition: all .15s;
}
.tb-tab:hover { color: #FF8A3D; }
.tb-tab.on {
  color: #FF8A3D; border-bottom-color: #FF8A3D;
}
.tb-pane { padding-top: 4px; }
.tb-pane[hidden] { display: none; }

/* 模板下载条 */
.tb-template {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #FFF8EF 0%, #FFF1E0 100%);
  border: 1px solid rgba(255, 138, 61, .22);
  border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px;
}
.tb-tpl-info { flex: 1; min-width: 0; }
.tb-tpl-title { font-size: 14px; font-weight: 700; color: #6B4A1F; margin-bottom: 4px; }
.tb-tpl-desc { font-size: 12.5px; color: #8B6A3E; line-height: 1.55; }
.tb-tpl-desc b { color: #FF6B1A; }

/* 文件拖拽上传 */
.tb-upload {
  position: relative; margin-bottom: 12px;
}
.tb-file {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 2;
}
.tb-file-label {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed #D9C9A8; border-radius: 12px;
  padding: 18px 16px; background: #FFFCF5;
  color: #8B6A3E; font-size: 13.5px; line-height: 1.4;
  transition: all .15s;
}
.tb-file-label:hover { border-color: #FF8A3D; background: #FFF6E8; color: #FF6B1A; }
.tb-upload.drag .tb-file-label { border-color: #FF8A3D; background: #FFF1E0; color: #FF6B1A; }
.tb-file-ic { font-size: 22px; }
.tb-file-name { margin-top: 6px; font-size: 12.5px; color: #6B4A1F; min-height: 18px; }
.tb-file-name b { color: #FF6B1A; }

/* 行状态 (Preview 表格) */
.row-warn { background: rgba(245, 158, 11, .07); }
.row-fail { background: rgba(244, 63, 94, .05); }

/* 兼容：旧 .warn-text 与 .ok-text 不变 */

/* =========================================================================
   v8：管理端智能体看板 → 浅色暖调（与系统 var(--ag-bg) 底 + var(--ag-accent) 主色统一）
   · 深色科技蓝 → 浅色卡片式 BI
   · 统一暖橙单强调色，仅用中性暖灰做层次，避免多彩堆砌
   · 柔和边框 + 低饱和阴影；所有规则以 .agdash 作用域，不影响老师/学生端 agpanel-light
   ========================================================================= */

/* ---------- 容器：浅暖底 + 极淡网格 ---------- */
.agdash {
  background: linear-gradient(180deg, var(--ag-bg) 0%, var(--ag-bg-2) 100%);
  border: 1px solid var(--ag-line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 38px -30px rgba(160, 118, 66, .45);
  color: var(--ag-ink);
}
.agdash::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ag-accent) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ag-accent) 5%, transparent) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(130% 80% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(130% 80% at 100% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.agdash::after { display: none; }

/* ---------- 头部 ---------- */
.agdash .agdash-head { align-items: center; margin-bottom: 22px; }
.agdash .agdash-head h2 { color: var(--ag-ink); font-size: 21px; font-weight: 800; letter-spacing: .2px; text-shadow: none; }
.agdash .agdash-head h2 .globe {
  width: 34px; height: 34px; border-radius: 11px; font-size: 18px;
  background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2));
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--ag-accent) 85%, transparent);
}
.agdash .agdash-head .sub { color: var(--ag-ink-3); font-size: 12.5px; margin-top: 8px; }
.agdash .agdash-head .sub b { color: var(--ag-ink); font-weight: 800; }

.agdash .agdash-pulse {
  background: var(--ag-accent-soft); border: 1px solid var(--ag-warm-2); color: var(--ag-accent-ink); font-weight: 600;
}
.agdash .agdash-pulse .dot { background: var(--ag-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag-accent) 18%, transparent); }

.agdash .agdash-days button {
  background: #fff; border: 1px solid #F1E4D2; color: var(--ag-ink-3);
  border-radius: 10px; padding: 6px 13px; font-weight: 600;
}
.agdash .agdash-days button:hover { border-color: var(--ag-accent-2); color: var(--ag-accent-ink); background: var(--ag-card-soft); }
.agdash .agdash-days button.on {
  background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 16px -11px color-mix(in srgb, var(--ag-accent) 95%, transparent);
}

/* ---------- 统计卡：白卡 + 柔和阴影 ---------- */
.agdash .agdash-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.agdash .agstat {
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 16px;
  padding: 16px 16px 13px;
  backdrop-filter: none;
  box-shadow: 0 8px 20px -17px rgba(160, 118, 66, .5);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.agdash .agstat:hover {
  transform: translateY(-2px);
  border-color: var(--ag-warm-3);
  box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--ag-accent) 55%, transparent);
}
.agdash .agstat::before, .agdash .agstat::after { display: none; }
.agdash .agstat .ic {
  width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(135deg, var(--ag-accent-soft), var(--ag-warm-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
  font-size: 17px; margin-bottom: 12px;
}
.agdash .agstat .v { font-size: 29px; font-weight: 800; color: var(--ag-ink); text-shadow: none; letter-spacing: -.5px; }
.agdash .agstat .l { font-size: 12.5px; color: var(--ag-ink-3); margin-top: 8px; font-weight: 600; }
.agdash .agstat .d { font-size: 11px; color: var(--ag-faint); margin-top: 4px; }
.agdash .agstat .spark { margin-top: 12px; }

/* ---------- 内容面板 ---------- */
.agdash .agdash-panels { gap: 16px; margin-bottom: 16px; }
.agdash .agpanel {
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 16px; padding: 20px;
  backdrop-filter: none;
  box-shadow: 0 8px 20px -17px rgba(160, 118, 66, .5);
}
.agdash .agpanel::before { display: none; }
.agdash .agpanel h3 { font-size: 14.5px; font-weight: 800; color: var(--ag-ink); margin: 0 0 15px; }
.agdash .agpanel h3 .dot {
  width: 9px; height: 9px; border-radius: 4px;
  background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2));
  box-shadow: none;
}
.agdash .agpanel h3 .extra { color: var(--ag-faint); font-weight: 600; }

/* ---------- 趋势图 / 评分环 / 条形 ---------- */
.agdash .agtrend { height: 208px; }
.agdash .agtrend .grid line { stroke: var(--ag-card-soft); }
.agdash .agtrend .axis text { fill: var(--ag-faint); font-size: 10.5px; }
.agdash .agtrend .area { opacity: .5; }
.agdash .agtrend .line { filter: none; }
.agdash .agtrend .pt { filter: none; }
.agdash .agrating-ring .track { stroke: var(--ag-line-soft); }
.agdash .agrating-ring .arc { filter: none; }
.agdash .agrating-ring .center .v { color: var(--ag-ink); }
.agdash .agrating-ring .center .l { color: var(--ag-faint); }
.agdash .agrating-list .row .nm { color: var(--ag-ink-3); }
.agdash .agrating-list .row .bar { background: var(--ag-line-soft); }
.agdash .agrating-list .row .bar .fill { box-shadow: none; }
.agdash .agrating-list .row .v { color: var(--ag-ink); font-weight: 700; }
.agdash .agbar-row .nm { color: var(--ag-ink-3); }
.agdash .agbar-row .track { background: var(--ag-line-soft); }
.agdash .agbar-row .bar { background: linear-gradient(90deg, var(--ag-accent), var(--ag-accent-2)); box-shadow: none; }
.agdash .agbar-row .bar::after { display: none; }
.agdash .agbar-row .val { color: var(--ag-ink); font-weight: 700; }
.agdash .agbar-row .val small { color: var(--ag-faint); font-weight: 500; }

/* ---------- 表格 ---------- */
.agdash .agdash-grid { gap: 16px; margin-bottom: 16px; }
.agdash .agdash-table th { color: var(--ag-ink-3); border-bottom: 1px solid var(--ag-line-soft); background: transparent; font-weight: 700; }
.agdash .agdash-table td { color: var(--ag-ink-5); border-bottom: 1px solid var(--ag-line-soft); }
.agdash .agdash-table tbody tr:hover td { background: var(--ag-card-soft); }
.agdash .agdash-table .agname { color: var(--ag-ink); font-weight: 700; }
.agdash .agdash-table .agname .ic {
  background: linear-gradient(135deg, var(--ag-accent-soft), var(--ag-warm-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
  border-radius: 8px;
}
.agdash .agdash-table .rank-no { color: var(--ag-faint); }
.agdash .agdash-table .row-medal { color: #fff; }
.agdash .agdash-table td.ag-visits { font-weight: 800; color: var(--ag-accent); font-variant-numeric: tabular-nums; }
.agdash .agdash-rate { color: #F5A623; font-weight: 700; }

.agdash .agdash-status { font-weight: 700; }
.agdash .agdash-status.published { background: #E6F8F0; color: #0E9F6E; box-shadow: none; }
.agdash .agdash-status.draft { background: #F1F2F5; color: #8A90A0; box-shadow: none; }
.agdash .agdash-status.offline { background: #FDECEE; color: #D6455A; box-shadow: none; }

/* ---------- 教师榜 ---------- */
.agdash .agteacher-row { border-bottom: 1px solid var(--ag-card-soft); }
.agdash .agteacher-row:hover { background: var(--ag-card-soft); border-radius: 12px; }
.agdash .agteacher-row .av {
  background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2));
  box-shadow: 0 8px 16px -11px color-mix(in srgb, var(--ag-accent) 90%, transparent);
  color: #fff;
}
.agdash .agteacher-row .info .nm { color: var(--ag-ink); font-weight: 700; }
.agdash .agteacher-row .info .meta { color: var(--ag-faint); }
.agdash .agteacher-row .bar { background: var(--ag-line-soft); }
.agdash .agteacher-row .bar .fill { background: linear-gradient(90deg, var(--ag-accent), var(--ag-accent-2)); box-shadow: none; }
.agdash .agteacher-row .nums .v { color: var(--ag-ink); font-weight: 800; }
.agdash .agteacher-row .nums .l { color: var(--ag-faint); }
.agdash .agteacher-row .nums .rate { color: #F5A623; font-weight: 700; }

/* ---------- 最新评价 ---------- */
.agdash .agfb-item { border-bottom: 1px solid var(--ag-card-soft); }
.agdash .agfb-item:hover { background: var(--ag-card-soft); border-radius: 12px; }
.agdash .agfb-ico {
  background: linear-gradient(135deg, var(--ag-accent-soft), var(--ag-warm-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-accent) 10%, transparent);
  border-radius: 10px;
}
.agdash .agfb-name { color: var(--ag-ink); font-weight: 700; }
.agdash .agfb-cls { color: var(--ag-ink-3); }
.agdash .agfb-stars { color: #F5A623; }
.agdash .agfb-comment { color: var(--ag-ink-4); }
.agdash .agfb-time { color: var(--ag-faint); }

/* ---------- 空状态 ---------- */
.agdash .agplaza-empty { background: var(--ag-card-soft); border: 1px dashed var(--ag-line); border-radius: 14px; padding: 32px 20px; color: var(--ag-ink-3); }

/* v8 响应式收尾 */
@media (max-width: 640px) {
  .agdash { padding: 16px; border-radius: 16px; }
  .agdash .agdash-head h2 { font-size: 17px; }
  .agdash .agstat .v { font-size: 24px; }
  .agdash .agdash-stats { grid-template-columns: 1fr; }
  .agdash .agpanel { padding: 16px; }
  .agdash .agtrend { height: 150px; }
}

/* v8 补充：排行榜名次——去掉发光渐变数字，统一中性色；奖牌圈保留金银铜但收敛光晕 */
.agdash .agdash-table tr:nth-child(1) .rank-no,
.agdash .agdash-table tr:nth-child(2) .rank-no,
.agdash .agdash-table tr:nth-child(3) .rank-no {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--ag-faint); filter: none;
}
.agdash .agdash-table tr:nth-child(1) .row-medal { box-shadow: 0 6px 14px -9px rgba(245, 158, 11, .85); }
.agdash .agdash-table tr:nth-child(2) .row-medal { box-shadow: 0 6px 14px -9px rgba(148, 163, 184, .85); }
.agdash .agdash-table tr:nth-child(3) .row-medal { box-shadow: 0 6px 14px -9px color-mix(in srgb, var(--ag-accent-deep) 75%, transparent); }

/* =========================================================================
   v9：智能体两级分类 + 学生发布审核（状态徽章 pending/rejected）
   ========================================================================= */
.agdash-status.pending { background: var(--ag-accent-soft); color: var(--ag-accent-ink); box-shadow: none; }
.agdash-status.rejected { background: #FDECEE; color: #D6455A; box-shadow: none; }
.agpanel-light .agdash-status.pending { background: var(--ag-accent-soft); color: var(--ag-accent-ink); box-shadow: none; }
.agpanel-light .agdash-status.rejected { background: #FDECEE; color: #D6455A; box-shadow: none; }
.agplaza-card .acts button[disabled] { pointer-events: none; }

/* =========================================================================
   v10：智能体两级分类「级联主从式」展示
   · 大类 = 主导航（大号实心橙胶囊，常驻）
   · 小类 = 随动子筛选（小号描边 + 缩进引导线，仅选中具体大类后出现）
   · 选「全部」时小类行隐藏；卡片/排行表徽章分主次；弹窗表单层级化
   ========================================================================= */
.agplaza-toolbar.agtb { align-items: flex-start; row-gap: 10px; }

/* 第一层：大类主导航 */
.agplaza-chip.cat-chip {
  padding: 7px 18px; font-size: 13.5px;
  background: #FAF6EF; border: 1.5px solid var(--ag-line); color: #6B5E4D;
}
.agplaza-chip.cat-chip:hover { border-color: var(--ag-accent); color: var(--ag-accent); background: var(--ag-accent-soft); }
.agplaza-chip.cat-chip.on {
  background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2)); color: #fff;
  border-color: transparent; font-weight: 700;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ag-accent) 30%, transparent);
}

/* 第二层：小类随动子筛选（缩进 + 引导线 + 视觉降级） */
.agplaza-subrow {
  width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 2px 0 0 14px; padding: 2px 0 2px 12px;
  border-left: 2px solid var(--ag-line);
  animation: agsubin .18s ease-out;
}
@keyframes agsubin { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.agplaza-subrow-label { flex: none; font-size: 11px; color: var(--ag-ink-3); font-weight: 600; letter-spacing: .5px; }
.agplaza-chip.sub-chip {
  padding: 3px 12px; font-size: 12px; font-weight: 400;
  background: #fff; border: 1px solid var(--ag-line); color: var(--ag-ink-3);
}
.agplaza-chip.sub-chip:hover { border-color: var(--ag-accent-2); color: var(--ag-accent-ink); }
.agplaza-chip.sub-chip.on {
  background: var(--ag-accent-soft); color: var(--ag-accent-ink); border-color: var(--ag-accent-2);
  font-weight: 600; box-shadow: none;
}

/* 卡片 / 排行表 / 反馈：大类主徽章（浅橙底）+ 小类次徽章（描边灰） */
.cat-badge {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  background: var(--ag-accent-soft); color: var(--ag-accent-ink); font-size: 11px; font-weight: 600;
  vertical-align: 1px;
}
.sub-badge {
  display: inline-block; padding: 1px 9px; border-radius: 999px; margin-left: 3px;
  background: #fff; border: 1px solid var(--ag-line); color: var(--ag-ink-3);
  font-size: 11px; font-weight: 400; vertical-align: 1px;
}

/* ===== v167：年级筛选（第三维度）+ 年级徽章 ===== */
.agplaza-graderow {
  width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 2px 0 0; padding: 0;
}
.agplaza-graderow-label {
  flex: none; font-size: 11px; color: var(--ag-ink-3); font-weight: 600; letter-spacing: .5px;
}
.agplaza-chip.grade-chip {
  padding: 3px 12px; font-size: 12px; font-weight: 400;
  background: #fff; border: 1px solid var(--ag-line); color: var(--ag-ink-3);
}
.agplaza-chip.grade-chip:hover { border-color: var(--ag-accent-2); color: var(--ag-accent-ink); }
.agplaza-chip.grade-chip.on {
  background: var(--ag-accent-soft); color: var(--ag-accent-ink); border-color: var(--ag-accent-2);
  font-weight: 700; box-shadow: none;
}
.agplaza-setdef {
  flex: none; margin-left: auto; font-family: inherit; cursor: pointer;
  border: 1px dashed var(--ag-line); background: #fff; color: var(--ag-ink-3);
  border-radius: 999px; padding: 3px 12px; font-size: 12px;
}
.agplaza-setdef:hover { border-color: var(--ag-accent-2); color: var(--ag-accent-ink); }
.agplaza-setdef.on {
  border-style: solid; border-color: var(--ag-accent-2);
  background: var(--ag-accent-soft); color: var(--ag-accent-ink); cursor: default;
}
.agplaza-setdef:disabled { opacity: .6; cursor: default; }
.grade-badge {
  display: inline-block; padding: 1px 9px; border-radius: 999px; margin-left: 3px;
  background: #EEF4FF; border: 1px solid #D3E0FA; color: #3D6DB5;
  font-size: 11px; font-weight: 600; vertical-align: 1px;
}
.grade-badge.all { background: #F3F1EC; border-color: var(--ag-line); color: var(--ag-ink-3); font-weight: 400; }

/* v168：年级摘要行 + 空态清除按钮
   v169：chip 去掉数量数字，只展示年级名称（年级选项本身按实际数据动态生成）
   v170：选具体年级 = 只看该年级（「只看该年级」开关随混入口径一并移除） */
.agplaza-gradesum {
  width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0; font-size: 12px; color: var(--ag-ink-3);
}
.agplaza-gradesum b { color: var(--ag-accent-ink, #7a4a1c); font-weight: 700; margin: 0 1px; }
.agplaza-empty-btn {
  margin-top: 12px; border: 1.5px solid var(--ag-line); background: #fff;
  color: var(--ag-accent-ink, #7a4a1c); border-radius: 999px; padding: 6px 16px;
  font-size: 13px; font-family: inherit; cursor: pointer; transition: all .15s;
}
.agplaza-empty-btn:hover { border-color: var(--ag-accent); color: var(--ag-accent); }

/* 管理端：默认显示年级设置行 */
.aggrade-defs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aggrade-defs label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ag-ink-2, #5a5048); }
.aggrade-defs select { width: auto; min-width: 110px; }

/* 创建/编辑弹窗：学科字段缩进引导，体现隶属于大类 */
.agcat-sub { border-left: 2px solid var(--ag-line); padding-left: 12px; }

/* =========================================================================
   v11：智能体一键收藏到「我的学习APP」
   · 广场学生卡片新增 收藏/已收藏 按钮（橙系，与分享按钮同语言）
   · 我的学习APP：收藏卡显示来源标签，不可编辑（与广场源保持一致）
   ========================================================================= */
.agplaza-card .acts .save { background: var(--ag-accent-soft); color: var(--ag-accent-ink); font-weight: 600; }
.agplaza-card .acts .save:hover { background: var(--ag-up-bg-2); transform: translateY(-1px); }
.agplaza-card .acts .save.on { background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-2)); color: #fff; }
.agplaza-card .acts .save.on:hover { box-shadow: 0 4px 12px color-mix(in srgb, var(--ag-accent) 35%, transparent); }

.app-src-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--ag-accent-soft); color: var(--ag-accent-ink); font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.app-card-agent { border: 1.5px solid var(--ag-line); }

/* 学生卡片 4 按钮紧凑排布（保证单行不折行） */
.agplaza-card .acts.has-save { gap: 4px; }
.agplaza-card .acts.has-save button { padding: 8px 2px; font-size: 12px; gap: 2px; }
.agplaza-card .acts.has-save button { font-size: 11.5px; }
.agplaza-card .acts.has-save { gap: 3px; }
.agplaza-card .acts.has-save button { min-width: 0; padding-left: 1px; padding-right: 1px; }
.agplaza-card .acts.has-save { gap: 4px; }

/* =========================================================================
   v12：广场卡片版面整体重排
   · 统计条：由贴边虚线分隔改为独立浅色圆角面板，四格等宽、留白充足
   · 操作区：拆双行主次结构 —— 第一行「使用(主)+收藏(次)」，第二行评价胶囊
   ========================================================================= */
.agplaza-card .nums {
  background: var(--ag-card-soft);
  border: 1px solid var(--ag-line-soft);
  border-radius: 12px;
  border-top: 1px solid var(--ag-line-soft);
  padding: 11px 4px 9px;
  margin-top: 10px;
}
.agplaza-card .nums .n { position: relative; }
.agplaza-card .nums .n + .n { border-left: 1px solid var(--ag-line); }
.agplaza-card .nums .v { font-size: 17px; line-height: 1.2; }
.agplaza-card .nums .l { font-size: 10.5px; margin-top: 3px; letter-spacing: .3px; }
.agplaza-card .nums .l i { font-size: 12px; margin-right: 3px; }

.agplaza-card .bar { margin-top: 10px; }

/* 第一行：主操作（使用为主按钮占 2 份，收藏为次按钮占 1 份） */
.agplaza-card .acts.primary { gap: 9px; margin-top: 11px; }
.agplaza-card .acts.primary .use {
  flex: 2; height: 40px; border-radius: 12px;
  font-size: 14px; font-weight: 800; letter-spacing: 1px;
}
.agplaza-card .acts.primary .save {
  flex: 1.1; height: 40px; border-radius: 12px;
  font-size: 12.5px; font-weight: 700; border: 1.5px dashed var(--ag-accent-2);
}
.agplaza-card .acts.primary .save:hover { border-style: solid; }
.agplaza-card .acts.primary .save.on { border: none; }

/* 第二行：评价胶囊（等宽圆角，浅底悬停反馈） */
.agplaza-card .acts.rate-row { gap: 9px; margin-top: 8px; }
.agplaza-card .acts.rate-row button {
  flex: 1; height: 33px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}
.agplaza-card .acts.rate-row .up { background: var(--ag-up-bg); color: var(--ag-up-ink); }
.agplaza-card .acts.rate-row .up:hover { background: var(--ag-up-bg-2); }
.agplaza-card .acts.rate-row .up.on { background: linear-gradient(135deg, var(--ag-up-on-bg), var(--ag-up-on-2)); color: var(--ag-up-on-ink); }
.agplaza-card .acts.rate-row .down { background: #F5F1EA; color: var(--ag-ink-4); }
.agplaza-card .acts.rate-row .down:hover { background: var(--ag-line); }
.agplaza-card .acts.rate-row .down.on { background: #E0D3C0; color: #5e4f3a; }

/* 老师/学生"我的发布"卡片：按钮间距放宽，视觉统一 */
.agplaza-card .acts { gap: 7px; }
.agplaza-card .acts button { height: 34px; }

@media (max-width: 900px) {
  .agplaza-card .acts.primary .use { font-size: 13px; }
  .agplaza-card .acts.primary .save { font-size: 12px; }
}

/* =========================================================================
   v13：发布类列表分页条（每页 12 个）
   · 与广场暖橙风格统一：浅底圆角 + 橙色当前页
   ========================================================================= */
#agplaza-pager:empty { display: none; }
.agpager {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-top: 18px; padding: 12px 16px;
  background: var(--ag-card-soft); border: 1px solid var(--ag-line-soft); border-radius: 14px;
}
.agpager-info { font-size: 13px; color: var(--ag-ink-3); }
.agpager-info b { color: var(--ag-accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.agpager-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.agpager-btns button {
  min-width: 34px; height: 34px; padding: 0 11px;
  border: 1px solid var(--ag-line); border-radius: 10px;
  background: #fff; color: var(--ag-ink-4);
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all .15s;
}
.agpager-btns button:hover:not(:disabled):not(.on) { background: var(--ag-accent-soft); border-color: var(--ag-accent-2); color: var(--ag-accent-ink); }
.agpager-btns button:disabled { opacity: .42; cursor: default; }
.agpager-btns .agpager-nav { padding: 0 14px; color: #8B7A62; }
.agpager-btns .agpager-num.on {
  background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-deep));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--ag-accent) 65%, transparent);
}
.agpager-gap { color: var(--ag-faint); font-size: 13px; padding: 0 2px; user-select: none; }

@media (max-width: 640px) {
  .agpager { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .agpager-info { text-align: center; }
  .agpager-btns { justify-content: center; }
  .agpager-btns .agpager-nav { padding: 0 10px; }
}

/* =========================================================================
   v16：菜单界面整体优化
   · 前台菜单不再显示序号（seq 仍由服务端用于排序/层级，仅管理端维护页可见）
   · 菜单图标支持 emoji 文本 或 图片（站内 /uploads/icons、外链、data URI）
   ========================================================================= */

/* ---- 图片图标：跟随所在位置的图标字号自适应（.nti 的 font-size 决定大小） ---- */
.nti-img { display: inline-flex; align-items: center; justify-content: center; }
.nti-img .nti-i {
  width: 1.12em; height: 1.12em; display: block;
  object-fit: contain; border-radius: 5px;
}
.navtab .nti-img .nti-i { border-radius: 6px; }

/* ---- 电脑模式：头部吸附 + 毛玻璃底（::before 只做背景，不裁剪下拉面板） ---- */
[data-uimode="desk"] .topbar {
  position: sticky; top: 0; z-index: 60;
  padding-bottom: 10px;
}
[data-uimode="desk"] .topbar::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(248, 251, 255, .97);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 0 0 100vmax rgba(248, 251, 255, .97), 0 1px 0 rgba(226, 236, 248, .95);
  /* 只保留与头部等高的横向铺满，避免遮住页面内容 */
  clip-path: inset(0 -100vmax);
  z-index: -1;
}
/* v70：窄屏「电脑模式」顶栏同样吸附 + 毛玻璃。
   原来此处把 .topbar 改成 static 并隐藏 ::before 背景，
   导致 ≤720px 时导航行悬浮在正文上、上滑时与页面文字重叠。 */
@media (max-width: 720px) {
  [data-uimode="desk"] .topbar {
    position: sticky; top: 0; z-index: 60;
    padding: 8px 12px 6px;
  }
  .topnav { margin-left: 0; }
  /* 窄屏压缩：搜索框收进 🔍 弹出搜索（openIpSearch），减少换行、控制吸附高度 */
  html[data-uimode="desk"] .tb-search { display: none; }
  html[data-uimode="desk"] .tb-search-open { display: inline-flex; }
  [data-uimode="desk"] .topnav { gap: 2px; }
  [data-uimode="desk"] .tn-link { padding: 7px 9px; font-size: 12.5px; }
}
/* ≤560px 电脑模式：进一步压缩吸附顶栏的纵向占用（按钮更小、更紧凑） */
@media (max-width: 560px) {
  [data-uimode="desk"] .topbar { padding: 6px 10px 4px; }
  [data-uimode="desk"] .topbar-right { gap: 4px; }
  [data-uimode="desk"] .topbar-right .btn { padding: 6px 8px; font-size: 12px; min-height: 30px; }
  [data-uimode="desk"] .topbar-right .btn-sm { min-height: 30px; }
  [data-uimode="desk"] .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
  [data-uimode="desk"] .brand-logo svg { width: 19px; height: 19px; }
  [data-uimode="desk"] .brand-txt b { font-size: 15px; }
}

/* ---- 管理端「菜单维护」：图标列可点击 ---- */
.mn-table .mn-icon-btn {
  border: 0; background: none; cursor: pointer; padding: 0; margin: 0 8px 0 0;
  font-family: inherit; vertical-align: middle; line-height: 1;
}
.mn-table .mn-icon-btn .mn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: #f4f8fe; border: 1px solid #e8eef6;
  font-size: 17px; transition: all .15s;
}
.mn-table .mn-icon-btn:hover .mn-icon { background: #e9f2ff; border-color: #c9dffb; transform: translateY(-1px); }
.mn-table .mn-icon-btn .mn-icon img { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; }
.mn-table .mn-icon-btn .mn-icon.is-none { color: #cfd9e4; font-size: 15px; }

/* ---- 图标选择器弹窗 ---- */
.ic-wrap { display: flex; flex-direction: column; gap: 14px; }
.ic-top { display: flex; align-items: center; gap: 14px; }
.ic-preview {
  width: 62px; height: 62px; border-radius: 18px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef5ff, #e6f0ff);
  border: 1px solid #dbe9fb; font-size: 30px; overflow: hidden;
}
.ic-preview img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.ic-preview.none { color: #c3d0dd; font-size: 22px; }
.ic-tip { font-size: 12.5px; color: #8B8375; line-height: 1.6; }
.ic-tip b { color: #C4710E; }
.ic-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ic-input {
  flex: 1 1 200px; min-width: 160px; padding: 9px 12px;
  border: 1px solid #EDE3D4; border-radius: 10px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.ic-input:focus { outline: 0; border-color: #f3cfa0; box-shadow: 0 0 0 3px rgba(255, 138, 61, .14); }
.ic-file { display: none; }
.ic-cats { display: flex; flex-direction: column; gap: 12px; max-height: 296px; overflow-y: auto; padding-right: 4px; }
.ic-cat .ic-cat-h {
  font-size: 12px; font-weight: 800; color: #9A9081;
  margin-bottom: 7px; display: flex; align-items: center; gap: 6px;
}
.ic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.ic-cell {
  aspect-ratio: 1 / 1; border: 1px solid #F0E6D6; border-radius: 12px;
  background: #FFFDF9; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; transition: all .14s; padding: 0;
}
.ic-cell:hover { background: #FFF4E6; border-color: #F3CFA0; transform: translateY(-2px); }
.ic-cell.on { background: linear-gradient(135deg, #FF9A4D, #FF7A1F); border-color: transparent; }
.ic-del {
  border: 1px solid #F0E2CC; background: #fff; border-radius: 10px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; color: #7A6E5D;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.ic-del:hover { background: #FFF1E0; border-color: #F3CFA0; color: #C4710E; }

/* 管理端「菜单维护」表格 */
.mn-wrap { display: grid; gap: 18px; }
.mn-card { background: #fff; border: 1px solid #F0E8DC; border-radius: 16px; padding: 18px 20px; }
.mn-card h3 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.mn-card .mn-sub { font-size: 12.5px; color: #9A9081; margin-bottom: 12px; }
.mn-table { width: 100%; border-collapse: collapse; }
.mn-table th { text-align: left; font-size: 12px; color: #9A9081; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid #F3ECE0; }
.mn-table td { padding: 8px 10px; border-bottom: 1px dashed #F3ECE0; font-size: 13.5px; vertical-align: middle; }
.mn-table tr.is-child td:first-child { padding-left: 34px; }
.mn-table tr.is-hidden td { opacity: .5; background: #FAF7F2; }
.mn-table tr.is-hidden td:first-child { border-left: 3px solid #E8DCC8; }
.mn-hidden-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px;
  font-size: 11px; font-weight: 800; color: #9A9081; background: #F0EAE0; border: 1px dashed #DCD2C2;
}
.mn-table .mn-seq {
  display: inline-block; min-width: 34px; text-align: center; padding: 2px 7px;
  border-radius: 8px; background: #FFF3E4; color: #C4710E;
  font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.mn-table .mn-icon { font-size: 16px; margin-right: 6px; }
.mn-table .mn-href { color: #9A9081; font-size: 12px; }
.mn-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mn-acts button {
  border: 1px solid #F0E2CC; background: #fff; border-radius: 8px;
  padding: 4px 9px; font-size: 12px; font-weight: 700; color: #7A6E5D;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.mn-acts button:hover { background: #FFF1E0; border-color: #F3CFA0; color: #C4710E; }
.mn-acts button:disabled { opacity: .4; cursor: default; }
.mn-acts button.mn-primary { background: linear-gradient(135deg, #FF9A4D, #FF7A1F); border-color: transparent; color: #fff; }
.mn-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.mn-toolbar .hint { font-size: 12.5px; color: #9A9081; }

/* =========================================================================
   v15：个人工作台（学生端 / 教师端）+ 菜单层级调整
   ========================================================================= */
.wb-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.wb-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  padding: 20px 22px; margin-bottom: 16px;
  border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #7C6CF6, #4E8BF6 55%, #38BDF8);
  box-shadow: 0 16px 32px -18px rgba(78, 139, 246, .85);
}
.wb-hero-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wb-hero-avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none;
  background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; }
.wb-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wb-hero h2 { margin: 0 0 4px; font-size: 19px; }
.wb-hero-sub { margin: 0; font-size: 12.5px; opacity: .88; }
.wb-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 74px; padding: 9px 12px; border-radius: 13px;
  background: rgba(255,255,255,.18); color: #fff; text-decoration: none;
  transition: transform .15s, background .15s;
}
.wb-chip:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }
.wb-chip-num { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.wb-chip-label { font-size: 11px; opacity: .9; }

.wb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .wb-grid { grid-template-columns: 1fr; } }

.wb-more { font-size: 12.5px; color: #C4710E; text-decoration: none; font-weight: 700; }
.wb-more:hover { text-decoration: underline; }

.wb-todo { display: flex; flex-direction: column; }
.wb-todo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px; border-bottom: 1px dashed #F1EADF;
  text-decoration: none; color: inherit; transition: background .15s;
}
.wb-todo-item:last-child { border-bottom: 0; }
.wb-todo-item:hover { background: #FFFCF6; }
.wb-todo-dot { width: 8px; height: 8px; border-radius: 50%; background: #FFB020; flex: none; }
.wb-todo-dot.doing { background: #4E8BF6; }
.wb-todo-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.wb-todo-main b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-todo-main i { font-style: normal; font-size: 11.5px; color: #9A9081; }
.wb-todo-dead {
  flex: none; font-size: 11.5px; font-weight: 700; color: #8B8375;
  background: #F7F2E9; border-radius: 8px; padding: 3px 8px;
}
.wb-todo-dead.soon { background: #FFF1E0; color: #C4710E; }
.wb-todo-dead.over { background: #FDECEC; color: #D9534F; }
.wb-empty { padding: 26px 0; text-align: center; color: #9A9081; font-size: 13px; }

.wb-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 1px solid #F1E9DC; border-radius: 13px;
  background: #FFFDF9; text-decoration: none; color: inherit;
  transition: all .15s;
}
.wb-link:hover { border-color: #F3CFA0; background: #FFF7EC; transform: translateY(-1px); }
.wb-link-icon { font-size: 19px; flex: none; }
.wb-link-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wb-link-txt b { font-size: 13px; }
.wb-link-txt i { font-style: normal; font-size: 11px; color: #9A9081; }
@media (max-width: 560px) { .wb-links { grid-template-columns: 1fr; } }

/* 菜单维护：层级徽章 + 层级调整 */
.mn-table .mn-lv {
  display: inline-block; padding: 1px 7px; border-radius: 7px; font-size: 11px; font-weight: 800;
  background: #EEF4FF; color: #3B6FD4;
}
.mn-table .mn-lv.lv2 { background: #F3F0FF; color: #6C5CE7; }
.mn-acts button.mn-lv-btn { background: #F7F5FF; border-color: #E2DCFF; color: #6C5CE7; }
.mn-acts button.mn-lv-btn:hover { background: #EFEBFF; border-color: #CFC4FF; }
.mn-lv-pick { display: flex; flex-direction: column; gap: 8px; }
.mn-lv-pick label { font-size: 12.5px; color: #8B8375; }
.mn-lv-pick select {
  width: 100%; padding: 9px 10px; border: 1px solid #EDE3D4; border-radius: 10px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: var(--ink);
}

/* =========================================================================
   v17：教师账号多身份（登录身份选择 · 顶栏切换身份 · 管理端授权）
   ========================================================================= */
.idpick { margin-bottom: 20px; }
.idpick-hint { font-size: 13px; color: #6b5fa3; line-height: 1.7; margin: 10px 0 14px; }
.idpick-list { display: flex; flex-direction: column; gap: 12px; }
.idpick-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 15px 16px; border-radius: 18px; text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(245, 240, 255, .9));
  border: 1px solid rgba(123, 92, 255, .15);
  cursor: pointer; font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.idpick-item:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 92, 255, .35);
  box-shadow: 0 12px 24px rgba(91, 60, 231, .22);
}
.idpick-item:active { transform: scale(.99); }
.idpick-item.busy { opacity: .55; pointer-events: none; }
.idpick-ico {
  width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(135deg, #4a2cc9, #7b5cff);
  box-shadow: 0 6px 14px rgba(74, 44, 201, .32);
}
.idpick-item[data-role="admin"] .idpick-ico {
  background: linear-gradient(135deg, #ff7a1f, #ffb04d);
  box-shadow: 0 6px 14px rgba(255, 122, 31, .32);
}
.idpick-item[data-role="student"] .idpick-ico {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 6px 14px rgba(16, 185, 129, .32);
}
.idpick-txt { flex: 1; min-width: 0; }
.idpick-txt b { display: block; font-size: 15.5px; font-weight: 800; color: #2a1a64; }
.idpick-txt em { display: block; font-style: normal; font-size: 12.5px; color: #7d72b8; margin-top: 3px; line-height: 1.5; }

/* 顶栏身份徽章（当前以哪种身份使用系统） */
.role-chip {
  display: inline-block; margin-left: 7px; padding: 1px 7px;
  border-radius: 999px; font-size: 10.5px; font-weight: 800;
  background: rgba(255, 122, 31, .14); color: #C4710E;
  vertical-align: middle; white-space: nowrap;
}
.user-chip .user-name { display: flex; align-items: center; }

/* 管理端：教师账号身份标签 */
.perm-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 800;
  background: #f2f4f8; color: #7a8699;
}
.perm-tag.on { background: rgba(255, 122, 31, .14); color: #C4710E; }
/* 待改密（首次登录须修改密码） */
.perm-tag.warn { background: rgba(214, 69, 90, .12); color: #b8384c; }
/* v120：初始状态（账号仍在使用初始密码，从未完成首次改密） */
.perm-tag.init { background: rgba(255, 122, 31, .14); color: #C4710E; }
html[data-theme="deepblue"] .perm-tag.init { background: rgba(255, 163, 84, .18); color: #FFCC8F; }

/* 管理端：勾选行（授予管理员权限） */
.cb-line { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.cb-line input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--blue); flex: 0 0 auto; }
.cb-line em { display: block; font-style: normal; font-weight: 600; font-size: 12px; color: var(--ink3); margin-top: 3px; line-height: 1.5; }

/* =========================================================================
   v18：双主题支持
   classic = 默认「晴空蓝」（:root 定义，保持原样）
   jade    = 「墨绿鎏金」校园品牌配色（参考校网深墨绿 + 浅鎏金）
   覆盖方式：html[data-theme="jade"] 重定义变量与关键界面用色，不动任何布局
   ========================================================================= */
html[data-theme="jade"] {
  --blue: #1e6a5b;
  --primary: #1e6a5b;
  --primary-dark: #164c40;
  --grad: linear-gradient(135deg, #1e6a5b, #2f8069);
  --grad-shadow: 0 5px 14px rgba(30, 106, 91, .32);
  --tint: #e9f1ed;
  --tint-2: #dcebe4;
  --tint-ink: #1e6a5b;
  --tint-line: #c6dcd2;
  /* 鎏金点缀色（主题专属） */
  --gold: #c9a96b;
  --gold-soft: #efe4cd;
}

/* ---- 页面底色：暖纸色 + 墨绿雾面（替代原蓝天雾面） ---- */
html[data-theme="jade"] body {
  background:
    radial-gradient(900px 500px at 110% -8%, #efe4cd 0%, rgba(239, 228, 205, 0) 60%),
    radial-gradient(800px 500px at -10% 0%, #dcebe4 0%, rgba(220, 235, 228, 0) 60%),
    linear-gradient(180deg, #e4efe9 0%, #f6f4ec 45%, #e9f1ed 100%);
  background-attachment: fixed;
}
html[data-theme="jade"] ::selection { background: rgba(30, 106, 91, .22); }
html[data-theme="jade"] .brand-logo { box-shadow: 0 6px 16px rgba(30, 106, 91, .35); }
html[data-theme="jade"] .btn-primary:hover { box-shadow: 0 8px 22px rgba(30, 106, 91, .42); }
html[data-theme="jade"] a { color: var(--blue); }
/* 修复：上面的 a 颜色规则优先级高于按钮类，会把 <a class="btn btn-primary"> 等实底按钮的白字盖成深绿字 */
html[data-theme="jade"] a.btn-primary,
html[data-theme="jade"] a.btn-danger,
html[data-theme="jade"] a.btn-green,
html[data-theme="jade"] a.btn-dingtalk { color: #fff; }

/* ---- 登录页：深墨绿底 + 鎏金光斑 ---- */
html[data-theme="jade"] .login-wrap {
  background:
    radial-gradient(ellipse at 16% 10%, rgba(201, 169, 107, .35), transparent 55%),
    radial-gradient(ellipse at 84% 88%, rgba(47, 128, 105, .55), transparent 60%),
    linear-gradient(135deg, #0f3b31 0%, #1e6a5b 48%, #2e7d68 100%);
}
html[data-theme="jade"] .login-bg-orb1 { background: #c9a96b; }
html[data-theme="jade"] .login-bg-orb2 { background: #2f8069; }
html[data-theme="jade"] .login-bg-orb3 { background: #e5c990; }
html[data-theme="jade"] .login-card {
  color: #1c463c;
  box-shadow: 0 24px 50px rgba(10, 46, 38, .4), 0 6px 14px rgba(10, 46, 38, .2);
}
html[data-theme="jade"] .login-logo {
  background: linear-gradient(135deg, #1e6a5b 0%, #c9a96b 130%);
  box-shadow: 0 12px 26px rgba(30, 106, 91, .42);
}
html[data-theme="jade"] .login-hero h1 {
  background: linear-gradient(90deg, #164c40, #a8874f);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="jade"] .login-subtitle { color: #5f7d72; }
html[data-theme="jade"] .login-role {
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(240, 246, 242, .92));
  border-color: rgba(30, 106, 91, .16);
}
html[data-theme="jade"] .login-role:hover {
  border-color: rgba(30, 106, 91, .38);
  box-shadow: 0 12px 24px rgba(22, 76, 64, .22);
}
html[data-theme="jade"] .login-role.on { box-shadow: 0 0 0 3px rgba(30, 106, 91, .22), 0 12px 24px rgba(22, 76, 64, .22); }
html[data-theme="jade"] .login-role-icon-teacher {
  background: linear-gradient(135deg, #164c40, #2f8069);
  box-shadow: 0 6px 14px rgba(22, 76, 64, .35);
}
html[data-theme="jade"] .login-role-text b { color: #1c463c; }
html[data-theme="jade"] .login-role-text span { color: #6d857b; }
html[data-theme="jade"] .login-role-arrow { color: #a8c3b8; }
html[data-theme="jade"] .login-role:hover .login-role-arrow { color: #1e6a5b; }
html[data-theme="jade"] .login-back { color: #1e6a5b; }
html[data-theme="jade"] .login-back:hover { color: #164c40; }
html[data-theme="jade"] .login-form .field label { color: #1c463c; }
html[data-theme="jade"] .login-form .input { background: #f0f5f1; border-color: rgba(30, 106, 91, .25); }
html[data-theme="jade"] .login-form .input:focus {
  background: #fff; border-color: #1e6a5b;
  box-shadow: 0 0 0 4px rgba(30, 106, 91, .15);
}
html[data-theme="jade"] .login-fallback a { color: #6d857b; }
html[data-theme="jade"] .login-fallback a:hover { color: #1e6a5b; border-color: #1e6a5b; }
html[data-theme="jade"] .login-terms { color: #6d857b; }
html[data-theme="jade"] .login-terms a { color: #1e6a5b; border-bottom-color: rgba(30, 106, 91, .35); }
html[data-theme="jade"] .login-terms a:hover { color: #164c40; border-color: #164c40; }

/* 登录页身份选择（v17 idpick）：默认墨绿底、管理员鎏金底 */
html[data-theme="jade"] .idpick-hint { color: #5f7d72; }
html[data-theme="jade"] .idpick-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(240, 246, 242, .92));
  border-color: rgba(30, 106, 91, .16);
}
html[data-theme="jade"] .idpick-item:hover {
  border-color: rgba(30, 106, 91, .38);
  box-shadow: 0 12px 24px rgba(22, 76, 64, .22);
}
html[data-theme="jade"] .idpick-ico {
  background: linear-gradient(135deg, #164c40, #2f8069);
  box-shadow: 0 6px 14px rgba(22, 76, 64, .32);
}
html[data-theme="jade"] .idpick-item[data-role="admin"] .idpick-ico {
  background: linear-gradient(135deg, #b3925a, #d9bc84);
  box-shadow: 0 6px 14px rgba(179, 146, 90, .38);
}
html[data-theme="jade"] .idpick-txt b { color: #1c463c; }
html[data-theme="jade"] .idpick-txt em { color: #6d857b; }

/* 钉钉绑定弹层文字色（登录页内） */
html[data-theme="jade"] .dd-spinner, html[data-theme="jade"] .dd-tip,
html[data-theme="jade"] .dd-bind-tip { color: #6d857b; }
html[data-theme="jade"] .dd-tip-bind { color: #164c40; }
html[data-theme="jade"] .dd-bind-form .field label { color: #1c463c; }
html[data-theme="jade"] .dd-mask .modal { color: #1c463c; }

/* ---- 顶栏 / 导航点缀 ---- */
html[data-theme="jade"] .tn-link:not(.on):hover { color: var(--ink); }
html[data-theme="jade"] .nv-dd { border-color: var(--tint-line); }
html[data-theme="jade"] .topbar { border-bottom-color: transparent; }

/* ---- 各端 hero 横幅与图标渐变跟随主题（布局不变，仅换色） ---- */
html[data-theme="jade"] .cal-hero {
  background: linear-gradient(135deg, #1e6a5b 0%, #2f8069 55%, #4b9678 100%);
  box-shadow: 0 12px 28px rgba(30, 106, 91, .32);
}
html[data-theme="jade"] .wb-hero {
  background: linear-gradient(135deg, #164c40, #2f8069 55%, #c9a96b 160%);
  box-shadow: 0 16px 32px -18px rgba(22, 76, 64, .75);
}
html[data-theme="jade"] .sched-hero {
  background: linear-gradient(135deg, rgba(30, 106, 91, .10), rgba(201, 169, 107, .10));
}
html[data-theme="jade"] .avatar-hero { box-shadow: 0 4px 14px rgba(30, 106, 91, .35); }
html[data-theme="jade"] .inq-c1 .inq-card-icon { background: var(--tint); }

/* ---- 管理端「主题样式」选择页 ---- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 6px; }
.theme-card {
  position: relative; text-align: left; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--r);
  background: #fff; padding: 14px; font-family: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.theme-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint), var(--sh2); }
.theme-card.current::after {
  content: "✓ 使用中"; position: absolute; top: 12px; right: 12px;
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; box-shadow: var(--grad-shadow);
}
.theme-preview {
  border-radius: 14px; overflow: hidden; height: 150px;
  display: flex; flex-direction: column; margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(31, 60, 100, .06);
}
.theme-preview .tp-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.theme-preview .tp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.theme-preview .tp-body { flex: 1; display: flex; gap: 8px; padding: 10px; }
.theme-preview .tp-card {
  flex: 1; border-radius: 8px; background: rgba(255, 255, 255, .92);
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
}
.theme-preview .tp-line { height: 5px; border-radius: 3px; opacity: .5; }
.theme-preview .tp-line.w1 { width: 70%; }
.theme-preview .tp-line.w2 { width: 45%; }
.theme-preview .tp-chip { width: 34px; height: 12px; border-radius: 6px; margin-top: auto; }
/* 预览：晴空蓝 */
.tp-classic .tp-bar { background: linear-gradient(135deg, #5aa8ff, #7f7bff); }
.tp-classic { background: linear-gradient(160deg, #e8f2ff, #f7fbff); }
.tp-classic .tp-line { background: #5aa8ff; }
.tp-classic .tp-chip { background: linear-gradient(135deg, #5aa8ff, #7f7bff); }
/* 预览：墨绿鎏金 */
.tp-jade .tp-bar { background: linear-gradient(135deg, #164c40, #2e7d68); }
.tp-jade { background: linear-gradient(160deg, #e9f1ed, #f6f4ec); }
.tp-jade .tp-line { background: #1e6a5b; }
.tp-jade .tp-chip { background: linear-gradient(135deg, #1e6a5b, #c9a96b); }
.theme-meta b { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.theme-meta em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink3); margin-top: 3px; line-height: 1.55; }
.theme-swatches { display: flex; gap: 6px; margin-top: 9px; }
.theme-swatches i { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(31, 60, 100, .12); }

/* =========================================================================
   v18b：智能体模块主题化（校园智能体 / 智能体广场 老师端+学生端）
   classic = 原暖米底+橙主色（保持原视觉不变）；jade = 墨绿鎏金
   广场区块内所有用色已改为引用 --ag-* 变量，切换主题即时生效
   ========================================================================= */
:root {
  --ag-bg: #FFF8EF;
  --ag-accent: #FF8A3D;
  --ag-accent-2: #FFB76B;
  --ag-accent-deep: #FF6020;
  --ag-accent-soft: #FFF1E4;
  --ag-accent-ink: #E07020;
  --ag-ink: #2d3142;
  --ag-ink-2: #4a4135;
  --ag-ink-3: #9a8c7a;
  --ag-ink-4: #7a6e5d;
  --ag-faint: #b8a98e;
  --ag-line: #F1E6D6;
  --ag-line-soft: #FAF1E3;
  --ag-tab-bg: #FFEFD9;
  --ag-tab-ink: #8a7458;
  --ag-chip-ink: #6b5e4d;
  --ag-card-soft: #FFFBF4;
  --ag-track: #F4ECDC;
  --ag-up-bg: #FFF6E4;
  --ag-up-bg-2: #FFEFC8;
  --ag-up-ink: #E89D1F;
  --ag-up-on-bg: #FFD680;
  --ag-up-on-ink: #B5750B;
  --ag-act: #2E7CF6;
  --ag-act-2: #5BA8FF;
  --ag-act-soft: #E8F1FF;
  --ag-act-soft-2: #D6E5FF;
  --ag-warm-1: #FFD9B5;
  --ag-warm-2: #FFD9C0;
  --ag-warm-3: #FFC2A0;
  --ag-gold-1: #FFE2C8;
  --ag-gold-2: #FFC79A;
  --ag-gold-3: #FFE8D8;
  --ag-gold-4: #FFD4A8;
  --ag-bg-2: #FFF7EE;
  --ag-ink-5: #5C5242;
  --ag-up-on-2: #FFC24D;
}
/* ---- jade：墨绿鎏金（广场外壳/卡片/Tab/按钮全部跟随主题） ---- */
html[data-theme="jade"] {
  --ag-bg: #f4f3ea;
  --ag-accent: #1e6a5b;
  --ag-accent-2: #c9a96b;
  --ag-accent-deep: #164c40;
  --ag-accent-soft: #e6efe9;
  --ag-accent-ink: #175e50;
  --ag-ink: #24352e;
  --ag-ink-2: #3f554b;
  --ag-ink-3: #7d8f83;
  --ag-ink-4: #5a6e62;
  --ag-faint: #a4b3a7;
  --ag-line: #d5e0d6;
  --ag-line-soft: #e5ede5;
  --ag-tab-bg: #e3ece4;
  --ag-tab-ink: #66796d;
  --ag-chip-ink: #4d6156;
  --ag-card-soft: #f3f7f1;
  --ag-track: #dde6dc;
  --ag-up-bg: #f1edda;
  --ag-up-bg-2: #e9e2c4;
  --ag-up-ink: #8f7a2e;
  --ag-up-on-bg: #e3d5a4;
  --ag-up-on-ink: #7a6120;
  --ag-act: #1e6a5b;
  --ag-act-2: #2f8069;
  --ag-act-soft: #e2efe8;
  --ag-act-soft-2: #d2e5da;
  --ag-warm-1: #ead9b0;
  --ag-warm-2: #ecdfc0;
  --ag-warm-3: #ddc896;
  --ag-gold-1: #f2ecd8;
  --ag-gold-2: #e3d3a4;
  --ag-gold-3: #f4eeda;
  --ag-gold-4: #e6d5a8;
  --ag-bg-2: #efeadd;
  --ag-ink-5: #43584e;
  --ag-up-on-2: #d9c488;
}

/* ---- jade 追加：广场 pastel 图标块统一到「墨绿 + 鎏金 + 鼠尾草/陶土」色族，避免粉紫蓝跳色 ---- */
html[data-theme="jade"] .agplaza-stat.s1 .ic { background: linear-gradient(135deg, #e2efe9, #c7e0d5); }
html[data-theme="jade"] .agplaza-stat.s3 .ic { background: linear-gradient(135deg, #dcecdf, #b6d8c0); }
html[data-theme="jade"] .agplaza-stat.s4 .ic { background: linear-gradient(135deg, #f0e7d6, #e0cfb2); }
html[data-theme="jade"] .agplaza-card .ci.b2 { background: linear-gradient(135deg, #e2efe9, #c7e0d5); }
html[data-theme="jade"] .agplaza-card .ci.b3 { background: linear-gradient(135deg, #dcecdf, #b6d8c0); }
html[data-theme="jade"] .agplaza-card .ci.b4 { background: linear-gradient(135deg, #f0e7d6, #e0cfb2); }
html[data-theme="jade"] .agplaza-card .ci.b5 { background: linear-gradient(135deg, #e4eee8, #c9ded3); }

/* =========================================================================
   v18c：智能体名称上限 8 字
   · 输入框右侧实时字数提示（达到上限变强调色）
   · 历史超长数据（旧库中 >8 字的老智能体）统一省略号截断，避免撑破卡片/表格
   ========================================================================= */
.ag-title-count {
  margin-left: 8px; font-size: 11px; font-weight: 700; font-style: normal;
  letter-spacing: .3px; color: var(--ag-ink-3, #9a8c7a);
}
.ag-title-count.over { color: var(--ag-accent-deep, #FF6020); }
.agplaza-card .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.agdash-table .agname { min-width: 0; }
.agdash-table .agname .nm-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agfb-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================================
   v18d：首次登录「强制修改密码」页（教师 / 学生）
   · 与登录页同一套视觉语言（渐变底 + 白卡），随主题切换（classic 紫 / jade 墨绿鎏金）
   · 页面不可跳过：改完密码才会进入业务界面
   ========================================================================= */
.pwd-force-wrap {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
  background:
    radial-gradient(ellipse at 16% 10%, rgba(255, 92, 242, .38), transparent 55%),
    radial-gradient(ellipse at 84% 88%, rgba(110, 86, 255, .5), transparent 60%),
    linear-gradient(135deg, #2d1c70 0%, #4a2cc9 48%, #6b3ce7 100%);
  color: #fff;
}
.pwd-force-card {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(33, 18, 92, .35), 0 6px 14px rgba(33, 18, 92, .18);
  width: 100%; max-width: 440px;
  padding: 32px 28px 26px;
  color: #2a1a64;
  animation: fadeIn .25s ease-out;
}
.pwd-force-hero { text-align: center; margin-bottom: 22px; }
.pwd-force-ico {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px;
  background: linear-gradient(135deg, #7b5cff 0%, #ff5cf2 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff;
  box-shadow: 0 12px 26px rgba(123, 92, 255, .42);
}
.pwd-force-hero h1 {
  font-size: 23px; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(90deg, #4a2cc9, #ff5cf2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pwd-force-hero p { font-size: 13px; color: #6b5fa3; line-height: 1.75; margin-top: 8px; }
.pwd-force-form .field { margin-bottom: 13px; }
.pwd-force-form .field label { font-size: 13px; font-weight: 700; color: #4a3a86; display: block; margin-bottom: 6px; }
.pwd-force-rules {
  list-style: none; margin: 2px 0 12px; padding: 12px 14px;
  border-radius: 12px; background: #f6f3ff;
  display: flex; flex-direction: column; gap: 6px;
}
.pwd-force-rules li { position: relative; padding-left: 20px; font-size: 12.5px; color: #8b83b5; }
.pwd-force-rules li::before { content: '○'; position: absolute; left: 0; top: -1px; font-size: 13px; }
.pwd-force-rules li.ok { color: #1f9d6b; font-weight: 700; }
.pwd-force-rules li.ok::before { content: '✓'; color: #1f9d6b; }
.pwd-force-form .btn-block + .btn-block { margin-top: 10px; }

/* jade 主题：深墨绿 + 鎏金 */
html[data-theme="jade"] .pwd-force-wrap {
  background:
    radial-gradient(ellipse at 16% 10%, rgba(201, 169, 107, .30), transparent 55%),
    radial-gradient(ellipse at 84% 88%, rgba(30, 106, 91, .55), transparent 60%),
    linear-gradient(135deg, #10352c 0%, #164c40 48%, #1e6a5b 100%);
}
html[data-theme="jade"] .pwd-force-card { border-color: rgba(201, 169, 107, .45); color: #1c463c; }
html[data-theme="jade"] .pwd-force-ico {
  background: linear-gradient(135deg, #1e6a5b 0%, #c9a96b 130%);
  box-shadow: 0 12px 26px rgba(22, 76, 64, .42);
}
html[data-theme="jade"] .pwd-force-hero h1 {
  background: linear-gradient(90deg, #164c40, #c9a96b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="jade"] .pwd-force-hero p { color: #5f7d72; }
html[data-theme="jade"] .pwd-force-form .field label { color: #1c463c; }
html[data-theme="jade"] .pwd-force-rules { background: #eff5f0; }
html[data-theme="jade"] .pwd-force-rules li { color: #7d8f83; }
html[data-theme="jade"] .pwd-force-rules li.ok { color: #1e6a5b; }
html[data-theme="jade"] .pwd-force-rules li.ok::before { color: #1e6a5b; }

/* =========================================================================
   v20：智能体名称展示统一为「最多 8 个字符」
   · JS 层已按码点截断（超出取前 7 字 + …，总长仍为 8），这里做版式兜底：
     任何容器都不得因名称过长撑开或错位，教师端 / 学生端 / 分享页表现一致。
   · 完整名称通过元素的 title 属性悬停查看，不再影响布局。
   ========================================================================= */
.agplaza-card .name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agplaza-card .head .ht { min-width: 0; }
.agdash-table .agname { display: flex; align-items: center; min-width: 0; }
.agdash-table .agname .nm-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agfb-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agfb-cls > span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* 分享页（学生 / 家长免登录访问） */
.sh-agent-title .sh-agent-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================================
   v21：卡通IP形象「亲小AI」（教师/学生专区 + 管理端素材管理）
   全部使用平台主题变量（--ink/--tint/--grad…），classic / jade 自动适配。
   ========================================================================= */
/* ---- 通用 IP 头像（圆形） ---- */
.ip-ava { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(31,60,100,.12); flex: none; }
.ip-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* 姿态素材是全身立绘：圆形/小尺寸场景用 contain，避免裁掉头脚（v23m） */
.ip-ava img.ip-ava-pose { object-fit: contain; }
.ip-ava-svg svg { width: 100%; height: 100%; }
.ip-asset { display: block; }

/* ---- 教师专区：极简专业 ---- */
.ip-t-head { display: flex; align-items: center; gap: 12px; }
.ip-chat { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ip-chat-msgs { display: flex; flex-direction: column; gap: 12px; max-height: 52vh; min-height: 260px; overflow-y: auto; padding: 4px 2px; }
.ip-msg { display: flex; align-items: flex-end; gap: 10px; }
.ip-msg-me { flex-direction: row-reverse; }
.ip-bubble { max-width: min(72%, 620px); padding: 12px 16px; border-radius: 18px; line-height: 1.75; word-break: break-word; }
.ip-bubble-ai { background: var(--bg2); border: 1px solid var(--line); border-top-left-radius: 6px; }
.ip-bubble-me { background: var(--grad); color: #fff; border-top-right-radius: 6px; box-shadow: var(--grad-shadow); }
.ip-typing .ip-bubble-ai { color: var(--ink3); font-style: italic; }
.ip-chat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ip-chip { border: 1px solid var(--tint-line); background: var(--tint); color: var(--tint-ink); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .12s ease; }
.ip-chip:hover { transform: translateY(-1px); }
.ip-chat-input { display: flex; gap: 10px; }
.ip-chat-input input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 18px; font-size: 16px; color: var(--ink); background: #fff; outline: none; }
.ip-chat-input input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.ip-chat-teacher .ip-bubble { font-size: 16px; }   /* 投屏高对比：16px 正文 */

/* ---- v173：亲小AI 语音输入 + 朗读 ---- */
.ip-mic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tint-line); background: #fff; color: var(--ink2); font-size: 19px; line-height: 1; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.ip-mic:hover { transform: translateY(-1px); background: var(--tint); }
.ip-mic:active { transform: scale(.96); }
/* 录音中：变红 + 呼吸光圈，学生一眼能看出「在听」 */
.ip-mic.on { background: var(--red); border-color: var(--red); color: #fff; animation: ipMicPulse 1.1s ease-in-out infinite; }
.ip-mic.is-off { opacity: .45; }
@keyframes ipMicPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, .55); } 50% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); } }

.ip-chat-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 26px; }
.ip-tts-toggle { border: 1px solid var(--line); background: #fff; color: var(--ink3); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ip-tts-toggle:hover { color: var(--ink2); }
.ip-tts-toggle.on { border-color: var(--tint-line); background: var(--tint); color: var(--tint-ink); }

.ip-voice-tip { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink3); line-height: 1.5; }
.ip-voice-tip.live { color: var(--blue); font-weight: 700; }
.ip-voice-tip.ok { color: var(--green); font-weight: 700; }
.ip-voice-tip.warn { color: #c9542f; font-weight: 700; }
.ip-voice-go { margin-left: 8px; color: var(--blue); font-weight: 800; text-decoration: underline; white-space: nowrap; }

/* 每条 AI 回答旁的朗读按钮 */
.ip-speak { flex: none; align-self: flex-end; border: 0; background: transparent; color: var(--ink3); font-size: 14px; line-height: 1; padding: 4px 2px; cursor: pointer; opacity: .5; transition: opacity .15s ease, transform .15s ease; }
.ip-speak:hover { opacity: 1; transform: scale(1.12); }
.ip-speak.speaking { opacity: 1; animation: ipSpeak 1s ease-in-out infinite; }
@keyframes ipSpeak { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@media (max-width: 420px) {
  .ip-mic { width: 40px; height: 40px; font-size: 17px; }
  .ip-voice-tip { font-size: 12px; }
}

/* ---- 学生专区：活泼 ---- */
.ip-s-head { display: flex; align-items: center; gap: 12px; }
.ip-hero { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: linear-gradient(135deg, var(--tint), #fff 70%); border: 1px solid var(--tint-line); }
.ip-hero-fig { flex: none; width: min(320px, 42%); }
.ip-hero-txt h3 { font-size: 22px; font-weight: 900; margin: 0 0 6px; }
.ip-hero-txt p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.ip-hero-txt b { color: var(--tint-ink); }
.ip-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.ip-quick-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r2); padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--sh); transition: transform .15s ease; }
.ip-quick-item:hover { transform: translateY(-2px); }
.ip-quick-item span { font-size: 22px; }
.ip-quick-item b { font-size: 14.5px; }
.ip-quick-item i { font-style: normal; font-size: 12px; color: var(--ink3); }
.ip-chat-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 10px 18px; text-align: center; }
.ip-chat-empty p { color: var(--ink3); font-size: 13.5px; margin: 0; }
.ip-chat-empty-fig svg { animation: ipFloat 3.2s ease-in-out infinite; }
@keyframes ipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* 悬浮亲小AI按钮（重看引导） */
.ip-fab { position: fixed; right: 22px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 6px; background: #fff; box-shadow: var(--sh2); cursor: pointer; z-index: 60; transition: transform .15s ease; }
.ip-fab:hover { transform: scale(1.08); }

/* ---- 新手引导：遮罩聚光 + 讲解员卡片 ---- */
.ip-guide { position: fixed; inset: 0; z-index: 999; }
.ip-guide-spot { position: absolute; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(15, 32, 52, .62); transition: all .25s ease; pointer-events: none; }
.ip-guide-card { position: absolute; width: min(340px, calc(100vw - 28px)); background: #fff; border-radius: var(--r2); padding: 14px; display: flex; gap: 12px; box-shadow: var(--sh2); }
.ip-guide-fig { flex: none; width: 76px; }
.ip-guide-title { font-size: 15.5px; font-weight: 900; color: var(--ink); }
.ip-guide-text { margin: 5px 0 10px; font-size: 13px; color: var(--ink2); line-height: 1.7; }
.ip-guide-ops { display: flex; align-items: center; gap: 8px; }
.ip-guide-n { margin-right: auto; font-size: 12px; color: var(--ink3); font-weight: 700; }

/* ---- 管理端：IP形象管理 ----
   v23c：展示尺寸按后台推荐尺寸放大（头像 256×256 / 插画 800×600 / 其余 512×512），
   img 用 object-fit:contain、SVG 按 viewBox 等比缩放，保证完整显示、不变形、不裁切。 */
.ipadm-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }
.ipadm-slots { display: flex; flex-direction: column; gap: 12px; }
.ipadm-slot { display: flex; gap: 16px; align-items: center; padding: 14px 16px; }
.ipadm-fig { flex: none; width: 300px; display: flex; align-items: center; justify-content: center; background: var(--bg2, var(--tint)); border-radius: var(--r2); padding: 12px; min-height: 260px; }
.ipadm-fig img { max-width: 100%; max-height: 320px; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.ipadm-fig svg { max-width: 100%; max-height: 320px; }
.ipadm-fig-hero { width: 340px; min-height: 300px; }
.ipadm-fig-hero img { max-height: 340px; }
.ipadm-t { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ipadm-rec { margin-top: 6px; font-size: 12.5px; color: var(--ink3); }
.ipadm-ops { display: flex; gap: 8px; margin-top: 8px; }
.ipadm-slot .chip-ok { background: var(--green-bg); color: var(--green); }
.ipadm-slot .chip-def { background: var(--tint); color: var(--tint-ink); }
/* v23m：旧的「姿态预览折叠区」样式（.ipadm-pose-fig / .ipadm-poses / .ipadm-pose-btn）
   已随折叠区一起移除——6 种姿态改为可直接上传替换的素材卡片（见 .ipx-card-pose） */

/* ---- 触控模式 ---- */
[data-uimode="touch"] .ip-quick-item { padding: 16px; }
[data-uimode="touch"] .ip-chip { padding: 10px 16px; }

/* ---- 窄屏适配 ---- */
@media (max-width: 860px) {
  .ipadm-grid { grid-template-columns: 1fr; }
  .ip-hero { flex-direction: column; text-align: center; }
  .ip-quick { grid-template-columns: 1fr; }
  .ipadm-slot { flex-direction: column; align-items: stretch; }
  .ipadm-fig, .ipadm-fig-hero { width: 100%; min-height: 240px; }
  .ip-msg, .ip-msg-me { align-items: flex-end; }
  .ip-bubble { max-width: 82%; }
}

/* ---- jade 主题微调（浅底/描边已随变量切换，这里只调插画底色） ---- */
html[data-theme="jade"] .ip-hero { background: linear-gradient(135deg, var(--tint), #f7f4ea 70%); }
html[data-theme="jade"] .ipadm-fig { background: var(--tint); }

/* =========================================================================
   v21e：悬浮 IP 形象「亲小AI」（固定于页面右上方 · 点击展开功能菜单）
   定位：position: fixed；top 由 --ip-top 驱动（JS 量取顶栏底部 + 8px，故总在页面右上方）；
        right：宽屏自动落到 1080px 内容列右侧的留白里，窄屏贴右边距 14px；
   不遮挡：窄屏（≤1223px）为正文预留右侧通道（.page 的 padding-right），
        形象所在竖条内不放正文，滚动时也不会压住内容；
   外观：无框（无底色 / 描边 / 圆徽），仅柔和落影表示悬浮；
   动效：上下小幅起伏（内层）+ 形象变化 / 角色切换的左右滑入滑出（内层 .ip-ava），巡游已移除；
   菜单：点击展开、再点收起，点页面空白处或按 Esc 同样收起。
   ========================================================================= */
:root { --ip-size: 52px; --ip-top: 96px; --ip-right: 14px; }

.ip-float {
  position: fixed; z-index: 65;
  top: var(--ip-top); right: var(--ip-right);
  display: flex; flex-direction: column; align-items: flex-end;
}
.ip-float-btn {
  width: var(--ip-size); height: var(--ip-size);
  padding: 0; border: 0; background: none; border-radius: 0;
  cursor: pointer; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .16s ease, filter .16s ease;
  -webkit-tap-highlight-color: transparent;
}
/* 内层头像撑满按钮（覆盖内联尺寸），四档尺寸只在一处维护 */
.ip-float-btn .ip-ava,
.ip-float-btn .ip-ava img { width: 100% !important; height: 100% !important; }
/* 无框：内层不留白底 / 描边 / 圆徽，形象直接浮在页面上 */
.ip-float-btn .ip-ava { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
/* 上传的自定义形象：完整显示不裁切（无框场景下圆形裁切可能切掉耳朵） */
.ip-float-btn .ip-ava img { object-fit: contain; border-radius: 0; }
.ip-float-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 14px; }

/* ---- 动效①：常态「上下小幅起伏」+ 极轻微左右摆动（内层 svg / img） ---- */
@media (prefers-reduced-motion: no-preference) {
  .ip-float-btn .ip-ava > svg,
  .ip-float-btn .ip-ava > img { animation: brandIpIdle 3.6s ease-in-out infinite; }
}
@keyframes brandIpIdle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(-1px, -1.6px) rotate(-1deg); }
  50%      { transform: translate(0, -0.6px) rotate(0deg); }
  75%      { transform: translate(1px, -2.6px) rotate(1deg); }
}

/* ---- 动效②：形象变化 / 角色切换 → 左右方向的移动（内层 .ip-ava） ---- */
@keyframes brandIpOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-14px); opacity: 0; } }
@keyframes brandIpIn { from { transform: translateX(14px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.ip-float-btn.ip-out .ip-ava { animation: brandIpOut .17s ease-in forwards; }
.ip-float-btn.ip-in .ip-ava { animation: brandIpIn .38s cubic-bezier(.22, .9, .3, 1) both; }
.ip-float.ip-in .ip-ava { animation: brandIpIn .38s cubic-bezier(.22, .9, .3, 1) both; }

/* 悬停：微微放大 + 柔和落影（落影不是描边框），减少动态效果时不动 */
@media (prefers-reduced-motion: no-preference) {
  .ip-float-btn:hover { transform: scale(1.08); filter: drop-shadow(0 5px 12px rgba(31, 60, 100, .22)); }
}
.ip-float-btn:active { transform: scale(.96); }
/* 菜单展开时：形象轻微上浮并保持高亮，明确「已打开」状态 */
.ip-float.open .ip-float-btn { transform: scale(1.06); filter: drop-shadow(0 6px 14px rgba(31, 60, 100, .26)); }

/* ---- 功能菜单面板（自右向左展开，不改变页面布局） ---- */
.ip-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 246px; max-width: calc(100vw - 28px);
  background: var(--card); border: 1px solid var(--tint-line); border-radius: 18px;
  box-shadow: var(--sh2); padding: 10px 8px 8px;
  transform-origin: top right;
}
.ip-float.open .ip-menu { animation: ipMenuIn .18s ease-out both; }
@keyframes ipMenuIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ip-float.open .ip-menu { animation: none; } }

.ip-menu-head { padding: 2px 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.ip-menu-head b { font-size: 13.5px; color: var(--ink); }
.ip-menu-head span { font-size: 11.5px; color: var(--ink2); }
.ip-menu-list { display: flex; flex-direction: column; gap: 2px; }
.ip-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; background: none; border-radius: 13px;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: background .14s ease, transform .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.ip-menu-item:hover { background: var(--tint); }
.ip-menu-item:active { transform: scale(.985); }
.ip-menu-item:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ipm-ico { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 10px; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.ipm-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.ipm-txt b { font-size: 13px; color: var(--ink); }
.ipm-txt i { font-size: 11px; color: var(--ink2); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ipm-arrow { color: var(--ink3, var(--ink2)); opacity: .5; font-size: 16px; flex: 0 0 auto; }
.ip-menu-foot { padding: 7px 10px 2px; font-size: 10.5px; color: var(--ink2); text-align: center; border-top: 1px dashed var(--tint-line); margin-top: 6px; }

/* ---- 站内搜索结果列表（弹窗内） ---- */
.ips-list { margin-top: 12px; max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.ips-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 13px; border: 1px solid var(--tint-line); border-radius: 13px;
  background: var(--card); cursor: pointer; font-family: inherit; text-align: left;
  min-height: 44px;
}
.ips-item:hover { background: var(--tint); }
.ips-item b { font-size: 13.5px; color: var(--ink); }
.ips-item i { font-size: 11px; color: var(--ink2); font-style: normal; }

/* ---- 不遮挡正文：窄屏为右侧通道预留空间（宽屏时形象落在内容列外的留白里） ---- */
@media (max-width: 1223px) {
  :root { --ip-right: 14px; }
  .page { padding-right: calc(var(--ip-size) + 30px); }
}
@media (max-width: 860px) {
  :root { --ip-size: 48px; }
  .page { padding-right: calc(var(--ip-size) + 30px); }
}
/* 宽屏：形象自动落到 1080px 内容列右侧的留白里，完全不动版面 */
@media (min-width: 1224px) {
  .ip-float { right: clamp(14px, calc((100vw - 1080px) / 4 - var(--ip-size) / 2), 120px); }
}

/* 触控（iPad）放宽点按热区 */
[data-uimode="touch"] { --ip-size: 56px; }
@media (max-width: 1223px) and (min-width: 861px) {
  [data-uimode="touch"] .page, .page { padding-right: calc(var(--ip-size) + 30px); }
}

/* =========================================================================
   v22：手机端适配（竖屏 ≤560px + 横屏手机）
   原则：全部收在媒体查询里，不改动 iPad（>560px）与电脑端的任何现有规则；
   目标：顶栏两行内收拢、底部导航 ≤ 两行、表格/表单/弹窗小屏不错位不溢出、
         点按热区 ≥40px、刘海屏安全区适配、横屏可用。
   ========================================================================= */

/* ---------- 1) 竖屏手机（≤560px）：顶栏紧凑化，两行内收拢 ---------- */
@media (max-width: 560px) {
  .topbar { padding: 10px 12px 4px; }
  .tb-main { gap: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 10px rgba(74, 155, 255, .28); }
  .brand-logo svg { width: 21px; height: 21px; }
  .brand-txt b { font-size: 15.5px; letter-spacing: .2px; }
  .brand-txt span { font-size: 10.5px; }
  .topbar-right { gap: 6px; }
  .topbar-right .btn { padding: 7px 10px; font-size: 12.5px; min-height: 34px; }
  .topbar-right .btn-sm { min-height: 34px; }
  .user-chip { padding: 3px 8px 3px 4px; gap: 6px; border-radius: 13px; }
  .user-name { font-size: 12px; }
  .mode-switch { gap: 2px; }
  .mode-switch button { padding: 6px 8px; }

  /* ---- 页面容器 / 标题 ----（padding-bottom 需要压过 [data-uimode="touch"] 的 150px）---- */
  html[data-uimode] .page, .page { padding: 6px 10px calc(124px + env(safe-area-inset-bottom)); }
  .page-head h2 { font-size: 18px; }
  .page-head .page-sub { font-size: 12px; }
  .card { padding: 13px 12px; margin-bottom: 11px; }
  .card-head h3 { font-size: 15px; }
  .card-head { gap: 8px; }

  /* ---- 首屏问候 / 统计卡 ---- */
  .cal-hero { padding: 14px 14px; }
  .stat-card { padding: 12px 6px; border-radius: 15px; }
  .stat-value { font-size: 21px; }
  .stat-label { font-size: 11px; }

  /* ---- 底部导航紧凑化：等宽弹性排布，10~12 个标签均匀收进两行 ---- */
  .tabbar { row-gap: 0; }
  /* [data-uimode="touch"] 对 .navtab 有 (0,2,0) 的覆盖，这里用 html[data-uimode] 提权 */
  html[data-uimode] .navtab, .navtab { flex: 1 1 52px; min-width: 52px; padding: 7px 2px 6px; font-size: 10.5px; gap: 1px; }
  .navtab .ntl { padding: 0 1px; }
  html[data-uimode] .navtab .nti, .navtab .nti { font-size: 19px; }

  /* ---- 点按热区保底（未覆盖 pointer:coarse 的场景）---- */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .tab { padding: 10px 14px; }
  .modal-x { width: 40px; height: 40px; }

  /* ---- 表格：紧凑单元格 + 首列/表头不竖排（超宽时在 .table-wrap 内横向滑动）---- */
  .table { font-size: 12.5px; }
  .table th { padding: 8px 8px; font-size: 11.5px; white-space: nowrap; }
  .table td { padding: 9px 8px; }
  .table th:first-child,
  .table td:first-child { white-space: nowrap; }
  /* 卡片内的横向滑动区顶到卡片边缘，视觉不留死区（弹窗等非卡片场景不受影响） */
  .card .table-wrap { margin: 0 -12px; padding: 0 12px; }

  /* ---- 弹窗：近全宽、按钮等宽铺满，拇指好按 ---- */
  .modal { width: calc(100vw - 20px); max-height: 88vh; border-radius: 18px; }
  .modal-head { padding: 13px 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-actions { padding: 12px 16px; }
  .modal-actions .btn { flex: 1; min-width: 0; }

  /* ---- 通用输入 / 列表 ---- */
  .list-item { padding: 12px 12px; }
  .app-grid { gap: 10px; }
}

/* 320~350px 小屏（iPhone SE 等）：底部导航可能三行，预留更高滚动余量 */
@media (max-width: 350px) {
  .page { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
  html[data-uimode] .navtab, .navtab { min-width: 48px; }
}

/* ---------- 2) 横屏手机：压缩纵向占用，单行导航 ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .topbar { padding: 8px 14px 2px; }
  .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
  .brand-txt b { font-size: 15px; }
  .page {
    padding: 6px 14px calc(64px + env(safe-area-inset-bottom));
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .tabbar { flex-wrap: nowrap; }
  html[data-uimode] .navtab, .navtab { padding: 6px 3px 5px; font-size: 10px; min-width: 0; flex: 1 1 0; }
  html[data-uimode] .navtab .nti, .navtab .nti { font-size: 16px; }
  .card { margin-bottom: 10px; }
  .cal-hero { padding: 10px 14px; }
  .page-head h2 { font-size: 17px; }
  /* 横屏高度有限：首屏插画类内容压缩，保证日历/表格首屏可见 */
  .ip-hero { padding: 12px 16px; }
  .ip-hero-fig svg { max-height: 150px; }
}

/* ---------- 3) 手机端悬浮 IP 形象（亲小AI）：尺寸收敛 + 右侧通道预留（提权覆盖 v22 的 .page） ---------- */
@media (max-width: 560px) {
  :root { --ip-size: 44px; --ip-right: 12px; }
  html[data-uimode] .page, .page { padding-right: calc(var(--ip-size) + 30px); }
  .ip-menu { width: 232px; }
  .ip-menu-item { padding: 10px 10px; }   /* 手机上点按热区更大 */
}
@media (max-width: 350px) {
  :root { --ip-size: 42px; }
  .ip-menu { width: calc(100vw - 24px); }
}

/* ---------- 4) 横屏手机：v22 的横屏 .page 规则在本文件更后面，这里同样靠后提权，保证右侧预留通道生效 ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  html[data-uimode] .page, .page {
    padding-right: calc(var(--ip-size) + 30px);
  }
}

/* =========================================================================
   v23d：独立心理咨询模块（#/student|teacher|admin/counseling）
   复用 .ip-chat 对话体系；仅新增安全提示卡 / 页脚 / 气泡行距微调。
   ========================================================================= */
.coun-notice { border-left: 4px solid var(--blue, #3b82f6); padding: 12px 16px; margin-bottom: 12px; }
.coun-notice > b { display: block; margin-bottom: 4px; font-size: 14px; }
.coun-notice p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink2, #475569); }
.coun-notice p b { display: inline; font-weight: 700; }
.coun-chat .ip-bubble-ai { white-space: pre-wrap; line-height: 1.75; }
.coun-foot { margin: 10px 4px 0; font-size: 12px; color: var(--ink3, #94a3b8); text-align: center; }
html[data-theme="jade"] .coun-notice { border-left-color: var(--blue); }

/* ---------- v23e：对话区「未接入大模型」提示条 ---------- */
.ai-hint { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.6;
  background: #fff7e6; color: #8a5a00; border: 1px solid #ffe0a3; }
.ai-hint b { font-weight: 700; }
html[data-theme="jade"] .ai-hint { background: var(--tint); color: var(--tint-ink); border-color: var(--tint-line); }

/* =========================================================================
   v23f：探究助手重构为「老师布置 · 学生探究」多端协同模块
   老师端：#/teacher/inquiry*（任务列表 / 布置表单 / 班级进度看板 / 主题库 / 统计）
   学生端：#/student/inquiry/tasks/:id（任务工作台）+ 大厅待办区
   命名前缀：.iq-*（inquiry）；沿用全局卡片/徽章/表格风格，仅补布局与状态色
   ========================================================================= */

/* ---------- 通用：进度条 / 步骤 ---------- */
.iq-bar { height: 10px; border-radius: 999px; background: var(--gray-bg, #f1f6fc); overflow: hidden; }
.iq-bar-in { height: 100%; border-radius: 999px; background: var(--grad); transition: width .35s ease; }
.iq-bar-sm { height: 6px; margin-top: 8px; }

.iq-steps { display: flex; flex-direction: column; gap: 8px; }
.iq-step { display: flex; gap: 12px; align-items: flex-start; background: var(--bg2, var(--gray-bg)); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; }
.iq-step > i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--tint-ink); font-style: normal; font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.iq-step b { display: block; font-size: 14px; }
.iq-step span { font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.iq-steps-mini { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.iq-step-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink2); background: var(--gray-bg, #f1f6fc); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.iq-step-chip > i { font-style: normal; font-weight: 900; color: var(--ink3); }
.iq-step-chip.ok { background: var(--green-bg); border-color: #c4ebcf; color: #2a8a4d; }

.iq-goals { margin: 6px 0 0 18px; font-size: 13px; color: var(--ink2); line-height: 1.75; }

/* ---------- 老师端：任务列表 ---------- */
.iq-task-list { display: flex; flex-direction: column; gap: 14px; }
.iq-task { display: flex; flex-direction: column; gap: 10px; }
.iq-task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.iq-task-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iq-task-t b { font-size: 16.5px; font-weight: 900; }
.iq-task-when { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; color: var(--ink3); }
.iq-task-when span { white-space: nowrap; }
.iq-sub-chip { font-style: normal; font-size: 12px; font-weight: 800; color: var(--tint-ink); background: var(--tint); border: 1px solid var(--tint-line); border-radius: 999px; padding: 3px 10px; }
.iq-task-classes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iq-task-nums { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.iq-rate { margin-left: auto; font-size: 17px; font-weight: 900; color: var(--tint-ink); }
.iq-task-ops { margin-top: 2px; flex-wrap: wrap; }
.t-blue { color: #2b6ecf; } .t-ok { color: #179a6d; } .t-bad { color: var(--red); }

/* ---------- 老师端：布置表单 ---------- */
.iq-filter { display: flex; gap: 8px; }
.iq-filter .input { max-width: 190px; }
.iq-topic-pick { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; padding-right: 4px; }
.iq-topic { display: block; border: 1.5px solid var(--line); border-radius: var(--r2); padding: 11px 14px; cursor: pointer; background: var(--card); transition: all .15s ease; }
.iq-topic:hover { border-color: var(--tint-line); background: var(--bg, #f8fbff); }
.iq-topic.on { border-color: var(--blue); background: var(--tint); box-shadow: 0 0 0 3px rgba(74, 155, 255, .12); }
.iq-topic-b b { display: block; font-size: 14.5px; font-weight: 800; }
.iq-topic-b span { font-size: 12.5px; color: var(--ink2); }

.iq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.iq-field { display: flex; flex-direction: column; gap: 6px; }
.iq-field > span { font-size: 13px; font-weight: 800; color: var(--ink2); }
.iq-field-wide { grid-column: 1 / -1; }
.iq-field-check { justify-content: flex-end; }
.iq-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.iq-check input { width: 17px; height: 17px; accent-color: var(--blue); }
textarea.input { resize: vertical; font-family: inherit; line-height: 1.7; }

.iq-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.iq-class-card { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: var(--r2); padding: 12px 14px; cursor: pointer; background: var(--card); transition: all .15s ease; }
.iq-class-card:hover { border-color: var(--tint-line); }
.iq-class-card.on { border-color: var(--blue); background: var(--tint); box-shadow: 0 0 0 3px rgba(74, 155, 255, .12); }
.iq-class-card b { font-size: 14.5px; font-weight: 800; }
.iq-class-card span { font-size: 12.5px; color: var(--ink2); }
.iq-class-card input { display: none; }

.iq-submit-bar { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin: 6px 0 20px; }
.btn-lg { padding: 12px 26px; font-size: 15px; }

/* ---------- 老师端：任务详情 / 班级看板 ---------- */
.iq-board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 10px; flex-wrap: wrap; }
.iq-board-head h3 { font-size: 17px; font-weight: 900; }
.iq-deliver { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--tint-ink); background: var(--tint); border: 1px solid var(--tint-line); border-radius: var(--r2); padding: 10px 14px; }
.iq-group { padding-bottom: 6px; }
.iq-group-rate { display: flex; align-items: baseline; gap: 8px; }
.iq-group-rate b { font-size: 20px; font-weight: 900; }
.iq-row-off { opacity: .62; }
.iq-weak { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.iq-weak:last-child { border-bottom: none; }
.iq-weak-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 老师端：主题库 ---------- */
.iq-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.iq-topic-card { display: flex; flex-direction: column; gap: 8px; }
.iq-topic-card > b { font-size: 16.5px; font-weight: 900; }
.iq-topic-card-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.iq-topic-card .iq-goals { margin: 0 0 0 18px; }
.iq-topic-card .head-actions { margin-top: auto; }

/* ---------- 弹窗内：成果查看 / 点评 ---------- */
.iq-result h4, .iq-preview h4 { font-size: 14px; font-weight: 900; margin: 14px 0 6px; }
.iq-result-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iq-reflection { background: var(--gray-bg, #f6f9fd); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; font-size: 13.5px; line-height: 1.8; color: var(--ink); white-space: normal; }
.iq-reflection-review { background: var(--tint); border-color: var(--tint-line); color: var(--tint-ink); font-weight: 600; }
.iq-review-form { display: flex; flex-direction: column; gap: 12px; }
.iq-stars { display: flex; align-items: center; gap: 4px; }
.iq-stars button { border: none; background: none; cursor: pointer; font-size: 26px; line-height: 1; color: #d8e2ee; transition: transform .12s ease; }
.iq-stars button:hover { transform: scale(1.12); }
.iq-stars button.on { color: var(--yellow, #ffc93f); }
.iq-stars .muted { margin-left: 8px; font-size: 12.5px; }
.iq-qline { font-size: 13.5px; line-height: 1.8; margin: 4px 0; }
.iq-preview .iq-steps { margin-top: 4px; }

/* ---------- 学生端：大厅待办区 ---------- */
.iq-todo-card { background: linear-gradient(180deg, var(--tint), var(--card) 92%); border-color: var(--tint-line); }
.iq-remind { margin: 4px 0 10px; padding: 9px 14px; border-radius: var(--r2); font-size: 13px; font-weight: 700; background: #fff7e6; color: #8a5a00; border: 1px solid #ffe0a3; }
.iq-todo-list { display: flex; flex-direction: column; gap: 10px; }
.iq-todo { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r2); text-decoration: none; color: inherit; transition: all .16s ease; }
.iq-todo:hover { transform: translateY(-2px); box-shadow: var(--sh2); border-color: var(--tint-line); }
.iq-todo:active { transform: scale(.99); }
.iq-todo.over { border-color: #ffd6d6; background: #fffafa; }
.iq-todo-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); display: flex; align-items: center; justify-content: center; font-size: 21px; }
.iq-todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.iq-todo-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iq-todo-t b { font-size: 15px; font-weight: 900; }
.iq-done-head { margin: 16px 0 8px; font-size: 13px; font-weight: 800; color: var(--ink2); }
.iq-todo-list-done .iq-todo { opacity: .88; }
.iq-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 10px; flex-wrap: wrap; }
.iq-sec-head h3 { font-size: 17px; font-weight: 900; }

/* ---------- 学生端：任务工作台 ---------- */
.iq-task-hero { display: flex; flex-direction: column; gap: 10px; }
.iq-task-hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iq-hero-rate { margin-left: auto; font-size: 13px; color: var(--ink2); }
.iq-req { margin-top: 4px; background: var(--gray-bg, #f6f9fd); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; }
.iq-req b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.iq-req p { font-size: 13.5px; line-height: 1.8; color: var(--ink); }
.iq-req-out { background: var(--tint); border-color: var(--tint-line); }
.iq-req-out p { color: var(--tint-ink); font-weight: 700; }

.iq-work { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.iq-work-step { padding: 14px 16px; }
.iq-work-step.done { border-color: #c4ebcf; background: linear-gradient(180deg, var(--green-bg), var(--card) 60%); }
.iq-work-head { display: flex; align-items: center; gap: 12px; }
.iq-step-check { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: none; }
.iq-step-check input { width: 20px; height: 20px; accent-color: var(--green); }
.iq-step-check > i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--tint-ink); font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.iq-work-t { flex: 1; min-width: 0; }
.iq-work-t b { display: block; font-size: 15px; font-weight: 900; }
.iq-work-t span { font-size: 12.5px; color: var(--ink2); }
.iq-fold { flex: none; }
.iq-work-body { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.iq-material { display: flex; flex-direction: column; gap: 8px; }
.iq-search-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.iq-search-inline .input { flex: 1; min-width: 200px; }

.iq-submit-card { margin-top: 14px; }
.iq-submit-ops { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.iq-review-card { margin-top: 14px; border-color: var(--tint-line); background: linear-gradient(180deg, var(--tint), var(--card) 70%); }
.iq-stars-ro { font-size: 18px; color: var(--yellow, #ffc93f); letter-spacing: 2px; }
.iq-review-body { font-size: 14px; line-height: 1.85; color: var(--ink); }

/* ---------- 深色/翡翠主题适配 ---------- */
html[data-theme="jade"] .iq-remind { background: var(--tint); color: var(--tint-ink); border-color: var(--tint-line); }
html[data-theme="jade"] .iq-todo-card { background: linear-gradient(180deg, var(--tint), var(--card) 92%); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .iq-form { grid-template-columns: 1fr; }
  .iq-field-wide { grid-column: auto; }
  .iq-task-when { align-items: flex-start; }
  .iq-task-nums { gap: 12px; }
  .iq-rate { margin-left: 0; }
}

@media (max-width: 560px) {
  html[data-uimode] .iq-filter { flex-direction: column; }
  html[data-uimode] .iq-filter .input { max-width: none; }
  html[data-uimode] .iq-task-head { flex-direction: column; }
  html[data-uimode] .iq-step-chip { font-size: 12px; padding: 4px 10px; }
  html[data-uimode] .iq-steps-mini { gap: 5px; }
  html[data-uimode] .iq-todo { padding: 11px 12px; gap: 10px; }
  html[data-uimode] .iq-todo-ico { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
  html[data-uimode] .iq-todo-t b { font-size: 14px; }
  html[data-uimode] .iq-work-head { flex-wrap: wrap; }
  html[data-uimode] .iq-submit-ops { flex-direction: column; align-items: stretch; }
  html[data-uimode] .iq-submit-ops .btn { width: 100%; justify-content: center; }
  html[data-uimode] .iq-submit-bar { flex-direction: column-reverse; align-items: stretch; }
  html[data-uimode] .iq-submit-bar .btn { width: 100%; justify-content: center; }
  html[data-uimode] .iq-class-grid { grid-template-columns: 1fr 1fr; }
  html[data-uimode] .iq-topic-grid { grid-template-columns: 1fr; }
  html[data-uimode] .iq-search-inline .input { min-width: 0; width: 100%; }
  html[data-uimode] .iq-task-ops { gap: 6px; }
}

/* ============================================================
   v23i：我的需求（老师提交智能体需求 + 管理端受理）
   复用 agpanel-light / agfb-item 面板视觉，仅补充表单与状态徽标
   ============================================================ */
.agreq-form { display: flex; flex-direction: column; gap: 6px; max-width: 660px; }
.agreq-form .field label i { color: #d6455a; font-style: normal; }
.agreq-tip { color: #d6455a; font-size: 12px; font-weight: 700; margin-top: 4px; display: none; }
.agreq-field.invalid .input { border-color: #d6455a; box-shadow: 0 0 0 3px rgba(214, 69, 90, .12); }
.agreq-field.invalid .agreq-tip { display: block; }
.agreq-actions { display: flex; align-items: center; margin-top: 8px; }
.agreq-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.agreq-status.pending    { background: #fff3e0; color: #b26a00; }
.agreq-status.processing { background: #e8f1ff; color: #2b6ecf; }
.agreq-status.done       { background: #eafaf4; color: #179a6d; }
.agreq-ops { flex-shrink: 0; align-self: center; }
.agfb-item .agreq-ops .btn { margin: 0; }
/* v172：需求表单 + 需求热度排行（桌面两列，窄屏堆叠） */
.agreq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.agreq-grid .agreq-form { max-width: none; }
.agreq-tag { display: inline-block; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--ag-accent-ink, #b26a00); background: var(--ag-accent-soft, #fff3e0); border-radius: 999px; padding: 1px 9px; }
.agreq-seg { display: flex; gap: 4px; background: var(--ag-card-soft, #f6f2ec); border-radius: 999px; padding: 3px; margin-bottom: 14px; }
.agreq-seg button { flex: 1 1 0; min-width: 0; border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 6px 0; font-size: 12.5px; font-weight: 700; color: var(--ag-ink-3, #8a8073); font-family: inherit; transition: background .18s, color .18s; }
.agreq-seg button.on { background: var(--ag-accent, #e8913a); color: #fff; }
.agrank-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.agrank-no { flex: none; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; font-size: 11.5px; font-weight: 800; color: var(--ag-faint, #a49a8c); font-variant-numeric: tabular-nums; }
.agrank-no.medal-1 { background: linear-gradient(135deg, #FCD34D, #F59E0B); color: #6b3d00; }
.agrank-no.medal-2 { background: linear-gradient(135deg, #E2E8F0, #A8B3C1); color: #37414f; }
.agrank-no.medal-3 { background: linear-gradient(135deg, #FDBA74, #EA7B33); color: #5c2a05; }
.agrank-name { flex: none; width: 92px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--ag-ink, #4a4135); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agrank-track { flex: 1 1 auto; min-width: 40px; height: 8px; border-radius: 999px; background: var(--ag-track, #efe8de); overflow: hidden; }
.agrank-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ag-accent, #e8913a), var(--ag-accent-2, #f6b26b)); transition: width .45s ease; }
.agrank-num { flex: none; width: 26px; text-align: right; font-size: 13.5px; font-weight: 800; color: var(--ag-ink, #4a4135); font-variant-numeric: tabular-nums; }
.agrank-mine { flex: none; width: 46px; font-size: 11px; color: var(--ag-faint, #a49a8c); }
.agrank-row.na .agrank-name, .agrank-row.na .agrank-num { color: var(--ag-faint, #a49a8c); font-weight: 600; }
.agrank-row.na .agrank-track i { background: #cfc7bb; }
.agrank-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ag-line-soft, #efe8de); font-size: 11.5px; color: var(--ag-faint, #a49a8c); }
.agrank-skel { display: flex; flex-direction: column; gap: 12px; }
.agrank-skel span { display: block; height: 10px; border-radius: 999px; background: var(--ag-card-soft, #f6f2ec); }
.agrank-skel span:nth-child(2) { width: 84%; }
.agrank-skel span:nth-child(3) { width: 66%; }
.agrank-skel span:nth-child(4) { width: 52%; }
.agrank-skel span:nth-child(5) { width: 40%; }
@media (max-width: 900px) {
  .agreq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .agfb-item { flex-wrap: wrap; }
  .agreq-ops { width: 100%; flex-direction: row !important; justify-content: flex-end; }
  .agreq-form { max-width: none; }
  .agrank-name { width: 74px; }
  .agrank-mine { width: 40px; }
}

/* ============================================================
   v23j：管理端「教师智能体需求」横排列表 + 每页 6 条分页 + 详情页
   沿用 .agdash 作用域与 --ag-* 主题变量（classic / jade 自动跟随）
   ============================================================ */
.agdash .agreq-list { display: flex; flex-direction: column; }
.agdash .agreq-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 8px; border-bottom: 1px solid var(--ag-line-soft);
  cursor: pointer; border-radius: 10px; transition: background .15s;
  font-size: 12.5px;
}
.agdash .agreq-row:hover { background: var(--ag-card-soft); }
.agdash .agreq-row:last-child { border-bottom: none; }
.agdash .agreq-row .no { flex: none; width: 22px; text-align: center; color: var(--ag-faint); font-weight: 800; font-variant-numeric: tabular-nums; }
.agdash .agreq-row .ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: linear-gradient(135deg, var(--ag-accent-soft), var(--ag-warm-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-accent) 12%, transparent);
}
.agdash .agreq-row .main { flex: none; width: 210px; min-width: 0; }
.agdash .agreq-row .nm { display: block; color: var(--ag-ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agdash .agreq-row .meta { display: block; color: var(--ag-ink-3); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agdash .agreq-row .sum { flex: 1; min-width: 0; color: var(--ag-ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agdash .agreq-row .agreq-status { flex: none; }
.agdash .agreq-row .go { flex: none; color: var(--ag-accent-ink); font-weight: 800; font-size: 12px; }
/* 详情页 */
.agdash .agreq-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 18px; background: var(--ag-card-soft);
  border: 1px solid var(--ag-line-soft); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px;
}
.agdash .agreq-meta .row { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; min-width: 0; }
.agdash .agreq-meta .k { flex: none; color: var(--ag-faint); font-weight: 700; }
.agdash .agreq-meta .v { color: var(--ag-ink-2); font-weight: 600; word-break: break-all; }
.agdash .agreq-sec { margin-bottom: 14px; }
.agdash .agreq-sec .t { color: var(--ag-ink-3); font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.agdash .agreq-sec .c {
  color: var(--ag-ink); font-size: 13.5px; line-height: 1.75;
  background: var(--ag-card-soft); border: 1px solid var(--ag-line-soft);
  border-radius: 12px; padding: 12px 14px;
  white-space: pre-wrap; word-break: break-word;
}
.agdash .agreq-sec.note .t { color: var(--ag-accent-ink); }
.agreq-detail-head { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
  .agdash .agreq-row { flex-wrap: wrap; row-gap: 4px; }
  .agdash .agreq-row .main { flex: 1 1 auto; width: auto; }
  .agdash .agreq-row .sum { flex-basis: 100%; }
  .agdash .agreq-row .go { margin-left: auto; }
}

/* ============================================================
   v23l：管理端「IP形象管理」重设计（素材卡片轨 + 统一更换弹层）
   交互：点卡片/按钮 或 拖图到卡片 → 更换素材弹层（当前/新素材对比
   + 拖拽·点击·Ctrl+V 选图 + 校验提示 + 确认生效）
   ============================================================ */
/* ---- 素材卡片轨：4 槽位横排，紧凑直观 ---- */
.ipx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.ipx-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  cursor: pointer; transition: box-shadow .18s, transform .18s, border-color .18s;
  position: relative; overflow: hidden;
}
.ipx-card:hover { box-shadow: 0 10px 24px -12px rgba(31, 60, 100, .25); transform: translateY(-2px); border-color: var(--tint-line, #cfe0ff); }
.ipx-card.drag { border-color: var(--blue, #2b6ecf); box-shadow: 0 0 0 3px rgba(43, 110, 207, .18); }
.ipx-card.drag::after {
  content: '松开手指，更换这张形象'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43, 110, 207, .1); backdrop-filter: blur(2px);
  color: var(--blue, #2b6ecf); font-weight: 800; font-size: 14px; border-radius: inherit;
}
.ipx-fig {
  height: 150px; display: flex; align-items: center; justify-content: center;
  background: var(--bg2, var(--tint)); border-radius: var(--r2, 12px); padding: 10px;
}
.ipx-fig img { max-width: 100%; max-height: 130px; width: auto; height: auto; object-fit: contain; }
.ipx-fig svg { max-width: 100%; max-height: 130px; }
.ipx-t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.ipx-desc { margin-top: 4px; font-size: 12px; color: var(--ink3); line-height: 1.5; }
.ipx-meta { margin-top: 4px; font-size: 11.5px; color: var(--ink3); }
.ipx-ops { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.ipx-ops .btn { margin: 0; }

/* ---- 分组标题（页面素材 / 默认形象姿态） ---- */
.ipx-sec { margin-bottom: 18px; }
.ipx-sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ipx-sec-head h3 { margin: 0; font-size: 15px; }
.ipx-sec-head span { font-size: 12px; color: var(--ink3); line-height: 1.6; }
.ipx-sec-head span b { color: var(--tint-ink, #2b6ecf); }
/* 姿态卡：6 张 3 列（≤1100px 两列、≤640px 单列），大图 + 用途说明 */
.ipx-grid-pose { grid-template-columns: repeat(3, 1fr); }
.ipx-card-pose .ipx-fig { height: 168px; }
.ipx-card-pose .ipx-fig svg { max-height: 150px; }
.ipx-card-pose .ipx-fig img { max-height: 150px; }

/* ---- 「更换素材」弹层 ---- */
.ipx-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.ipx-tabs-lb {
  font-size: 11px; font-weight: 800; color: var(--ink3);
  padding: 0 2px; margin-left: 2px; letter-spacing: .3px;
}
.ipx-tabs-lb:first-child { margin-left: 0; }
.ipx-pick-note {
  margin: 0 0 14px; font-size: 12px; line-height: 1.6; color: var(--ink3);
  background: var(--bg2, var(--tint)); border-radius: 10px; padding: 8px 12px;
}
.ipx-pick-note b { color: var(--ink2); }
.ipx-tab {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: 13px; font-weight: 700; color: var(--ink2); cursor: pointer;
}
.ipx-tab:hover { border-color: var(--tint-line, #cfe0ff); color: var(--tint-ink, #2b6ecf); }
.ipx-tab.on { background: var(--tint, #e8f1ff); border-color: var(--tint-line, #b9d4ff); color: var(--tint-ink, #2b6ecf); }
.ipx-pick { display: grid; grid-template-columns: 1fr 44px 1.25fr; gap: 12px; align-items: stretch; }
.ipx-pane { min-width: 0; }
.ipx-pane-t { font-size: 12.5px; font-weight: 800; color: var(--ink3); margin-bottom: 8px; }
.ipx-pane-fig {
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  background: var(--bg2, var(--tint)); border-radius: var(--r2, 12px); padding: 12px;
}
.ipx-pane-fig img { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; }
.ipx-pane-fig svg { max-width: 100%; max-height: 220px; }
.ipx-pane-sub { margin-top: 8px; font-size: 12px; color: var(--ink3); text-align: center; }
.ipx-mid { display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--ink3); }
/* 拖放区：空态 / 悬停 / 已选图 */
.ipx-drop {
  min-height: 220px; border: 2px dashed var(--line, #cfd8ea); border-radius: var(--r2, 12px);
  background: var(--bg2, #f7faff); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .15s, background .15s; text-align: center;
}
.ipx-drop:hover, .ipx-drop:focus-visible { border-color: var(--tint-line, #b9d4ff); background: var(--tint, #eef5ff); outline: none; }
.ipx-drop.over { border-color: var(--blue, #2b6ecf); background: rgba(43, 110, 207, .08); }
.ipx-drop-empty { display: flex; flex-direction: column; gap: 6px; color: var(--ink3); font-size: 12.5px; padding: 14px; }
.ipx-drop-empty .ic { font-size: 34px; line-height: 1; }
.ipx-drop-empty b { font-size: 14.5px; color: var(--ink2); }
.ipx-drop-empty span { line-height: 1.5; }
.ipx-drop-empty .ipx-drop-hint { font-size: 11px; color: var(--ink3); opacity: .8; }
.ipx-drop.has-img { padding: 10px; }
.ipx-drop.has-img img { max-width: 100%; max-height: 230px; object-fit: contain; border-radius: 8px; }
.ipx-fileinfo { margin-top: 8px; font-size: 12px; color: var(--ink2); font-weight: 600; word-break: break-all; min-height: 16px; }
.ipx-warn { margin-top: 6px; font-size: 12px; line-height: 1.55; display: none; border-radius: 8px; padding: 8px 10px; }
.ipx-warn.soft { display: block; background: #fff7e6; color: #9a6b00; }
.ipx-warn.bad { display: block; background: #fdeeee; color: #c0392b; }

/* ---- 响应式 ---- */
@media (max-width: 1100px) { .ipx-grid, .ipx-grid-pose { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .ipx-grid, .ipx-grid-pose { grid-template-columns: 1fr; }
  .ipx-pick { grid-template-columns: 1fr; }
  .ipx-mid { transform: rotate(90deg); padding: 2px 0; }
}
/* jade 主题适配（深绿底上弹层/卡片内预览底色） */
html[data-theme="jade"] .ipx-fig,
html[data-theme="jade"] .ipx-pane-fig,
html[data-theme="jade"] .ipx-drop,
html[data-theme="jade"] .ipx-pick-note { background: var(--tint); }
html[data-theme="jade"] .ipx-tab { background: transparent; }
html[data-theme="jade"] .ipx-tab.on { background: var(--tint); }
/* 修正：弹层 footer 按钮的 .btn display 会盖过 [hidden] 的 UA 样式 */
.modal-actions .btn[hidden] { display: none; }


/* ============================================================
   v23o：教师工作站（左侧折叠菜单 + 右侧内容区 + 14 子页）
   ============================================================ */
.stn-layout { display: flex; gap: 16px; align-items: flex-start; }
/* ---- 左侧菜单 ---- */
.stn-side {
  flex: none; width: 212px; position: sticky; top: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 10px; display: flex; flex-direction: column; min-height: 60vh;
  transition: width .18s ease;
}
.stn-side-hd { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; }
.stn-side-t { font-size: 14.5px; font-weight: 800; }
.stn-fold { border: none; background: var(--tint); color: var(--tint-ink); border-radius: 8px; width: 26px; height: 26px; cursor: pointer; font-size: 12px; font-weight: 800; }
.stn-nav { flex: 1; overflow: hidden; }
.stn-group { margin-bottom: 12px; }
.stn-group-t {
  font-size: 11.5px; font-weight: 800; color: var(--ink3); padding: 6px 8px 4px;
  display: flex; align-items: center; gap: 5px; width: 100%; text-align: left;
  border: none; background: none; cursor: pointer; user-select: none; font-family: inherit;
  border-radius: 8px; transition: color .15s, background .15s;
}
.stn-group-t:hover { color: var(--tint-ink); background: var(--tint); }
.stn-garrow { display: inline-block; font-size: 10px; flex: none; transition: transform .15s; color: var(--ink3); }
.stn-group.is-fold .stn-garrow { transform: rotate(-90deg); }
.stn-group.is-fold .stn-group-items { display: none; }
/* 整条侧栏折叠（图标态）时忽略分组收起，保留图标可点 */
.stn-layout.is-folded .stn-group.is-fold .stn-group-items { display: block; }
.stn-hdchip { font-size: 10px; color: var(--tint-ink); background: var(--tint); border-radius: 999px; padding: 1px 7px; }
.stn-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--ink2); text-decoration: none; margin-bottom: 2px;
  border: 1.5px solid transparent; transition: background .15s, color .15s;
}
.stn-item:hover { background: var(--tint); color: var(--tint-ink); }
.stn-item.on { background: var(--tint); border-color: var(--tint-line); color: var(--tint-ink); }
.stn-item .ic { width: 20px; text-align: center; flex: none; }
.stn-side-ft { font-size: 11.5px; color: var(--ink3); font-weight: 700; padding: 8px 8px 2px; border-top: 1px dashed var(--line); }
/* 折叠态 */
.stn-layout.is-folded .stn-side { width: 60px; }
.stn-layout.is-folded .stn-side-t,
.stn-layout.is-folded .stn-group-t,
.stn-layout.is-folded .stn-item .lb,
.stn-layout.is-folded .stn-side-ft,
.stn-layout.is-folded .stn-hdchip { display: none; }
.stn-layout.is-folded .stn-item { justify-content: center; padding: 9px 6px; }
/* ---- 面包屑 ---- */
.stn-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink3); margin-bottom: 12px; font-weight: 600; }
.stn-crumb .c-cur { color: var(--ink); font-size: 14px; }
.stn-crumb .c-sep { opacity: .5; }
/* ---- 内容区通用 ---- */
.stn-main { flex: 1; min-width: 0; }
.stn-content { min-height: 50vh; }
.stn-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.stn-cols2.seat { grid-template-columns: 1.4fr 1fr; }
.stn-panel { padding: 14px 16px; margin-bottom: 12px; }
.stn-panel-t { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stn-panel-sub { font-size: 11.5px; font-weight: 700; color: var(--ink3); }
.stn-more { font-size: 12px; font-weight: 800; color: var(--tint-ink); text-decoration: none; margin-left: auto; }
.stn-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.stn-row:last-child { border-bottom: none; }
.stn-row b { flex-shrink: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stn-row-meta { font-size: 12px; color: var(--ink3); }
.stn-row-ic { flex: none; font-size: 11.5px; font-weight: 800; color: var(--tint-ink); background: var(--tint); border-radius: 8px; padding: 3px 9px; white-space: nowrap; }
.stn-row-warn { background: #fff7e6; border-radius: 8px; }
.stn-empty { color: var(--ink3); font-size: 13px; padding: 14px 6px; line-height: 1.8; }
.stn-tip { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.stn-sub { font-size: 12px; color: var(--ink3); font-weight: 700; }
.stn-op { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--ink2); cursor: pointer; flex: none; }
.stn-op:hover { border-color: var(--tint-line); color: var(--tint-ink); }
.stn-op.danger { color: #c0392b; }
.stn-op.danger:hover { border-color: #c0392b; }
.stn-op.on { background: var(--tint); border-color: var(--tint-line); color: var(--tint-ink); }
.stn-count { flex: none; font-size: 12px; font-weight: 800; color: var(--tint-ink); background: var(--tint); border-radius: 999px; padding: 3px 10px; }
.stn-count.hot { color: #fff; background: #e8590c; }
.stn-chip { flex: none; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: var(--tint); color: var(--tint-ink); }
.stn-chip-ok { background: #e6f7ec; color: #1d7a46; }
.stn-chip-def { background: var(--tint); color: var(--tint-ink); }
/* ---- 仪表盘 ---- */
.stn-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.stn-cards.sm { grid-template-columns: repeat(2, 1fr); }
.stn-stat { display: flex; flex-direction: column; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; transition: box-shadow .18s, transform .18s; }
.stn-stat:hover { box-shadow: 0 8px 20px -10px rgba(31,60,100,.25); transform: translateY(-1px); }
.stn-stat b { font-size: 24px; }
.stn-stat span { font-size: 12px; color: var(--ink3); font-weight: 700; }
.stn-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stn-quick-it { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink2); font-size: 12.5px; font-weight: 700; transition: border-color .15s, background .15s; }
.stn-quick-it:hover { border-color: var(--tint-line); background: var(--tint); }
.stn-quick-it span { font-size: 20px; }
/* ---- 工具条 / 标签页 ---- */
.stn-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.stn-bar-l, .stn-bar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stn-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.stn-tab { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.stn-tab.on { background: var(--tint); border-color: var(--tint-line); color: var(--tint-ink); }
/* ---- 添加卡 / 表单 ---- */
.stn-add { padding: 14px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.stn-add-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stn-add-row input, .stn-add-row select { flex: 1; min-width: 90px; }
.stn-add-row textarea { width: 100%; }
.stn-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-bottom: 10px; }
.stn-form input, .stn-form select, .stn-form textarea { width: 100%; box-sizing: border-box; }
.stn-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stn-form-check { flex-direction: row !important; align-items: center; gap: 7px !important; }
.stn-form-check input { width: auto !important; }
.stn-upinfo { font-size: 12.5px; color: var(--tint-ink); font-weight: 700; min-height: 18px; }
/* ---- 待办 ---- */
.stn-todo input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--tint-line); flex: none; }
.stn-todo-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stn-todo-b span { font-size: 12px; color: var(--ink3); word-break: break-all; }
.stn-todo.is-done b { text-decoration: line-through; color: var(--ink3); }
.stn-due { color: #9a6b00 !important; font-weight: 700; }
.stn-due.hot, .stn-row .hot { color: #e8590c !important; }
/* ---- 课表 ---- */
.stn-tt-wrap { overflow-x: auto; padding: 12px; }
.stn-tt { border-collapse: collapse; width: 100%; min-width: 640px; }
.stn-tt th, .stn-tt td { border: 1px solid var(--line); text-align: center; padding: 6px 4px; font-size: 12.5px; }
.stn-tt thead th { background: var(--tint); color: var(--tint-ink); font-weight: 800; padding: 8px 4px; }
.stn-tt tbody th { background: var(--card); color: var(--ink3); font-weight: 700; width: 58px; }
.stn-ttd { height: 52px; cursor: pointer; position: relative; color: var(--ink3); transition: background .15s; }
.stn-ttd:hover { background: var(--tint); }
.stn-ttd .stn-tt-add { opacity: 0; font-weight: 800; }
.stn-ttd:hover .stn-tt-add { opacity: .6; }
.stn-ttd.has { color: var(--ink); font-weight: 700; }
.stn-ttd.has small { display: block; color: var(--ink3); font-weight: 600; }
.stn-ttd .stn-tt-it + .stn-tt-it { border-top: 1px dashed var(--line); margin-top: 3px; padding-top: 3px; }
.stn-ttd .stn-note { color: #9a6b00; }
.stn-moved { position: absolute; top: 2px; right: 4px; font-size: 10px; background: #e8590c; color: #fff; border-radius: 4px; padding: 0 4px; font-weight: 800; }
/* ---- v71 拖拽调课 ---- */
.stn-ttd .stn-tt-it[draggable="true"] { cursor: grab; border-radius: 6px; transition: background .15s, box-shadow .15s; }
.stn-ttd .stn-tt-it[draggable="true"]:hover { background: rgba(37, 99, 235, .08); box-shadow: inset 0 0 0 1px var(--line); }
.stn-ttd .stn-tt-it.dragging { opacity: .38; cursor: grabbing; }
.stn-ttd.drag-src { background: var(--tint); }
.stn-ttd.drag-over { background: rgba(37, 99, 235, .14); box-shadow: inset 0 0 0 2px var(--blue); }
.stn-ttd.drag-over::after { content: "放这里调课"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--blue); pointer-events: none; }
html[data-theme="jade"] .stn-ttd .stn-tt-it[draggable="true"]:hover { background: rgba(255, 255, 255, .06); }
html[data-theme="jade"] .stn-ttd.drag-over { background: rgba(255, 255, 255, .10); }
html[data-theme="deepblue"] .stn-ttd .stn-tt-it[draggable="true"]:hover { background: rgba(96, 165, 250, .12); }
html[data-theme="deepblue"] .stn-ttd.drag-over { background: rgba(96, 165, 250, .16); }
/* ---- v72 调课冲突弹窗：明确列出「被哪门课 / 哪位老师」占用 ----
 *   教师课表只渲染本人课程，被别的老师占用的格子看上去是空的，故冲突时用弹窗讲清占用方。
 *   全部走语义变量，自动适配 classic / jade(浅) / deepblue(暗) 三主题，无需主题覆盖。 */
.ttc-lead { color: var(--ink2); font-size: 13px; line-height: 1.7; }
.ttc-lead b { color: var(--ink); }
.ttc-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ttc-list li { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 10px; background: var(--red-bg); border: 1px solid rgba(255, 107, 107, .3); }
.ttc-sub { font-weight: 800; color: var(--ink); }
.ttc-tea { font-size: 12px; font-weight: 700; color: var(--ink2); padding: 1px 8px; border-radius: 999px; background: var(--gray-bg); }
.ttc-hint { margin-top: 10px; color: var(--ink3); font-size: 12px; line-height: 1.65; }
/* ---- AI 小知 ---- */
.stn-ai-layout { display: grid; grid-template-columns: 220px 1fr; gap: 12px; }
.stn-ai-side { align-self: start; }
.stn-hist-it { padding: 7px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink2); cursor: pointer; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stn-hist-it:hover { background: var(--tint); }
.stn-hist-it.on { background: var(--tint); color: var(--tint-ink); }
.stn-ai-chat { min-height: 260px; max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; }
.stn-ai-turn { display: flex; flex-direction: column; gap: 6px; }
.stn-ai-q { align-self: flex-end; background: var(--tint); color: var(--tint-ink); border-radius: 12px 12px 3px 12px; padding: 8px 12px; font-size: 13.5px; font-weight: 700; max-width: 85%; }
.stn-ai-a { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 10px 13px; max-width: 92%; }
.stn-ai-a b { font-size: 12.5px; margin-right: 6px; }
.stn-ai-body { font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; margin-top: 6px; }
.stn-ai-matches { display: flex; gap: 6px; flex-wrap: wrap; }
.stn-ai-chip { font-size: 11.5px; font-weight: 700; color: var(--tint-ink); background: var(--tint); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.stn-ai-chip:hover { filter: brightness(.96); }
.stn-ai-input { display: flex; gap: 8px; margin-top: 12px; }
.stn-ai-input input { flex: 1; }
.ws-src { font-size: 11px; font-weight: 800; color: var(--ink3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.ws-src.is-llm { color: var(--tint-ink); border-color: var(--tint-line); background: var(--tint); }
/* ---- 资源 / 名册 / 成绩 / 记录类表格 ---- */
.stn-res-ic { flex: none; font-size: 22px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--tint); border-radius: 10px; }
.stn-table-wrap { overflow-x: auto; }
.stn-table { border-collapse: collapse; width: 100%; min-width: 520px; }
.stn-table th, .stn-table td { border-bottom: 1px dashed var(--line); padding: 8px 10px; font-size: 13px; text-align: left; }
.stn-table thead th { font-weight: 800; color: var(--ink3); font-size: 12px; }
.stn-table td.is-good { color: #1d7a46; font-weight: 800; }
.stn-table td.is-bad { color: #c0392b; font-weight: 800; }
.stn-readbar { display: inline-block; width: 90px; height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.stn-readbar i { display: block; height: 100%; background: var(--tint-line); }
.stn-bars { display: flex; gap: 14px; align-items: flex-end; justify-content: center; height: 150px; padding: 8px 0; }
.stn-bar-it { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; max-width: 90px; height: 100%; justify-content: flex-end; }
.stn-bar-it .bar { width: 70%; background: var(--tint-line); border-radius: 6px 6px 0 0; min-height: 4px; }
.stn-bar-it .n { font-size: 13px; font-weight: 800; }
.stn-bar-it .lb { font-size: 11.5px; color: var(--ink3); font-weight: 700; }
.stn-nt-body { font-size: 13.5px; line-height: 1.9; background: var(--tint); border-radius: 10px; padding: 12px 14px; }
/* ---- 排座位 ---- */
.stn-seat-grid { display: grid; gap: 8px; }
.stn-seat { border: 1.5px dashed var(--line); border-radius: 10px; min-height: 46px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; color: var(--ink3); cursor: pointer; transition: border-color .15s, background .15s; }
.stn-seat.drag { border-color: var(--tint-line); background: var(--tint); }
.stn-seat.has { border-style: solid; color: var(--ink); background: var(--tint); }
.stn-podium { width: 180px; margin: 16px auto 4px; border: 1.5px solid var(--line); border-radius: 10px; text-align: center; padding: 5px; font-size: 13px; font-weight: 800; color: var(--ink3); }
.stn-seat-pool { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.stn-seat-pool-it { border: 1.5px solid var(--tint-line); background: var(--tint); color: var(--tint-ink); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 800; cursor: grab; }
/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .stn-cards { grid-template-columns: repeat(2, 1fr); }
  .stn-cols2, .stn-cols2.seat { grid-template-columns: 1fr; }
  .stn-ai-layout { grid-template-columns: 1fr; }
  .stn-ai-side { order: 2; }
}
@media (max-width: 640px) {
  .stn-layout { flex-direction: column; }
  .stn-side { width: 100% !important; position: static; min-height: 0; }
  .stn-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .stn-group { margin-bottom: 4px; }
  .stn-group-t { width: 100%; }
  .stn-item { padding: 7px 10px; }
  .stn-cards { grid-template-columns: repeat(2, 1fr); }
}
/* jade 主题适配 */
html[data-theme="jade"] .stn-row-warn { background: rgba(255, 199, 89, .12); }
html[data-theme="jade"] .stn-due, html[data-theme="jade"] .stn-ttd .stn-note { color: #ffd166; }

/* =========================================================================
   v24 个人学习站（学生端 #/student/learn）
   布局：左侧科目导航 + 右侧内容；≤1024px 侧栏变顶部横向滚动条；
   手机（≤640px / touch 模式）进一步压缩；jade 主题经变量自动适配。
   ========================================================================= */
.lsn-layout { display: flex; gap: 16px; align-items: flex-start; }
.lsn-side {
  width: 172px; flex: none; position: sticky; top: 96px;
  background: #fff; border-radius: var(--r); box-shadow: var(--sh);
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.lsn-side-hd { font-weight: 900; font-size: 15px; color: var(--ink); padding: 6px 8px 2px; }
.lsn-nav { display: flex; flex-direction: column; gap: 3px; }
.lsn-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: 12px; color: var(--ink2); font-weight: 800; font-size: 14px;
  text-decoration: none; transition: background .15s, color .15s;
}
.lsn-item .ic { font-size: 17px; }
.lsn-item:hover { background: var(--tint); color: var(--tint-ink); }
.lsn-item.on { background: var(--grad); color: #fff; box-shadow: var(--grad-shadow); }
.lsn-nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 900;
  background: var(--tint); color: var(--tint-ink); border-radius: 999px; padding: 1px 8px;
}
.lsn-item.on .lsn-nav-badge { background: rgba(255,255,255,.25); color: #fff; }
.lsn-side-ft { font-size: 12px; color: var(--ink3); text-align: center; padding: 4px 0 2px; }

.lsn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lsn-hero {
  background: linear-gradient(120deg, #eaf4ff, #f3efff);
  border-radius: var(--r); padding: 20px 24px; box-shadow: var(--sh);
}
.lsn-hero h1 { margin: 0 0 4px; font-size: 24px; font-weight: 900; color: var(--ink); }
.lsn-hero p { margin: 0; color: var(--ink2); font-weight: 700; font-size: 13.5px; }

.lsn-content { display: flex; flex-direction: column; gap: 14px; }
.lsn-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 16px 18px; }
.lsn-h2 { margin: 0 0 10px; font-size: 16px; font-weight: 900; color: var(--ink); }
.lsn-h2 small { font-size: 12px; color: var(--ink3); font-weight: 700; margin-left: 6px; }
.lsn-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lsn-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lsn-badge {
  display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 900;
  background: var(--tint); color: var(--tint-ink); border-radius: 999px; padding: 2px 10px;
}

/* ---- 首页：进度 + 今日任务 ---- */
.lsn-progress { display: flex; gap: 20px; align-items: stretch; }
.lsn-progress-l { flex: none; text-align: center; }
.lsn-ring-box { position: relative; display: inline-block; }
.lsn-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.lsn-ring-num b { font-size: 30px; font-weight: 900; color: var(--blue); }
.lsn-ring-num span { font-size: 15px; font-weight: 800; color: var(--ink3); margin-top: 10px; }
.lsn-progress-r { flex: 1; min-width: 0; }
.lsn-tasks { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
.lsn-task {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.lsn-task:hover { border-color: var(--blue); background: #f7fbff; }
.lsn-task.ok { opacity: .72; }
.lsn-task-chip {
  flex: none; font-style: normal; font-size: 12px; font-weight: 900;
  border-radius: 8px; padding: 3px 9px; background: var(--tint);
}
.lsn-task-t { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsn-task-st { flex: none; font-size: 12.5px; font-weight: 800; color: var(--blue); }
.lsn-task.ok .lsn-task-st { color: var(--green); }
.lsn-empty { color: var(--ink3); font-size: 13.5px; font-weight: 700; margin: 6px 0; }

/* ---- 学习单打卡 ---- */
.lsn-subj-row { border: 1.5px dashed var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.lsn-subj-row:last-child { margin-bottom: 0; }
.lsn-subj-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lsn-subj-ico { font-size: 16px; }
.lsn-subj-hd b { color: var(--sc, var(--ink)); font-size: 14.5px; }
.lsn-subj-link { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--blue); text-decoration: none; }
.lsn-checks { display: flex; flex-direction: column; gap: 6px; }
.lsn-check {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 8px 12px; cursor: pointer; font: inherit; transition: border-color .15s, background .15s;
}
.lsn-check:hover { border-color: var(--blue); background: #f7fbff; }
.lsn-ck-ico { flex: none; font-size: 15px; }
.lsn-ck-label { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.lsn-ck-dot {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ink3); color: #fff; font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.lsn-check.done { border-color: var(--green); background: #f0fbf6; }
.lsn-check.done .lsn-ck-label { color: var(--ink2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.lsn-check.done .lsn-ck-dot { background: var(--green); border-color: var(--green); }

/* ---- 学科内容 ---- */
.lsn-goal { display: flex; gap: 14px; align-items: center; border-left: 6px solid var(--sc, var(--blue)); }
.lsn-goal-ico { font-size: 30px; }
.lsn-goal small { display: block; font-size: 12px; color: var(--ink3); font-weight: 800; }
.lsn-goal b { font-size: 16.5px; color: var(--ink); }
.lsn-obs { display: flex; gap: 16px; align-items: center; }
.lsn-obs-art { font-size: 58px; flex: none; }
.lsn-obs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lsn-obs-list li { font-size: 13.5px; color: var(--ink2); font-weight: 700; }
.lsn-obs-list li i { font-style: normal; margin-right: 6px; }
.lsn-obs-list li b { color: var(--ink); margin-right: 4px; }
.lsn-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; color: var(--ink3); font-weight: 900; align-items: center; }
.lsn-step {
  background: #fff; border: 2px solid var(--sc, var(--blue)); color: var(--sc, var(--blue));
  border-radius: 12px; padding: 7px 12px; font-weight: 900; font-size: 13.5px;
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 72px;
}
.lsn-step small { font-size: 11px; color: var(--ink3); font-weight: 700; }
.lsn-quote { background: var(--tint); border-radius: 12px; padding: 10px 14px; font-weight: 700; color: var(--tint-ink); margin: 0; }
.lsn-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.lsn-chip {
  background: #fff; border: 2px solid var(--sc, var(--blue)); border-radius: 12px;
  padding: 8px 12px; font-weight: 900; font-size: 13.5px; color: var(--sc, var(--blue));
}
.lsn-chip small { font-weight: 700; color: var(--ink3); font-size: 11.5px; }
.lsn-tip { color: var(--ink3); font-size: 12.5px; font-weight: 700; margin: 10px 0 0; }
.lsn-formula { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.lsn-formula-txt p { margin: 6px 0; font-size: 15px; color: var(--ink2); font-weight: 700; }
.lsn-formula-txt b { color: var(--blue); }
.lsn-eg-fig { text-align: center; }
.lsn-eg-ans { text-align: center; font-size: 15px; font-weight: 800; color: var(--ink); margin: 8px 0 0; }
.lsn-eg-ans b { color: var(--blue); font-size: 17px; }
.lsn-warn { border-left: 6px solid var(--orange); }
.lsn-words { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lsn-words li { font-size: 16px; font-weight: 800; color: var(--ink); }
.lsn-words li i { font-style: normal; margin-right: 8px; font-size: 19px; }
.lsn-sent { background: #f0f7ff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.lsn-sent b { color: var(--blue); } .lsn-sent em { font-style: normal; color: var(--orange); }
.lsn-qa { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--ink2); margin: 6px 0; }
.lsn-qa b { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.lsn-qa.q b { background: var(--blue); }
.lsn-qa.a b { background: var(--purple); border-top: 1.5px dashed var(--line); }
.lsn-tl { display: flex; gap: 8px; justify-content: space-between; position: relative; flex-wrap: wrap; }
.lsn-tl-it { flex: 1; min-width: 70px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; border-top: 4px solid var(--tc, var(--blue)); }
.lsn-tl-it b { color: var(--tc, var(--blue)); font-size: 13.5px; }
.lsn-tl-it span { font-size: 26px; }
.lsn-tl-it small { color: var(--ink3); font-weight: 700; font-size: 11.5px; }
.lsn-topic { display: flex; gap: 14px; align-items: center; }
.lsn-topic-ico { font-size: 34px; background: var(--tint); border-radius: 14px; padding: 10px; }
.lsn-topic small { color: var(--purple); font-weight: 900; font-size: 12.5px; display: block; }
.lsn-topic b { font-size: 19px; color: var(--ink); }
.lsn-center { text-align: center; font-weight: 900; color: var(--ink); margin: 8px 0; }
.lsn-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lsn-plain li { font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.lsn-vs { display: flex; gap: 10px; align-items: stretch; margin-bottom: 6px; }
.lsn-vs-a, .lsn-vs-b { flex: 1; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.lsn-vs-a { background: #f0f7ff; } .lsn-vs-a b { display: block; color: var(--blue); margin-bottom: 3px; }
.lsn-vs-b { background: #f0fbf6; } .lsn-vs-b b { display: block; color: var(--green); margin-bottom: 3px; }
.lsn-vs-mid { align-self: center; flex: none; font-weight: 900; color: var(--ink3); font-size: 13px; }

/* ---- 奖励 ---- */
.lsn-medal {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px;
  border: 2px dashed var(--line); border-radius: 14px; font-size: 40px; filter: grayscale(1); opacity: .6;
}
.lsn-medal b { font-size: 15px; color: var(--ink); }
.lsn-medal small { font-size: 12.5px; color: var(--ink3); font-weight: 700; }
.lsn-medal.on { filter: none; opacity: 1; border-color: var(--yellow); background: #fffaf0; }

/* ---- 闯关 ---- */
.lsn-quiz-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.lsn-quiz-tab {
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px;
  font: inherit; font-weight: 900; font-size: 13.5px; color: var(--ink2); cursor: pointer;
}
.lsn-quiz-tab span { display: block; font-size: 10.5px; color: var(--ink3); }
.lsn-quiz-tab.on { border-color: var(--sc, var(--blue)); color: var(--sc, var(--blue)); background: #fff; box-shadow: var(--sh); }
.lsn-quiz-q p { font-size: 16.5px; font-weight: 900; color: var(--ink); margin: 4px 0 12px; }
.lsn-quiz-q b { font-size: 12.5px; color: var(--ink3); }
.lsn-quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.lsn-quiz-opt {
  border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px;
  font: inherit; font-weight: 800; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, transform .1s;
}
.lsn-quiz-opt:hover:not(:disabled) { border-color: var(--blue); background: #f7fbff; }
.lsn-quiz-opt.ok { border-color: var(--green); background: #f0fbf6; color: var(--green); }
.lsn-quiz-opt.bad { border-color: var(--red); background: #fff5f5; color: var(--red); animation: lsn-shake .35s; }
.lsn-quiz-opt:disabled { cursor: default; }
@keyframes lsn-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lsn-quiz-hint { min-height: 20px; font-weight: 800; font-size: 13.5px; color: var(--ink2); margin: 10px 0 0; }
.lsn-quiz-done { text-align: center; font-weight: 900; font-size: 16px; color: var(--ink); padding: 26px 10px; }

/* ---- 成长 ---- */
.lsn-stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lsn-stat { text-align: center; padding: 14px 8px; }
.lsn-stat b { display: block; font-size: 28px; font-weight: 900; color: var(--blue); }
.lsn-stat span { font-size: 12px; color: var(--ink3); font-weight: 800; }
.lsn-bars { display: flex; gap: 6px; align-items: flex-end; height: 130px; padding-top: 6px; }
.lsn-bar-it { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.lsn-bar-it .n { font-size: 11.5px; font-weight: 900; color: var(--ink2); min-height: 14px; }
.lsn-bar-it .bar { width: 62%; min-height: 3px; background: var(--tint-line, var(--blue)); border-radius: 6px 6px 0 0; background: var(--grad); opacity: .85; }
.lsn-bar-it .lb { font-size: 11px; color: var(--ink3); font-weight: 800; }

/* ---- 响应式：iPad（≤1024px）侧栏变顶部横向滚动 ---- */
@media (max-width: 1024px) {
  .lsn-layout { flex-direction: column; }
  .lsn-side { width: 100%; position: static; }
  .lsn-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .lsn-item { flex: none; padding: 8px 13px; }
  .lsn-nav-badge { margin-left: 2px; }
  .lsn-side-ft { display: none; }
  .lsn-progress { flex-direction: column; }
  .lsn-cols2, .lsn-cols3 { grid-template-columns: 1fr; }
  .lsn-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .lsn-hero h1 { font-size: 20px; }
}
/* ---- 手机（≤560px）进一步压缩 ---- */
@media (max-width: 560px) {
  .lsn-hero { padding: 14px 16px; }
  .lsn-hero h1 { font-size: 18px; }
  .lsn-card { padding: 13px 14px; }
  .lsn-flow { gap: 4px; }
  .lsn-step { min-width: 60px; font-size: 12px; padding: 6px 8px; }
  .lsn-task-t { white-space: normal; }
  .lsn-bars { gap: 3px; }
  .lsn-vs { flex-direction: column; }
  .lsn-vs-mid { align-self: flex-start; }
}

/* ---- jade 主题适配 ---- */
html[data-theme="jade"] .lsn-hero { background: linear-gradient(120deg, var(--tint), #f4efe2); }
html[data-theme="jade"] .lsn-item.on { color: #fff; }
html[data-theme="jade"] .lsn-qa.q b { background: var(--blue); }

/* ---- v24b 学习工作站·班级通知 + 校历倒计时 ---- */
.lsn-ntc { padding: 8px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; border-radius: 8px; }
.lsn-ntc:last-child { border-bottom: none; }
.lsn-ntc:hover { background: var(--tint); }
.lsn-ntc-hd { display: flex; align-items: center; gap: 8px; }
.lsn-ntc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.lsn-ntc.unread .lsn-ntc-dot { background: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.lsn-ntc-hd b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.lsn-ntc-meta { color: var(--ink2); font-size: 12px; flex: none; }
.lsn-ntc-body { margin: 6px 0 2px 16px; font-size: 13px; color: var(--ink2); line-height: 1.6; white-space: pre-wrap; }
.lsn-cal-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed var(--line); }
.lsn-cal-row:last-child { border-bottom: none; }
.lsn-cal-chip { flex: none; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--ink2); }
.lsn-cal-chip.k-holiday { background: #fff3e0; color: #b26a00; }
.lsn-cal-chip.k-exam { background: #fde8e8; color: #c03535; }
.lsn-cal-chip.k-activity { background: #e5f6ec; color: #1d9e67; }
.lsn-ntc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lsn-ntc-b b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsn-ntc-b span { font-size: 12px; color: var(--ink2); }
.lsn-cal-n { flex: none; font-size: 12px; color: var(--ink2); }
.lsn-cal-n.hot { color: #e5484d; font-weight: 700; }

/* ---- v24d 学习工作站·老师布置任务行 ---- */
.lsn-task-t small { display: block; font-weight: 500; font-size: 12px; color: var(--ink2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsn-task.ok .lsn-task-st { color: var(--ink2); }
.lsn-more { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; text-align: center; }
.lsn-more:hover { text-decoration: underline; }

/* ---- v24e 学习工作站·今日自评 ---- */
.lsn-reflect .lsn-stars { display: flex; gap: 6px; margin: 6px 0 10px; }
.lsn-star {
  border: none; background: none; cursor: pointer; font-size: 26px; line-height: 1;
  color: var(--line); padding: 2px; transition: transform .1s, color .1s;
}
.lsn-star:hover { transform: scale(1.15); }
.lsn-star.on { color: #f5a623; text-shadow: 0 1px 4px rgba(245, 166, 35, .35); }
.lsn-reflect-note {
  width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 9px 12px; font: inherit; font-size: 13.5px; resize: vertical; background: var(--card, #fff);
}
.lsn-reflect-note:focus { outline: none; border-color: var(--blue); }
.lsn-reflect-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.lsn-reflect-saved { font-size: 12.5px; color: var(--ink2); }
.lsn-reflect-save {
  border: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800;
  color: #fff; background: var(--blue); border-radius: 10px; padding: 7px 16px;
}
.lsn-reflect-save:disabled { opacity: .6; }

/* ---- v24f 教师端·学习单布置 ---- */
.ts-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ts-row-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ts-lb { font-size: 13px; font-weight: 700; white-space: nowrap; }
.ts-subjects { display: flex; gap: 8px; flex-wrap: wrap; }
.ts-subj {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit;
  font-size: 13.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card, #fff); color: var(--ink);
}
.ts-subj span { font-size: 15px; }
.ts-subj:hover { border-color: var(--sc, var(--blue)); }
.ts-subj.on { border-color: var(--sc, var(--blue)); background: color-mix(in srgb, var(--sc, var(--blue)) 10%, transparent); }
.ts-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ts-meta-r { font-size: 12.5px; color: var(--ink2); }
.ts-badge { font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--ink2); }
.ts-badge.pub { background: #e5f6ec; color: #1d9e67; }
.ts-badge.draft { background: #fff3e0; color: #b26a00; }
.ts-block, .ts-check {
  display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--card, #fff);
}
.ts-block-hd { display: flex; gap: 8px; align-items: center; }
.ts-b-icon, .ts-c-icon { width: 56px; text-align: center; flex: none; }
.ts-b-title, .ts-c-label { flex: 1; min-width: 0; }
.ts-b-kind { width: 120px; flex: none; }
.ts-del {
  border: none; cursor: pointer; flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: #fde8e8; color: #c03535; font-weight: 900; font-size: 13px;
}
.ts-add {
  border: 1.5px dashed var(--line); background: none; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 700; color: var(--blue); border-radius: 10px; padding: 7px 14px;
}
.ts-add:hover { border-color: var(--blue); background: var(--tint); }
.ts-check { flex-direction: row; align-items: center; }
.ts-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ts-hint { margin-top: 12px; font-size: 12.5px; color: var(--ink2); line-height: 1.7; }

/* ============================================================
   v27r：BYOD 巡检「结果录入」页美化 + 历史表格类补齐
   ------------------------------------------------------------
   1) .tbl / .admin-table 一直在多个页面使用但从未定义（浏览器默认
      表格：表头 16px 加粗、无内边距、无对齐），此处对齐系统 .table
      的视觉规范（14px 正文 / 12px 表头 / 行 hover / 底部分隔线）；
   2) 补全局 .chip-ok / .chip-warn / .chip-bad（携带率分级标签，
      此前仅 ipCompanion 作用域内存在，结果录入页渲染成了灰色）；
   3) ir- 前缀：结果录入页专属样式，全部走主题变量，jade/classic
      两主题通吃；≤720px 有移动端块。
   ============================================================ */

/* ---- 1) 补齐历史表格类（视觉 = .table） ---- */
.tbl, .admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .admin-table th {
  text-align: left; color: var(--ink3); font-weight: 800; font-size: 12px;
  padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td, .admin-table td { padding: 11px 12px; border-bottom: 1px solid #f4f7fb; vertical-align: middle; }
.tbl tbody tr:hover, .admin-table tbody tr:hover { background: #f8fbfe; }
.tbl tbody tr:last-child td, .admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .chip, .tbl .chip { white-space: nowrap; }

/* ---- 2) 携带率分级 chip ---- */
.chip-ok   { background: #e9f8ee; color: #179a6d; border-color: #c4ebcf; }
.chip-warn { background: #fff5e8; color: #b06f00; border-color: #ffe0b8; }
.chip-bad  { background: #ffeaea; color: #c64545; border-color: #ffcfcf; }

/* ---- 3) 结果录入页（ir- 前缀） ---- */
/* 顶部工具条：周次 + 范围说明 + 操作按钮 */
.ir-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ir-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.ir-toolbar .input-sm { min-width: 300px; }
.ir-scope { font-size: 13px; color: var(--ink3); }
.ir-ops { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* 两栏录入区 */
.ir-cols { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; margin-bottom: 14px; }
.ir-cols .card { margin-bottom: 0; }
.ir-col-a { flex: 3 1 460px; }
.ir-col-b { flex: 2 1 340px; }

/* 表格内的小控件（输入/下拉统一 14px 圆角风格） */
.ir-num {
  width: 76px; padding: 8px 6px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: var(--font); background: #fbfdff; color: var(--ink);
  outline: none; transition: border-color .15s;
}
.ir-num:focus { border-color: var(--blue); }
.ir-sel {
  max-width: 200px; width: 100%; padding: 8px 10px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: var(--font); background: #fbfdff; color: var(--ink);
  outline: none; cursor: pointer; transition: border-color .15s;
}
.ir-sel:focus { border-color: var(--blue); }

/* 尚未录入班级的快捷按钮区 */
.ir-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.ir-quick .btn { padding: 5px 12px; font-size: 12.5px; }

/* Excel 文件选择框 */
.ir-file {
  display: block; width: 100%; padding: 10px 12px;
  border: 1.5px dashed var(--line); border-radius: 12px;
  font-size: 13px; color: var(--ink2); background: #fbfdff; cursor: pointer;
}
.ir-file:hover { border-color: var(--blue); }

/* 导入预览盒 */
.ir-pv-err { max-height: 150px; overflow: auto; margin: 0 0 8px; color: var(--red); font-size: 13px; line-height: 1.7; }
.ir-pv-tbl { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }

/* 汇总卡的携带率数字（分级着色） */
.ir-rate-c { letter-spacing: .3px; }
/* 年级小表 */
.ir-grade-wrap { margin-top: 12px; }

/* ---- 4) 移动端（≤720px：单列堆叠 + 工具条换行） ---- */
@media (max-width: 720px) {
  .ir-toolbar .input-sm { min-width: 0; flex: 1 1 160px; }
  .ir-ops { margin-left: 0; width: 100%; }
  .ir-ops .btn { flex: 1 1 auto; }
  .ir-cols { flex-direction: column; }
  .ir-col-a, .ir-col-b { flex: 1 1 auto; }
  .ir-sel { max-width: none; }
  .ir-num { width: 68px; }
}

/* ================================================================
 * v29：教师端「我的任教班级」范围条 + 教学概览（合并个人工作台）
 * ================================================================ */
.scope-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.scope-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--tint); border: 1px solid var(--tint-line); color: var(--tint-ink); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; }
.scope-chip b { font-size: 13.5px; }
.scope-hint { font-size: 12px; color: var(--ink3); }

.stn-cards-5 { grid-template-columns: repeat(5, 1fr); }
.stn-stat-hi b { color: var(--tint-ink); }
.stn-sec-t { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ink); margin: 16px 0 10px; }
.stn-row-link { text-decoration: none; color: inherit; display: grid; grid-template-columns: 1fr auto 90px; align-items: center; gap: 10px; }
.stn-row-link b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stn-row-link:hover { background: var(--tint); border-radius: 8px; }
.stn-rate { display: block; width: 90px; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.stn-rate i { display: block; height: 100%; background: var(--tint-ink); border-radius: 999px; }
.rate-mini .rate-bar, .rate-bar { background: var(--tint-ink); }

@media (max-width: 1024px) {
  .stn-cards { grid-template-columns: repeat(2, 1fr); }
  .stn-cards-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .stn-cards, .stn-cards-5 { grid-template-columns: 1fr 1fr; }
  .stn-row-link { grid-template-columns: 1fr auto; }
  .stn-row-link .stn-rate { display: none; }
  .scope-bar .btn { flex: 1 1 auto; }
}

/* =========================================================================
   v34 学生端「个人工作台」仪表盘恢复（#/student/home，whb- 前缀）
   问候横幅 + 5 统计卡 + 待办清单 + 班级通知 + 快捷入口
   ========================================================================= */
.whb-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--grad); color: #fff; border-radius: var(--r);
  padding: 18px 22px; box-shadow: var(--grad-shadow);
}
.whb-hero-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.whb-hero h2 { margin: 0 0 3px; font-size: 20px; font-weight: 900; }
.whb-hero p { margin: 0; font-size: 13px; font-weight: 700; opacity: .88; }
.whb-avatar { flex: none; }
.whb-avatar .avatar-hero { width: 46px; height: 46px; }

/* v43：统计卡固定一行 5 列，数字全页只出现一次 */
.whb-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; }
.whb-stat { text-align: center; padding: 14px 8px; margin: 0; }
.whb-stat b { display: block; font-size: 24px; font-weight: 900; color: var(--blue); line-height: 1.2; }
.whb-stat span { display: block; font-size: 13px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.whb-stat i { display: block; font-style: normal; font-size: 11px; color: var(--ink3); font-weight: 700; margin-top: 2px; }

/* v43：待办 | 通知 两列等高（grid 默认 stretch），快捷入口独立成全宽区 */
.whb-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 14px; align-items: stretch; }
.whb-panel { padding: 14px 16px; margin: 0; display: flex; flex-direction: column; min-width: 0; }
.whb-panel-bd { flex: 1; min-width: 0; }
.whb-panel-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.whb-panel-hd h3 { margin: 0; font-size: 15px; font-weight: 900; color: var(--ink); }
.whb-empty { color: var(--ink3); font-size: 13px; font-weight: 700; margin: 8px 0; text-align: center; }
.whb-empty-tall { flex: 1; display: flex; align-items: center; justify-content: center; margin: 0; padding: 26px 0; }
.whb-quick { margin-top: 14px; }

/* 待办清单 */
.whb-todo { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.whb-todo:last-child { margin-bottom: 0; }
.whb-todo-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.whb-todo-main { flex: 1; min-width: 0; }
.whb-todo-main b { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whb-todo-main small { color: var(--ink3); font-size: 11.5px; font-weight: 700; }
.whb-due { flex: none; font-size: 11px; font-weight: 900; color: var(--orange); background: #fff7ea; border-radius: 999px; padding: 2px 9px; }
.whb-due.bad { color: var(--red); background: #fff1f1; }
.whb-go { flex: none; font-size: 12.5px; font-weight: 800; color: var(--blue); text-decoration: none; }
.whb-go:hover { text-decoration: underline; }

/* 班级通知 */
.whb-notice { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.whb-notice:last-child { margin-bottom: 0; }
.whb-notice b { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.whb-notice p { margin: 0 0 4px; font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.whb-notice small { color: var(--ink3); font-size: 11px; font-weight: 700; }

/* 快捷入口：全宽 4×2 网格（8 项正好两行） */
.whb-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.whb-sc {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
  transition: border-color .15s, background .15s, transform .12s;
}
.whb-sc:hover { border-color: var(--blue); background: #f7fbff; transform: translateY(-1px); }
.whb-sc-ico { flex: none; font-size: 20px; }
.whb-sc-txt { min-width: 0; }
.whb-sc-txt b { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.whb-sc-txt small { display: block; font-size: 11px; color: var(--ink3); font-weight: 700; }

/* 响应式 */
@media (max-width: 1024px) {
  .whb-stats { gap: 8px; }
  .whb-stat b { font-size: 20px; }
  .whb-stat span { font-size: 12px; }
  .whb-stat i { display: none; }
  .whb-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .whb-hero { padding: 14px 16px; }
  .whb-hero h2 { font-size: 17px; }
  .whb-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .whb-stat:last-child { grid-column: span 2; }
  .whb-shortcuts { grid-template-columns: repeat(2, 1fr); }
}

/* jade 主题适配（变量自动生效，仅补白字与横幅） */
html[data-theme="jade"] .whb-sc:hover { background: var(--tint); }

/* =========================================================================
   v35 节次时间（按年级）编辑器（教师工作站 · 课表管理）
   ========================================================================= */
.pt-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pt-bar label { font-weight: 800; color: var(--ink); font-size: 13.5px; }
.pt-hint { font-size: 12px; color: var(--ink3); font-weight: 700; }
.pt-rows { display: flex; flex-direction: column; gap: 7px; max-height: 46vh; overflow: auto; padding-right: 2px; }
.pt-row {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 12px;
}
.pt-row b { flex: none; width: 52px; font-size: 13.5px; font-weight: 900; color: var(--ink); }
.pt-row input[type="time"] {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 9px;
  padding: 6px 8px; font: inherit; font-weight: 700; color: var(--ink); background: #fff;
}
.pt-row input[type="time"]:focus { outline: none; border-color: var(--blue); }
.pt-sep { flex: none; color: var(--ink3); font-weight: 900; }
/* v68：我的班级当前生效节次时间（只读对照块） */
.pt-cls-box {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: var(--tint); margin-bottom: 4px; max-height: 30vh; overflow: auto;
}
.pt-cls-t { font-weight: 900; color: var(--ink); font-size: 13.5px; margin-bottom: 8px; }
.pt-cls-sub { font-size: 11.5px; font-weight: 700; color: var(--ink3); }
.pt-cls-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 6px 0; border-top: 1px dashed var(--line); font-size: 12.5px;
}
.pt-cls-row:first-of-type { border-top: none; }
.pt-cls-row > b { color: var(--ink); font-weight: 900; min-width: 92px; }
.pt-cls-times { color: var(--ink3); font-weight: 700; }
.stn-tt-t { color: var(--blue); font-weight: 800; }
.stn-tt tbody th .stn-tt-t { display: block; font-size: 10.5px; }

/* =========================================================================
   v35：第三主题「深空蓝」（deepblue）—— 视觉冲击力强的暗色科技风
   参考「亲亲学习者」深蓝视觉：深邃夜空底 + 霓虹蓝光 + 高对比文字
   覆盖方式与 jade 一致：html[data-theme="deepblue"] 重定义变量与关键界面用色，不动布局
   ========================================================================= */
html[data-theme="deepblue"] {
  --blue: #4f8dff;
  --primary: #4f8dff;
  --primary-dark: #2f6cdf;
  --green: #2ee6a8;
  --orange: #ffb057;
  --pink: #ff7fb0;
  --purple: #9d8dff;
  --yellow: #ffd35c;
  --red: #ff7b7b;
  --grad: linear-gradient(135deg, #2e5cff, #00b4ff);
  --grad-shadow: 0 5px 18px rgba(46, 122, 255, .45);
  --ink: #e9f1ff;
  --ink2: #b9c9ec;
  --ink3: #7e93c6;
  --line: rgba(126, 168, 255, .18);
  --card: #14224a;
  --sh: 0 6px 18px rgba(2, 8, 26, .45);
  --sh2: 0 10px 30px rgba(2, 8, 26, .55);
  --green-bg: rgba(46, 230, 168, .13);
  --red-bg: rgba(255, 123, 123, .15);
  --orange-bg: rgba(255, 176, 87, .13);
  --gray-bg: rgba(126, 168, 255, .10);
  --tint: rgba(79, 141, 255, .15);
  --tint-2: rgba(79, 141, 255, .24);
  --tint-ink: #8fbaff;
  --tint-line: rgba(126, 168, 255, .34);
  --bg2: rgba(126, 168, 255, .10);
}
/* ---- 页面底色：深空夜幕 + 蓝色辉光 ---- */
html[data-theme="deepblue"] body {
  background:
    radial-gradient(900px 500px at 110% -8%, rgba(46, 122, 255, .30) 0%, rgba(46, 122, 255, 0) 60%),
    radial-gradient(800px 500px at -10% 0%, rgba(0, 180, 255, .20) 0%, rgba(0, 180, 255, 0) 60%),
    radial-gradient(1000px 600px at 50% 110%, rgba(64, 60, 255, .16) 0%, rgba(64, 60, 255, 0) 60%),
    linear-gradient(180deg, #0b1234 0%, #0d1838 45%, #0a1028 100%);
  background-attachment: fixed;
  color: var(--ink);
}
html[data-theme="deepblue"] ::selection { background: rgba(79, 141, 255, .38); }
html[data-theme="deepblue"] a { color: var(--blue); }
html[data-theme="deepblue"] a.btn-primary,
html[data-theme="deepblue"] a.btn-danger,
html[data-theme="deepblue"] a.btn-green,
html[data-theme="deepblue"] a.btn-dingtalk { color: #fff; }
html[data-theme="deepblue"] .brand-logo { box-shadow: 0 6px 18px rgba(46, 122, 255, .5); }
html[data-theme="deepblue"] .btn-primary:hover { box-shadow: 0 8px 24px rgba(46, 122, 255, .55); }
html[data-theme="deepblue"] .btn { background: var(--bg2); color: var(--ink2); }
html[data-theme="deepblue"] .btn-ghost { background: var(--bg2); }

/* ---- 顶栏 / 导航 ---- */
html[data-theme="deepblue"] .topbar { border-bottom-color: transparent; }
html[data-theme="deepblue"] .user-chip { background: rgba(20, 34, 74, .8); }
html[data-theme="deepblue"] .tn-link:not(.on):hover { color: var(--ink); }
html[data-theme="deepblue"] .nv-dd {
  background: #14224a;
  border-color: var(--tint-line);
  box-shadow: 0 22px 48px -16px rgba(0, 0, 0, .6), 0 0 0 1px rgba(79, 141, 255, .12);
}
html[data-theme="deepblue"] .tabbar {
  background: rgba(9, 15, 38, .94);
  border-top-color: rgba(126, 168, 255, .16);
}

/* ---- 卡片 / 统计卡 ---- */
html[data-theme="deepblue"] .card { border: 1px solid rgba(126, 168, 255, .12); }
html[data-theme="deepblue"] .stat-card {
  background: linear-gradient(160deg, #1a2b5c, #14224a);
  border: 1px solid rgba(126, 168, 255, .16);
}
html[data-theme="deepblue"] .st-blue { background: rgba(79, 141, 255, .13); }
html[data-theme="deepblue"] .st-green { background: rgba(46, 230, 168, .11); }
html[data-theme="deepblue"] .st-orange { background: rgba(255, 176, 87, .11); }
html[data-theme="deepblue"] .st-purple { background: rgba(157, 141, 255, .12); }
html[data-theme="deepblue"] .st-blue .stat-value { color: #7fb0ff; }
html[data-theme="deepblue"] .st-green .stat-value { color: #5fe8bb; }
html[data-theme="deepblue"] .st-orange .stat-value { color: #ffc470; }
html[data-theme="deepblue"] .st-purple .stat-value { color: #bcaeff; }

/* ---- 表单 / 弹层 / 表格 ---- */
html[data-theme="deepblue"] .input {
  background: rgba(8, 14, 36, .55);
  border-color: rgba(126, 168, 255, .26);
  color: var(--ink);
}
html[data-theme="deepblue"] .input::placeholder { color: var(--ink3); }
html[data-theme="deepblue"] .input:focus { background: rgba(8, 14, 36, .8); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(79, 141, 255, .16); }
html[data-theme="deepblue"] .prof-locked .input { background: rgba(126, 168, 255, .06); color: var(--ink3); }
html[data-theme="deepblue"] .modal { background: #16244e; border: 1px solid rgba(126, 168, 255, .2); }
html[data-theme="deepblue"] .tbl td, html[data-theme="deepblue"] .admin-table td { border-bottom-color: rgba(126, 168, 255, .13); }
html[data-theme="deepblue"] .tbl tbody tr:hover, html[data-theme="deepblue"] .admin-table tbody tr:hover { background: rgba(79, 141, 255, .08); }
html[data-theme="deepblue"] .chip { background: var(--bg2); }
html[data-theme="deepblue"] .chip-ok   { background: rgba(46, 230, 168, .13); color: #5fe8bb; border-color: rgba(46, 230, 168, .32); }
html[data-theme="deepblue"] .chip-warn { background: rgba(255, 211, 92, .13); color: #ffd76b; border-color: rgba(255, 211, 92, .32); }
html[data-theme="deepblue"] .chip-bad  { background: rgba(255, 123, 123, .14); color: #ff9d9d; border-color: rgba(255, 123, 123, .32); }
html[data-theme="deepblue"] .stn-chip-ok   { background: rgba(46, 230, 168, .13); color: #5fe8bb; }
html[data-theme="deepblue"] .stn-chip-warn { background: rgba(255, 211, 92, .13); color: #ffd76b; }
html[data-theme="deepblue"] .stn-chip-bad  { background: rgba(255, 123, 123, .14); color: #ff9d9d; }
html[data-theme="deepblue"] .t-blue { color: #7fb0ff; }
html[data-theme="deepblue"] .t-ok { color: #5fe8bb; }
html[data-theme="deepblue"] .agreq-status.pending    { background: rgba(255, 176, 87, .14); color: #ffc470; }
html[data-theme="deepblue"] .agreq-status.processing { background: rgba(79, 141, 255, .16); color: #8fbaff; }
html[data-theme="deepblue"] .agreq-status.done       { background: rgba(46, 230, 168, .13); color: #5fe8bb; }

/* ---- 各端 hero 横幅：霓虹蓝光 ---- */
html[data-theme="deepblue"] .cal-hero {
  background: linear-gradient(135deg, #14306e 0%, #1c4bb8 55%, #0a9ae0 130%);
  box-shadow: 0 12px 30px rgba(28, 75, 184, .45);
}
html[data-theme="deepblue"] .wb-hero {
  background: linear-gradient(135deg, #0e1e4a, #1c4bb8 60%, #00b4ff 150%);
  box-shadow: 0 16px 34px -18px rgba(0, 60, 180, .8);
}
html[data-theme="deepblue"] .sched-hero { background: linear-gradient(135deg, rgba(79, 141, 255, .14), rgba(0, 180, 255, .10)); }
html[data-theme="deepblue"] .lsn-hero { background: linear-gradient(135deg, rgba(79, 141, 255, .16), rgba(0, 180, 255, .08)); border-color: var(--tint-line); }
html[data-theme="deepblue"] .avatar-hero { box-shadow: 0 4px 16px rgba(46, 122, 255, .5); }
html[data-theme="deepblue"] .inq-c1 .inq-card-icon { background: var(--tint); }
html[data-theme="deepblue"] .ip-hero { background: linear-gradient(135deg, rgba(79, 141, 255, .14), rgba(20, 34, 74, .6) 70%); }
html[data-theme="deepblue"] .whb-sc:hover { background: var(--tint); }
html[data-theme="deepblue"] .lsn-item.on { color: #fff; }
html[data-theme="deepblue"] .lsn-qa.q b { background: var(--blue); }
html[data-theme="deepblue"] .lsn-hero, html[data-theme="deepblue"] .cal-hero, html[data-theme="deepblue"] .wb-hero { color: #fff; }

/* ---- 提示条 / 状态点缀 ---- */
html[data-theme="deepblue"] .ai-hint { background: rgba(255, 211, 92, .10); color: #ffd76b; border-color: rgba(255, 211, 92, .28); }
html[data-theme="deepblue"] .iq-remind { background: rgba(255, 211, 92, .10); color: #ffd76b; border-color: rgba(255, 211, 92, .28); }
html[data-theme="deepblue"] .iq-todo-card { background: linear-gradient(180deg, rgba(79, 141, 255, .12), var(--card) 92%); }
html[data-theme="deepblue"] .iq-todo.over { border-color: rgba(255, 123, 123, .4); background: rgba(255, 123, 123, .07); }
html[data-theme="deepblue"] .iq-stars button { color: #35507e; }
html[data-theme="deepblue"] .coun-notice { border-left-color: var(--blue); }
html[data-theme="deepblue"] .cls-state.cls-st-default { background: rgba(126, 168, 255, .14); color: #8fbaff; }
html[data-theme="deepblue"] .cls-time.cls-time-na { color: #7e93c6; }
html[data-theme="deepblue"] .cls-win-hint { background: rgba(126, 168, 255, .12); color: #8fbaff; }
html[data-theme="deepblue"] .stn-due, html[data-theme="deepblue"] .stn-ttd .stn-note { background: rgba(255, 211, 92, .10); color: #ffd76b; }
html[data-theme="deepblue"] .stn-row-warn { background: rgba(255, 123, 123, .08); }

/* ---- 亲小AI / 引导 / 悬浮 ---- */
html[data-theme="deepblue"] .ip-ava { background: #1a2b5c; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
html[data-theme="deepblue"] .ip-fab { background: #1a2b5c; }
html[data-theme="deepblue"] .ip-chat-input input { background: rgba(8, 14, 36, .55); color: var(--ink); border-color: rgba(126, 168, 255, .26); }
html[data-theme="deepblue"] .ip-guide-card { background: #16244e; }
html[data-theme="deepblue"] .ip-guide-spot { box-shadow: 0 0 0 9999px rgba(3, 7, 20, .72); }
html[data-theme="deepblue"] .ipadm-fig { background: var(--tint); }
html[data-theme="deepblue"] .ipx-drop, html[data-theme="deepblue"] .ipx-fig,
html[data-theme="deepblue"] .ipx-pane-fig { background: var(--tint); }
html[data-theme="deepblue"] .ipx-pick-note { background: rgba(126, 168, 255, .08); color: var(--ink2); }
html[data-theme="deepblue"] .ipx-tab { background: var(--bg2); color: var(--ink2); }
html[data-theme="deepblue"] .ipx-tab.on { background: var(--blue); color: #fff; }

/* ---- 登录页：深空蓝 + 霓虹光斑 ---- */
html[data-theme="deepblue"] .login-wrap {
  background:
    radial-gradient(ellipse at 16% 10%, rgba(0, 180, 255, .32), transparent 55%),
    radial-gradient(ellipse at 84% 88%, rgba(46, 92, 255, .5), transparent 60%),
    linear-gradient(135deg, #060b22 0%, #0e2260 48%, #10308a 100%);
}
html[data-theme="deepblue"] .login-bg-orb1 { background: #00b4ff; }
html[data-theme="deepblue"] .login-bg-orb2 { background: #2e5cff; }
html[data-theme="deepblue"] .login-bg-orb3 { background: #6ee0ff; }
html[data-theme="deepblue"] .login-card {
  background: rgba(11, 19, 46, .92);
  border-color: rgba(126, 168, 255, .3);
  color: #e9f1ff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(46, 122, 255, .25);
}
html[data-theme="deepblue"] .login-logo {
  background: linear-gradient(135deg, #1c4bb8 0%, #00b4ff 130%);
  box-shadow: 0 12px 28px rgba(46, 122, 255, .55);
}
html[data-theme="deepblue"] .login-hero h1 {
  background: linear-gradient(90deg, #7fb0ff, #00d1ff);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="deepblue"] .login-subtitle { color: #8ba6dd; }
html[data-theme="deepblue"] .login-role {
  background: linear-gradient(135deg, rgba(30, 48, 100, .85), rgba(18, 30, 66, .85));
  border-color: rgba(126, 168, 255, .22);
}
html[data-theme="deepblue"] .login-role:hover {
  border-color: rgba(79, 141, 255, .6);
  box-shadow: 0 12px 26px rgba(0, 30, 90, .5);
}
html[data-theme="deepblue"] .login-role.on { box-shadow: 0 0 0 3px rgba(79, 141, 255, .35), 0 12px 26px rgba(0, 30, 90, .5); }
html[data-theme="deepblue"] .login-role-icon-teacher {
  background: linear-gradient(135deg, #1c4bb8, #00b4ff);
  box-shadow: 0 6px 16px rgba(28, 75, 184, .5);
}
html[data-theme="deepblue"] .login-role-text b { color: #e9f1ff; }
html[data-theme="deepblue"] .login-role-text span { color: #8ba6dd; }
html[data-theme="deepblue"] .login-role-arrow { color: #4a619e; }
html[data-theme="deepblue"] .login-role:hover .login-role-arrow { color: #4f8dff; }
html[data-theme="deepblue"] .login-back { color: #8fbaff; }
html[data-theme="deepblue"] .login-back:hover { color: #c4dcff; }
html[data-theme="deepblue"] .login-form .field label { color: #c4d6f5; }
html[data-theme="deepblue"] .login-form .input { background: rgba(8, 14, 36, .7); border-color: rgba(126, 168, 255, .3); color: var(--ink); }
html[data-theme="deepblue"] .login-form .input:focus {
  background: rgba(8, 14, 36, .9); border-color: #4f8dff;
  box-shadow: 0 0 0 4px rgba(79, 141, 255, .2);
}
html[data-theme="deepblue"] .login-fallback a { color: #8ba6dd; }
html[data-theme="deepblue"] .login-fallback a:hover { color: #4f8dff; border-color: #4f8dff; }
html[data-theme="deepblue"] .login-terms { color: #8ba6dd; }
html[data-theme="deepblue"] .login-terms a { color: #4f8dff; border-bottom-color: rgba(79, 141, 255, .45); }
html[data-theme="deepblue"] .login-terms a:hover { color: #7fb0ff; border-color: #7fb0ff; }

/* 登录身份选择 / 钉钉绑定（随登录页暗色） */
html[data-theme="deepblue"] .idpick-hint { color: #8ba6dd; }
html[data-theme="deepblue"] .idpick-item {
  background: linear-gradient(135deg, rgba(30, 48, 100, .85), rgba(18, 30, 66, .85));
  border-color: rgba(126, 168, 255, .22);
}
html[data-theme="deepblue"] .idpick-item:hover {
  border-color: rgba(79, 141, 255, .6);
  box-shadow: 0 12px 26px rgba(0, 30, 90, .5);
}
html[data-theme="deepblue"] .idpick-ico {
  background: linear-gradient(135deg, #1c4bb8, #00b4ff);
  box-shadow: 0 6px 16px rgba(28, 75, 184, .5);
}
html[data-theme="deepblue"] .idpick-item[data-role="admin"] .idpick-ico {
  background: linear-gradient(135deg, #6d8dff, #00d1ff);
  box-shadow: 0 6px 16px rgba(109, 141, 255, .5);
}
html[data-theme="deepblue"] .idpick-txt b { color: #e9f1ff; }
html[data-theme="deepblue"] .idpick-txt em { color: #8ba6dd; }
html[data-theme="deepblue"] .dd-spinner, html[data-theme="deepblue"] .dd-tip,
html[data-theme="deepblue"] .dd-bind-tip { color: #8ba6dd; }
html[data-theme="deepblue"] .dd-tip-bind { color: #8fbaff; }
html[data-theme="deepblue"] .dd-bind-form .field label { color: #c4d6f5; }
html[data-theme="deepblue"] .dd-mask .modal { color: #e9f1ff; }

/* ---- 强制改密页（与登录页同语言） ---- */
html[data-theme="deepblue"] .pwd-force-wrap {
  background:
    radial-gradient(ellipse at 16% 10%, rgba(0, 180, 255, .3), transparent 55%),
    radial-gradient(ellipse at 84% 88%, rgba(46, 92, 255, .5), transparent 60%),
    linear-gradient(135deg, #060b22 0%, #0e2260 48%, #10308a 100%);
}
html[data-theme="deepblue"] .pwd-force-card {
  background: rgba(11, 19, 46, .92);
  border-color: rgba(126, 168, 255, .3);
  color: #e9f1ff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(46, 122, 255, .25);
}
html[data-theme="deepblue"] .pwd-force-ico {
  background: linear-gradient(135deg, #1c4bb8 0%, #00b4ff 130%);
  box-shadow: 0 12px 28px rgba(28, 75, 184, .55);
}
html[data-theme="deepblue"] .pwd-force-hero h1 {
  background: linear-gradient(90deg, #7fb0ff, #00d1ff);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="deepblue"] .pwd-force-hero p { color: #8ba6dd; }
html[data-theme="deepblue"] .pwd-force-form .field label { color: #c4d6f5; }
html[data-theme="deepblue"] .pwd-force-rules { background: rgba(126, 168, 255, .08); }
html[data-theme="deepblue"] .pwd-force-rules li { color: #8ba6dd; }
html[data-theme="deepblue"] .pwd-force-rules li.ok { color: #5fe8bb; }
html[data-theme="deepblue"] .pwd-force-rules li.ok::before { color: #5fe8bb; }

/* ---- 智能体模块（--ag-* 主题化） ---- */
html[data-theme="deepblue"] {
  --ag-bg: #0d1838;
  --ag-accent: #4f8dff;
  --ag-accent-2: #00c2ff;
  --ag-accent-deep: #2f6cdf;
  --ag-accent-soft: rgba(79, 141, 255, .15);
  --ag-accent-ink: #8fbaff;
  --ag-ink: #e9f1ff;
  --ag-ink-2: #b9c9ec;
  --ag-ink-3: #7e93c6;
  --ag-ink-4: #93a8d8;
  --ag-faint: #5d719f;
  --ag-line: rgba(126, 168, 255, .18);
  --ag-line-soft: rgba(126, 168, 255, .12);
  --ag-tab-bg: rgba(126, 168, 255, .12);
  --ag-tab-ink: #93a8d8;
  --ag-chip-ink: #b9c9ec;
  --ag-card-soft: #182a58;
  --ag-track: rgba(126, 168, 255, .14);
  --ag-up-bg: rgba(79, 141, 255, .12);
  --ag-up-bg-2: rgba(79, 141, 255, .2);
  --ag-up-ink: #8fbaff;
  --ag-up-on-bg: rgba(79, 141, 255, .28);
  --ag-up-on-ink: #c4dcff;
  --ag-act: #4f8dff;
  --ag-act-2: #00c2ff;
  --ag-act-soft: rgba(79, 141, 255, .15);
  --ag-act-soft-2: rgba(0, 194, 255, .14);
  --ag-warm-1: rgba(255, 176, 87, .25);
  --ag-warm-2: rgba(255, 176, 87, .2);
  --ag-warm-3: rgba(255, 176, 87, .16);
  --ag-gold-1: rgba(255, 211, 92, .18);
  --ag-gold-2: rgba(255, 211, 92, .24);
  --ag-gold-3: rgba(255, 211, 92, .14);
  --ag-gold-4: rgba(255, 211, 92, .2);
  --ag-bg-2: #122045;
  --ag-ink-5: #93a8d8;
  --ag-up-on-2: rgba(79, 141, 255, .35);
}
html[data-theme="deepblue"] .agplaza-stat.s1 .ic { background: linear-gradient(135deg, rgba(79, 141, 255, .3), rgba(0, 194, 255, .22)); }
html[data-theme="deepblue"] .agplaza-stat.s3 .ic { background: linear-gradient(135deg, rgba(46, 230, 168, .26), rgba(0, 194, 255, .18)); }
html[data-theme="deepblue"] .agplaza-stat.s4 .ic { background: linear-gradient(135deg, rgba(255, 211, 92, .26), rgba(255, 176, 87, .2)); }
html[data-theme="deepblue"] .agplaza-card .ci.b2 { background: linear-gradient(135deg, rgba(79, 141, 255, .3), rgba(0, 194, 255, .22)); }
html[data-theme="deepblue"] .agplaza-card .ci.b3 { background: linear-gradient(135deg, rgba(46, 230, 168, .26), rgba(0, 194, 255, .18)); }
html[data-theme="deepblue"] .agplaza-card .ci.b4 { background: linear-gradient(135deg, rgba(255, 211, 92, .26), rgba(255, 176, 87, .2)); }
html[data-theme="deepblue"] .agplaza-card .ci.b5 { background: linear-gradient(135deg, rgba(157, 141, 255, .3), rgba(0, 194, 255, .2)); }

/* ---- 管理端「主题样式」选择页预览：深空蓝 ---- */
.tp-deepblue .tp-bar { background: linear-gradient(135deg, #0e2260, #1c4bb8); }
.tp-deepblue { background: linear-gradient(160deg, #0b1234, #0d1838); }
.tp-deepblue .tp-line { background: #4f8dff; }
.tp-deepblue .tp-card { background: rgba(255, 255, 255, .07); }
.tp-deepblue .tp-chip { background: linear-gradient(135deg, #2e5cff, #00b4ff); }

/* ---- v35 追加：桌面顶栏玻璃底 / 模式切换 / 日历格子 / 补漏 stat 配色 ---- */
html[data-theme="deepblue"][data-uimode="desk"] .topbar::before {
  background: rgba(9, 15, 38, .95);
  box-shadow: 0 0 0 100vmax rgba(9, 15, 38, .95), 0 1px 0 rgba(126, 168, 255, .18);
}
html[data-theme="deepblue"] .mode-switch { background: rgba(20, 34, 74, .88); }
html[data-theme="deepblue"] .cal-day { background: rgba(126, 168, 255, .10); color: var(--ink); }
html[data-theme="deepblue"] .cal-day.has-task { background: rgba(79, 141, 255, .22); }
html[data-theme="deepblue"] .cal-day.is-today { border-color: #ffd35c; background: rgba(255, 211, 92, .15); }
html[data-theme="deepblue"] .st-indigo { background: rgba(157, 141, 255, .13); }
html[data-theme="deepblue"] .st-amber { background: rgba(255, 211, 92, .12); }
html[data-theme="deepblue"] .st-gray { background: rgba(126, 168, 255, .10); }
html[data-theme="deepblue"] .st-amber .stat-value { color: #ffd76b; }
html[data-theme="deepblue"] .st-gray .stat-value { color: #b9c9ec; }
html[data-theme="deepblue"] .st-indigo .stat-value { color: #bcaeff; }
html[data-theme="deepblue"] .theme-card { background: var(--card); border-color: rgba(126, 168, 255, .22); }

/* =========================================================================
   v36：管理端「节次时间模式」（按班级生效）
   ========================================================================= */
.pp-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.pp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pp-idx {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 13px;
}
.pp-head .pp-name { width: 200px; }
.pp-cls-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.pp-cls-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 128px; overflow: auto;
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 12px;
}
.pp-cls {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px 3px 6px; font-size: 12.5px; font-weight: 700;
  color: var(--ink2); cursor: pointer; user-select: none;
  background: var(--bg2);
}
.pp-cls i { font-style: normal; font-size: 11px; color: var(--ink3); font-weight: 600; }
.pp-cls.on { background: var(--tint); border-color: var(--tint-line); color: var(--tint-ink); }
.pp-cls input { accent-color: var(--blue); margin: 0; }
.pp-rows { max-height: none; }
.pp-row-empty .pt-empty::after { content: '沿用内置作息'; font-size: 11px; }

/* v36b：节次时间模式列表（紧凑行）+ 弹窗内班级网格 */
.pp-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); padding: 10px 14px; margin-bottom: 8px;
}
.pp-item-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-item-main b { font-size: 14px; color: var(--ink); }
.pp-item-main .hint { font-size: 12px; }
.pp-item .pp-idx { flex: none; }
.modal .pp-cls-grid { max-height: 150px; margin-bottom: 10px; }

/* =========================================================================
   v37：顶栏搜索（电脑端输入框 + iPad/手机 🔍 按钮）与顶栏固定背景加固
   ========================================================================= */
.tb-search { position: relative; flex: 1 1 auto; max-width: 340px; min-width: 150px; margin: 0 6px; }
.tb-search::before {
  content: '🔍'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: .65; pointer-events: none;
}
.tb-search-input {
  width: 100%; padding: 9px 14px 9px 34px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  font-size: 13.5px; font-family: inherit;
}
.tb-search-input::placeholder { color: var(--ink3); }
.tb-search-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.tb-search-dd {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--sh2); max-height: 320px; overflow-y: auto; z-index: 80;
}
.tb-hit {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 14px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: left;
}
.tb-hit span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-hit i { flex: none; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink3); }
.tb-hit + .tb-hit { border-top: 1px solid var(--line); }
.tb-hit.on, .tb-hit:hover { background: var(--tint); }
.tb-hit mark { background: transparent; color: var(--tint-ink); font-weight: 900; padding: 0; }
.tb-hit-empty { padding: 10px 14px; margin: 0; font-size: 12.5px; color: var(--ink3); }
[data-uimode="touch"] .tb-search { display: none; }
[data-uimode="desk"] .tb-search-open { display: none; }
html[data-theme="deepblue"] .tb-search-input:focus { box-shadow: 0 0 0 3px rgba(79, 141, 255, .2); }
html[data-theme="deepblue"] .tb-hit.on, html[data-theme="deepblue"] .tb-hit:hover { background: rgba(79, 141, 255, .16); }
html[data-theme="deepblue"] .tb-hit mark { color: #8fbaff; }

/* =========================================================================
   v39：作业/考试双类型 + 考试判分 + 班级统计增强 + AI 学情周报
   ========================================================================= */
.badge.b-purple { background: rgba(157, 141, 255, .16); color: #8f7bff; }
/* 任务表单：类型切换与考试题编辑器 */
.kind-switch { display: flex; gap: 16px; flex-wrap: wrap; padding: 6px 0; }
.ex-row { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg2); }
.ex-row-main { flex: 1; min-width: 0; }
.ex-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.ex-opt { display: flex; align-items: center; gap: 6px; }
.ex-opt input[type="radio"] { accent-color: var(--green); flex: none; }
.ex-row-side { display: flex; align-items: center; gap: 4px; flex: none; }
.ex-row-side .input { width: 64px; }
/* 学生答题卡与成绩 */
.exam-q { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.exam-q-title { margin: 0 0 8px; font-weight: 700; }
.exam-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.exam-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.exam-opt:hover { border-color: var(--tint-line); background: var(--tint); }
.exam-opt input { accent-color: var(--blue); }
.exam-opt-key { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg2); font-size: 12px; font-weight: 900; }
.exam-opt input:checked ~ .exam-opt-key { background: var(--blue); color: #fff; }
.exam-result .exam-score { font-size: 40px; font-weight: 900; margin-bottom: 10px; }
.exam-result .exam-score.pass { color: var(--green); }
.exam-result .exam-score.fail { color: var(--red); }
.exam-result .exam-full { font-size: 16px; color: var(--ink3); font-weight: 700; }
.exq { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.exq:first-of-type { border-top: 0; }
/* 班级统计：逾期置顶 / 趋势 / 学科对比 / 双列 */
.overdue-card { border-left: 4px solid var(--orange); }
.overdue-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px dashed var(--line); }
.overdue-row:first-of-type { border-top: 0; }
.overdue-row .od-title { flex: 1; min-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .stat-two-col { grid-template-columns: 1fr; } }
.trend-box { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding: 8px 4px 0; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.trend-rate { font-size: 12.5px; font-weight: 800; color: var(--ink2); }
.trend-bar-track { flex: 1; width: 38px; max-width: 100%; background: var(--bg2); border-radius: 8px 8px 4px 4px; display: flex; align-items: flex-end; overflow: hidden; }
.trend-bar { width: 100%; background: var(--grad); border-radius: 8px 8px 2px 2px; min-height: 2px; }
.trend-label { font-size: 11.5px; color: var(--ink3); font-weight: 700; }
.subj-box { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.subj-row { display: flex; align-items: center; gap: 10px; }
.subj-row .subject-tag { flex: none; width: 52px; justify-content: center; }
.subj-track { flex: 1; height: 12px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.subj-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4f8dff, #00c2ff); }
.subj-rate { flex: none; width: 44px; text-align: right; font-size: 12.5px; font-weight: 800; color: var(--ink2); }
/* 未交名单 / 周报弹窗 */
.ms-list { max-height: 320px; overflow-y: auto; }
.ms-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; border-top: 1px dashed var(--line); }
.ms-row:first-child { border-top: 0; }
.ai-report-pre { white-space: pre-wrap; font-family: inherit; font-size: 13.5px; line-height: 1.75; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; max-height: 420px; overflow-y: auto; }
html[data-theme="deepblue"] .trend-bar-track { background: rgba(126, 168, 255, .12); }
html[data-theme="deepblue"] .subj-track { background: rgba(126, 168, 255, .12); }
html[data-theme="deepblue"] .badge.b-purple { background: rgba(157, 141, 255, .2); color: #bcaeff; }
html[data-theme="deepblue"] .exam-opt:hover { background: rgba(79, 141, 255, .14); }

/* ================= v40 任务提交与作业批改 ================= */
/* 语音录制/播放 */
.voice-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.voice-box .voice-audio { height: 38px; max-width: 100%; }
#voice-rec.btn-danger { background: #e5484d; border-color: #e5484d; color: #fff; animation: voicePulse 1.2s ease-in-out infinite; }
@keyframes voicePulse { 50% { opacity: .75; } }
/* 任务附加资源链接 */
.task-resources { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding: 10px 12px; background: var(--bg2); border-radius: 10px; font-size: 13.5px; }
.task-resources .res-link { text-decoration: none; }
/* 学生端批改反馈卡 */
.fb-row { display: flex; gap: 10px; padding: 10px 4px; border-top: 1px dashed var(--line); align-items: flex-start; }
.fb-row:first-of-type { border-top: 0; }
.fb-ic { font-size: 18px; flex: none; }
.fb-body b { display: block; margin-bottom: 2px; }
.fb-body p { margin: 2px 0 4px; white-space: pre-wrap; }
.fb-unread { background: rgba(255, 176, 32, .08); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
/* 教师批改工作流 */
.gd-card { margin-bottom: 12px; }
.gd-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.gd-filter { margin-bottom: 14px; }
.gd-sub { padding: 4px 0 10px; }
.gd-voice { margin: 8px 0; }
.gd-ops { border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.gd-score-line { display: flex; align-items: center; gap: 8px; }
.gd-score-line label { font-size: 13px; font-weight: 800; color: var(--ink2); }
.gd-score { width: 110px; }
.gd-tpl { width: auto; }
.gd-row .form-actions { margin: 0; gap: 8px; }
/* 发布任务：附加资源编辑行 */
.res-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.res-row .res-title { width: 240px; flex: none; }
.res-row .res-url { flex: 1; }
/* 学习单：批量发布 / 复用 */
.ts-batch-bar { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-start; }
.ts-batch-l, .ts-batch-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-batch-l { flex: 1 1 380px; }
.ts-batch-r { flex: 1 1 260px; }
#ts-batch-list { width: 100%; margin-top: 6px; }

/* ================= v42 任务日历：老师今天布置（截止日在其它日期） ================= */
.fresh-box { margin: 2px 0 16px; }
.fresh-box .timeline { margin-top: 10px; }
.fresh-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; padding: 10px 2px 0; border-top: 1px dashed var(--line); }
.fresh-head .fresh-tip { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--ink3); }

/* ================= v44 考试主观题：Word 导入 + 逐题批改 + 学生主观作答 ================= */
/* 教师 · 题目编辑器 */
.ex-import-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ex-def-pts { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.ex-def-pts .input { width: 68px; }
.ex-tpl-help { flex-basis: 100%; font-size: 12.5px; }
.ex-tpl-help summary { cursor: pointer; font-weight: 700; color: var(--ink2); }
.ex-tpl-help pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0 6px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.ex-tpl-help p { margin: 0; color: var(--ink3); line-height: 1.7; }
.ex-row-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ex-row-top .ex-type { flex: none; width: 110px; }
.ex-row-top .ex-q { flex: 1; }
.ex-row-sub { background: var(--tint); border-radius: 12px; }
.ex-ref { margin-top: 6px; }
/* 学生 · 主观题作答 */
.exam-subj { width: 100%; resize: vertical; }
.exq.wait { color: var(--ink2); }
/* 教师 · 批改卡：逐题给分 */
.gx-block { margin: 8px 0; }
.gx-obj { font-size: 13px; font-weight: 700; color: var(--ink2); background: var(--tint); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.gx-obj-detail { margin-top: 6px; font-size: 12.5px; }
.gx-obj-detail summary { cursor: pointer; color: var(--ink3); }
.gx-sub-q { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.gx-sub-title { margin: 0 0 6px; font-size: 13.5px; color: var(--ink); line-height: 1.6; }
.gx-sub-title b { margin-right: 6px; }
.gx-sub-mine { background: var(--bg2); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--ink); line-height: 1.7; margin-bottom: 8px; }
.gx-sub-ref { font-size: 12.5px; margin-bottom: 8px; }
.gx-sub-ref summary { cursor: pointer; color: var(--ink3); font-weight: 700; }
.gx-sub-ref div { margin-top: 6px; color: var(--ink2); line-height: 1.7; }
.gx-sub-score { display: flex; align-items: center; gap: 8px; }
.gx-sub-score label { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.gx-sub-score .input { width: 90px; }

/* ================= v43 常用菜单（用户自定义一级快捷入口） ================= */
/* 电脑端导航：常用项 ★ 角标 + 「✚ 常用」设置入口 */
.tn-fav { position: relative; }
.tn-fav .fav-star { font-style: normal; font-size: 9px; line-height: 1; color: #f59e0b; margin-left: 1px; }
.tn-fav-add { background: none; border: 0; cursor: pointer; color: var(--ink3); font-family: inherit; }
.tn-fav-add:hover { color: var(--blue); }
.tn-fav-add .nti { font-size: 13px; }
/* 设置弹窗：候选平铺 */
.fav-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; margin-bottom: 10px; }
.fav-item { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.fav-item input { accent-color: var(--blue); flex: 0 0 auto; }
.fav-item .fav-ic { font-size: 16px; line-height: 1; }
.fav-item .fav-lb { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-item.is-on { border-color: var(--blue); background: var(--tint); }
.fav-item.is-top { opacity: .55; cursor: not-allowed; }
.fav-item .fav-tag { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 800; color: var(--ink3); flex: 0 0 auto; }
/* 手机 / iPad「⭐ 常用」面板 */
.fav-panel { display: flex; flex-direction: column; gap: 8px; }
.fav-panel-item { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.fav-panel-item .fav-ic { font-size: 20px; line-height: 1; }
.fav-panel-item .fav-lb { font-weight: 800; font-size: 14.5px; }
.fav-panel-item .fav-go { margin-left: auto; color: var(--ink3); font-size: 18px; }
.fav-panel-item:active { background: var(--tint); }
.fav-panel-empty { text-align: center; padding: 18px 0 8px; }
/* 深空蓝主题适配 */
html[data-theme="deepblue"] .fav-item { background: rgba(255, 255, 255, .04); }
html[data-theme="deepblue"] .fav-panel-item { background: rgba(255, 255, 255, .04); }
html[data-theme="deepblue"] .fav-panel-item:active { background: var(--tint); }

/* ================= v47 管理端信息发布 + 登录记录（三主题自适应） ================= */
/* ---- 操作引导 ---- */
.bc-guide { border-left: 4px solid var(--blue); }
.bc-guide-hd { display: flex; align-items: center; gap: 10px; }
.bc-guide-hd h3 { margin: 0; }
.bc-guide-hd .btn { margin-left: auto; }
.bc-guide.is-closed .bc-guide-bd { display: none; }
.bc-guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.bc-guide-step { background: var(--tint); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.bc-guide-step i { font-style: normal; font-weight: 800; color: var(--blue); font-size: 12px; }
.bc-guide-step b { font-size: 13.5px; }
.bc-guide-step span { font-size: 12px; color: var(--ink3); line-height: 1.5; }
.bc-guide-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink3); }

/* ---- 表单 ---- */
.bc-form .card-head { display: flex; align-items: baseline; gap: 10px; }
.bc-form .card-head .muted { margin-left: auto; font-size: 12px; }
.bc-step { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.bc-step-no { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.bc-step b { font-size: 13.5px; }
.bc-step-hint { font-size: 12px; color: var(--ink3); }
.bc-pick, .bc-kind { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.bc-pick-card, .bc-kind-card { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.bc-pick-card input, .bc-kind-card input { margin-top: 2px; accent-color: var(--blue); }
.bc-pick-ico { font-size: 18px; line-height: 1.1; }
.bc-pick-txt { display: flex; flex-direction: column; gap: 2px; }
.bc-pick-txt b { font-size: 13.5px; }
.bc-pick-txt small { font-size: 11.5px; color: var(--ink3); line-height: 1.45; }
.bc-pick-card.on, .bc-kind-card.on { border-color: var(--blue); background: var(--tint); }
.bc-tip { margin-top: 8px; font-size: 12.5px; line-height: 1.6; background: var(--tint); border-radius: 10px; padding: 9px 12px; }
.bc-tip b { color: var(--blue); }
.bc-eg { display: block; color: var(--ink3); margin-top: 2px; }
.bc-scope { margin-bottom: 4px; }
.bc-class-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-class { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; cursor: pointer; }
.bc-class input { accent-color: var(--blue); }
.bc-class.on { border-color: var(--blue); background: var(--tint); }
.bc-scope-ops { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.bc-scope-ops .muted { font-size: 12px; }
.bc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.bc-field { display: flex; flex-direction: column; gap: 5px; }
.bc-field-wide { grid-column: 1 / -1; }
.bc-field > span { font-size: 12.5px; font-weight: 700; }
.bc-field em { color: #e5484d; font-style: normal; }
.bc-help { font-size: 11.5px; color: var(--ink3); }
.bc-switches { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.bc-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.bc-switch input { accent-color: var(--blue); }
.bc-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.bc-after { font-size: 12px; color: var(--ink3); }

/* ---- 列表卡片 ---- */
.bc-list { display: flex; flex-direction: column; gap: 12px; }
.bc-card { padding: 14px 16px; }
.bc-card.is-closed { opacity: .72; }
.bc-card.is-unread { border-left: 3px solid var(--blue); }
.bc-card-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-when { margin-left: auto; font-size: 12px; color: var(--ink3); }
.bc-pin { font-size: 11.5px; font-weight: 800; color: #f59e0b; }
.bc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--tint); }
.bc-badge.k-notice { background: #e8f0ff; color: #2b5fd9; }
.bc-badge.k-proposal { background: #e7f7ec; color: #1c7a3e; }
.bc-badge.k-task { background: #fdeee0; color: #b4620c; }
.bc-badge.k-reminder { background: #f2ecff; color: #6a3fd0; }
.bc-badge.k-material { background: #e6f6f8; color: #0e7286; }
.bc-badge.bc-ack { background: #fff3d6; color: #9a6b00; }
.bc-badge.bc-closed { background: #eee; color: #777; }
.bc-title { margin: 8px 0 6px; font-size: 15.5px; }
.bc-body { font-size: 13px; color: var(--ink3); line-height: 1.6; margin: 0; }
.bc-body-full { color: inherit; margin: 6px 0 8px; }
.bc-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink3); margin-top: 8px; }
.bc-progress { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.bc-prog { display: flex; align-items: center; gap: 8px; font-size: 12px; flex: 1 1 240px; }
.bc-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bc-bar i { display: block; height: 100%; background: var(--blue); }
.bc-prog-ack .bc-bar i { background: #22a06b; }
.bc-prog em { font-style: normal; color: var(--ink3); }
.bc-card-ops { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.bc-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink3); margin-bottom: 10px; }
.bc-detail-body { font-size: 13.5px; line-height: 1.75; background: var(--tint); border-radius: 10px; padding: 12px 14px; }
.bc-detail-link { margin: 10px 0 0; font-size: 13px; }
.bc-detail-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.bc-detail-cols h4 { margin: 0 0 8px; font-size: 13px; }
.bc-people { display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow: auto; }
.bc-person { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--tint); }
.bc-person i { font-style: normal; color: var(--ink3); font-size: 11px; }
.bc-person .bc-ok { font-size: 10.5px; color: #22a06b; font-weight: 800; }
.bc-person-wait { background: #fff6e6; }

/* ---- 学生端首页「学校通知」 ---- */
.whb-bc-dot { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: #e5484d; border-radius: 999px; padding: 1px 7px; vertical-align: middle; }
.whb-bc-tip { margin-left: auto; font-size: 12px; color: var(--ink3); }
.whb-bc-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.whb-bc-item:last-child { border-bottom: 0; }
.whb-bc-item.is-new { position: relative; }
.whb-bc-hd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.whb-bc-hd b { font-size: 13.5px; }
.whb-bc-hd small { margin-left: auto; font-size: 11.5px; color: var(--ink3); }
.whb-bc-item p { margin: 5px 0 6px; font-size: 12.5px; color: var(--ink3); line-height: 1.55; }
.whb-bc-ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---- 登录记录 ---- */
.ll-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ll-filters .input { max-width: 180px; }
.ll-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.ll-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ll-stat b { font-size: 22px; line-height: 1.1; }
.ll-stat span { font-size: 12px; color: var(--ink3); }
.ll-stat.is-warn b { color: #d97706; }
.ll-card { margin-bottom: 14px; }
.ll-trend { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding: 6px 2px 0; }
.ll-day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.ll-day i { display: block; width: 100%; min-height: 3px; background: linear-gradient(180deg, var(--blue), #7aa7ff); border-radius: 4px 4px 0 0; }
.ll-day em { font-style: normal; font-size: 10.5px; color: var(--ink3); white-space: nowrap; }
.ll-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ll-top { display: flex; flex-direction: column; gap: 6px; }
.ll-top-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: var(--tint); }
.ll-top-row b { min-width: 70px; }
.ll-top-row i { font-style: normal; color: var(--ink3); font-size: 11.5px; }
.ll-top-row span { margin-left: auto; font-weight: 800; }
.ll-top-row small { color: var(--ink3); font-size: 11px; }
.ll-never { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; }
.ll-never-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #fff6e6; }
.ll-never-item i { font-style: normal; font-size: 10.5px; color: var(--ink3); }
.ll-fail td { background: #fff5f5; }
.ll-ua { font-size: 11px; color: var(--ink3); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- v77：师生分栏页签 ---- */
.ll-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.ll-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 13.5px;
  font-weight: 600; cursor: pointer; line-height: 1; transition: .15s; }
.ll-tab:hover { border-color: var(--blue); color: var(--blue); }
.ll-tab.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ll-tab.is-on:hover { color: #fff; }

/* ---- v77：逐人登录次数排行榜 ---- */
.ll-rank th.ll-num, .ll-rank td.ll-num { text-align: right; font-variant-numeric: tabular-nums; }
.ll-rank th.ll-rk, .ll-rank td.ll-rk { text-align: center; width: 46px; color: var(--ink3); font-weight: 700; }
.ll-rank td.ll-num b { font-size: 14.5px; }
.ll-rank td.ll-num.is-warn { color: #d97706; }
.ll-rank tr.is-top1 td.ll-rk { color: #d97706; }
.ll-rank tr.is-top3 td.ll-rk { color: var(--blue); }

/* ---- v77：年级/学科分布条 ---- */
.ll-dist { display: flex; flex-direction: column; gap: 7px; }
.ll-dist-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.ll-dist-row b { min-width: 62px; font-weight: 700; }
.ll-dist-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; min-width: 60px; }
.ll-dist-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #7aa7ff); }
.ll-dist-row span { min-width: 92px; text-align: right; color: var(--ink3); white-space: nowrap; }

/* ---- 深空蓝适配 ---- */
html[data-theme="deepblue"] .bc-guide-step,
html[data-theme="deepblue"] .bc-tip,
html[data-theme="deepblue"] .bc-detail-body,
html[data-theme="deepblue"] .bc-person,
html[data-theme="deepblue"] .ll-top-row { background: rgba(120, 170, 255, .12); }
html[data-theme="deepblue"] .bc-pick-card.on,
html[data-theme="deepblue"] .bc-kind-card.on,
html[data-theme="deepblue"] .bc-class.on { background: rgba(120, 170, 255, .16); }
html[data-theme="deepblue"] .bc-badge.k-notice,
html[data-theme="deepblue"] .bc-badge.k-proposal,
html[data-theme="deepblue"] .bc-badge.k-task,
html[data-theme="deepblue"] .bc-badge.k-reminder,
html[data-theme="deepblue"] .bc-badge.k-material,
html[data-theme="deepblue"] .bc-badge.bc-ack,
html[data-theme="deepblue"] .ll-never-item,
html[data-theme="deepblue"] .bc-person-wait { background: rgba(120, 170, 255, .14); color: #cfe0ff; }
html[data-theme="deepblue"] .ll-fail td { background: rgba(229, 72, 77, .14); }
html[data-theme="deepblue"] .bc-bar i { background: #6ea8ff; }
html[data-theme="deepblue"] .bc-prog-ack .bc-bar i { background: #3ecf8e; }

/* ==================== v48：正文富文本（管理端发布 → 师生端查看） ==================== */
/* ---- 编辑器 ---- */
.rt-mount { display: block; }
.rt-wrap { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.rt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--tint); }
.rt-btn { width: 28px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--card); border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--ink); line-height: 1; padding: 0; }
.rt-btn:hover { border-color: var(--blue); color: var(--blue); }
.rt-sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.rt-select { height: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font-size: 12.5px; padding: 0 4px; }
.rt-color { position: relative; width: 30px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; font-size: 12px; font-weight: 800; color: var(--ink); }
.rt-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rt-color-bg span { color: #b58a00; }
.rt-editor { min-height: 140px; max-height: 420px; overflow: auto; padding: 10px 12px; font-size: 14px; line-height: 1.75; color: var(--ink); outline: none; }
.rt-editor:empty:before { content: attr(data-ph); color: var(--ink3); }
.rt-editor p { margin: 0 0 8px; }
.rt-foot { padding: 5px 10px; font-size: 11px; color: var(--ink3); border-top: 1px dashed var(--line); background: var(--tint); }

/* ---- 渲染端：正文排版（师生端看全文时保留管理端排版） ---- */
.rt-content { font-size: 14px; line-height: 1.8; color: var(--ink); word-break: break-word; }
.rt-content p, .rt-content div { margin: 0 0 8px; }
.rt-content p:last-child, .rt-content div:last-child { margin-bottom: 0; }
.rt-content h1, .rt-content h2, .rt-content h3, .rt-content h4 { margin: 10px 0 6px; line-height: 1.45; }
.rt-content h1 { font-size: 20px; }
.rt-content h2 { font-size: 18px; }
.rt-content h3 { font-size: 16px; }
.rt-content h4 { font-size: 15px; }
.rt-content ul, .rt-content ol { margin: 6px 0 10px; padding-left: 24px; }
.rt-content ul { list-style: disc; }
.rt-content ol { list-style: decimal; }
.rt-content li { margin: 3px 0; }
.rt-content blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--blue); background: var(--tint); border-radius: 0 8px 8px 0; }
.rt-content hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.rt-content a { color: var(--blue); }
.rt-content code, .rt-content pre { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--tint); border-radius: 6px; padding: 1px 5px; font-size: 12.5px; }
.rt-content pre { padding: 8px 10px; overflow: auto; }
.rt-content b, .rt-content strong { font-weight: 800; }
.rt-content s, .rt-content strike, .rt-content del { color: var(--ink3); }

/* ---- 学生端「学校通知」可点开 ---- */
.whb-bc-name { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.whb-bc-name b { font-size: 13.5px; }
.whb-bc-name:hover b { color: var(--blue); text-decoration: underline; }
.whb-bc-brief { cursor: pointer; }
.whb-bc-brief:hover { color: var(--blue); }
.whb-bc-more { padding-top: 10px; text-align: center; }
.bc-all-list { display: flex; flex-direction: column; gap: 8px; max-height: 58vh; overflow: auto; }
.bc-all-item { display: grid; grid-template-columns: auto 1fr auto; gap: 5px 8px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; width: 100%; }
.bc-all-item:hover { border-color: var(--blue); }
.bc-all-item b { font-size: 13.5px; color: var(--ink); }
.bc-all-item.is-new b::after { content: 'NEW'; margin-left: 6px; font-size: 10px; color: #fff; background: #e5484d; border-radius: 4px; padding: 1px 4px; vertical-align: 1px; }
.bc-all-item small { color: var(--ink3); font-size: 11.5px; }
.bc-all-brief { grid-column: 1 / -1; color: var(--ink3); font-size: 12.5px; }
.bc-detail-title { margin: 6px 0 8px; font-size: 16px; }
.bc-detail-foot { margin: 10px 0 0; font-size: 12.5px; }

/* ---- 深空蓝适配 ---- */
html[data-theme="deepblue"] .rt-toolbar,
html[data-theme="deepblue"] .rt-foot,
html[data-theme="deepblue"] .rt-content blockquote,
html[data-theme="deepblue"] .rt-content code,
html[data-theme="deepblue"] .rt-content pre { background: rgba(120, 170, 255, .12); }
html[data-theme="deepblue"] .rt-btn,
html[data-theme="deepblue"] .rt-select,
html[data-theme="deepblue"] .rt-color,
html[data-theme="deepblue"] .bc-all-item { background: rgba(255, 255, 255, .04); border-color: rgba(120, 170, 255, .22); }

/* =========================================================================
   v46 全站中英文切换（i18n）
   顶栏 lang-switch 复用 .mode-switch 样式；登录页浮动切换；管理端语言卡片
   ========================================================================= */
.lang-switch { margin-left: 2px; }
.lang-switch button { font-weight: 900; }
.login-lang {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 13px; font: inherit; font-size: 12.5px; font-weight: 900; color: var(--ink2);
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.login-lang:hover { border-color: var(--blue); color: var(--blue); background: #f7fbff; }
.lang-card-hd h3 { margin: 0 0 2px; font-size: 15.5px; font-weight: 900; color: var(--ink); }
.lang-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.lang-opt {
  border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 16px;
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.lang-opt b { display: block; font-size: 15px; font-weight: 900; color: var(--ink); }
.lang-opt span { display: block; font-size: 12px; color: var(--ink3); font-weight: 700; margin-top: 2px; }
.lang-opt:hover { border-color: var(--blue); background: #f7fbff; }
.lang-opt.on { border-color: var(--blue); background: var(--tint); }
.lang-opt.on b { color: var(--tint-ink, var(--blue)); }
@media (max-width: 640px) {
  .lang-opts { grid-template-columns: 1fr; }
  .lang-switch .msl, .lang-switch button { font-size: 11px; }
}
html[data-theme="jade"] .lang-opt.on { background: var(--tint); }

/* =========================================================================
   v47：节日主题框架 + 春节主题（festival）
   框架约定（便于后续扩展中秋 midautumn / 圣诞 christmas 等）：
   1. 每个节日主题一个独立 data-theme key，CSS 块按本模板复制修改：
      ① 重定义 :root 同名变量（--blue/--grad/--tint 系/--gold 系）
      ② body 页面底色雾面渐变
      ③ 登录页全套（wrap/orb/card/logo/role/idpick/dd）
      ④ 顶栏点缀 + 各端 hero 横幅（cal/wb/sched）
      ⑤ 管理端预览卡 .tp-<key>
   2. 白名单 5 处同步：server/routes/admin.js THEME_VALUES、server/index.js
      /api/theme、index.html boot、app.js applyTheme、views/admin.js THEMES+applyLocal
   春节配色：中国红 #c8102e / 深红 #9a0f20 / 鎏金 #d4a017 / 暖金雾 #f9edcf
   ========================================================================= */
html[data-theme="festival"] {
  --blue: #c8102e;
  --primary: #c8102e;
  --primary-dark: #9a0f20;
  --grad: linear-gradient(135deg, #d31432, #9a0f20);
  --grad-shadow: 0 5px 14px rgba(200, 16, 46, .32);
  --tint: #fdecec;
  --tint-2: #fadcdc;
  --tint-ink: #b31217;
  --tint-line: #f2c9c9;
  /* 鎏金点缀色（主题专属） */
  --gold: #d4a017;
  --gold-soft: #f9edcf;
}

/* ---- 页面底色：暖宣纸色 + 红金雾面 ---- */
html[data-theme="festival"] body {
  background:
    radial-gradient(900px 500px at 110% -8%, #f9edcf 0%, rgba(249, 237, 207, 0) 60%),
    radial-gradient(800px 500px at -10% 0%, #fde3e3 0%, rgba(253, 227, 227, 0) 60%),
    linear-gradient(180deg, #fbe9e4 0%, #fdf7ec 45%, #fdecec 100%);
  background-attachment: fixed;
}
html[data-theme="festival"] ::selection { background: rgba(200, 16, 46, .2); }
html[data-theme="festival"] .brand-logo { box-shadow: 0 6px 16px rgba(154, 15, 32, .35); }
html[data-theme="festival"] .btn-primary:hover { box-shadow: 0 8px 22px rgba(154, 15, 32, .42); }
html[data-theme="festival"] a { color: var(--blue); }
/* 同 jade：a 颜色规则会盖掉实底按钮白字，补回 */
html[data-theme="festival"] a.btn-primary,
html[data-theme="festival"] a.btn-danger,
html[data-theme="festival"] a.btn-green,
html[data-theme="festival"] a.btn-dingtalk { color: #fff; }

/* ---- 登录页：深红绒幕 + 鎏金光斑 ---- */
html[data-theme="festival"] .login-wrap {
  background:
    radial-gradient(ellipse at 16% 10%, rgba(212, 160, 23, .4), transparent 55%),
    radial-gradient(ellipse at 84% 88%, rgba(154, 15, 32, .6), transparent 60%),
    linear-gradient(135deg, #6e0813 0%, #b31217 48%, #d31432 100%);
}
html[data-theme="festival"] .login-bg-orb1 { background: #e8b54a; }
html[data-theme="festival"] .login-bg-orb2 { background: #d31432; }
html[data-theme="festival"] .login-bg-orb3 { background: #f9edcf; }
html[data-theme="festival"] .login-card {
  color: #5c1220;
  box-shadow: 0 24px 50px rgba(80, 8, 18, .45), 0 6px 14px rgba(80, 8, 18, .22);
}
html[data-theme="festival"] .login-logo {
  background: linear-gradient(135deg, #b31217 0%, #d4a017 130%);
  box-shadow: 0 12px 26px rgba(154, 15, 32, .45);
}
html[data-theme="festival"] .login-hero h1 {
  background: linear-gradient(90deg, #9a0f20, #c9973f);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="festival"] .login-subtitle { color: #a06a6a; }
html[data-theme="festival"] .login-role {
  background: linear-gradient(135deg, rgba(255, 255, 255, .93), rgba(253, 240, 236, .93));
  border-color: rgba(200, 16, 46, .16);
}
html[data-theme="festival"] .login-role:hover {
  border-color: rgba(200, 16, 46, .4);
  box-shadow: 0 12px 24px rgba(154, 15, 32, .22);
}
html[data-theme="festival"] .login-role.on { box-shadow: 0 0 0 3px rgba(200, 16, 46, .2), 0 12px 24px rgba(154, 15, 32, .22); }
html[data-theme="festival"] .login-role-icon-teacher {
  background: linear-gradient(135deg, #9a0f20, #d31432);
  box-shadow: 0 6px 14px rgba(154, 15, 32, .35);
}
html[data-theme="festival"] .login-role-text b { color: #5c1220; }
html[data-theme="festival"] .login-role-text span { color: #a5776f; }
html[data-theme="festival"] .login-role-arrow { color: #dcb0a4; }
html[data-theme="festival"] .login-role:hover .login-role-arrow { color: #c8102e; }
html[data-theme="festival"] .login-back { color: #c8102e; }
html[data-theme="festival"] .login-back:hover { color: #9a0f20; }
html[data-theme="festival"] .login-form .field label { color: #5c1220; }
html[data-theme="festival"] .login-form .input { background: #fdf3ef; border-color: rgba(200, 16, 46, .25); }
html[data-theme="festival"] .login-form .input:focus {
  background: #fff; border-color: #c8102e;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, .14);
}
html[data-theme="festival"] .login-fallback a { color: #a5776f; }
html[data-theme="festival"] .login-fallback a:hover { color: #c8102e; border-color: #c8102e; }
html[data-theme="festival"] .login-terms { color: #a5776f; }
html[data-theme="festival"] .login-terms a { color: #c8102e; border-bottom-color: rgba(200, 16, 46, .35); }
html[data-theme="festival"] .login-terms a:hover { color: #9a0f20; border-color: #9a0f20; }

/* 登录页身份选择（v17 idpick）：默认红底、管理员鎏金底 */
html[data-theme="festival"] .idpick-hint { color: #a06a6a; }
html[data-theme="festival"] .idpick-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, .93), rgba(253, 240, 236, .93));
  border-color: rgba(200, 16, 46, .16);
}
html[data-theme="festival"] .idpick-item:hover {
  border-color: rgba(200, 16, 46, .4);
  box-shadow: 0 12px 24px rgba(154, 15, 32, .22);
}
html[data-theme="festival"] .idpick-ico {
  background: linear-gradient(135deg, #9a0f20, #d31432);
  box-shadow: 0 6px 14px rgba(154, 15, 32, .32);
}
html[data-theme="festival"] .idpick-item[data-role="admin"] .idpick-ico {
  background: linear-gradient(135deg, #c9973f, #e8b54a);
  box-shadow: 0 6px 14px rgba(201, 151, 63, .4);
}
html[data-theme="festival"] .idpick-txt b { color: #5c1220; }
html[data-theme="festival"] .idpick-txt em { color: #a5776f; }

/* 钉钉绑定弹层文字色（登录页内） */
html[data-theme="festival"] .dd-spinner, html[data-theme="festival"] .dd-tip,
html[data-theme="festival"] .dd-bind-tip { color: #a5776f; }
html[data-theme="festival"] .dd-tip-bind { color: #9a0f20; }
html[data-theme="festival"] .dd-bind-form .field label { color: #5c1220; }
html[data-theme="festival"] .dd-mask .modal { color: #5c1220; }

/* ---- 顶栏 / 导航点缀 ---- */
html[data-theme="festival"] .tn-link:not(.on):hover { color: var(--ink); }
html[data-theme="festival"] .nv-dd { border-color: var(--tint-line); }
html[data-theme="festival"] .topbar { border-bottom-color: transparent; }

/* ---- 各端 hero 横幅与图标渐变跟随主题（布局不变，仅换色） ---- */
html[data-theme="festival"] .cal-hero {
  background: linear-gradient(135deg, #b31217 0%, #d31432 55%, #d4a017 160%);
  box-shadow: 0 12px 28px rgba(154, 15, 32, .32);
}
html[data-theme="festival"] .wb-hero {
  background: linear-gradient(135deg, #9a0f20, #c8102e 55%, #d4a017 160%);
  box-shadow: 0 16px 32px -18px rgba(154, 15, 32, .75);
}
html[data-theme="festival"] .sched-hero {
  background: linear-gradient(135deg, rgba(200, 16, 46, .1), rgba(212, 160, 23, .1));
}
html[data-theme="festival"] .avatar-hero { box-shadow: 0 4px 14px rgba(154, 15, 32, .35); }
html[data-theme="festival"] .inq-c1 .inq-card-icon { background: var(--tint); }

/* ---- 管理端预览卡：春节红金 ---- */
.tp-festival .tp-bar { background: linear-gradient(135deg, #d31432, #d4a017); }
.tp-festival { background: linear-gradient(160deg, #fdecec, #fdf7ec); }

/* =========================================================================
   v50 考试与练习中心：AI 批阅建议 / 练习刷题卡 / 看板折线
   ========================================================================= */
.gx-ai-review {
  margin-top: 8px; padding: 8px 12px; border-radius: 10px;
  background: #f3f6ff; border: 1px dashed #b9c8f0; font-size: 12.5px; color: var(--ink2);
}
.gx-ai-review b { color: var(--blue); }
.gx-ai-review .hint { margin-left: 8px; }
.prac-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.prac-card b { font-size: 15px; }
.prac-run-q { padding: 16px 0; border-bottom: 1px solid var(--line); }
.prac-opt { display: block; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin: 8px 0; cursor: pointer; transition: border-color .12s, background .12s; }
.prac-opt:hover { border-color: var(--blue); }
.prac-opt.on { border-color: var(--blue); background: var(--tint); }
.dash-line { width: 100%; height: auto; }

/* v50b 题库页头按钮组（Word 模板下载 + 新建题库） */
.stn-hd-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ==================== v58 新手引导（分步高亮） ==================== */
#spt-guide { position: fixed; inset: 0; z-index: 9999; }
#spt-guide .gd-hole {
  position: fixed; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(4, 12, 30, .62);
  outline: 2px solid rgba(96, 165, 250, .95);
  outline-offset: 0;
  animation: gd-pulse 1.6s ease-in-out infinite;
  transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease;
  pointer-events: none;
}
@keyframes gd-pulse {
  0%, 100% { outline-color: rgba(96, 165, 250, .95); }
  50% { outline-color: rgba(96, 165, 250, .35); }
}
#spt-guide .gd-tip {
  position: fixed; z-index: 10000;
  background: var(--card, #fff);
  border: 1px solid var(--line, #dbe6f5);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(6, 20, 45, .35);
  padding: 16px 18px 12px;
  color: var(--ink, #1c2b3a);
}
#spt-guide .gd-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
#spt-guide .gd-title b { font-size: 16px; }
#spt-guide .gd-step-no { font-size: 12px; color: var(--ink3, #8ba0bd); }
#spt-guide .gd-text { margin: 0 0 12px; font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
#spt-guide .gd-foot { display: flex; align-items: center; gap: 10px; }
#spt-guide .gd-dots { display: flex; gap: 5px; margin-right: auto; }
#spt-guide .gd-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line, #dbe6f5); }
#spt-guide .gd-dots i.on { background: var(--blue, #2f7bff); }
#spt-guide .gd-btns { display: flex; gap: 6px; }

/* ==================== v58 登录页「添加到桌面」 ==================== */
.btn-desktop-add {
  width: 100%; margin-top: 12px; padding: 12px 14px;
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #2f7bff 0%, #6a5cff 55%, #9d4edd 100%);
  box-shadow: 0 8px 22px rgba(74, 108, 247, .38);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn-desktop-add:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(74, 108, 247, .5); }
.btn-desktop-add:active { transform: translateY(0); }
.dt-url {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 12px;
  border: 1px dashed var(--line, #dbe6f5); border-radius: 10px;
  background: var(--tint, rgba(47, 123, 255, .06));
}
.dt-url-link { font-family: monospace; font-size: 14px; font-weight: 700; color: var(--blue, #2f7bff); word-break: break-all; }
.dt-steps { margin: 8px 0 0; padding-left: 20px; }
.dt-steps li { margin: 8px 0; line-height: 1.7; font-size: 14px; }

/* ==================== v62f 巡课名单「从账号添加」选择器 ==================== */
.ps-pick {
  max-height: 260px; overflow: auto; margin-top: 10px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card, #fbfdff);
}
.ps-pick-empty { padding: 14px; text-align: center; font-size: 13px; color: var(--ink3); }
.ps-pick-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: none; border-bottom: 1px solid var(--line);
  background: transparent; cursor: pointer; text-align: left;
  font-family: var(--font); font-size: 14px; color: var(--ink);
}
.ps-pick-item:last-child { border-bottom: none; }
.ps-pick-item:hover:not(:disabled) { background: var(--tint, rgba(47,123,255,.06)); }
.ps-pick-item:disabled { cursor: not-allowed; opacity: .55; }
.ps-pick-item.on { background: var(--tint, rgba(47,123,255,.1)); box-shadow: inset 3px 0 0 var(--blue); }
.ps-pick-name { font-weight: 700; min-width: 92px; }
.ps-pick-acc { font-family: monospace; font-size: 12.5px; color: var(--ink3); }
.ps-pick-meta { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink3); }
.ps-pick-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink3); }
.ps-acct { font-family: monospace; font-size: 12.5px; color: var(--ink3); }
.ps-acct-none { font-size: 12px; color: #c64545; }
/* v63 巡课统计：表头「本月/累计」副标题 + 累计次数列，让两种口径一眼区分 */
.ps-th-sub { display: block; font-weight: 400; font-size: 11px; color: var(--ink3, #8a94a6); margin-top: 2px; }
.ps-cum { white-space: nowrap; }

/* ============================================================
 *  v85 错题本升级：学科/模块归类 + 熟练度 + 练习/模拟两模式
 * ============================================================ */
.modal-xl { max-width: 1000px; width: calc(100vw - 32px); }

/* ---- 练习中心面板 ---- */
.mk-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; margin-bottom: 16px; }
.mk-panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mk-panel-hd h3 { margin: 0; font-size: 16px; }
.mk-panel-hd .mk-panel-sub { font-size: 12.5px; color: var(--ink3); }

.mk-mode-tabs { display: inline-flex; background: var(--gray-bg); border-radius: 999px; padding: 3px; gap: 2px; }
.mk-mode-tab { border: 0; background: transparent; color: var(--ink2); font-size: 13.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: all .18s; }
.mk-mode-tab:hover { color: var(--ink); }
.mk-mode-tab.active { background: var(--card); color: var(--tint-ink); box-shadow: 0 2px 8px rgba(31,60,100,.12); }

.mk-mode-diff { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 4px 0 14px; }
.mk-mode-diff th, .mk-mode-diff td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.mk-mode-diff th { background: var(--gray-bg); color: var(--ink2); font-weight: 600; white-space: nowrap; width: 92px; }
.mk-mode-diff col.mk-col-practice { background: rgba(74,155,255,.05); }
.mk-mode-diff col.mk-col-exam { background: rgba(139,123,255,.06); }
.mk-mode-diff thead th.mk-th-practice { color: var(--tint-ink); }
.mk-mode-diff thead th.mk-th-exam { color: var(--purple); }

.mk-scope { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.mk-scope .field { margin: 0; min-width: 132px; }
.mk-scope .field label { font-size: 12px; color: var(--ink3); display: block; margin-bottom: 4px; }
.mk-scope .mk-scope-hint { font-size: 12px; color: var(--ink3); margin-left: auto; }
.mk-count-chips { display: inline-flex; gap: 6px; }
.mk-count-chip { border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.mk-count-chip:hover { border-color: var(--tint-line); }
.mk-count-chip.active { border-color: var(--blue); color: var(--tint-ink); background: var(--tint); font-weight: 600; }
.mk-count-chip[disabled] { opacity: .45; cursor: not-allowed; }

/* ---- 熟练度可视化 ---- */
.mk-prof { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink3); }
.mk-prof-bar { width: 56px; height: 6px; border-radius: 999px; background: var(--gray-bg); overflow: hidden; display: inline-block; }
.mk-prof-fill { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.mk-prof-fill.lv-warn { background: var(--orange); }
.mk-prof-fill.lv-low { background: var(--red); }
.mk-level { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--gray-bg); color: var(--ink2); }
.mk-level.lv-good { background: var(--green-bg); color: #12805f; }
.mk-level.lv-mid { background: var(--tint); color: var(--tint-ink); }
.mk-level.lv-warn { background: var(--orange-bg); color: #b56a11; }
.mk-level.lv-low { background: var(--red-bg); color: #c64545; }

/* ---- 分类树（学科 → 模块） ---- */
.mk-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.mk-tree-subj { border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; background: var(--card); }
.mk-tree-subj-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mk-tree-subj-hd b { font-size: 14px; }
.mk-tree-subj-hd .mk-tree-n { font-size: 12px; color: var(--ink3); }
.mk-tree-mod { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.mk-tree-mod:hover { background: var(--tint); }
.mk-tree-mod.active { background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-line); }
.mk-tree-mod .mk-tree-mod-n { font-size: 12.5px; }
.mk-tree-mod .mk-tree-mod-badge { font-size: 11px; color: var(--ink3); margin-left: auto; white-space: nowrap; }
.mk-tree-mod .mk-tree-mod-badge b { color: var(--tint-ink); }

/* ---- 练习/模拟会话（弹窗内） ---- */
.mk-sess-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mk-sess-prog { flex: 1; min-width: 160px; height: 7px; border-radius: 999px; background: var(--gray-bg); overflow: hidden; }
.mk-sess-prog i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .25s; }
.mk-sess-q { border: 1px solid var(--line); border-radius: var(--r2); padding: 14px 16px; margin-bottom: 12px; background: #fbfdff; }
.mk-sess-q .mk-sess-qh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mk-sess-content { font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; }
.mk-sess-nav { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 12px; }

.mk-fb { border-radius: var(--r2); padding: 12px 14px; margin-top: 12px; font-size: 13.5px; line-height: 1.7; }
.mk-fb.ok { background: var(--green-bg); border: 1px solid #bfe9da; }
.mk-fb.bad { background: var(--red-bg); border: 1px solid #ffd3d8; }
.mk-fb .mk-fb-ref { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.12); color: var(--ink2); white-space: pre-wrap; }
.mk-fb .mk-fb-prof { margin-top: 6px; font-size: 12.5px; color: var(--ink3); }

/* ---- 模拟卷：整卷作答 & 交卷自评 ---- */
.mk-paper { max-height: 58vh; overflow: auto; padding-right: 4px; }
.mk-paper-q { border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; margin-bottom: 10px; }
.mk-paper-q .mk-sess-qh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.mk-paper-q .mk-fb { margin-top: 8px; }
.mk-grade-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.mk-grade-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.mk-grade-btn.on-ok { background: var(--green-bg); border-color: #bfe9da; color: #12805f; font-weight: 600; }
.mk-grade-btn.on-bad { background: var(--red-bg); border-color: #ffd3d8; color: #c64545; font-weight: 600; }

/* ---- 成绩单 ---- */
.mk-score { text-align: center; padding: 18px 10px 6px; }
.mk-score-num { font-size: 52px; font-weight: 800; line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-score-sub { color: var(--ink2); font-size: 13.5px; margin-top: 6px; }
.mk-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 16px 0; }
.mk-score-cell { background: var(--gray-bg); border-radius: var(--r2); padding: 10px; text-align: center; }
.mk-score-cell b { display: block; font-size: 20px; }
.mk-score-cell span { font-size: 12px; color: var(--ink3); }

/* ---- 历史记录 ---- */
.mk-hist { display: flex; flex-direction: column; gap: 8px; }
.mk-hist-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r2); font-size: 13px; flex-wrap: wrap; }
.mk-hist-row .mk-hist-mode { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-weight: 600; }
.mk-hist-row .mk-hist-mode.exam { background: #f0edff; color: #6152d6; }
.mk-hist-row .mk-hist-score { margin-left: auto; font-weight: 700; }
.mk-hist-row .mk-hist-score.good { color: #12805f; }
.mk-hist-row .mk-hist-score.mid { color: #b56a11; }
.mk-hist-row .mk-hist-score.bad { color: #c64545; }
.mk-hist-row .mk-hist-at { color: var(--ink3); font-size: 12px; }

.mk-sec-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 15px; font-weight: 700; }
.mk-sec-title .mk-sec-hint { font-size: 12px; color: var(--ink3); font-weight: 400; }

/* v85 教师端错题：模块分布行可点击筛选 */
.tm-mod-row { cursor: pointer; }
.tm-mod-row:hover { background: var(--tint); border-radius: 10px; }

/* ---- v109：菜单维护 · 第三方外链菜单 ---- */
.mn-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mn-card-hd h3 { margin: 0; }
.mn-ext-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px;
  font-size: 11px; font-weight: 800; color: #1D4ED8; background: #E5EEFF; border: 1px solid #BFDBFE;
}
.mn-table .mn-del { color: #B91C1C; }
.mn-ext-form label { display: block; margin: 12px 0 5px; font-size: 13px; font-weight: 700; color: #475569; }
.mn-ext-form label i { font-weight: 400; color: #94A3B8; font-size: 12px; font-style: normal; }
.mn-ext-form .mn-hint { margin: 14px 0 0; font-size: 12px; color: #9A9081; line-height: 1.7; }

/* ==================== v135 富文本符号库面板（数学/希腊/化学/单位） ==================== */
.rt-sympanel { position: fixed; z-index: 9999; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 8px; }
.rt-symtabs { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.rt-symtabs button { border: 0; background: none; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.rt-symtabs button.on { background: var(--tint); color: var(--tint-ink); font-weight: 700; }
.rt-symtabs .rt-symclose { margin-left: auto; font-size: 15px; padding: 1px 7px; }
.rt-symgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 180px; overflow: auto; }
.rt-symgrid.rt-sym-chem { grid-template-columns: repeat(6, 1fr); }
.rt-symgrid.rt-sym-wide { grid-template-columns: repeat(6, 1fr); margin-top: 4px; }
.rt-symgrid button { border: 0; background: none; height: 28px; border-radius: 6px; cursor: pointer; font-size: 15px; color: var(--ink); font-family: inherit; line-height: 1; }
.rt-symgrid.rt-sym-wide button { font-size: 12.5px; height: 24px; }
.rt-symgrid button:hover { background: var(--tint); color: var(--tint-ink); }
