/* =====================================================================
   jwxt 教务管理系统 · 样式（对齐原型 AdminLTE 2.x 视觉）
   顶栏 / 侧栏配色由皮肤变量控制：默认浅蓝（skin-light），可选暗色（skin-dark）
   主色 #3c8dbc / 正文 12px
   ===================================================================== */

/* ============ 深浅双皮肤变量（2026-12-02）============
   :root 与 html.skin-light = 蓝调浅色皮肤（顶栏浅蓝、侧栏浅蓝）；
   html.skin-dark = 深蓝皮肤（顶栏/侧栏均为深蓝）。
   2026-12-02 用户口径：浅色加深蓝色、深色改成深蓝——两套均为蓝色系，
   浅色顶栏由近白的 #eaf4fb 加深为 #256fa3，深色由灰黑 #222d32/#2c3b41
   改为深蓝 #122a3f/#17354d；各色文字对比度同步调整（浅底深字、深底浅字）。
   2026-12-02 本轮调整（用户「换肤选浅色，顶栏仍深蓝」反馈）：浅色顶栏由 #256fa3
   改为浅蓝 #c9e2f5（与侧栏 #dcecf8 同族、略深形成层次），普通/hover 文字同步
   改深蓝 #1f4a6d/#163c5a；选中块保留深蓝底 + 白字，承载常驻白色圆角描边。
   深色顶栏 #122a3f 不变。两套皮肤顶栏文字对比度均 ≥4.5:1（详见本轮报告）。
   变量挂在 <html> 上由全体后代继承；layout.html head 内联脚本在首屏渲染前
   依据 localStorage('jwxt_skin') 给 <html> 加 class，避免先浅后深闪烁。
   每个变量均在下方顶栏/侧栏规则中被引用（见报告静态核对）。 */
:root, html.skin-light {
    --topbar-bg: #c9e2f5;
    --topbar-fg: #1f4a6d;
    --topbar-line: rgba(31, 74, 109, .14);
    --topbar-hover-bg: #bcdcf2;
    --topbar-hover-fg: #163c5a;
    /* 2026-12-02 方案D（用户选定）：顶栏/侧栏选中态统一 1px 细描边、无填充。
       浅底上 #8ec5ec 仅 1.38:1 不可见，故浅皮肤用同族深蓝 #1d5b8a（5.38:1），
       深皮肤保留 #8ec5ec（7.94:1）；hover 用 --outline-hover 半透明描边。 */
    --topbar-indicator: #1d5b8a;
    --outline-hover: rgba(29, 91, 138, .7);
    /* 2026-12-02 报表深色块随皮肤切换：经营总览营收目标卡与侧栏分组标题高亮
       不再写死深色，改由下列双皮肤变量提供；详见 .biz-goal / .group-title.on 规则。 */
    --report-card-bg: linear-gradient(135deg, #cfe3f4, #bcd7ec);
    --report-card-fg: #1f4a6d;
    --report-card-track: rgba(31, 74, 109, .18);
    --report-card-bar: #8a5200;
    --sidebar-bg: #dcecf8;
    --sidebar-fg: #244e6e;
    --sidebar-thumb: #9fc2dc;
    --group-fg: #1f4a6d;
    --group-line: #c2dcee;
    --group-hover-bg: #cfe3f4;
    /* 2026-12-02 方案D：分组标题选中态改 1px 细描边、无填充；
       --group-on-bg 保留变量并置 transparent，确保变量仍有引用。 */
    --group-on-bg: transparent;
    --group-on-fg: #163c5a;
    --group-on-line: #1d5b8a;
    --menu-hover-bg: #cfe3f4;
    --menu-hover-fg: #174a70;
    --menu-on-bg: transparent;
    --menu-on-fg: #163c5a;
    --menu-on-line: #1d5b8a;
    --menu-on-soft-bg: #d6e9f8;
    --menu-on-soft-fg: #1d6a9e;
    --caret-fg: #5d86a3;
    --link-fg: #1f4a6d;
    --link-hover-fg: #1d6a9e;
}
html.skin-dark {
    --topbar-bg: #122a3f;
    --topbar-fg: #b6cee0;
    --topbar-line: rgba(255, 255, 255, .05);
    --topbar-hover-bg: #0d2133;
    --topbar-hover-fg: #fff;
    /* 2026-12-02 方案D：深色底 1px 描边取浅蓝 #8ec5ec（7.94:1），hover 半透明。 */
    --topbar-indicator: #8ec5ec;
    --outline-hover: rgba(142, 197, 236, .65);
    /* 2026-12-02 报表深色块随皮肤切换：深色渐变起点由 #3c8dbc 加深为 #2a6f9b，
       原起点白字仅 3.67:1 不达正文阈值；进度槽由白 28% 改黑 28%（原叠加后金黄
       进度条仅 2.18:1）；分组标题底/字保留原口径，左侧线改用方案A浅蓝指示色。 */
    --report-card-bg: linear-gradient(135deg, #2a6f9b, #1d5b8a);
    --report-card-fg: #ffffff;
    --report-card-track: rgba(0, 0, 0, .28);   /* 深色槽：白 28% 叠加后金条仅 2.18:1，改暗槽 */
    --report-card-bar: #ffd166;
    --sidebar-bg: #17354d;
    --sidebar-fg: #b6cee0;
    --sidebar-thumb: #2e5575;
    --group-fg: #d4e6f4;
    --group-line: #23445f;
    --group-hover-bg: #1c3e5b;
    /* 2026-12-02 方案D：深色侧栏选中态改 1px 浅蓝细描边、无填充；字色保留浅色。 */
    --group-on-bg: transparent;
    --group-on-fg: #ffffff;
    --group-on-line: #8ec5ec;
    --menu-hover-bg: #1c3e5b;
    --menu-hover-fg: #fff;
    --menu-on-bg: transparent;
    --menu-on-fg: #ffffff;
    --menu-on-line: #8ec5ec;
    --menu-on-soft-bg: #1c3e5b;
    --menu-on-soft-fg: #cfe4f4;
    --caret-fg: #789bb5;
    --link-fg: #b6cee0;
    --link-hover-fg: #fff;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 12px;
    color: #333;
    background: #f4f6f8;
    -webkit-font-smoothing: antialiased;
}

a { color: #3c8dbc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================ 顶栏 ============================ */
.topbar {
    height: 48px;
    background: var(--topbar-bg);
    display: flex;
    align-items: stretch;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
}

/* 2026-11-15 二次调整：删除白色品牌块（.brand / .brand-logo / .brand-name）与右侧
   「金华白龙桥校区」标签（.brand-tag）。「首页」现在是 .modules 里的第一个 .module，
   与其它模块 tab 完全同款；H5 下由 .drawer-modules 收进汉堡菜单。 */

/* 模块区占用剩余宽度并自行裁剪：宽度不足时裁掉右侧模块，不允许挤压右上角账号区 */
.modules { display: flex; flex: 1 1 auto; min-width: 0; overflow: hidden; }

.module {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    color: var(--topbar-fg);
    font-size: 13px;
    border-right: 1px solid var(--topbar-line);
    /* 顶栏 48px 定高：不允许文字折行，也不允许被挤出容器 */
    flex: 0 0 auto;
    white-space: nowrap;
}

.module:hover { background: var(--topbar-hover-bg); color: var(--topbar-hover-fg); text-decoration: none; }

.module.on { background: transparent; color: var(--topbar-fg); }

/* 2026-12-02（用户问题1/2）：bootstrap.min.css 的 a:focus,a:hover 会把字色改成
   #23527c 并给 a:focus 加 5px -webkit-focus-ring；焦点一转移描边就消失，
   点击瞬间还会闪蓝字。以下覆盖一律限定在 .topbar 内：H5 底部 Tab 虽然也挂
   .module 类，但其 .h5-tabbar .h5-tab 系列规则与本段选择器不匹配，样式不变；
   其它 <a>（侧栏菜单、换肤级联菜单）的焦点提示一概不动。 */
.topbar .module:focus,
.topbar .module:active {
    text-decoration: none;
    outline: none;            /* 仅顶栏 tab 去掉 Bootstrap 的 5px 蓝色 focus ring */
    color: var(--topbar-fg);  /* 普通态字色，覆盖 Bootstrap 蓝字 */
}

/* 2026-12-02 方案D（用户选定）：hover 与选中统一 1px 细描边的线条反馈——
   hover 用半透明描边、无填充；选中用完整描边、无填充；字色恒走皮肤变量，
   不出现 Bootstrap #23527c 蓝字。inset 阴影不占布局，148px 首页等宽不受影响。 */
.topbar .module:hover,
.topbar .module:focus,
.topbar .module:active {
    background: transparent;
    color: var(--topbar-hover-fg);
    text-decoration: none;
    outline: none;
    box-shadow: inset 0 0 0 1px var(--outline-hover);
}
.topbar .module.on,
.topbar .module.on:hover,
.topbar .module.on:focus,
.topbar .module.on:active {
    background: transparent;
    color: var(--topbar-fg);
    font-weight: 500;
    text-decoration: none;
    outline: none;
    box-shadow: inset 0 0 0 1px var(--topbar-indicator);
}

/* 任务A（2026-12-02）：仅顶栏第一枚「首页」tab 与左侧菜单 148px 等宽对齐；
   其余 .module 仍为 padding:0 16px 自适应宽度，不动。
   全局 * 已 box-sizing:border-box，width:148px 含 padding 与 border-right。
   H5 下 .modules 隐藏，底部首页 Tab 不带本类，完全不受影响。 */
.module.module-home {
    width: 148px;
    flex: 0 0 148px;
    box-sizing: border-box;
    justify-content: center;
}

.m-ico {
    width: 20px; height: 20px;
    display: inline-block;
    object-fit: contain;
    flex: 0 0 20px;
}

.top-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 14px;
    color: var(--topbar-fg);
    font-size: 12px;
    /* 校区名 / 姓名职位可能很长：白名单式禁止换行，超长由 .brand-name 自己省略 */
    flex: 0 0 auto;
    white-space: nowrap;
}

/* 校区名标签已删除（用户要求：右侧「金华白龙桥校区」去掉） */
.top-right .link { color: var(--link-fg); }
.top-right .link:hover { color: var(--link-hover-fg); text-decoration: none; }

/* ---------- 右上角账号下拉菜单（2026-11-15） ----------
   原为平铺的 修改密码/刷新缓存/退出 三个链接，收敛为头像 + 姓名 + ▾ 的下拉。 */
.user-menu { position: relative; }
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 4px;
    background: none;
    border: 0;
    color: var(--topbar-fg);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.user-menu-btn:hover { color: var(--topbar-hover-fg); }
.um-avatar {
    width: 22px; height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: #3c8dbc;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.um-caret { font-size: 10px; color: var(--caret-fg); }
.user-menu-list {
    display: none;
    position: absolute;
    right: 0; top: 48px;
    min-width: 118px;
    padding: 5px 0;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    z-index: 130;
}
.user-menu.open .user-menu-list { display: block; }
.user-menu-list a {
    display: block;
    padding: 8px 16px;
    color: #33404d;
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
}
.user-menu-list a:hover { background: #f2f6fb; color: #2b7fd4; text-decoration: none; }

/* ---------- 换肤级联菜单（2026-12-02，所有用户可见，不受 homeOps 控制）----------
   纯 CSS hover/focus-within 展开：鼠标悬停或键盘聚焦「换肤」即显示浅色/深色；
   向左展开（right:100%）避免右上角贴边溢出。点击选项调 setSkin() 并收起下拉。 */
.skin-menu { position: relative; }
.skin-menu-trigger::after {
    content: '▸';
    color: var(--caret-fg);
    font-size: 10px;
    margin-left: 6px;
}
.skin-menu-list {
    display: none;
    position: absolute;
    right: 100%; top: -5px;
    min-width: 92px;
    margin-right: 2px;
    padding: 5px 0;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    z-index: 131;
}
.skin-menu:hover > .skin-menu-list,
.skin-menu:focus-within > .skin-menu-list { display: block; }
.skin-menu-list a { padding: 7px 14px; }
.skin-menu-list a.on { color: #2b7fd4; font-weight: 600; background: #f2f8fe; }

/* 首页：品牌区即首页入口，侧栏不再有「常用/用户信息」分组，桌面端主区满宽。
   窄屏（≤900px）仍需侧栏做汉堡抽屉，见下方 @media 恢复规则。 */
.home-page .sidebar { display: none; }
.home-page .main { margin-left: 0; }

/* ============================ 侧栏 ============================ */
.wrap { display: flex; padding-top: 48px; min-height: 100vh; }

.sidebar {
    width: 148px;
    flex: 0 0 148px;
    background: var(--sidebar-bg);
    position: fixed;
    top: 48px; bottom: 0; left: 0;
    overflow-y: auto;
    z-index: 90;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--sidebar-thumb); border-radius: 3px; }

.group-title {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 10px 7px;
    font-size: 12px;
    color: var(--group-fg);
    font-weight: 600;
    border-top: 1px solid var(--group-line);
    cursor: pointer;
    user-select: none;
}

.group-title:first-child { border-top: 0; }

.group-title:hover { background: var(--group-hover-bg); }

.g-ico {
    width: 15px; height: 15px;
    object-fit: contain;
    flex: 0 0 15px;
}

/* 2026-11-15：原类名 .caret 与 Bootstrap 3 内置 .caret 冲突——Bootstrap 会用
   border 画一个小三角，叠加在字符 ▾ 上就成了两个不同样式的伸缩箭头。
   改名为 .grp-caret 彻底避开，并显式清掉边框，保证只显示一个箭头。 */
.grp-caret {
    display: inline-block;
    width: auto; height: auto;
    border: 0;
    margin-left: auto;
    color: var(--caret-fg);
    font-size: 10px;
    line-height: 1;
    transition: transform .18s ease;
}

.group-items { overflow: hidden; }

.menu-group.collapsed .group-items { display: none; }
.menu-group.collapsed .grp-caret { transform: rotate(-90deg); }

.menu-item {
    display: block;
    padding: 6px 10px 6px 26px;
    font-size: 12px;
    color: var(--sidebar-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item:hover { background: var(--menu-hover-bg); color: var(--menu-hover-fg); text-decoration: none; }
/* 2026-12-02 方案D：与顶栏同用 1px 细描边语言——hover 半透明描边、
   选中完整描边，均不填充底色；H5 抽屉复用同一侧栏 DOM 随之生效，
   .h5-menu-item.on / .dm-item.on 有独立覆写，不受本规则影响。 */
.sidebar .menu-item:hover,
.sidebar .menu-item:focus,
.sidebar .menu-item:active {
    background: transparent;
    color: var(--menu-hover-fg);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--outline-hover);
}
.sidebar .menu-item.on,
.sidebar .menu-item.on:hover,
.sidebar .menu-item.on:focus,
.sidebar .menu-item.on:active {
    background: var(--menu-on-bg);
    color: var(--menu-on-fg);
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--menu-on-line);
}

/* ============================ 主区 ============================ */
.main {
    margin-left: 148px;
    flex: 1;
    min-width: 0;
    padding: 10px 12px 14px;
    position: relative;   /* 2026-12-02 局部等待框定位锚点 */
}

/* ============ 2026-12-02 内容区局部转圈等待框 ============
   用户要求「首页和列表页增加转圈等待框」：遮罩只覆盖 main.main，顶栏与侧栏
   仍可操作（方案②）。首页报表是逐块渐变渲染，故整页遮罩只在页面 HTML/脚本
   切换期间出现，不遮挡逐块动画；列表页在 SPA 换页期间同样可见。
   z-index 880：高于内容，低于列面板 896 / 遮罩 900 / 弹窗 901。 */
.page-loading {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 880;
    background: rgba(255, 255, 255, .72);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 72px;
}
.page-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 6px;
}
.page-loading-spin {
    width: 26px; height: 26px;
    border: 3px solid #cfe0ee;
    border-top-color: #2f7fb8;
    border-radius: 50%;
    animation: page-loading-spin .8s linear infinite;
}
@keyframes page-loading-spin { to { transform: rotate(360deg); } }
.page-loading-text { font-size: 12px; color: #2f7fb8; }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e7ebef;
    padding: 7px 10px;
}

/* 问题5-A：PC 删除顶部标题行（crumb.group / crumb.name 两行文字）；
   H5（≤900px）由下方 media query 恢复 .page-head 显示，标题行保留，但按钮已并入搜索排。 */
@media (min-width: 901px) {
    .page-head { display: none; }
}

/* 问题9：无菜单对应页的「返回」按钮。
   2026-11-20：按钮从顶栏 .top-right 移入 <main> 内容顶部（.main-back）——
   它是孤儿页 / 报名表单页唯一的返回口，≤900px 不再整体隐藏（原 H5 设计
   把顶栏返回藏掉，如今按钮在页面内容区，移动端同样需要）。左侧菜单树本身不动。 */
.btn-back { margin-bottom: 8px; }
.main-back { display: inline-block; margin: 0 0 10px; font-size: 13px; }

.tabs { display: flex; align-items: baseline; gap: 10px; }

.tabs .tab { color: #8a939e; font-size: 13px; }
.tabs .tab.on { color: #3c8dbc; font-weight: 600; }

.tabs .tab-name {
    color: #5b6572;
    font-size: 12px;
    padding-left: 10px;
    border-left: 1px solid #e5e9ee;
}

.head-actions { display: flex; gap: 6px; }

/* ============================ 按钮 ============================ */
.btn {
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    font-family: inherit;
    border: 1px solid #d6dbe1;
    background: #fff;
    color: #555;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn:hover { background: #f5f7f9; }
.btn .i { font-size: 11px; }
/* 2026-12-02（用户反馈：搜索按钮 hover/点击时白字变黑、点击背景无变化）：
   bootstrap.min.css 的 `.btn.focus,.btn:focus,.btn:hover{color:#333}`（0,2,0）
   压过下方 `.btn-green{color:#fff}`（0,1,0），hover/focus 白字变黑；
   `.btn.active,.btn:active` 只给内阴影，彩色按钮缺显式 active 背景，点击几乎看不出。
   这里把 7 类语义色按钮的常态色值提取为变量（不改原色），统一补齐 hover/focus/active
   三态：字色恒 #fff、背景逐档加深、active 再给明确内阴影；focus 去掉 Bootstrap 5px
   蓝色 ring 改用自己的状态反馈。所有状态选择器带 :not([disabled])，禁用按钮不参与；
   普通 .btn-default 的焦点提示保持原样。 */
/* 2026-12-02（用户追加反馈：点击背景区分度不足、点击字要从白改银灰）：
   7 类按钮常态/hover 色值不动，仅把 --btn-bg-active 再压深一档，
   点击字色统一 #c9d4dd（各色均在 5.39:1~7.78:1，达正文 4.5 阈值）。 */
.btn-blue   { --btn-bg: #3c8dbc; --btn-bg-hover: #337ab7; --btn-bg-active: #1c5478; }
.btn-green  { --btn-bg: #00a65a; --btn-bg-hover: #007a45; --btn-bg-active: #00452a; }
.btn-purple { --btn-bg: #605ca8; --btn-bg-hover: #554f9c; --btn-bg-active: #352f70; }
.btn-red    { --btn-bg: #dd4b39; --btn-bg-hover: #c93f2e; --btn-bg-active: #8e2618; }
.btn-orange { --btn-bg: #ec971f; --btn-bg-hover: #a86206; --btn-bg-active: #6f3d04; }
.btn-cyan   { --btn-bg: #17a2b8; --btn-bg-hover: #0f6c7e; --btn-bg-active: #073f4b; }
.btn-gray   { --btn-bg: #6c757d; --btn-bg-hover: #5a6268; --btn-bg-active: #3b4146; }

.btn-blue, .btn-green, .btn-purple, .btn-red, .btn-orange, .btn-cyan, .btn-gray {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: #fff;
}
.btn-blue:not([disabled]):hover, .btn-green:not([disabled]):hover,
.btn-purple:not([disabled]):hover, .btn-red:not([disabled]):hover,
.btn-orange:not([disabled]):hover, .btn-cyan:not([disabled]):hover,
.btn-gray:not([disabled]):hover {
    background: var(--btn-bg-hover);
    border-color: var(--btn-bg-hover);
    color: #fff;
    text-decoration: none;
}
.btn-blue:not([disabled]):focus, .btn-green:not([disabled]):focus,
.btn-purple:not([disabled]):focus, .btn-red:not([disabled]):focus,
.btn-orange:not([disabled]):focus, .btn-cyan:not([disabled]):focus,
.btn-gray:not([disabled]):focus {
    background: var(--btn-bg-hover);
    border-color: var(--btn-bg-hover);
    color: #fff;
    text-decoration: none;
    outline: none;            /* 去掉 Bootstrap 5px 蓝色 focus ring */
}
.btn-blue:not([disabled]):active, .btn-green:not([disabled]):active,
.btn-purple:not([disabled]):active, .btn-red:not([disabled]):active,
.btn-orange:not([disabled]):active, .btn-cyan:not([disabled]):active,
.btn-gray:not([disabled]):active {
    background: var(--btn-bg-active);
    border-color: var(--btn-bg-active);
    color: #c9d4dd;              /* 点击态银灰字，避免纯白与按下底色糊成一片 */
    text-decoration: none;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15);   /* 点击明确反馈 */
}

/* 禁用态：pointer-events:none 让 hover/focus/active 根本不触发（含 Bootstrap 的
   .btn:hover{color:#333}），并抹掉 Bootstrap .btn:active 内阴影，避免任何变色 */
.btn[disabled],
.btn[disabled]:hover,
.btn[disabled]:focus,
.btn[disabled]:active {
    opacity: .6;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

/* ============================ 卡片 / 筛选 ============================ */
.card {
    background: #fff;
    border: 1px solid #e7ebef;
    border-top: 0;
}

.tip {
    background: #fffbe6;
    border-bottom: 1px solid #f5edc9;
    color: #8a6d3b;
    padding: 6px 10px;
    font-size: 12px;
}

/* 筛选条：条件区左、按钮区右；标签与控件强制同一基线垂直居中 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 9px 12px;
    border-bottom: 1px solid #eef1f4;
}

/* 条件区 gap 收窄到 6/10：单条件宽度≈130px，同屏可比原来多容纳约 50% 条件（对齐源站密度） */
.fitems { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 1 1 auto; min-width: 0; }
/* 2026-11-19（用户问题1）：筛选条按钮统一分两组、均靠右对齐、组间明显间隔。
   · .fbtn-primary = 搜索/重置组；.fb-action = 导出/导入/页面动作组；
   · 两组之间用 20px 间隔 + 1px 竖分隔线形成清晰视觉分组；
   · 整块 .fbtns 靠右（margin-left:auto），搜索条件仍保持左对齐不变。 */
.fbtns { display: flex; align-items: center; gap: 0; flex: 0 0 auto; margin-left: auto; }
.fbtn-primary { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.fbtn-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
    margin-left: 20px; padding-left: 20px; border-left: 1px solid #e3e8ef; }
/* 无导出/导入/页面动作时，动作组不渲染，分隔线也随之消失 */
.fbtn-actions:empty { display: none; }

.fitem { display: inline-flex; align-items: center; gap: 5px; height: 26px; }
.fitem label {
    color: #666;
    line-height: 26px;
    height: 26px;
    display: inline-block;
    white-space: nowrap;
}
.fsep { font-style: normal; color: #8a939e; line-height: 26px; }

.fsel, .ftxt, .fdate {
    height: 26px;
    box-sizing: border-box;
    vertical-align: middle;
    border: 1px solid #d9dee4;
    border-radius: 2px;
    font-size: 12px;
    font-family: inherit;
    color: #444;
    background: #fff;
    padding: 0 4px;
    outline: none;
}

.fsel { min-width: 72px; }
/* 只约束筛选条里的下拉上限（长选项不把条件条撑爆）；role.html 等独立下拉不受影响 */
.fitem .fsel { max-width: 150px; }
.ftxt { width: 130px; }
.fdate { width: 128px; }
.fsel:focus, .ftxt:focus, .fdate:focus { border-color: #3c8dbc; }

.btn-search { margin-left: 0; }
.chart-tools { display: flex; justify-content: flex-end; padding: 6px 12px 0; }
.toolbar-tip { margin-left: 4px; color: #9aa4af; font-size: 12px; }

/* 重置：原来是裸灰字，和同排「搜索/导出」实心按钮放一起显得残缺；
   改成带背景的次级按钮：白底描边、与 .btn 同高（26px），hover 反馈。
   注意 .reset 是 <a>，需要补行高/内边距才能和 button 基线对齐。 */
.reset {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1;
    color: #55606b;
    background: #f7f9fb;
    border: 1px solid #d6dbe1;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
}
.reset:hover { background: #eef2f6; color: #2f3a45; text-decoration: none; }
.reset:active { background: #d7e3ec; color: #4b5c68; border-color: #a8bccb; }
/* 2026-12-02：重置按钮补齐点击态——底色 #d7e3ec、字色 #4b5c68（5.31:1），
   与 hover 的 #eef2f6 明确区分；焦点仍保留 2px 主题描边。 */
/* 2026-12-02：.reset 是 <a>，Bootstrap a:focus 会给 #23527c 蓝字与 5px 蓝 ring；
   这里改回次级按钮字色，并换成 2px 主题色描边，保留焦点可见性又不产生视觉杂音。 */
.reset:focus {
    background: #eef2f6;
    color: #2f3a45;
    text-decoration: none;
    outline: 2px solid #3c8dbc;
    outline-offset: 1px;
}
/* 点击时同时带 focus，focus 规则在后会盖掉 :active，这里用更高特异度保证点击态可见 */
.reset:focus:active {
    background: #d7e3ec;
    color: #4b5c68;
    border-color: #a8bccb;
}

/* 工具栏：导出 / 新增 / 批量动作（对齐源站彩色按钮条） */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #eef1f4;
    background: #fafbfc;
}

/* ============================ 表格 ============================ */
.table-wrap { overflow-x: auto; }

table.grid { width: 100%; border-collapse: collapse; }

table.grid th {
    background: #f7f8fa;
    color: #5b6572;
    /* 2026-11-19（用户问题5）：表头加粗、字号比正文大 2 号（正文 12px → 表头 14px）；
       全站列表内容统一左对齐（th 本就 left，td 由下方规则兜底）。 */
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #e7ebef;
    white-space: nowrap;
}

table.grid td {
    padding: 7px 8px;
    border-bottom: 1px solid #f2f4f7;
    color: #3d4650;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

/* 2026-11-19（用户问题5）：奇偶行浅色背景区分，便于横向阅读。
   勾选列 .ck 仍居中（业务需要），仅覆盖文字/数据单元格的左对齐由 th/td 规则统一。 */
table.grid tbody tr:nth-child(even) { background: #fafbfc; }
table.grid tbody tr:nth-child(odd)  { background: #fff; }

table.grid tbody tr:hover { background: #e8f1fb; box-shadow: inset 3px 0 0 #3c8dbc; transition: background .12s ease; }
/* list-fix4（2026-11-19）：选中行由整行橙填充改为 1px 橙描边 + 轻浅底（#fff7ec），
   替代原先 #ffd091 大面积填充（用户反馈太突兀）；hover 效果保持现状 */
table.grid tbody tr.row-selected,
table.grid tbody tr.row-selected:hover { background: #fff7ec; box-shadow: inset 0 0 0 1px #e99b2a; }
.mini-table tbody tr:hover { background: #eef4fb; }
/* 列表行选中加深：兼容通用列表与明细小表 */
/* 2026-11-17 问题10：禁用态透明度降至 40%（含底色），hover 不再变色；title 由模板按空态给出。 */
.sc-more.disabled { opacity: .4; color: #8a939e; cursor: not-allowed; text-decoration: none !important; }
.sc-more.disabled:hover { background: #eef2f6; color: #8a939e; }
table.grid .ck { width: 30px; text-align: center; }
/* 2026-11-17：通用列表（list.html）的批处理复选框列只占自身空间，不与其他列平分列宽。
   之前共用上面那条 width:30px——宽表下浏览器把富余列宽摊给了它（实测 1200px 宽、
   无列宽声明的表：旧规则下该列与其它列同宽）。这里四件套锁宽：
   ① 固定 px 给 fixed 布局（page.js initTable 运行时会加 .grid-fixed）；
   ② min/max-width 兜自动布局；③ 左右 padding 归零；
   ④ 内层 34px .ck-box 提供确定的 min-content，避免列被压到勾选框自身 13px。
   只按 .cardable 限定（list.html 专用，config/charts 的同类表没有 .ck 单元格）。
   D-34（2026-11-19）lead.html 的 table.src-grid 也 opt-in cardable：其 td.ck 有
   40px 口径（table.src-grid td.ck），若本规则直接命中会以 3 类 > 2 类的特异度
   把桌面勾选列改成 34px——故用 :not(.src-grid) 排除，lead 桌面口径不变。 */
table.grid.cardable:not(.src-grid) .ck {
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    white-space: nowrap;
}
table.grid.cardable .ck .ck-box {
    display: inline-block;
    width: 34px;
    text-align: center;
    line-height: 1;
}
/* 操作列不再写死 96px：宽度由 list.html 按 meta.ops 数量输出（56px/动作）。
   这里只保留下限，避免没有行内动作的页面把该列压成 0。
   不加 white-space:nowrap：V28 让 ACTION 也进操作列后，一行可能有 5~9 个动词，
   文案最长的有「设置有效期」「安排补课」；允许在动作之间折行，好过把最后一枚裁掉。 */
table.grid .op { min-width: 96px; white-space: normal; }
table.grid .op a { margin-right: 8px; white-space: nowrap; }   /* 折行只发生在动作之间，不在动词内部 */
table.grid .op a.danger { color: #dd4b39; }

.al-right { text-align: right; }
.al-center { text-align: center; }
.sort { color: #c2c9d1; font-size: 10px; margin-left: 3px; }

/* ---- 表头：列宽拖动 + 点击排序（page.js initTable） ---- */
table.grid.grid-fixed { table-layout: fixed; }
table.grid th.sortable { position: relative; cursor: pointer; user-select: none; }
table.grid th.sortable:hover { color: #2b7fd4; }
table.grid th .th-txt {
    display: inline-block;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
table.grid th .sort-asc, table.grid th .sort-desc { color: #2b7fd4; font-weight: 700; }
table.grid th .col-resizer {
    position: absolute;
    top: 0;
    right: -4px;
    width: 9px;
    height: 100%;
    cursor: col-resize;
    z-index: 3;
}
table.grid th .col-resizer::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 7px;
    bottom: 7px;
    width: 1px;
    background: #e2e7ec;
}
table.grid th .col-resizer:hover::after { background: #2b7fd4; width: 2px; }
/* 表头拖拽换列：源列半透明、目标列蓝色左边界，操作不打断列宽拖拽 */
table.grid th[draggable="true"] { cursor: grab; }
table.grid th.col-dragging { opacity: .5; cursor: grabbing; }
table.grid th.th-drag-over { box-shadow: inset 3px 0 0 #2b7fd4; background: #eef6ff; }
table.grid td .cell { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.col-resizing { cursor: col-resize; user-select: none; }

.badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 11px;
    line-height: 16px;
}

.b-green { background: #e8f6ee; color: #00a65a; }
.b-orange { background: #fdf3e3; color: #d98708; }
.b-red { background: #fdeceb; color: #dd4b39; }
.b-gray { background: #f2f4f7; color: #7a838f; }

.empty { text-align: center; color: #b7bdc7; padding: 58px 0 64px; }
.empty svg { display: block; margin: 0 auto 8px; }

/* ============================ 页脚 ============================ */
.page-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e7ebef;
    border-top: 0;
    padding: 7px 10px;
}

.foot-left { display: flex; gap: 6px; }
.foot-right { display: flex; align-items: center; gap: 10px; color: #7a838f; }

.size-sel {
    height: 24px;
    border: 1px solid #d9dee4;
    border-radius: 2px;
    font-size: 12px;
    color: #555;
    background: #fff;
}

.pager { display: inline-flex; align-items: center; gap: 8px; }
.pager-size { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: #6b7686; }
.pager-size .fsel { height: 28px; padding: 0 6px; }

/* ============================ 弹窗 ============================ */
.mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 900;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    /* Bootstrap 3 的 .modal 自带 right/bottom:0，会把弹窗拉满半屏，必须显式复位 */
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    /* 宽高按内容自适应：介于最小与视口上限之间，openModal 时切 flex 纵向布局 */
    width: auto;
    min-width: 420px;
    max-width: 760px;
    max-height: calc(100vh - 64px);
    background: #fff;
    border-radius: 3px;
    z-index: 901;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    /* 纵向三段式：头/脚不压缩，中间内容区超高时滚动 */
    flex-direction: column;
}

.modal-head {
    background: #3c8dbc;
    color: #fff;
    padding: 9px 16px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-x { color: #fff; font-size: 16px; line-height: 1; }

.modal-body {
    /* 内边距交给 .modal-inner：滚动容器自身带 padding 时，
       右侧 padding 会被滚动条/横向溢出吞掉，造成「左宽右窄」 */
    padding: 0;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
}
.modal-inner { padding: 20px 28px; }
/* 字段多的表单改双列：单列 14 行会又窄又高，双列后宽高比回到常规弹窗 */
.modal.grid2 { width: 700px; }
.modal-inner .form-grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.modal-inner .form-grid2 .finput { width: 100%; }
.modal-inner .form-grid2 .form-row > label { flex: 0 0 auto; }
.modal-inner .form-grid2 .form-row { min-width: 0; }
/* 弹窗内的多层级内容：缩进用背景+左线表达，不再靠单侧 padding 制造「左边空一大块」 */
.modal-inner .dlg-grp { margin-bottom: 6px; }
.modal-inner .dlg-grp-t { font-size: 13px; font-weight: 600; color: #333; padding: 4px 0 8px; border-bottom: 1px solid #eef1f4; margin-bottom: 10px; }
.modal-inner .dlg-sub { margin: 0 0 8px 12px; padding: 6px 0 0 12px; border-left: 2px solid #e7ebef; }
.modal-inner .dlg-sub-t { font-size: 12px; color: #888; margin-bottom: 6px; }
.modal-body .confirm-msg { padding: 8px 0 4px; line-height: 1.7; color: #3d4650; }
.modal-foot { padding: 12px 28px; text-align: right; border-top: 1px solid #eef1f4; display: flex; gap: 8px; justify-content: flex-end; flex-shrink: 0; }

/* ============================ 表单 ============================ */
.form-card { padding: 18px 20px; border-top: 1px solid #e7ebef; max-width: 620px; }
.form-title { font-size: 14px; color: #333; font-weight: 600; margin-bottom: 8px; }

.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
/* 标签列：宽度由 openModal 测量「本弹窗内最长标签」写入 --form-label-w（左对齐）。
   曾经用固定 90px + text-align:right，短标签的文字贴右，空白全堆在左侧，
   弹窗看起来就是「左边留白多、右边留白少」。左对齐后左留白恒等于 .modal-inner 的 16px。 */
.form-row label,
#modalBody .form-row label {
    width: var(--form-label-w, 76px); flex: 0 0 auto; color: #666; text-align: left;
    /* 不换行：否则「学员姓名 *」会被拆成两行，量宽也就量不准 */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.finput {
    height: 28px;
    border: 1px solid #d9dee4;
    border-radius: 2px;
    padding: 0 8px;
    font-size: 12px;
    font-family: inherit;
    color: #333;
    width: 260px;
    outline: none;
}

.finput:focus { border-color: #3c8dbc; }
#modalBody .finput { width: 300px; }

/* 原生时间/日期控件配色：H5(iOS Safari / Chrome 移动) 在浅色主题下，
   原生 input[type=time] 的钟面图标与数字会被渲染成白底白字，看不到数字（用户问题8）。
   color-scheme:light 显式声明浅色控件，强制浏览器用深色数字 + 浅色钟面，
   不再受系统深色/引擎默认值影响；color/background 兜底文本与底色。
   只对控件自身生效，PC 端原生控件本就正常，此声明在 PC 无副作用。 */
input[type="time"].finput,
input[type="date"].finput {
    color-scheme: light;
    color: #333;
    background: #fff;
    -webkit-appearance: control;
    appearance: auto;
}

/* 老师账号编辑页（adm.teacherAccount）布局 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 12px; padding: 8px 4px 4px; }
.fg-row { display: flex; align-items: center; }
.fg-row > label { flex: 0 0 120px; color: #5b6572; font-size: 12px; }
.fg-row > .finput { flex: 1; min-width: 0; }
.fg-full { grid-column: 1 / -1; }
.fg-full > .finput { width: 100%; }
.fg-row textarea.finput { height: auto; padding: 6px 8px; line-height: 1.5; }
.form-foot { margin: 12px 4px 4px; }
.avatar-prev { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; margin-left: 10px; vertical-align: middle; }
.tab-pane { padding-top: 6px; }
.wk-thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; vertical-align: middle; margin-right: 6px; }
.form-col .form-row { display: flex; align-items: center; margin-bottom: 10px; }
.form-col .form-row > label { flex: 0 0 84px; color: #5b6572; font-size: 12px; }
.form-col .form-row > .finput { flex: 1; min-width: 0; width: auto; }

/* B1 学员详情弹窗：只读字段展示 */
#modalBody .detail-grid { padding: 4px 0; }
#modalBody .fstatic { flex: 1; min-width: 0; color: #333; word-break: break-all; }

.form-msg { margin-left: calc(var(--form-label-w, 76px) + 10px); font-size: 12px; }
.form-msg.err { color: #dd4b39; }
.form-msg.ok { color: #00a65a; }

/* ============================ 提示 ============================ */
.toast {
    position: fixed;
    left: 50%;
    /* 顶部区域、压在顶栏下方：成功提示不遮挡导航，也不落到页面底部 */
    top: 56px;
    transform: translateX(-50%) translateY(-20px);
    background: #00a65a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all .22s;
    z-index: 999;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* 失败不再用黑色/红色 toast，改为弹窗（见 app.js fail()） */

/* ============================ 工作台 ============================ */
.wb-notice {
    background: #fff;
    border: 1px solid #e7ebef;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5b6572;
}

.wb-notice .n-ico { color: #f39c12; }
.wb-notice .n-link { color: #3c8dbc; }
/* 2026-11-15 三次调整：原 .n-right（统计基准日）已删除；
   「修改密码 / 刷新缓存」不再放在公告栏右侧，统一移入右上角账号下拉（PC / H5 共用），
   样式走 .user-menu-list，故此处不再需要 .n-actions 及窄屏换行规则。 */


.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* 2026-11-17 问题8：四卡降饱和，统一浅色底 + 左侧 3px 语义色条点缀，不再四色渐变抢焦。 */
.scard {
    position: relative; height: 88px; border-radius: 3px;
    color: #3d4650; background: #f7f9fb; border: 1px solid #e7ebef;
    box-shadow: inset 3px 0 0 var(--sc-accent, #3c8dbc);
    overflow: hidden;
}
.scard.blue   { --sc-accent: #3c8dbc; }
.scard.green  { --sc-accent: #00a65a; }
.scard.purple { --sc-accent: #8e6bb5; }
.scard.orange { --sc-accent: #e09a2e; }

.sc-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px 0; }
.sc-ico { color: var(--sc-accent, #3c8dbc); line-height: 1; display: inline-flex; }
.sc-num { font-size: 26px; font-weight: 700; line-height: 1; color: #3d4650; }
.sc-label { padding: 2px 14px 0; font-size: 12px; color: #6b7480; }

.sc-more {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: #eef2f6;
    color: #5b6572;
    padding: 3px 12px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .12s ease;
}
/* 2026-11-17 问题12：查看详细 hover/focus 反馈 */
.sc-more:hover { background: #dfe7ef; color: #2c7fb0; }
.sc-more:focus-visible { outline: 2px solid #3c8dbc; outline-offset: -2px; }

.wb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wb-row.wide { grid-template-columns: 2fr 1fr; }
.wb-row.three { grid-template-columns: repeat(3, 1fr); }

.panel { background: #fff; border: 1px solid #e7ebef; padding: 0 10px 8px; min-width: 0; }

.p-title {
    font-size: 12.5px;
    color: #4a545f;
    background: #f5f7f9;
    margin: 0 -10px 8px;
    padding: 7px 10px;
    border-bottom: 1px solid #eef1f4;
    font-weight: 600;
}

.p-sub { color: #8a939e; font-size: 11px; margin-bottom: 4px; }
.chart { width: 100%; }

.mini-table { max-height: 232px; overflow-y: auto; }
.mini-table table { width: 100%; border-collapse: collapse; }
.mini-table th {
    background: #f7f8fa;
    color: #6b7480;
    font-weight: 600;
    font-size: 11.5px;
    text-align: left;
    padding: 6px 8px;
    position: sticky;
    top: 0;
}
.mini-table td { padding: 6px 8px; border-bottom: 1px solid #f4f6f8; color: #3d4650; font-size: 12px; }
.mini-table td.red { color: #dd4b39; }
/* 2026-11-17 问题6：快结业负数课时「已超上」角标，复用 .red 语义色 */
.mini-table td .wb-over { display: inline-block; margin-left: 4px; padding: 0 4px; font-size: 10px; line-height: 15px; color: #dd4b39; border: 1px solid #f0c4bf; border-radius: 2px; background: #fff5f4; white-space: nowrap; }
.mini-table td.none { text-align: center; color: #b7bdc7; padding: 16px 0; }

/* ============================ 登录页 ============================ */
.login-body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: #cdeef3;
}

.sky {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #c3e9f1 0%, #d5f0f5 38%, #e6f7f8 62%, #d9f3f3 100%);
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, .82);
    border-radius: 50%;
    filter: blur(1px);
}

.c1 { width: 210px; height: 62px; left: 3%; top: 8%; box-shadow: 40px 12px 0 -6px rgba(255,255,255,.8), 92px -4px 0 -14px rgba(255,255,255,.7); }
.c2 { width: 300px; height: 46px; right: -3%; top: 25%; box-shadow: -60px 8px 0 -8px rgba(255,255,255,.75); }
.c3 { width: 150px; height: 40px; left: 42%; top: 16%; opacity: .7; }

.mount {
    position: absolute;
    bottom: 0;
    height: 34%;
}

.m-left {
    left: -8%;
    width: 72%;
    background: linear-gradient(180deg, #4d8fa6 0%, #356f85 55%, #2a6075 100%);
    border-radius: 55% 55% 0 0 / 88% 88% 0 0;
}

.m-right {
    right: -10%;
    width: 78%;
    height: 30%;
    background: linear-gradient(180deg, #46879e 0%, #2f6a80 55%, #245a6d 100%);
    border-radius: 58% 58% 0 0 / 92% 92% 0 0;
}

.flowers {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 6%;
    z-index: 3;
    background:
        radial-gradient(circle at 8% 40%, #f6e02a 0 5px, transparent 6px),
        radial-gradient(circle at 22% 62%, #ffe83a 0 4px, transparent 5px),
        radial-gradient(circle at 36% 30%, #f6e02a 0 5px, transparent 6px),
        radial-gradient(circle at 52% 58%, #ffe83a 0 4px, transparent 5px),
        radial-gradient(circle at 66% 36%, #f6e02a 0 5px, transparent 6px),
        radial-gradient(circle at 80% 60%, #ffe83a 0 4px, transparent 5px),
        radial-gradient(circle at 92% 34%, #f6e02a 0 5px, transparent 6px),
        linear-gradient(180deg, rgba(246, 224, 42, .9), rgba(226, 206, 30, .95));
}

.login-card {
    position: relative;
    z-index: 5;
    width: 366px;
    margin: 110px auto 0;
    background: #fff;
    border-radius: 3px;
    padding: 24px 26px 28px;
    box-shadow: 0 8px 30px rgba(20, 60, 80, .12);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    color: #21a9a0;
    font-size: 13px;
    letter-spacing: 1px;
}

.logo-mark {
    width: 20px; height: 20px;
    border-radius: 3px;
    background: linear-gradient(135deg, #34c0b6, #1a8f96);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-field {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e5e8ec;
    padding: 9px 2px;
}

.login-field .fi { font-size: 12px; opacity: .45; }
.login-field input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 12px;
    font-family: inherit;
    color: #333;
    background: transparent;
}

.login-btn {
    width: 100%;
    height: 32px;
    margin-top: 20px;
    background: #4a90e2;
    color: #fff;
    border: 0;
    border-radius: 2px;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: 4px;
    cursor: pointer;
}

.login-btn:hover { background: #3f83d3; }
.login-err { color: #dd4b39; font-size: 12px; height: 16px; margin-top: 6px; }

/* ============================ 错误页 ============================ */
.err-box { background: #fff; border: 1px solid #e7ebef; padding: 60px 20px; text-align: center; }
.err-code { font-size: 40px; color: #3c8dbc; font-weight: 700; }
.err-msg { color: #6b7480; margin: 8px 0 18px; }

/* ============================ 顶部页签（原型 X|Y） ============================ */
.tab-bar { display: flex; gap: 0; border-bottom: 1px solid #dfe4e9; margin: 0 0 14px; }
.tab {
    display: inline-block; padding: 8px 18px; margin-bottom: -1px;
    border: 1px solid transparent; border-bottom: none; color: #5a6470;
    font-size: 13px; text-decoration: none;
}
.tab:hover { color: #3c8dbc; }
.tab.active {
    background: #fff; border-color: #dfe4e9; border-top: 2px solid #3c8dbc;
    color: #3c8dbc; font-weight: 600;
}

/* 线索回访 15 天日历条：现行实现在文件末尾 .calbar/.calcell 一脉（visit.html 用它们）。
   本处只保留被 visit.html:29/39 直接使用的 .cal-arrow，其余 .cal-bar/.cal-strip/.cal-day/
   .cal-top/.cal-num/.cal-month/.cal-dow/.cal-badge 已无模板引用，且 .cal-day 会与下方
   老师考勤月历的 .cal-day（.cal-cell 内日号）同名打架，故整块删除（2026-11-15）。 */
.cal-arrow {
    flex: 0 0 30px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #dfe4e9; border-radius: 4px; background: #f7f9fb;
    color: #5a6470; font-size: 20px; text-decoration: none; user-select: none;
}
.cal-arrow:hover { color: #3c8dbc; border-color: #b8cfe4; }

/* ============================ 课堂作品卡片墙 ============================ */
.work-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 4px 0 14px; }
.work-card { border: 1px solid #e3e8ed; border-radius: 4px; background: #fff; overflow: hidden; }
.work-card:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .09); }
.wc-img { position: relative; height: 150px; background: #f5f7f9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wc-img img { max-width: 100%; max-height: 100%; transition: transform .2s; }
.wc-placeholder { color: #9aa4af; font-size: 12px; }
.wc-excellent { position: absolute; top: 6px; right: 6px; background: #dd4b39; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 2px; }
.wc-body { padding: 8px 10px; }
.wc-title { font-size: 13px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-meta { display: flex; justify-content: space-between; color: #6b7480; font-size: 12px; margin-top: 5px; }
.wc-meta span:last-child { color: #f39c12; }
.wc-sub, .wc-date { color: #8a939e; font-size: 11px; margin-top: 3px; }
.wc-ops { border-top: 1px solid #eef1f4; padding: 6px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wc-ops a { font-size: 12px; }

/* ============================ 学员信息详情页 ============================ */
.detail-head { display: flex; gap: 18px; align-items: center; padding: 6px 0 16px; }
.detail-avatar { width: 74px; height: 74px; border-radius: 50%; background: #eef3f8; display: flex; align-items: center; justify-content: center; font-size: 36px; flex: none; }
.detail-who { flex: 1; min-width: 0; }
.detail-name { font-size: 17px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 10px; }
.detail-no { font-size: 12px; color: #8a939e; font-weight: 400; }
.detail-tags, .detail-wallet { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #6b7480; margin-top: 8px; }
.detail-wallet b { color: #3c8dbc; }
.detail-foot { margin-top: 14px; display: flex; gap: 8px; }

/* ======================= 统计图表页（page/charts） ======================= */
/* 容器类名与工作台的 .stat-cards（4 等分大卡）区分开：同名会让工作台卡片退化成
   flex 内容宽，右侧留一大片空白。图表页汇总卡用 .sum-cards。 */
.sum-cards { display: flex; gap: 12px; flex-wrap: wrap; padding: 12px 0 4px; }
.stat-card {
    flex: 1 1 150px; min-width: 150px; background: #fff; border: 1px solid #e7ebef;
    border-radius: 3px; padding: 10px 14px;
}
.stat-card .sc-label { font-size: 12px; color: #888; }
.stat-card .sc-value { font-size: 20px; font-weight: 600; margin-top: 4px; }
.chart-box { border: 1px solid #e7ebef; border-radius: 3px; margin: 12px 0; padding: 8px 10px; background: #fff; }
.head-export { margin-left: 10px; color: #3c8dbc; }

/* ======================= 基本配置（page/config，三页签表单） ======================= */
.cfg-card { padding: 12px 16px 4px; }
/* 口径说明条置顶且通栏：.cfg-card 自带 16px 内边距，用负 margin 让 .tip 贴齐卡片左右边 */
.cfg-card > .tip { margin: -12px -16px 10px; }
.cfg-form { max-width: 760px; }
.cfg-sec { border-top: 1px solid #eef1f4; padding: 10px 0 4px; }
.cfg-sec:first-of-type { border-top: none; }
.cfg-sec-t { font-size: 13px; font-weight: 600; color: #33404d; margin-bottom: 10px; }
.cfg-sec-t::before {
    content: ''; display: inline-block; width: 3px; height: 12px;
    background: #3c8dbc; margin-right: 7px; vertical-align: -1px;
}
/* 表单标签列：与弹窗同一套变量，左对齐，左右留白相等。
   120px（V30）：容纳最长的「缺勤自动判定」6 字 label，配合 V30 label 精简全部完整显示 */
.cfg-sec-body { --form-label-w: 120px; }
.cfg-sec-body .form-row { margin-bottom: 10px; align-items: flex-start; }
.cfg-sec-body .form-row > label { padding-top: 7px; }
.cfg-sec-body .finput { width: 320px; }
.cfg-textarea { height: auto; padding: 6px 8px; line-height: 1.6; resize: vertical; }
.cfg-hint { font-size: 12px; color: #9aa4af; padding-top: 8px; }
.cfg-preview { display: inline-flex; align-items: center; height: 28px; }
.cfg-preview img { max-height: 28px; max-width: 96px; border: 1px solid #e3e8ed; background: #fafbfc; }
.cfg-preview em { font-style: normal; color: #b6bec7; font-size: 12px; display: none; }
.cfg-foot { display: flex; align-items: center; gap: 8px; padding: 12px 0 12px; border-top: 1px solid #eef1f4; margin-top: 6px; }
.cfg-msg { font-size: 12px; color: #8a939e; }
.cfg-msg.ok { color: #00a65a; }
.cfg-msg.err { color: #dd4b39; }
.cfg-table { margin-bottom: 10px; }
.btn-sm { height: 24px; padding: 0 8px; font-size: 12px; }

/* ======================= 排班看板（page/kanban，周视图） ======================= */
.kb-sum { margin-left: auto; color: #6b7480; font-size: 12px; }
.kb-sum b { color: #3c8dbc; }
.kanban { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 4px 0 14px; }
.kb-col { background: #f7f9fb; border: 1px solid #e9edf1; border-radius: 3px; min-height: 220px; }
.kb-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 8px; font-size: 12px; color: #33404d; font-weight: 600;
    background: #eef3f7; border-bottom: 1px solid #e3e9ee;
}
.kb-head em { font-style: normal; font-weight: 400; color: #8a939e; font-size: 11px; }
.kb-body { padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.kb-card {
    background: #fff; border: 1px solid #e3e8ed; border-left: 3px solid #3c8dbc;
    border-radius: 3px; padding: 6px 8px; font-size: 12px;
}
.kb-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.kb-card.kb-off { border-left-color: #f39c12; background: #fffdf7; }
.kb-card.kb-done { border-left-color: #b6bec7; background: #fafbfc; }
.kb-time { color: #3c8dbc; font-weight: 600; }
.kb-name { color: #2f3a45; font-weight: 600; margin-top: 2px; }
.kb-clazz { color: #8a939e; font-size: 11px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: #6b7480; font-size: 11px; margin-top: 4px; }
.kb-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.kb-foot a { color: #3c8dbc; }
.kb-empty { color: #b6bec7; font-size: 12px; text-align: center; padding: 16px 0; }

/* ======================= 老师考勤（page/calendar，月度日历） ======================= */
.cal-list { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 14px; }
.cal-teacher { border: 1px solid #e7ebef; border-radius: 3px; background: #fff; }
.cal-head {
    display: flex; align-items: center; gap: 16px; padding: 8px 12px;
    background: #eef3f7; border-bottom: 1px solid #e3e9ee; font-size: 12px; color: #5b6572;
}
.cal-name { font-size: 13px; font-weight: 600; color: #2f3a45; }
.cal-stat b { color: #3c8dbc; }
.cal-stat.late b { color: #f39c12; }
.cal-stat.leave b { color: #dd4b39; }
.cal-stat.plan b { color: #6b7480; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #eef1f4; padding: 1px; }
.cal-week { background: #f7f9fb; text-align: center; font-size: 11px; color: #8a939e; padding: 4px 0; }
.cal-week.we { color: #c0a06a; }
.cal-pad { background: #fff; min-height: 42px; }
.cal-cell {
    background: #fff; min-height: 42px; padding: 3px 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
/* 月历格内日号：全站唯一的 .cal-day 定义（此前的同名"日历条日期卡"已删除，见文件上方注释）。
   限定在 .cal-cell 内，避免将来别处再出现同名类时又被抢走样式。 */
.cal-cell .cal-day { font-size: 11px; color: #6b7480; line-height: 1.2; }
.cal-tag { font-size: 10px; color: #9aa4af; }
.cal-cell.is-present { background: #f2fbf6; }
.cal-cell.is-present .cal-tag { color: #00a65a; }
.cal-cell.is-late { background: #fffaf0; }
.cal-cell.is-late .cal-tag { color: #f39c12; }
.cal-cell.is-leave { background: #fdf3f2; }
.cal-cell.is-leave .cal-tag { color: #dd4b39; }
.cal-cell.is-rest, .cal-cell.is-none { background: #fafbfc; }
.cal-cell.is-rest .cal-tag, .cal-cell.is-none .cal-tag { color: #b6bec7; }

/* ======================= 老师考勤矩阵（page/calendar，源站 TeacherSalary） ======================= */
.att-tip {
    font-size: 12px; color: #3c8dbc; cursor: help; margin-left: 6px;
    border-bottom: 1px dashed #3c8dbc; white-space: nowrap;
}
.t-attend-wrap { overflow-x: auto; padding: 6px 0 12px; }
.t-attend-matrix {
    border-collapse: collapse; background: #fff; min-width: 100%;
    font-size: 12px; color: #2f3a45;
}
.t-attend-matrix th, .t-attend-matrix td {
    border: 1px solid #e3e9ee; padding: 3px 5px; text-align: center; white-space: nowrap;
}
.t-attend-matrix thead th {
    background: #eef3f7; font-weight: 600; color: #5b6572; position: sticky; top: 0; z-index: 1;
}
.t-attend-matrix thead th.we { color: #c0a06a; }
.t-attend-matrix .corner { min-width: 64px; }
.t-attend-matrix td.metric {
    background: #f7f9fb; font-weight: 600; color: #5b6572; min-width: 62px; text-align: left; padding-left: 8px;
}
.t-attend-matrix td.grp-cell {
    background: #fbfcfd; text-align: left; vertical-align: top; min-width: 120px; padding: 6px 8px;
}
.t-attend-matrix td.grp-cell strong { display: block; font-size: 13px; color: #2f3a45; margin-bottom: 4px; }
.t-attend-matrix .grp-hint {
    display: block; font-style: normal; font-size: 11px; color: #dd4b39; margin-bottom: 4px;
}
.t-attend-matrix .grp-summary { display: flex; flex-direction: column; gap: 2px; }
.t-attend-matrix .grp-summary span { font-size: 11px; color: #6b7480; }
.t-attend-matrix .grp-summary b { color: #2f3a45; font-weight: 600; margin-left: 2px; }
.t-attend-matrix .grp-summary .axis-cls b { color: #3c8dbc; }
.t-attend-matrix .grp-summary .axis-tea b { color: #00a65a; }
.t-attend-matrix td.cell { min-width: 58px; }
.t-attend-matrix td.cell.empty { color: #b6bec7; background: #fafbfc; }
.t-attend-matrix td.cell.has { color: #2f3a45; }
.t-attend-matrix td.cell a { color: #3c8dbc; text-decoration: underline; cursor: pointer; }
.t-attend-matrix td.cell a:hover { color: #2a6f9b; }

/* 口径对照 / 查看学生 弹层 */
.att-modal { position: fixed; inset: 0; z-index: 2000; }
.att-mask { position: absolute; inset: 0; background: rgba(31, 41, 51, .45); }
.att-box {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 760px; max-width: calc(100vw - 24px); max-height: 84vh; overflow: auto;
    background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}
.att-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid #eef1f4; font-size: 14px; font-weight: 600; color: #33404d;
}
.att-head a { color: #8a939e; font-size: 18px; text-decoration: none; line-height: 1; }
.att-head a:hover { color: #dd4b39; }
.att-body { padding: 12px 14px; }
.t-compare, .t-drill { border-collapse: collapse; width: 100%; font-size: 12px; color: #2f3a45; }
.t-compare th, .t-compare td, .t-drill th, .t-drill td { border: 1px solid #e3e9ee; padding: 6px 8px; text-align: center; }
.t-compare thead th, .t-drill thead th { background: #eef3f7; color: #5b6572; }
.t-compare tbody td:first-child { font-weight: 600; }
.cmp-note { font-size: 12px; color: #8a939e; margin-top: 10px; line-height: 1.6; }

/* ======================= 经营中心（page/biz） ======================= */
.biz-card { padding: 12px 16px 8px; }
/* 2026-12-02（用户「报表深色块随皮肤切换」反馈）：原卡片写死深蓝渐变 + 白字，
   浅色皮肤下与浅蓝侧栏突兀；底色/字色/进度槽/进度条改走双皮肤变量。
   深色渐变起点由 #3c8dbc 加深为 #2a6f9b（原起点白字仅 3.67:1，不达正文 4.5:1）。 */
.biz-goal {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--report-card-bg); color: var(--report-card-fg);
    border-radius: 3px; padding: 14px 18px; margin-bottom: 12px;
}
.bg-year { font-size: 12px; opacity: .9; }
.bg-nums { margin-top: 6px; font-size: 12px; opacity: .95; }
.bg-num b { font-size: 24px; font-weight: 600; letter-spacing: .5px; }
/* 2026-12-02：原 opacity:.6 的 "/" 分隔符在浅底 2.72:1、深底 3.04:1，
   均低于正文 4.5:1；改为继承卡片前景色全不透明，纯装饰语义不变。 */
.bg-sep { margin: 0 8px; opacity: 1; }
.bg-bar { height: 6px; background: var(--report-card-track); border-radius: 3px; margin-top: 10px; width: 420px; overflow: hidden; }
.bg-bar i { display: block; height: 100%; background: var(--report-card-bar); border-radius: 3px; }
.bg-rate { font-size: 30px; font-weight: 700; line-height: 1; }
.bg-rate em { font-style: normal; font-size: 14px; margin-left: 2px; }
.bg-rate-t { font-size: 12px; opacity: .9; margin-top: 6px; text-align: center; }

.biz-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.bc { background: #fff; border: 1px solid #e7ebef; border-radius: 3px; padding: 10px 14px; }
.bc-t { font-size: 12px; color: #8a939e; }
.bc-v { font-size: 20px; font-weight: 600; color: #2f3a45; margin: 4px 0 2px; }
.bc-s { font-size: 12px; color: #9aa4af; }

.biz-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; margin-bottom: 12px; }
.biz-panel { background: #fff; border: 1px solid #e7ebef; border-radius: 3px; padding: 10px 14px; }
.bp-t { font-size: 13px; font-weight: 600; color: #33404d; margin-bottom: 8px; }
.bp-kv { display: flex; justify-content: space-between; font-size: 12px; color: #6b7480; padding: 4px 0; border-bottom: 1px dashed #f0f3f6; }
.bp-kv b { color: #2f3a45; }
.bp-kv b.green { color: #00a65a; }
.bp-kv b.orange { color: #f39c12; }
.bp-kv b.gray { color: #8a939e; }
.bp-empty { font-size: 12px; color: #9aa4af; }
.bp-warn { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed #f0f3f6; }
.bp-warn span { color: #2f3a45; }
.bp-warn em { font-style: normal; color: #9aa4af; }
.bp-warn b { margin-left: auto; color: #dd4b39; }
.cb-t { font-size: 13px; font-weight: 600; color: #33404d; padding: 2px 0 4px; }

.msg-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 12px; }
.msg-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eef1f4; border-radius: 3px; padding: 9px 12px; }
.msg-body { flex: 1; min-width: 0; }
.msg-title { font-size: 13px; color: #2f3a45; }
.msg-detail { font-size: 12px; color: #8a939e; margin-top: 2px; }
.msg-at { font-size: 12px; color: #a8b0b9; }

/* ======================= 课堂作品卡片墙（page/cards） ======================= */
/* 对齐原站：一行五张（20%），图片区 5px 浅灰边框，信息区边框包住 */
.work-wall {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 14px;
    padding: 14px 12px 6px;
}
@media (max-width: 1360px) { .work-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .work-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.work-card { min-width: 0; }
.wc-pic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 188px;
    background: #f7f9fb;
    border: 5px solid #f3f3f1;
    overflow: hidden;
}
.wc-pic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .2s;
}
.wc-pic:hover img { transform: scale(1.02); }
.wc-noimg { color: #b6bec7; font-size: 12px; }
.wc-badge {
    position: absolute;
    left: 0;
    top: 0;
    background: #dd4b39;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    display: none;
}
.wc-badge.is-ex { display: inline-block; }

.wc-info {
    border: 1px solid #bbb;
    border-top: 0;
    padding: 6px 8px 7px;
    font-size: 12px;
    color: #4a5561;
}
.wc-title {
    color: #2f3a45;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.wc-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 20px;
    color: #7b848f;
}
.wc-line > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wc-star { color: #e74c3c; font-weight: 400; letter-spacing: -1px; }
.wc-date { color: #9aa4af; font-size: 11px; }
.wc-count { color: #9aa4af; font-size: 11px; }
.wc-cmt { color: #3c8dbc; font-size: 11px; }
.wc-cmt.done { color: #9aa4af; }

.wc-ops {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px dashed #eef1f4;
    margin-top: 4px;
    padding-top: 5px;
}
.wc-ops a { font-size: 12px; }
.wc-ops a.op-ex { color: #ca4300; }
.wc-ops a.op-rot { color: #0033ff; }
.wc-ops a.op-del { color: #872c95; }
.wc-ops a.op-del.danger { color: #872c95; }

/* 2026-11-17（问题10-1）：作品卡勾选框 PC 默认隐藏，hover / 焦点 / 已勾选时常显，
   口径同通用列表 .grid td.ck input（见本文件 1940-1953 行）。H5（≤900px）不改，保持常显。
   .wc-sel 是 absolute 定位，隐藏它不会挤动卡片布局。 */
@media (min-width: 901px) {
    .wc-sel { visibility: hidden; }
    .work-card:hover .wc-sel,
    .work-card:focus-within .wc-sel,
    .wc-sel:has(input:checked) { visibility: visible; }
    /* 兜底：浏览器不支持 :has 时，已勾选 / 半选的 input 本身强制可见，避免勾了看不见 */
    .wc-sel input:checked,
    .wc-sel input:indeterminate { visibility: visible; }
}

/* 未传作品提醒页签的提示条（替代与课堂作品重复的整条工具栏） */
.wc-unsigned-tip { padding: 10px 12px; color: #8a6d3b; background: #fcf8e3;
                   border-bottom: 1px solid #f5e8c8; font-size: 12px; line-height: 1.6; }

.zoom-box { text-align: center; }
.zoom-box img { max-width: 100%; max-height: 62vh; }

/* 弹窗内失败提示条：不顶掉用户已填内容 */
.dlg-err {
    background: #fdf3f2;
    border: 1px solid #f5c6c0;
    color: #c0392b;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 2px;
    margin-bottom: 10px;
}
.dlg-msg { font-size: 13px; color: #4a5561; line-height: 1.7; }

/* 活动二维码弹窗 */
.qr-box { text-align: center; }
.qr-box img { width: 180px; height: 180px; display: block; margin: 4px auto 8px; }
.qr-box p { color: #8a939e; font-size: 12px; }
.qr-hint { text-align: center; color: #8a939e; font-size: 12px; margin-top: 6px; }

/* ======================= 学员详情页（page/detail） ======================= */
.detail-acts { margin-left: auto; display: flex; gap: 8px; align-items: flex-start; }
.detail-tabs { padding: 0 12px; border-bottom: 1px solid #e7ebef; }
.detail-sum {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px;
}
.ds-card { border: 1px solid #e7ebef; border-radius: 3px; padding: 10px 12px; background: #fafbfc; }
.ds-t { font-size: 12px; color: #8a939e; }
.ds-v { font-size: 20px; font-weight: 600; color: #2f3a45; margin-top: 4px; }
.ds-v.warn { color: #dd4b39; }
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: #f5faff; }

/* ======================= 角色权限（page/role） ======================= */
.fitem-static { color: #8a939e; font-size: 12px; }
.perm-tip {
    margin: 4px 16px 10px;
    padding: 8px 12px;
    background: #f6f9fc;
    border: 1px solid #e3ecf5;
    color: #4a5561;
    font-size: 12px;
    line-height: 1.8;
    border-radius: 3px;
}
.perm-tip b { color: #2f3a45; }
.perm-tree { padding: 0 16px 6px; }
.perm-module { border: 1px solid #e7ebef; border-radius: 3px; margin-bottom: 10px; }
.perm-mod-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 12px;
    background: #f7f9fb;
    border-bottom: 1px solid #e7ebef;
    font-weight: 600;
    color: #2f3a45;
    cursor: default;
}
.perm-mod-head input { margin: 0; }
.perm-mod-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.perm-mod-hint { font-weight: normal; font-size: 11px; color: #9aa5b1; }
/* b29：菜单独占一行，展开块才有整行宽度容纳「页签横排 + 按钮竖排」的层级 */
.perm-groups { display: block; padding: 8px 12px 12px; }
.perm-group { margin-bottom: 8px; }
.perm-group-name {
    font-size: 12px;
    color: #8a939e;
    padding: 6px 0 4px;
    border-bottom: 1px dashed #eef1f4;
}
.perm-item {
    display: block;
    font-weight: normal;
    font-size: 13px;
    color: #4a5561;
    margin: 0 0 2px;
    padding: 2px 0;
    cursor: default;
}
.perm-item input { margin: 0; }
.perm-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid #eef1f4;
}

/* ======================= 课堂作品上传弹窗（page/cards） ======================= */
.wu-pair { display: flex; align-items: center; gap: 6px; }
.wu-pair .finput { width: 72px; text-align: center; }
.wu-sep { color: #8a939e; }
.wu-wide { grid-column: 1 / -1; }

/* ==================== 作品点评弹窗（page/cards，对齐原站点评页） ==================== */
.cbox-form { border: 1px solid #e7ebef; border-radius: 3px; overflow: hidden; }
.cbox-row { display: flex; align-items: center; border-bottom: 1px solid #eef1f4; }
.cbox-row:last-child { border-bottom: 0; }
.cbox-row > label {
    flex: 0 0 132px;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f7f8fa;
    border-right: 1px solid #eef1f4;
    color: #4a5561;
    font-weight: 600;
}
.cbox-row.top { align-items: flex-start; }
.cbox-row.top > label { align-self: stretch; }
.cbox-val { flex: 1; min-width: 0; padding: 9px 12px; display: flex; gap: 8px; align-items: center; }
.cbox-val .finput { width: 100%; }
.cbox-val select.finput { width: auto; flex: 1; min-width: 0; }
.cbox-val textarea.finput { width: 100%; resize: vertical; }
.cbox-val .req { color: #dd4b39; font-style: normal; }

/* 卡片墙局部重绘时压暗，避免闪白 */
.work-wall.is-loading { opacity: .45; transition: opacity .12s; pointer-events: none; }

/* =====================================================================
   b26 源站风格组件（学员线索 / 线索回访，对齐 adm.yfxart.com 版式）
   ===================================================================== */

/* ---- 卡片与工具栏页签 ---- */
.src-card {
    background: #fff;
    border: 1px solid #dfe4e9;
    border-radius: 4px;
    overflow: visible;
}

.src-tabs {
    padding: 0 12px;
    height: 36px;
    line-height: 36px;
    border-bottom: 1px solid #e6ecf0;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
}

.src-tablinks a {
    color: #333;
    font-weight: 600;
    padding: 0 4px;
}

.src-tablinks a.on { color: #3c8dbc; }
.src-tablinks a:not(.on) { color: #000; font-weight: 400; }
.src-tablinks .sep { color: #ccc; margin: 0 6px; }

.src-tabbtns { line-height: 36px; }

/* ---- 按钮族（源站 buttons.css 配色） ---- */
.src-btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    margin-left: 6px;
    background: #5bc0de;
    text-decoration: none;
}
.src-btn:hover { opacity: .9; text-decoration: none; }
.src-btn i { margin-right: 2px; }
.src-btn.excel  { background: #1D9D74; }
.src-btn.upload { background: #8e71d1; }
.src-btn.search { background: #3c8dbc; }
.src-btn.primary{ background: #1B9AF7; }
.src-btn.purple { background: #c280d0; }
.src-btn.red    { background: #e47272; }
.src-btn.foot-left { margin-left: 10px; }

/* ---- 内联筛选条（源站 kernel_* 控件） ---- */
.src-filter {
    padding: 6px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f3f5;
    line-height: 26px;
}
.src-filter .src-ipt {
    float: left;
    height: 26px;
    line-height: 26px;
    margin: 2px 4px 2px 0;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 0 4px;
    font-size: 12px;
    color: #333;
}
.src-filter select.src-ipt { padding: 0 2px; }
.src-ipt.w60  { width: 60px; }
.src-ipt.w70  { width: 70px; }
.src-ipt.w80  { width: 80px; }
.src-ipt.w110 { width: 110px; }
.src-ipt.w120 { width: 120px; }
.src-filter .src-lbl { float: left; margin-left: 4px; color: #555; }
.src-filter .fsep { float: left; margin: 0 4px; font-style: normal; color: #666; }
/* 2026-11-19（用户问题1）：搜索/重置 与 导出/导入 分两组、均靠右、组间 20px+竖线分隔。
   条件控件仍 float:left 左对齐；按钮块 float:right 不受条件宽度影响。 */
.src-btn-groups { float: right; display: flex; align-items: center; }
.src-btn-primary { display: inline-flex; align-items: center; gap: 8px; }
.src-btn-actions { display: inline-flex; align-items: center; gap: 6px;
    margin-left: 20px; padding-left: 20px; border-left: 1px solid #e3e8ef; }
.src-btn-actions:empty { display: none; }
.src-filter .src-btn.search { height: 26px; margin-top: 2px; }
.src-filter .src-reset { margin: 4px 0 0 8px; color: #666; }
.clrb { clear: both; }

/* ---- 网格（源站 lef_tr_tit / list_tr_bg2） ---- */
.src-gridbox {
    border: 1px solid #ddd;
    margin: 5px 10px 0;
    overflow-x: auto;
    background: #fff;
    position: relative;
}
table.src-grid { margin: 0; width: 100%; min-width: 1140px; }
table.src-grid thead th {
    height: 40px;
    background: #fff;
    font-weight: 700;
    color: #333;
    border-right: 1px solid #f4f4f4;
    border-bottom: 1px solid #ddd;
    padding-left: 6px;
    white-space: nowrap;
}
table.src-grid tbody tr { background: #f9f9f9; }
table.src-grid tbody tr:hover { background: #f0f4f8; }
table.src-grid tbody td {
    height: 40px;
    border-right: 1px solid #f4f4f4;
    border-bottom: 1px solid #f4f4f4;
    padding-left: 6px;
    color: #333;
    /* 超宽内容裁切并出省略号，与 table.grid 的 .cell 表现一致；完整值靠单元格 title 兜底 */
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 列宽用 width 而非 min-width：table-layout:fixed 下只有 width 会被采纳，
   否则 14 列会被均分成 ~81px（「录入时间」「备注」变半截汉字）。 */
table.src-grid td.ck, table.src-grid th.ck { width: 40px; text-align: center; }
table.src-grid .w110 { width: 110px; } table.src-grid .w130 { width: 130px; }
table.src-grid .w150 { width: 150px; } table.src-grid .w70  { width: 70px; }
table.src-grid .w60  { width: 60px; }  table.src-grid .w90  { width: 90px; }
table.src-grid .w200 { width: 200px; }
table.src-grid .nw { white-space: nowrap; }
.rowlnk { color: #333; cursor: pointer; }
.rowlnk:hover { color: #3c8dbc; text-decoration: underline; }

/* 表头排序图标（源站 fa-sort） */
table.src-grid th.sortable { cursor: pointer; }
table.src-grid th .sort-ico { display: inline-block; width: 8px; height: 12px; margin-left: 4px; position: relative; }
table.src-grid th .sort-ico::after { content: "⇅"; color: #bbb; font-size: 10px; }

/* 行内动作组合（+ 新增 | N） */
.opadd { color: #3c8dbc; }
.opcnt { color: #3c8dbc; }
.opsep { color: #ccc; margin: 0 4px; }
.opbm  { color: #3c8dbc; }

/* ---- 意向度星标（源站 ydx_*.png） ---- */
.yxd i { font-style: normal; color: #d8dde2; margin-right: 1px; font-size: 13px; }
.yxd i.on { color: #f39c12; }

/* ---- 空态哭脸（源站 fa-frown-o）：只补内边距，字号/颜色继承全站 .empty ---- */
.src-gridbox .empty { padding: 46px 0; }
.src-gridbox .frown {
    width: 44px; height: 44px; margin: 0 auto 8px;
    border: 3px solid #ddd; border-radius: 50%; position: relative;
}
.src-gridbox .frown::before, .src-gridbox .frown::after {
    content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%;
    background: #ddd; top: 13px;
}
.src-gridbox .frown::before { left: 10px; }
.src-gridbox .frown::after { right: 10px; }
.src-gridbox .frown i {
    position: absolute; left: 12px; right: 12px; bottom: 8px; height: 12px;
    border: 3px solid #ddd; border-top: none; border-radius: 0 0 12px 12px;
}

/* ---- 底部按钮条 + 分页（源站 div_bar） ---- */
.src-foot {
    padding: 8px 12px;
    display: block;
}
.src-foot .foot-left { float: left; }
.src-foot .foot-left .src-btn:first-child { margin-left: 0; }
.src-foot .foot-right { float: right; }
.src-foot .foot-right .pager a { margin: 0 3px; }
.src-foot .foot-right .pg-disabled { color: #aaa; margin: 0 3px; }
.src-foot .foot-right .pg-num { color: #333; margin: 0 4px; }
.src-foot .size-sel { margin: 0 6px; }

/* ---- 日历条（源站 DaiBan：50px 日期格 + 蓝底今天 + 红圆角标） ---- */
.calbar { padding: 8px 10px 4px; background: #fff; border-bottom: 1px solid #f0f3f5; }
.calbar .cal-arrow {
    float: left; width: 22px; height: 46px; line-height: 46px; text-align: center;
    color: #8d8d8d; font-size: 16px; text-decoration: none;
}
.calbar .cal-arrow:hover { background: #f2f6fa; color: #3c8dbc; }
.calstrip { float: left; max-width: calc(100% - 60px); overflow-x: auto; white-space: nowrap; }
.calcell {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 42px;
    margin-right: 5px;
    background: #f6f7fb;
    border-radius: 2px;
    text-align: center;
    vertical-align: top;
    padding-top: 5px;
}
.calcell .num { font-size: 14px; color: #444; display: block; line-height: 16px; }
.calcell .mm { font-size: 8px; color: #8d8d8d; line-height: 11px; display: block; }
.calcell:hover { background: #e8f1f9; }
.calcell.sel { background: #1B9AF7; }
.calcell.sel .num, .calcell.sel .mm { color: #fff; }
.calbadge {
    position: absolute; top: -6px; right: -6px;
    width: 15px; height: 15px; line-height: 15px;
    background: #f00; color: #fff; font-size: 10px; font-style: normal;
    border-radius: 50%; text-align: center;
}

/* ---- 右侧滑出详情面板（源站 rightInfo：详细 | 回访） ---- */
.slide-mask {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.12); z-index: 999;
}
.slide-wrap {
    position: fixed; top: 0; right: -600px; width: 560px; max-width: 92vw;
    height: 100%; background: #fff; z-index: 1000;
    box-shadow: -4px 0 14px rgba(0,0,0,.12);
    transition: right .35s ease;
    display: flex; flex-direction: column;
}
.slide-wrap.open { right: 0; }
.slide-head {
    height: 42px; line-height: 42px; padding: 0 14px;
    border-bottom: 1px solid #eee; background: #fafbfc; flex: 0 0 auto;
}
.slide-title { font-weight: 700; font-size: 14px; }
.slide-close { float: right; font-size: 18px; color: #888; text-decoration: none; }
.slide-nav {
    flex: 0 0 auto; border-bottom: 1px solid #eee; background: #fafbfc; padding-left: 10px;
}
.slide-nav a {
    display: inline-block; padding: 6px 16px; color: #333; text-decoration: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.slide-nav a.on { color: #3c8dbc; border-bottom-color: #3c8dbc; font-weight: 600; }
.slide-body { flex: 1 1 auto; overflow-y: auto; padding: 12px; }
.slide-loading, .slide-empty { color: #999; text-align: center; padding: 30px 0; }
.slide-btns { margin-bottom: 10px; }
.slide-tbl { width: 100%; border-collapse: collapse; }
.slide-tbl td, .slide-tbl th {
    border: 1px solid #e3e8ec; padding: 6px 8px; font-size: 12px; text-align: left;
}
.slide-tbl th { background: #f5f7f9; }
.slide-tbl td.k { background: #f7f9fa; color: #667; width: 110px; }
.slide-tbl .nw { white-space: nowrap; }
.slide-sec { margin: 12px 0 4px; font-weight: 600; color: #555; }
.slide-remark { color: #414141; padding: 8px 10px; background: #fafbfc; border: 1px solid #eef2f4; }

/* ===== 作品卡片勾选（Excel 批量导入导出）+ 工具栏全选 ===== */
.wc-pic { position: relative; }
.wc-sel { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(255,255,255,.85);
          border-radius: 4px; padding: 1px 3px; }
.wc-sel input { width: 15px; height: 15px; cursor: pointer; vertical-align: middle; }
.wc-selall { display: inline-flex; align-items: center; gap: 4px; font-size: 12px;
             color: #5b6b7c; cursor: pointer; user-select: none; }

/* ===== 权限树 b29：模块 → 菜单 → 页签 → 按钮 =====
   页签横排一列一列水平对齐；每个页签下的按钮竖排其下并缩进 2 个空格（2ch）。 */
.perm-toggle { display: inline-flex; align-items: center; justify-content: center;
               width: 16px; height: 16px; margin-right: 4px; padding: 0;
               border: 1.4px solid #8a97a5; border-radius: 50%;
               background: #fff; appearance: none;
               font-size: 11px; line-height: 1; color: #5b6b7c;
               cursor: pointer; user-select: none; flex: 0 0 auto; }
.perm-toggle:hover { border-color: #3c8dbc; color: #3c8dbc; }
.perm-toggle-ph { width: 16px; height: 16px; margin-right: 4px; flex: 0 0 auto; }
.perm-item-head { display: flex; align-items: center; gap: 4px; min-height: 22px; }
.perm-ck-label { display: inline-flex; align-items: center; gap: 4px; margin: 0;
                 font-weight: normal; cursor: pointer; }
.perm-item-head .perm-name { cursor: pointer; }
.perm-ck, .perm-tab, .perm-btn, .perm-mod-ck { accent-color: #3c8dbc; vertical-align: middle; }
.perm-child-count { margin-left: auto; font-size: 11px; color: #a6b0bb; }
.perm-children { display: none; margin: 3px 0 8px 24px; padding: 6px 10px;
                 border-left: 2px solid #dde5ee; background: #fcfdfe; }
.perm-children.open { display: block; }
.perm-cat-line { display: none; }  /* 2026-11-15：不再用文字给页签/按钮分类 */
.perm-tabrow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 18px; margin-bottom: 8px; }
.perm-tab-col { min-width: 118px; max-width: 230px; flex: 0 1 auto; }
.perm-tab-head { display: flex; align-items: center; gap: 4px; margin: 0 0 3px;
                 font-size: 12px; font-weight: 600; color: #33404d; cursor: pointer; }
.perm-tab-name { white-space: nowrap; }
.perm-tab-btns { display: flex; flex-direction: column; align-items: flex-start;
                 gap: 2px; margin-left: 2ch; }
.perm-btn-line { display: flex; align-items: center; gap: 4px; margin: 0;
                 font-size: 12px; font-weight: normal; color: #5b6b7c;
                 white-space: nowrap; cursor: pointer; }
/* 2026-11-15 授权页排版：按钮第一排靠左依次横向排列，与第二排页签行垂直左对齐。
   此前 justify-content:center 让按钮居中，与页签左边界错开。 */
.perm-ops { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center;
            gap: 6px 16px; margin: 0 0 12px; padding-bottom: 8px;
            border-bottom: 1px dashed #e3e8ef; }

/* 2026-11-15 手机版模块导航：抽屉内完整模块列表，桌面端不渲染。
   未选中项字体（12px / var(--sidebar-fg) / 常规字重）与侧栏 .menu-item 保持一致；
   2026-12-02 起配色随皮肤变量切换，浅蓝 / 暗色两套下对比度均可读。 */
.drawer-modules { display: none; padding: 10px 12px 12px; border-bottom: 1px solid #e3e8ef; }
.dm-title { font-size: 11px; color: #8a97a5; letter-spacing: 1px; padding: 2px 0 8px; }
.dm-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 2px;
           color: var(--sidebar-fg); font-size: 12px; font-weight: normal;
           text-decoration: none; border-radius: 4px; }
.dm-item:hover { background: var(--menu-hover-bg); color: var(--menu-hover-fg); text-decoration: none; }
.dm-item.on { background: var(--menu-on-soft-bg); color: var(--menu-on-soft-fg); font-weight: 600; }

/* ======================= 统一分页组件（fragments/pager.html） ======================= */
/* 通用列表页 / 学员线索 / 线索回访 / 课堂作品卡片墙共用；每页条数含 10 条 */
.pg-wrap { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.pg-count { color: #6b7480; font-size: 12px; white-space: nowrap; }
/* 分页禁用态：此前只在 .src-foot 作用域内定义，通用列表页的「首页/上一页」与可点链接同色 */
.pg-wrap .pg-disabled { color: #aaa; cursor: default; margin: 0 3px; }
.pg-wrap .pg-num { color: #333; margin: 0 4px; }
.pg-wrap .size-sel { height: 24px; }
.page-foot .pg-wrap { gap: 10px; }
.card-pager { padding: 10px 12px 14px; border-top: 1px solid #eef1f4; }

/* ======================= 排班看板 b29：日期列 × 时段行 周历网格 ======================= */
.kb-date { width: 140px; }
.kb-weekbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
              padding: 8px 12px; background: #fbfcfd; border-bottom: 1px solid #eef1f4; }
.kb-weeknav { display: flex; gap: 6px; }
.kb-weekbtn { display: inline-block; padding: 3px 10px; border: 1px solid #d9e2ea; border-radius: 3px;
              background: #fff; color: #3c8dbc; font-size: 12px; }
.kb-weekbtn.on { background: #3c8dbc; border-color: #3c8dbc; color: #fff; }
.kb-weekbar .kb-sum { margin-left: 0; }
.kb-sum b { color: #00a65a; font-size: 14px; }
.kb-download { margin-left: 10px; color: #3c8dbc; }
.kb-grid { padding: 10px 12px 4px; }
/* D-34（2026-11-19）：H5 专用「按日期分块」周历列表（kanban.html 同页第二形态）。
   桌面 >900px 隐藏；≤900px 由文件末尾 H5 段显示并隐藏 .kb-grid，二者互斥。 */
.kb-daylist { display: none; }
.kb-grid-row { display: grid; grid-template-columns: 62px repeat(7, minmax(0, 1fr));
               border-left: 1px solid #e3e9ee; }
.kb-grid-head { background: #eef3f7; }
.kb-time-head, .kb-time { padding: 6px 3px; border-right: 1px solid #e3e9ee;
                          border-bottom: 1px solid #e3e9ee; background: #f7f9fb;
                          color: #8a939e; font-size: 11px; text-align: center; }
.kb-grid-head .kb-col { min-height: 0; background: transparent; border: 0; border-radius: 0; }
.kb-day { padding: 5px 4px; border-right: 1px solid #e3e9ee; border-bottom: 1px solid #e3e9ee;
          text-align: center; }
.kb-cell { min-height: 76px; padding: 4px; border-right: 1px solid #e3e9ee;
           border-bottom: 1px solid #e3e9ee; background: #fff; }
.kb-day.is-today, .kb-cell.is-today { background: #fff2f4; }
.kb-day.is-today .kb-day-label { color: #dd4b39; }
.kb-day-label { color: #33404d; font-size: 12px; font-weight: 600; }
.kb-move { display: inline-block; margin-top: 2px; color: #3c8dbc; font-size: 11px; }
.kb-day-ex { margin-top: 2px; color: #d98708; font-size: 11px; }
.kb-day-stat { margin-top: 4px; color: #8a939e; font-size: 10px; white-space: nowrap; }
.kb-day-stat b { color: #33404d; }
.kb-card { position: relative; margin-bottom: 4px; padding: 4px 6px; border: 1px solid #cde9d6;
           border-radius: 3px; background: #edf9f0; cursor: pointer; font-size: 11px; }
.kb-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.kb-card-title { padding-right: 18px; color: #2f3a45; font-weight: 600; line-height: 1.4;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-teacher { margin-top: 2px; color: #6b7480; }
.kb-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
            border-radius: 9px; background: #00a65a; color: #fff; font-size: 10px;
            line-height: 18px; text-align: center; }

/* =====================================================================
   H5 / 小屏降级（≤900px）
   ---------------------------------------------------------------------
   断点口径：900 = 侧栏 148px + 主区最小可用宽度。
   手机端允许与桌面端布局不同（用户已授权），因此这里做"重排"而非等比缩放：
   顶栏保留模块导航（横向滚动）→ 侧栏改抽屉 → 表格改卡片 → 弹窗全屏 → 底部按钮条吸底。
   桌面端（>900px）不受本段任何影响。
   ===================================================================== */

/* 抽屉开关与遮罩：桌面端不渲染（display:none），由下方 @media 打开 */
.nav-toggle {
    display: none;
    flex: 0 0 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 2px; border-radius: 1px; background: #cfd8de; }
.nav-toggle:active span { background: #fff; }
.drawer-mask { display: none; }

/* ---------- 右侧 iframe 抽屉（sch.board「上课学生/上课老师」改造）----------
   与左侧导航抽屉独立（body.side-drawer-open），桌面/手机共用同一套，仅宽度不同。
   复用 .drawer-mask 的遮罩观感与"点遮罩收起"机制（这里用独立的 .side-drawer-mask）。 */
.side-drawer-mask {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 130;
}
body.side-drawer-open .side-drawer-mask { display: block; }
body.side-drawer-open { overflow: hidden; }

.side-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 560px; max-width: 92vw;
    background: #fff;
    transform: translateX(100%);
    transition: transform .22s ease;
    z-index: 140;
    display: flex; flex-direction: column;
    box-shadow: -2px 0 14px rgba(0, 0, 0, .22);
}
body.side-drawer-open .side-drawer { transform: translateX(0); }
.side-drawer-head {
    flex: 0 0 auto; height: 44px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 14px; border-bottom: 1px solid #e7ebef;
    font-size: 14px; font-weight: 600; color: #2c3338;
}
.side-drawer-frame { flex: 1 1 auto; width: 100%; border: 0; background: #f2f4f7; }

/* embed 模式（?embed=1，被右侧抽屉 iframe 内嵌）：顶栏/侧栏/遮罩由 layout 条件渲染掉，
   这里只需让主区取消为侧栏预留的左边距，内容满宽 */
.main.embed-main { margin-left: 0; padding: 10px 12px 16px; }

@media (max-width: 900px) {

    /* ---------- 1. 顶栏：H5 下整体隐藏 ---------- */
    /* 2026-11-18：用户要求「菜单栏和右侧按钮去掉以后，该菜单栏本身也要删除」——
       header.topbar 在 H5 的内容（.modules / .user-menu）早已隐藏但元素仍占位，
       留下一条黑色空带。现整个 header display:none，#backBtn 一并消失（预期）：
       详情页学生卡有「返回」、报名页有页内「‹ 返回」，均不依赖顶栏。
       SPA 只换 main/sidebar 不换 header，桌面 >900px 完全不受影响。 */
    header.topbar { display: none; }
    /* 2026-11-18（用户追问「顶端一行空白删不掉」）：空白不是 topbar 元素本身，而是
       .wrap 为 fixed 顶栏预留的 padding-top:48px（app.css:141）——topbar display:none
       后预留仍在，body 背景 #f4f6f8 透出来就是一条灰白空带。此处同步清零，内容顶到视口顶。 */
    .wrap { padding-top: 0; }
    .topbar { gap: 0; }
    .nav-toggle { display: inline-flex; }
    /* 2026-11-15：窄屏页面左上方不再有主页入口，.modules（含首页 tab）整体隐藏。
       2026-11-18（二次改版）：模块切换改由底部「菜单」Tab 的 popup（.h5-menu-panel）
       承担，抽屉顶部的模块列表已随 layout 删除，此规则仅剩兜底作用。 */
    .modules { display: none; }
    .drawer-modules { display: block; }
    .module { padding: 0 6px; font-size: 11px; }
    .m-ico { width: 16px; height: 16px; flex-basis: 16px; }
    .top-right { gap: 8px; padding-right: 8px; }
    .top-right .who { display: none; }  /* 姓名在窄屏隐藏，腾出宽度 */

    /* ---------- 2. 侧栏改抽屉（默认移出视口，body.drawer-open 时滑出） ----------
       2026-11-18 H5 框架整改：基础规则 .sidebar 是 position:fixed（app.css:147），
       窄屏只改了 transform/宽度，菜单树本来就是「浮层」不随页面滚动——但 top:48px
       是为已隐藏的顶栏预留的，抽屉顶部会留一条 48px 空带露出遮罩下的页面。
       现补 top:0 / bottom:0，抽屉从视口顶到底完整覆盖。 */
    .sidebar {
        width: 220px;
        flex-basis: 220px;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 2px 0 14px rgba(0, 0, 0, .22);
        z-index: 120;
    }
    body.drawer-open .sidebar { transform: translateX(0); }
    /* 首页桌面端隐藏侧栏让主区满宽；窄屏仍需侧栏作为汉堡抽屉（模块导航在里面） */
    .home-page .sidebar { display: block; }
    .drawer-mask {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;   /* 2026-11-18 顶栏已隐藏，遮罩从视口顶开始 */
        background: rgba(0, 0, 0, .45);
        z-index: 110;
    }
    body.drawer-open .drawer-mask { display: block; }
    body.drawer-open { overflow: hidden; }   /* 抽屉打开时锁定页面滚动 */

    /* 右侧 iframe 抽屉：窄屏占满整屏宽度（桌面端 560px 定宽见上方基础规则） */
    .side-drawer { width: 100%; max-width: 100%; }

    .main { margin-left: 0; padding: 8px 8px 56px; }

    /* ---------- 3. 页头：页签与操作按钮纵向堆叠 ---------- */
    .page-head { flex-direction: column; align-items: stretch; gap: 6px; }
    .head-actions { flex-wrap: wrap; }
    .head-actions .btn { flex: 1 1 auto; justify-content: center; }
    /* 页签条（学员线索|回收站 这类 4~6 个页签）窄屏一行放不下：
       改为横向滚动，比折成两行更能保点击区 */
    .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .tab-bar::-webkit-scrollbar { display: none; }
    .tab-bar .tab { flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; }

    /* ---------- 4. 筛选条（问题5/7）：两列紧凑网格，条件并排，不再单列竖排占满半屏 ---------- */
    .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 10px; }
    .fitems {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));  /* 375px 下每列约 165px，条件并排 */
        gap: 6px 8px;
    }
    .fitem { display: flex; align-items: center; gap: 5px; min-width: 0; height: 30px; }
    /* 标签按文案宽度自适应（上限 72px），不再固定 84px 挤掉控件空间 */
    .fitem label { flex: 0 0 auto; max-width: 72px; height: auto; line-height: 30px; text-align: left;
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fitem .fsel, .fitem .ftxt, .fitem .fdate { flex: 1 1 0; width: auto; min-width: 0; height: 30px; }
    /* 日期区间「标签 + 起 + 至 + 止」四件跨满两列，避免挤成 30px 点不中 */
    .fitem.fitem-range { grid-column: 1 / -1; }
    .fitem .fsel { max-width: none; }   /* 桌面端有 150px 上限，窄屏要放开 */
    .fsep { line-height: 30px; flex: 0 0 auto; }
    /* 问题5：导出/导入/页面动作与搜索/重置同排，窄屏允许折行 */
    .fbtns { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
    .fbtns .btn { height: 30px; }
    .fbtns .btn-search { flex: 0 0 auto; min-width: 80px; }
    /* ≤360px 窄机（如老款 SE）两列仍挤，退回单列保证控件可点 */
    @media (max-width: 360px) {
        .fitems { grid-template-columns: 1fr; }
    }

    /* ---------- 5. 表格卡片化：一行一张卡，td 变「列名 + 值」两栏 ----------
       只接管带 .cardable 的表（list / charts / config / import，D-34 后新增
       lead / visit 的 src-grid 表与 perm-matrix 的敏感数据矩阵表）——
       这些模板的 td 已输出 data-label，列名与表头同源。其余 table.grid
       （teacherAccount / signup 等）改为整表横向滚动，避免 grid-fixed 把每列
       压成几十像素只剩省略号。 .src-grid 是 14 列源站版式表，.cb-table 属
       学员详情页（自有 H5 重构，另一路处理），二者不卡片化时走横滚兜底。 */
    table.grid.cardable { display: block; width: 100%; }
    table.grid.cardable thead { display: none; }
    table.grid.cardable tbody { display: block; }
    table.grid.cardable tr {
        display: block;
        margin: 0 0 8px;
        border: 1px solid #e7ebef;
        border-radius: 4px;
        background: #fff;
        overflow: hidden;
    }
    table.grid.cardable tr:hover { background: #fff; box-shadow: none; }
    table.grid.cardable td {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 7px 10px;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-align: left;
        border-bottom: 1px solid #f2f4f7;
    }
    table.grid.cardable td:last-child { border-bottom: 0; }
    table.grid.cardable td::before {
        content: attr(data-label);
        flex: 0 0 84px;
        color: #8a939e;
        font-size: 12px;
        line-height: 1.6;
    }
    /* 没有 data-label 的单元格（勾选框 / 操作列）不占列名位 */
    table.grid.cardable td:not([data-label])::before { content: none; display: none; }
    /* 值区占满剩余宽度并允许折行；桌面端的右对齐改回左对齐，
       否则值会被甩到卡片最右边，和左边的列名隔开一大段空白 */
    table.grid.cardable td > .cell,
    table.grid.cardable td > span { flex: 1 1 auto; min-width: 0; text-align: left; white-space: normal; }
    table.grid.cardable td > .badge { flex: 0 0 auto; }
    table.grid.cardable td.ck { width: auto; justify-content: flex-start; padding: 6px 10px; }
    /* 2026-11-17：内层 .ck-box 在 PC 是 34px 定宽盒；H5 卡片化时 td 变 flex，
       若不收回 flex 会被上面 td > span 的 flex:1 拉满整行，复选框漂到中间。
       这里恢复原样：不伸缩 34px、左对齐，勾选框仍在左侧 10px 处。 */
    table.grid.cardable td.ck > .ck-box { flex: 0 0 34px; width: 34px; text-align: left; }
    table.grid.cardable td.op {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 4px 12px;
        border-bottom: 0;
        background: #fafbfc;
    }
    table.grid.cardable td.op a { margin-right: 0; padding: 2px 0; }

    /* ---------- 5b. D-34：lead / visit 的 src-grid 表卡片化补充 ----------
       src-grid 桌面口径靠 td 固定列宽类（w110/w130/...）+ min-width:1140px 撑版；
       卡片模式下必须全部收回，否则每格仍被压成固定宽、内容溢出卡片。
       跟进回访/试听/报名格内是「+ 新增 | N」链接组，允许折行；
       意向度星标 .yxd 不吃上面 td > span 的 flex:1，保持原宽。 */
    table.src-grid.cardable { min-width: 0; }
    table.src-grid.cardable td { width: auto; min-width: 0; flex-wrap: wrap; }
    table.src-grid.cardable td.nw { white-space: normal; }
    table.src-grid.cardable td > span.yxd { flex: 0 0 auto; }
    /* 「新增跟进 | 0」之间的竖线分隔符在竖排卡片里视觉冗余，弱化为浅色 */
    table.src-grid.cardable td .opsep { color: #d9dde3; }

    /* ---------- 5c. D-34：排班看板（kanban）周历退为按日期分块列表 ----------
       kb-grid 是 62px + 7 列网格，375px 屏每列仅 ~40px，卡片挤成一团不可读。
       H5 改为「一天一块」的纵向列表：块头 = 日期 + 调班入口 + 调班标记 + 统计，
       块体 = 当天各课次（时段 + 复用 .kb-card，点击 kbAdjustFrom 与桌面一致）。
       桌面由上方基础规则 .kb-daylist { display:none } 隐藏，这里互换显隐。 */
    .kb-grid { display: none; }
    .kb-daylist { display: block; padding: 10px 0 4px; }
    /* 周切换条（本周/上一周/下一周 + 汇总 + 下载）窄屏允许折行，避免挤压 */
    .kb-weekbar { flex-wrap: wrap; gap: 6px 10px; }
    .kb-day-block {
        border: 1px solid #e7ebef;
        border-radius: 4px;
        background: #fff;
        margin-bottom: 10px;
        overflow: hidden;
    }
    .kb-day-block.is-today { border-color: #3c8dbc; }
    .kb-day-head {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px 8px;
        padding: 8px 10px;
        background: #eef3f7;
    }
    .kb-day-block.is-today .kb-day-head { background: #e2eef7; }
    .kb-day-title { font-weight: 600; color: #2f3a45; font-size: 13px; }
    .kb-day-block.is-today .kb-day-title { color: #3c8dbc; }
    .kb-day-head .kb-move { font-size: 12px; color: #3c8dbc; }
    .kb-day-ex { font-size: 12px; color: #f39c12; }
    .kb-day-stat { margin-left: auto; font-size: 11px; color: #8a939e; }
    .kb-day-stat b { color: #3c8dbc; }
    .kb-slot-line {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 6px 10px;
        border-top: 1px solid #f2f4f7;
    }
    .kb-slot-time { flex: 0 0 46px; color: #3c8dbc; font-weight: 600; font-size: 12px; line-height: 1.9; }
    .kb-slot-line .kb-card { flex: 1 1 auto; margin: 0; }
    .kb-day-empty { padding: 12px 10px; color: #b6bec7; font-size: 12px; text-align: center; }

    /* 未卡片化的表格：整表横向滚动。display:block 会顺带解除 grid-fixed 的
       等分压缩，列宽回归内容自适应，用户左右滑即可看全 */
    table.grid:not(.cardable):not(.cb-table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* 明细小表（工作台/经营中心）在窄屏下也允许换行，避免撑破面板 */
    .mini-table { max-height: none; }
    .mini-table td { white-space: normal; }

    /* ---------- 6. 弹窗：居中浮层模态（H5 不再整页铺开，对齐 PC 卡片式） ----------
       openModal 仍设 display:flex 三段式；本段只覆盖几何/圆角/阴影，
       遮罩沿用全局 .mask（fixed 全屏半透明），因此 H5 下也是「遮罩 + 居中卡片」。
       侧栏深色抽屉的字色由 .wb-*/.wc-* 段负责，本段不引入任何颜色变化。 */
    .modal {
        top: 50%; left: 50%; right: auto; bottom: auto;
        width: calc(100vw - 24px); max-width: 460px; min-width: 0;
        height: auto; max-height: calc(100vh - 80px);
        transform: translate(-50%, -50%);
        border-radius: 6px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
    }
    .modal.grid2 { width: calc(100vw - 24px); max-width: 460px; }
    .modal-head { padding: 12px 14px; }
    .modal-body { padding: 0; }
    .modal-inner { padding: 14px; }
    .modal-inner .form-grid2 { grid-template-columns: 1fr; column-gap: 0; }  /* 双列表单在手机上退回单列 */
    .modal-foot {
        position: static;  /* 卡片高度自适应，无需吸底；超高内容由 .modal-body 滚动 */
        background: #fff;
        padding: 10px 14px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
    .modal-foot .btn { flex: 1 1 auto; justify-content: center; }

    /* ---------- 6b. 详情滑出面板（源站 rightInfo 详细/回访）H5 居中化（框架整改硬性验收） ----------
       原版式右侧滑入、贴边 92vw，不是页面居中。现改为与 .modal 同口径的居中卡片：
       fixed + translate(-50%,-50%)，宽度 calc(100vw - 24px)，超高内部滚动。
       显隐由 .open 类切换：右侧滑入动画改为居中淡入+微缩放。 */
    .slide-wrap {
        top: 50%; left: 50%; right: auto; bottom: auto;
        width: calc(100vw - 24px); max-width: 460px;
        height: auto; max-height: calc(100vh - 48px);
        transform: translate(-50%, -50%) scale(.98);
        opacity: 0; pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .slide-wrap.open {
        right: auto;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1; pointer-events: auto;
    }

    /* ---------- 7. 底部按钮条吸底：长列表翻页不用滑到底 ---------- */
    .page-foot {
        position: sticky;
        bottom: 0;
        z-index: 5;
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px 8px;
        border-top: 1px solid #e7ebef;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
    }
    .page-foot .foot-left { flex-wrap: wrap; }
    .page-foot .foot-right { margin-left: auto; }
    .page-foot .pg-wrap { gap: 6px 8px; }
    .page-foot .pg-count { display: none; }   /* 窄屏优先保证页码可见 */

    /* ---------- 8. 登录页 ----------
       卡片是 366px 定宽，375px 屏上左右只剩 4px 余量，320px 屏直接溢出。
       注意：login.html 本身没有 viewport meta（不在本轮改动清单），
       要等那边补上 width=device-width 之后这一段才会命中。 */
    .login-card { width: calc(100% - 32px); max-width: 366px; margin: 80px auto 0; padding: 20px 18px 24px; }

    /* ---------- 9. 多列栅格：窄屏降列，避免每列只剩几十像素 ----------
       这一组不是「重排表格」，而是把桌面端写死的列数在手机上收掉；
       工作台是登录后的落地页，2~3 列在 375px 下每格不足 120px，卡片会挤成竖条。 */
    .wb-row, .wb-row.wide, .wb-row.three { grid-template-columns: 1fr; }
    .stat-cards, .biz-cards { grid-template-columns: 1fr 1fr; }
    .detail-sum { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; column-gap: 0; }
    .biz-row { grid-template-columns: 1fr; }
    .work-wall { grid-template-columns: 1fr; }   /* 覆盖 1080px 断点的 3 列 */

    /* ---------- 10. 课堂作品工具栏（问题10-3）：紧贴作品、按钮一行不换行、全选框垂直对齐 ---------- */
    .wc-tools { flex-wrap: nowrap; gap: 6px; padding: 8px 12px;
                overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .wc-tools .btn { flex: 0 0 auto; height: 30px; padding: 0 7px; font-size: 11px; white-space: nowrap; }
    .wc-tools .toolbar-tip { display: none; }   /* 长提示占位，H5 收起以腾出按钮行 */
    /* 全选框移到最左并与卡片勾选框（top6/left6 + wc-pic border5 + wc-sel padding3）近似垂直对齐 */
    .wc-tools .wc-selall { order: -1; margin-left: 14px; }
    .wc-tools .wc-selall input { width: 15px; height: 15px; margin: 0; }
    .wc-unsigned-tip { padding: 10px 12px; line-height: 1.6; }

    /* 日历 / 看板是「7 列固定版式」，压列只会更糊：保持列宽、整块左右滑 */
    .cal-grid { overflow-x: auto; grid-template-columns: repeat(7, minmax(88px, 1fr)); }
    .kb-grid { overflow-x: auto; }
    .kb-grid-row { min-width: 760px; }   /* 行与行同宽，滚动时列才对得齐 */
}

/* ==================== 2026-11-15 列表复选框 / 可选列 ==================== */
/* 复选框列：表头与数据都居中；PC 用 visibility 保留占位、默认隐藏，
   鼠标进入该行（或键盘焦点在该行）、已勾选、半选时才显示；H5（≤900px）保持原样不改。 */
.grid th.ck, .grid td.ck { text-align: center; vertical-align: middle; }
.grid th.ck input[type="checkbox"],
.grid td.ck input[type="checkbox"] { margin: 0; vertical-align: middle; }

@media (min-width: 901px) {
    .grid th.ck input[type="checkbox"],
    .grid td.ck input[type="checkbox"] { visibility: hidden; }
    /* 2026-11-17：表头全选框常显——它是批量操作的入口，跟着 hover 藏起来用户发现不了。
       数据行的隐藏行为保持不变（下方各态才显示）。 */
    .grid thead th.ck input[type="checkbox"] { visibility: visible; }
    .grid tbody tr:hover td.ck input[type="checkbox"],
    .grid tbody tr:focus-within td.ck input[type="checkbox"],
    .grid thead th.ck:hover input[type="checkbox"],
    .grid thead th.ck:focus-within input[type="checkbox"],
    .grid th.ck input[type="checkbox"]:checked,
    .grid td.ck input[type="checkbox"]:checked,
    .grid th.ck input[type="checkbox"]:indeterminate { visibility: visible; }
}

/* 可选列下拉（2026-11-18 从上课学员页推广到全站列表）。列清单来自 meta.cols，
   勾选状态按页面码记忆。推广后入口 class 为 fitem col-picker-item（filter.html），
   旧专属页的 .col-picker 仍保留兼容；两者都必须有 position:relative 才能锚定下拉面板。 */
.col-picker, .col-picker-item { position: relative; }
.col-picker { display: inline-block; margin: 8px 0 4px; }
.col-picker > .btn, .col-picker-item > .btn { height: 26px; padding: 0 12px; font-size: 12px; line-height: 24px; }
.cp-caret { font-size: 10px; }
.col-panel {
    display: none; position: absolute; left: 0; top: 30px; z-index: 120;
    min-width: 170px; padding: 8px 10px; background: #fff;
    border: 1px solid #d8dee5; border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.col-picker.open .col-panel, .col-picker-item.open .col-panel { display: block; }
.col-panel .cp-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid #eef1f4; font-size: 12px;
}
.col-panel .cp-head a { color: #3c8dbc; font-size: 11px; text-decoration: none; }
.col-panel label {
    display: flex; align-items: center; gap: 6px; margin: 0; padding: 4px 2px;
    font-size: 12px; font-weight: 400; color: #33404d; cursor: pointer;
}
.col-panel label input { margin: 0; }
/* list-fix4（2026-11-19）：面板项可拖拽换位（page.js initColumnPicker） */
.col-panel label { cursor: grab; }
.col-panel label:active { cursor: grabbing; }
.col-panel label.cp-item-dragging { opacity: .45; }

/* 2026-11-19（用户问题2/4）：面板双页签 + 拖拽水平标识线 + 「条件」页签。
   标识线与表头拖拽同色系（#2b7fd4），拖到目标项上/下半区分别显示上/下边线。 */
.col-panel .cp-tabs { display: flex; gap: 4px; }
.col-panel .cp-tab {
    border: 0; background: transparent; padding: 1px 8px; font-size: 12px;
    line-height: 18px; cursor: pointer; border-radius: 3px; color: #555;
}
.col-panel .cp-tab.on { background: #3c8dbc; color: #fff; }
.col-panel .cp-pane .cond-item {
    display: flex; align-items: center; gap: 5px; padding: 3px 6px;
    font-size: 12px; color: #333; border-radius: 3px; cursor: grab;
}
.col-panel .cp-pane .cond-item input { margin: 0; }
.col-panel .cp-pane .cond-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-panel .cp-pane .cond-item:active { cursor: grabbing; }
.col-panel .cp-pane .cond-item.cp-item-dragging { opacity: .45; }
/* 拖拽目标标识线：上/下半区 2px 蓝线 + 淡蓝底 */
.col-panel label.cp-drop-above,
.col-panel .cp-pane .cond-item.cp-drop-above { box-shadow: inset 0 2px 0 #2b7fd4; background: #eef6ff; }
.col-panel label.cp-drop-below,
.col-panel .cp-pane .cond-item.cp-drop-below { box-shadow: inset 0 -2px 0 #2b7fd4; background: #eef6ff; }
/* 条件显隐开关：仅视觉隐藏，控件仍在 DOM 中，GET 提交照常带值 */
.cond-off { display: none !important; }
/* 学员线索（src-filter）：条件项包进 .fitem 后的浮动布局修正 */
.src-filter .fitem { float: left; display: inline-flex; align-items: center; gap: 4px; }
.src-filter .fitem .src-ipt,
.src-filter .fitem .src-lbl,
.src-filter .fitem .fsep { float: none; }
/* 学员线索列显示入口按钮与全站 .btn 规格一致 */
.col-picker-item > .src-btn { height: 26px; padding: 0 12px; font-size: 12px; line-height: 24px; margin-top: 0; }
.col-panel .cp-tip {
    margin-top: 6px; padding-top: 6px; border-top: 1px solid #eef1f4;
    font-size: 11px; color: #8a97a3;
}
/* 隐藏列：PC 表格单元格与 H5 卡片化后的 td 都生效 */
.grid th.col-off, .grid td.col-off { display: none !important; }
.cell-empty { color: #b6bfc8; }
/* 2026-11-19（用户问题5）：列表内容全部左对齐，取代 11-15 的「主列表居中」旧口径。
   仅复选框列 .ck 与状态徽标等业务需要保留居中；文本/数据列一律左对齐。 */
.grid.cardable thead th,
.grid.cardable tbody td { text-align: left; }
.grid.cardable thead th.ck,
.grid.cardable tbody td.ck,
.grid.cardable tbody td.al-center,
.grid.cardable thead th.al-center { text-align: center; }
.grid.cardable tbody td.al-right,
.grid.cardable thead th.al-right { text-align: right; }
/* 2026-11-19（用户问题4）：H5 列显示面板改居中弹框。
   原规则 position:static 让面板内联展开——占页面空间、被吸底按钮条遮挡，
   且绝对定位宽度不受约束会把页面撑出横向滚动（手机边界外可滑）。
   现改 position:fixed 居中卡片：脱离文档流不再撑宽页面；宽度锁在屏内
   （calc(100vw - 24px)，max-width 340px）；整体 max-height + overflow-y:auto
   让列/条件项超高时面板内滚动。打开动画复用 modal-fade-in（居中淡入，与
   ≤480px 弹窗同款）。点面板外任意处由 page.js 既有 document click 委托
   （picker.contains(e.target) 判定）自动关闭，无需改 page.js。
   层级 896：高于底部栏(96)/H5 面板(105)/FAB(890)，低于弹窗遮罩
   .mask(900)/.modal(901)/.att-modal(2000)。 */
@media (max-width: 900px) {
    .col-panel {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: calc(100vw - 24px);
        min-width: 0;
        max-width: 340px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        margin: 0;
        z-index: 896;   /* 注释口径落地：高于 FAB(890)，低于 .mask(900) */
        box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
        animation: modal-fade-in .18s ease-out;
    }
}

/* ============ A9 统计页专项导出按钮 ============
   统计 9 页顶部（筛选条上方）右对齐的「导出 Excel」。
   单独一个 class 而不是复用 .head-actions：图表页没有 .page-head 顶栏，
   这里的按钮属于卡片内元素，右对齐 + 与筛选条留出间距即可。 */
.stat-export-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}
.stat-export-bar .btn { padding: 5px 14px; font-size: 13px; }
/* 问题5：统计页导出按钮已并入筛选条 .fbtns（fragments/filter.html::statExport），
   原 charts.html 独立导出条隐藏，避免同页出现两枚「导出 Excel」。 */
.stat-export-bar { display: none; }

/* ============ A4 工作台空态 ============
   当前账号一块看板卡片都无权时（例如家长角色）给出的提示，
   避免整页只剩公告条、看不出是「没权限」还是「加载失败」。 */
.wb-empty {
    margin: 12px 0 4px;
    padding: 26px 20px;
    background: #fff;
    border: 1px dashed #d9dde3;
    border-radius: 4px;
    text-align: center;
    color: #8a97a3;
    font-size: 13px;
}

/* ============ 导航修复：孤儿页的分组标题高亮 ============
   /p/stu.signup/new 等页面没有 sys_menu 行（V11 已删），侧栏匹配不到菜单项，
   整棵树看起来「什么都没选中」。按业务归属给分组标题补 .on，与 .menu-item.on 同色系
   （更浅一档，表示「上级」而不是「当前页」）。纯追加，不改动任何既有选择器。
   2026-12-02 方案D（用户选定）：与 .menu-item.on 同款 1px 细描边、无填充；
   深色描边 #8ec5ec（7.94:1），浅色用同族深蓝 #1d5b8a（5.38:1），hover 半透明。 */
.sidebar .group-title:hover,
.sidebar .group-title:focus {
    background: transparent;
    color: var(--group-fg);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--outline-hover);
}
.sidebar .group-title.on,
.sidebar .group-title.on:hover,
.sidebar .group-title.on:focus {
    background: var(--group-on-bg);
    color: var(--group-on-fg);
    box-shadow: inset 0 0 0 1px var(--group-on-line);
}

/* ============ 2026-11-18 H5 底部导航三件套（仅 ≤900px）============
   底部 3 Tab（首页/菜单/我）+ 左上角悬浮可拖动 FAB + 「我」面板。
   菜单面板不复制 DOM：直接复用 body.drawer-open 的侧栏抽屉（原汉堡逻辑），
   模块列表（.drawer-modules）已由 layout 排除首页，二级菜单沿用侧栏分组树。
   层级口径（2026-11-19 更新，低 → 高）：
   页面内容 < .page-foot(5) < ECharts tooltip（H5 内 95，见 media 内问题1 规则）
   < .h5-tabbar(96) < .h5-me-panel/.h5-menu-panel(105)
   < .drawer-mask(110) < .sidebar 抽屉(120) < .side-drawer-mask(130)/.side-drawer(140)
   < .h5-fab(890) < .col-panel(H5 弹框 896) < .mask(900)/.modal(901) < .toast(999)。
   左侧抽屉打开时遮罩(110)盖住底部栏(96)与面板(105)；FAB(890) 浮在遮罩之上
   仍可点，单击 FAB 走 h5.js tapFab → toggleDrawer() 收回 —— 满足「点击任意位置缩回去」。
   报表提示框（ECharts tooltip 内联 z-index:9999999）在 H5 被压到 95，不再遮挡
   底部菜单（用户问题1）；弹窗遮罩/mask/toast 层级一律未动。
   弹窗打开时 FAB 被 .mask(900) 盖住；右侧 iframe 抽屉打开时 FAB 直接 display:none。
   桌面 >900px：三件套全部 display:none，以下规则全部收在 media 内，桌面 0 影响。 */
.h5-fab, .h5-tabbar, .h5-me-panel, .h5-menu-panel { display: none; }

@media (max-width: 900px) {

    /* ---------- 0. 顶栏瘦身：汉堡与账号下拉退役（底部 Tab 已覆盖其职责） ----------
       #backBtn 在 .top-right 内，必须保留，这里只隐藏 .user-menu。 */
    .nav-toggle { display: none; }
    .top-right .user-menu { display: none; }

    /* ---------- 1. 底部固定 3 Tab ---------- */
    .h5-tabbar {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        height: calc(48px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);   /* iPhone 底部安全区 */
        background: #fff;
        border-top: 1px solid #e3e8ef;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
        z-index: 96;
        /* 2026-11-18 H5 框架整改：强制独立合成层，规避移动 WebKit 在长页惯性滚动
           时 position:fixed 元素延迟重排造成的「跟随滚动跳动/闪没」。 */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    /* 首页 Tab 复用 .module 类（借 SPA 高亮同步），这里覆盖其顶栏样式 */
    .h5-tabbar .h5-tab {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        height: 48px;
        padding: 0;
        margin: 0;
        border: 0;
        border-right: 0;
        background: none;
        color: #5b6b7c;
        font-size: 11px;
        line-height: 1;
        cursor: pointer;
        text-decoration: none;
        white-space: nowrap;
    }
    .h5-tabbar .h5-tab:hover { background: #f2f6fb; color: #2b7fd4; text-decoration: none; }
    .h5-tabbar .h5-tab.on { background: #fff; color: #2b7fd4; font-weight: 600; }
    .h5-tabbar .h5-ico { font-size: 18px; line-height: 1; }

    /* ---------- 2. 悬浮菜单按钮（FAB）：默认右上角，可拖 ---------- */
    .h5-fab {
        display: flex;
        position: fixed;
        left: auto;
        right: 10px;
        top: 12px;   /* 2026-11-19（用户问题3）：默认位从左上角改到视口右上角。
                        拖动后由 h5.js 写入 style.left 并清掉 style.right，
                        与本默认位不冲突；位置记忆/恢复逻辑不受影响。 */
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(34, 45, 50, .92);
        color: #fff;
        font-size: 20px;
        line-height: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
        /* 2026-11-18 H5 框架整改：FAB 层级提升为「全站除弹窗外最高」。
           此前 105 低于 .col-panel(120)/.user-menu-list(130)/.side-drawer(140)，
           会被这些浮层盖住点不到。现取 890：高于侧栏抽屉(120)/右侧抽屉(140)/
           面板(105)/底部栏(96)/吸底按钮条(5) 等一切页面浮层；
           刻意低于 .mask(900)/.modal(901)/.att-modal(2000)/.toast(999)——
           弹窗打开时 FAB 被遮罩盖住（任务口径：FAB 不应浮在弹窗之上）。
           右侧 iframe 抽屉打开时直接隐藏（见下方 body.side-drawer-open 规则）。 */
        z-index: 890;
        touch-action: none;            /* 按住拖动时不触发页面滚动 */
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
        /* 2026-11-18：静置 5 秒降透明度（.h5-dim，h5.js 定时器），交互时平滑恢复 */
        transition: opacity .4s ease;
    }
    .h5-fab:active { background: #2f8ec4; }
    .h5-fab.dragging { opacity: .85; box-shadow: 0 8px 18px rgba(0, 0, 0, .34); }
    .h5-fab.h5-dim { opacity: .45; }   /* 任何触摸/点击立即由 h5.js 摘掉此类恢复不透明 */
    /* 右侧 iframe 抽屉（上课学生/上课老师详情）打开时隐藏 FAB：
       抽屉 z-index 140 低于 FAB 890，不隐藏会浮在详情内容上挡视线。 */
    body.side-drawer-open .h5-fab { display: none; }

    /* ---------- 3. 「我」面板：账户信息 + 修改密码/刷新缓存/退出 ----------
       2026-11-18：「菜单」popup（.h5-menu-panel，模块列表）与其共用同一套
       bottom sheet 定位/外观，仅内容样式不同（见 3b）。
       2026-11-18 主理人裁定（最终口径）：弹层双形态——业务对话框（表单/确认/
       详情）居中卡片；本两个「我 / 菜单」导航面板恢复吸底 bottom sheet
       （导航操作需拇指可达区，iOS HIG/Material 标准模式）。
       宽度 calc(100vw - 24px) 不溢出、44px 触摸高度保留；点面板外收回
       行为由 h5.js document click 委托承担，吸底后不变。
       2026-11-19（用户问题2）：面板不再压在底部栏上（bottom:0 会与 Tab 重叠），
       改为悬浮在底部菜单上边缘之上、间隔 2px（bottom = tabbar 高 48px + 安全区
       + 2px）；四角圆角 + 四周描边呈现独立浮层。弹出动画用 translateY(100%)→0
       滑出，缓动 .22s ease 与左侧抽屉（app.css .sidebar，transition transform
       .22s ease）完全一致；animation 由 body.h5-*-open 触发 display 切换时自动播放。 */
    .h5-me-panel,
    .h5-menu-panel {
        display: none;
        position: fixed;
        top: auto; left: 0; right: 0;
        bottom: calc(48px + env(safe-area-inset-bottom, 0px) + 2px);   /* 贴菜单上沿 + 2px 间隔 */
        width: calc(100vw - 24px);
        margin: 0 auto;
        max-width: 460px;
        background: #fff;
        border: 1px solid #e3e8ef;
        border-radius: 10px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
        z-index: 105;
        overflow: hidden;
    }
    body.h5-me-open .h5-me-panel {
        display: block;
        animation: h5-sheet-up .22s ease;   /* 从底部菜单方向滑出（参考抽屉缓动） */
    }
    .h5-me-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 11px; }
    .h5-me-head .um-avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: 16px; }
    .h5-me-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .h5-me-name { font-size: 15px; font-weight: 600; color: #2c3338;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .h5-me-pos { font-size: 12px; color: #8a97a3;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .h5-me-ops { border-top: 1px solid #eef1f4; }
    .h5-me-ops a { display: block; padding: 12px 14px; font-size: 13px; color: #33404d;
                   text-decoration: none; }
    .h5-me-ops a + a { border-top: 1px solid #f2f4f7; }
    .h5-me-ops a:hover { background: #f2f6fb; color: #2b7fd4; text-decoration: none; }

    /* 2026-12-02 换肤入口：与 PC 同一 setSkin() 口径，<details> 原生展开不写 JS；
       位置在「刷新缓存」与「退出」之间，不读 homeOps，所有用户可见。 */
    .h5-me-ops .h5-skin-menu > summary {
        padding: 12px 14px;
        font-size: 13px;
        color: #33404d;
        cursor: pointer;
        list-style: none;
        position: relative;
    }
    .h5-me-ops .h5-skin-menu > summary::-webkit-details-marker { display: none; }
    .h5-me-ops .h5-skin-menu > summary::after {
        content: '▸';
        position: absolute;
        right: 14px;
        color: var(--caret-fg);
        font-size: 10px;
    }
    .h5-me-ops .h5-skin-menu[open] > summary::after { content: '▾'; }
    .h5-me-ops .h5-skin-menu .h5-skin-opts a {
        display: block;
        padding: 10px 14px 10px 28px;
        font-size: 12px;
        color: #33404d;
        background: #fafcfd;
        text-decoration: none;
    }
    .h5-me-ops .h5-skin-menu .h5-skin-opts a + a { border-top: 1px solid #f2f4f7; }
    .h5-me-ops .h5-skin-menu .h5-skin-opts a.on { color: #2b7fd4; font-weight: 600; }

    /* ---------- 3b. 「菜单」popup：模块列表（与「我」面板同款 bottom sheet） ---------- */
    body.h5-menu-open .h5-menu-panel {
        display: block;
        animation: h5-sheet-up .22s ease;   /* 从底部菜单方向滑出（参考抽屉缓动） */
    }
    /* 弹出动画：从底部菜单方向（下 → 上）滑出，缓动同左侧抽屉 .22s ease */
    @keyframes h5-sheet-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .h5-menu-title {
        padding: 12px 14px 9px;
        font-size: 12px;
        color: #8a97a3;
        border-bottom: 1px solid #eef1f4;
    }
    .h5-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        font-size: 14px;
        color: #33404d;
        text-decoration: none;
    }
    .h5-menu-item + .h5-menu-item { border-top: 1px solid #f2f4f7; }
    .h5-menu-item .m-ico { width: 18px; height: 18px; flex: 0 0 18px; }
    .h5-menu-item.on { color: #2b7fd4; font-weight: 600; }
    .h5-menu-item:hover { background: #f2f6fb; color: #2b7fd4; text-decoration: none; }

    /* ---------- 4. 给底部栏让位 ---------- */
    .main { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    /* 吸底的分页/批量按钮条：原本 sticky 在视口底，会被底部栏压住 */
    .page-foot { bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
    /* embed 内嵌页（右侧抽屉 iframe）不渲染底部栏，不需要让位 */
    .main.embed-main { padding-bottom: 16px; }

    /* ---------- 5. 报表提示框不遮挡底部菜单（用户问题1，2026-11-19）----------
       ECharts tooltip 的 DOM 由库内联写死 z-index:9999999（echarts.min.js 实证），
       悬停在图表下部时会盖住底部 Tab。样式表规则加 !important 可压过内联样式：
       把提示框降到 95（低于 .h5-tabbar 的 96），底部菜单从此浮在提示框之上。
       刻意不去抬 tabbar 的 z-index：抬过 .toast(999) 必然连 .mask(900)/.modal(901)
       也压下去，破坏「抽屉遮罩压暗底部栏 / 弹窗盖住一切页面浮层」的既有口径。
       两条选择器兼容 echarts 写入 cssText 的两种冒空格序列化形态。 */
    div[style*="z-index:9999999"],
    div[style*="z-index: 9999999"] {
        z-index: 95 !important;
    }
}



/* ---------- 07-9（2026-11-18）+ 框架整改（2026-11-18，dev-h5-frame）----------
   ≤480px 时 .modal 原 min-width:420px 会横向溢出（375/390 屏裁切，P1 触摸缺陷 ⑤）。
   2026-11-18 框架整改（任务5口径）：H5 弹窗统一「水平垂直居中」——原吸底
   bottom-sheet 版式与此冲突，改回居中卡片，仅保留本段的宽度适配
   （width: calc(100vw - 24px)，比 ≤900px 段的 32px 边距再省 4px）、
   弹窗底部安全区 padding 与按钮 44px 触摸高度；上浮动画改为居中淡入。
   ⚠ 本段覆盖了 dev-detail-rw 的吸底版式，已列入进展文件协调说明。 */
@media (max-width: 480px) {
    .modal {
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: calc(100vw - 24px);
        min-width: 0;
        max-width: none;
        max-height: calc(100vh - 48px);
        border-radius: 8px;
        margin: 0;
        animation: modal-fade-in .18s ease-out;
    }
    .modal-head { border-radius: 8px 8px 0 0; }
    .modal-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
    .modal-foot .btn, .modal-foot button { min-height: 44px; }
}

@keyframes modal-fade-in {
    from { transform: translate(-50%, -46%); opacity: .4; }
    to   { transform: translate(-50%, -50%); opacity: 1; }
}

/* ============================================================================
   页面操作提示统一开关（V83 ui_hints_visible）：基本配置 → 功能参数 → 界面显示。
   关闭时 LayoutModelAdvice 让 <body> 带 .hints-off，此规则一键隐藏各业务页的
   小字帮助说明。仅视觉隐藏，不删 DOM，权限守卫与功能逻辑不受影响。
   范围口径：只关「帮助性小字」；cfg-hint（配置页表单帮助）、cd-note（班级详情
   空态/数据备注单元格）、sg-note（报名页备注输入框容器）、perm-tip / perm-mod-hint
   （权限管理页签）、share 页 tip（家长端提交反馈）均不在关闭范围。
   ============================================================================ */
body.hints-off .tip,
body.hints-off .cp-tip,
body.hints-off .toolbar-tip,
body.hints-off .sb-tip,
body.hints-off .wc-unsigned-tip,
body.hints-off .att-tip,
body.hints-off .cmp-note,
body.hints-off .grp-hint,
body.hints-off .import-hint {
    display: none !important;
}
