:root{
  --bg:#faf7f2;--card:#fff;--text:#3f3a35;--muted:#9a8f83;--line:#eee6da;
  --primary:#e8b980;--primary-d:#c98f4e;--soft:#fdf4e8;
  --green:#5b9c76;--green-bg:#eaf5ee;--red:#c96a5b;--red-bg:#fbece9;
  --shadow:0 4px 16px rgba(160,135,105,.09);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{background:#efe9df;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);display:flex;flex-direction:column;align-items:center;min-height:100vh}
.topbar{width:100%;max-width:520px;padding:14px 0 8px;display:flex;flex-direction:column;gap:9px}
.brandline{display:flex;align-items:center;justify-content:space-between;padding:0 4px}
.brandline .bl{font-size:13px;font-weight:800;letter-spacing:.5px}
.brandline .br{font-size:10px;color:var(--muted)}
.livebadge{display:inline-flex;align-items:center;gap:5px;background:var(--green-bg);color:var(--green);font-size:10px;font-weight:700;padding:4px 9px;border-radius:20px}
.livebadge i{width:6px;height:6px;border-radius:50%;background:var(--green);display:block;box-shadow:0 0 0 3px rgba(91,156,118,.15)}

.device{width:100%;max-width:420px;background:#fff;border-radius:26px;padding:7px;box-shadow:0 12px 40px rgba(120,95,70,.16);margin-bottom:16px}
.screen{background:var(--bg);border-radius:20px;overflow:hidden;height:min(760px,calc(100vh - 190px));min-height:460px;display:flex;flex-direction:column;position:relative}
.navbar{height:52px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--bg);border-bottom:1px solid var(--line)}
.navbar .tt{font-size:15px;font-weight:800}
.navbar .who{font-size:11px;color:var(--muted);background:#fff;border:1px solid var(--line);padding:5px 10px;border-radius:16px}
.navbar .who.switchable{cursor:pointer;color:var(--primary-d);background:var(--soft);font-weight:700;border-color:#f0dcbf}
.scroll{flex:1;overflow-y:auto;padding:14px 14px 18px;-webkit-overflow-scrolling:touch}
.scroll::-webkit-scrollbar{width:0}

/* 登录 */
.login{padding:26px 20px}
.login .logo{width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,#e8b980,#d29a5c);display:flex;align-items:center;justify-content:center;font-size:28px;margin:6px auto 14px;box-shadow:0 6px 18px rgba(201,143,78,.3)}
.login h1{font-size:19px;text-align:center;margin:0 0 5px}
.login .sub{font-size:11.5px;color:var(--muted);text-align:center;line-height:1.7;margin-bottom:22px}
/* 登录页禁用态：验证码按钮在号码未校验时也要看得清（原 opacity:.45 在浅色底上几乎不可见） */
.login .btn.primary:disabled{background:#ece5d9;color:#b3a696;box-shadow:none;opacity:1}
.field{margin-bottom:12px}
.field label{font-size:11px;color:var(--muted);display:block;margin-bottom:5px}
.field input{width:100%;border:1.5px solid var(--line);background:#fff;border-radius:11px;padding:11px 12px;font-size:13px;font-family:inherit;outline:none;color:var(--text)}
.field input:focus{border-color:var(--primary)}
.quick{font-size:11px;color:var(--muted);margin:18px 0 8px;text-align:center}
.qbtns{display:flex;gap:7px}
.qbtn{flex:1;background:#fff;border:1.5px solid var(--line);border-radius:11px;padding:10px 4px;font-size:11px;font-family:inherit;cursor:pointer;color:var(--text);line-height:1.5}
.qbtn b{display:block;font-size:12px;color:var(--primary-d);margin-bottom:2px}
.qbtns .qbtn span{display:block;font-size:9.5px;color:var(--muted);line-height:1.4}
/* 登录页演示账号：按身份层级分组，L1 平台运营独立成块（不与校区/老师/家长混排） */
.demo-groups{margin-top:2px}
.demo-group{margin-bottom:11px}
.demo-group-hd{font-size:10.5px;color:#6b6058;font-weight:700;margin:0 0 7px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.demo-group-hd .lv{background:var(--soft);color:var(--primary-d);border-radius:6px;padding:2px 6px;font-size:9.5px;font-weight:800}
.demo-group-hd .lv2{background:#edf1ea;color:#6b7d63}
.demo-group-hd .tag{font-size:9.5px;color:var(--muted);font-weight:500}
.qbtn.op{display:flex;align-items:center;gap:10px;width:100%;flex:none;text-align:left;padding:12px 13px;border:1.5px solid #d9a86a;background:linear-gradient(135deg,#fff9f0,#fdf0df);border-radius:13px;box-shadow:0 3px 10px rgba(201,143,78,.15)}
.qbtn.op .qb-ic{width:34px;height:34px;flex:none;border-radius:10px;background:linear-gradient(135deg,#e8b980,#d29a5c);color:#fff;display:flex;align-items:center;justify-content:center;font-size:17px}
.qbtn.op .qb-tx{flex:1;min-width:0}
.qbtn.op b{display:block;font-size:13px;color:#8a5a28;margin-bottom:3px}
.qbtn.op .qb-tx span{display:block;font-size:10px;color:#8a7a66;line-height:1.55}
.qbtn.op .qb-go{font-size:10.5px;color:var(--primary-d);font-weight:700;white-space:nowrap;flex:none}
.loginerr{color:var(--red);font-size:11.5px;text-align:center;min-height:16px;margin-top:8px}

/* 测试期验证码区块（仅当服务端回显 devCode 时渲染；正式接入短信网关后自动消失） */
.smsdev{margin-top:12px;border:1.5px dashed #e0bf92;background:#fdf6ea;border-radius:12px;padding:12px 12px 10px;text-align:center}
.smsdev-hd{font-size:10.5px;color:#a8825a;font-weight:700;letter-spacing:.2px}
.smsdev-code{font-size:30px;font-weight:800;letter-spacing:7px;color:#8a5a28;line-height:1.35;font-variant-numeric:tabular-nums}
.smsdev-tip{font-size:10.5px;color:#a89478;line-height:1.6;margin-bottom:9px}
.smsdev .btn{padding:10px 12px;font-size:12.5px;border-radius:10px}

/* ============================================================================
   V2.6 手机端「真实全屏界面」：真机打开就该像原生 App —— 没有网页预览壳、
   没有顶部米色横幅、没有底部一大段说明、没有居中的手机模型边框。
   全部带 body.m-app 前缀（只在手机 UA 下加），PC 端 pc-wide 一字不受影响。
   ============================================================================ */
body.m-app{background:var(--bg);min-height:100vh}
body.m-app .topbar,body.m-app .foot{display:none}
body.m-app .device{width:100%;max-width:none;padding:0;margin:0;border-radius:0;box-shadow:none;background:transparent}
body.m-app .screen{width:100%;height:100vh;height:100dvh;min-height:0;border-radius:0}
/* 手机端登录：干净品牌 + 表单，去掉演示账号 / 角色说明 / 引导文案 */
body.m-app .login{padding:46px 26px}
body.m-app .login .logo{width:64px;height:64px;border-radius:20px;margin:10px auto 16px;font-size:32px}
body.m-app .login h1{font-size:20px}
body.m-app .login .sub{margin-bottom:18px}
.login-links{display:flex;justify-content:center;gap:22px;margin-top:16px;flex-wrap:wrap}
.login-links .linkbtn{background:none;border:none;color:var(--muted);font-size:12px;font-family:inherit;cursor:pointer;padding:4px 2px}
.login-links .linkbtn:active{color:var(--primary-d)}
/* 测试验证码：紧凑一行，不再占整块 */
.smsdev-slim{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;
  margin-top:12px;padding:9px 12px;border:1px dashed #e0bf92;background:#fdf6ea;border-radius:10px;text-align:center}
.smsdev-slim .smsdev-tip{font-size:11px;color:#a8825a;margin:0;line-height:1.4}
.smsdev-slim .smsdev-code{font-size:20px;font-weight:800;letter-spacing:3px;color:#8a5a28;line-height:1.2;font-variant-numeric:tabular-nums}
.smsdev-slim .btn{width:auto;flex:none;padding:7px 12px;font-size:12px;border-radius:8px}
/* 手机端隐藏大批量导入 / 导出 / 对账区块（PC 保留）：即便误触也不会出现 PC 重功能 */
body.m-app [data-act="openImport"],
body.m-app [data-act="exportStudents"],
body.m-app [data-act="impTpl"]{display:none!important}

.btn{border:0;border-radius:12px;padding:12px 14px;font-size:13px;font-family:inherit;font-weight:700;cursor:pointer;width:100%;display:block;text-align:center}
.btn.primary{background:linear-gradient(135deg,#e8b980,#d29a5c);color:#fff;box-shadow:0 4px 12px rgba(201,143,78,.28)}
.btn.ghost{background:#fff;color:var(--text);border:1.5px solid var(--line)}
.btn.mini{width:auto;padding:8px 14px;font-size:11.5px}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btnrow{display:flex;gap:8px}
.btnrow>*{flex:1}

.hero{background:linear-gradient(135deg,#fff,#fdf1e2);border-radius:16px;padding:15px;margin-bottom:14px;box-shadow:var(--shadow)}
.hero .hi{font-size:16px;font-weight:800;margin-bottom:4px}
.hero .mu{font-size:11px;color:var(--muted);line-height:1.7}
.sec{font-size:12px;font-weight:800;margin:16px 2px 9px;display:flex;justify-content:space-between;align-items:center}
.sec .more{font-size:10px;color:var(--muted);font-weight:500}

.stats{display:flex;gap:8px;margin-bottom:6px}
.stat{flex:1;background:#fff;border-radius:14px;padding:12px 6px;text-align:center;box-shadow:var(--shadow)}
.stat .v{font-size:21px;font-weight:800;color:var(--primary-d)}
.stat .l{font-size:9.5px;color:var(--muted);margin-top:3px}

.card{background:#fff;border-radius:14px;padding:13px;margin-bottom:9px;box-shadow:var(--shadow)}
.listrow{display:flex;align-items:center;gap:10px;background:#fff;border-radius:13px;padding:11px 12px;margin-bottom:8px;box-shadow:var(--shadow)}
.av{width:38px;height:38px;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;color:#fff;flex:none}
.nm{flex:1;min-width:0}
.nm .n{font-size:13px;font-weight:700}
.nm .d{font-size:10.5px;color:var(--muted);margin-top:3px;line-height:1.5}
.chip{font-size:9.5px;padding:4px 8px;border-radius:8px;background:var(--soft);color:var(--primary-d);font-weight:700;white-space:nowrap}
.chip.g{background:var(--green-bg);color:var(--green)}
.chip.r{background:var(--red-bg);color:var(--red)}
.mini{font-size:10.5px;padding:6px 10px;border-radius:9px;border:0;background:var(--soft);color:var(--primary-d);font-family:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.mini.go{background:var(--primary);color:#fff}
.mini.gray{background:#f2eee8;color:var(--muted)}
.mini.red{background:var(--red-bg);color:var(--red)}
.empty{text-align:center;color:var(--muted);font-size:11.5px;padding:26px 10px}

/* 时间线 */
.tl{position:relative;padding-left:16px}
.tl:before{content:'';position:absolute;left:4px;top:6px;bottom:6px;width:2px;background:linear-gradient(#e8b980,#f3e2ca)}
.tlitem{position:relative;margin-bottom:12px}
.tlitem:before{content:'';position:absolute;left:-16px;top:14px;width:10px;height:10px;border-radius:50%;background:var(--primary);border:2px solid #fff;box-shadow:0 0 0 2px #f0dcc0}
.tldate{font-size:10px;color:var(--muted);margin-bottom:5px;padding-left:2px}
.artcard{background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.artimg{height:120px;background:linear-gradient(135deg,#f7e6cd,#eecfa6);display:flex;align-items:center;justify-content:center;font-size:52px}
.artbody{padding:11px 13px}
.artbody .t{font-size:13px;font-weight:800}
.artbody .c{font-size:11px;color:#6b6058;line-height:1.7;margin-top:6px}
.artbody .by{font-size:10px;color:var(--muted);margin-top:7px}
.checkincard{background:#fff;border-radius:13px;padding:11px 13px;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px}
.checkincard .ic{width:36px;height:36px;border-radius:11px;background:var(--green-bg);color:var(--green);display:flex;align-items:center;justify-content:center;font-size:17px;flex:none}

/* tabbar */
.tabbar{height:66px;flex:none;background:#fff;border-top:1px solid var(--line);display:flex;padding:5px 3px calc(5px + env(safe-area-inset-bottom))}
.tabbar .tb{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:12px;font-weight:600;cursor:pointer;position:relative;border-radius:12px}
.tabbar .tb .gi{width:27px;height:27px;display:block}
.tabbar .tb .gi svg{width:100%;height:100%;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tabbar .tb.on{color:var(--primary-d)}
.tabbar .tb.on .gi svg{stroke-width:2.2}
.tabbar .tb .dot{position:absolute;top:4px;right:20%;width:8px;height:8px;border-radius:50%;background:var(--red);border:1.5px solid #fff}

/* 弹层 */
.mask{position:absolute;inset:0;background:rgba(50,42,35,.42);z-index:40;display:none;align-items:flex-end}
.mask.show{display:flex}
.sheet{background:#fff;width:100%;border-radius:20px 20px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));max-height:88%;overflow-y:auto;animation:up .22s ease}
@keyframes up{from{transform:translateY(100%)}to{transform:translateY(0)}}
.sheet h3{font-size:15px;margin:0 0 5px}
.sheet .desc{font-size:11px;color:var(--muted);line-height:1.7;margin-bottom:14px}
.sheet .field input,.sheet textarea{width:100%;border:1.5px solid var(--line);background:#fdfbf7;border-radius:11px;padding:11px 12px;font-size:13px;font-family:inherit;outline:none;color:var(--text)}
.sheet .field input.ph-dim::placeholder{color:#c9c5be;opacity:1}
label.ftip{cursor:help;text-decoration:underline dotted #c9bda9;text-underline-offset:3px}
.ftip-pop{position:fixed;z-index:9999;max-width:260px;background:rgba(60,52,45,.95);color:#fff;font-size:11.5px;line-height:1.6;padding:9px 12px;border-radius:9px;box-shadow:0 6px 20px rgba(60,52,45,.28);pointer-events:none;opacity:0;visibility:hidden;transition:opacity .15s;white-space:normal}
.ftip-pop.show{opacity:1;visibility:visible}
.sheet textarea{height:76px;resize:none}
.sheet .close{position:absolute;right:16px;top:14px;font-size:19px;color:var(--muted);cursor:pointer}
.toast{position:absolute;left:50%;bottom:82px;transform:translateX(-50%);background:rgba(60,52,45,.94);color:#fff;font-size:11.5px;padding:10px 15px;border-radius:20px;z-index:60;opacity:0;transition:.25s;pointer-events:none;white-space:nowrap;max-width:88%;text-align:center;line-height:1.5}
.toast.show{opacity:1}

/* 导入向导 */
.steps{display:flex;margin:2px 0 16px}
.steps .st{flex:1;text-align:center;position:relative;font-size:10px;color:var(--muted);line-height:1.3}
.steps .st .no{width:24px;height:24px;border-radius:50%;background:#f0e9df;color:var(--muted);display:flex;align-items:center;justify-content:center;margin:0 auto 5px;font-weight:700;font-size:11px}
.steps .st.on .no{background:var(--primary);color:#fff}
.steps .st.done .no{background:var(--green);color:#fff}
.steps .st.on{color:var(--primary-d);font-weight:700}
.steps .st:not(:last-child):after{content:'';position:absolute;top:12px;left:62%;width:76%;height:1.5px;background:#e8dfd3}
.tpl{background:#fbf8f3;border:1px dashed #ddc9ab;border-radius:12px;padding:12px;margin-bottom:13px}
.tpl .cols{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.tpl .cols span{background:#fff;border:1px solid var(--line);border-radius:7px;padding:4px 8px;font-size:10px;color:#6b6058}
.tpl .cols span.req{border-color:#e4bd8a;color:var(--primary-d);font-weight:700}
.vres{display:flex;gap:8px;margin-bottom:12px}
.vres .vb{flex:1;border-radius:11px;padding:11px 5px;text-align:center}
.vres .vb .v{font-size:20px;font-weight:800}
.vres .vb .l{font-size:9.5px;margin-top:4px}
.vb.ok{background:var(--green-bg);color:var(--green)}
.vb.bad{background:var(--red-bg);color:var(--red)}
.vb.all{background:var(--soft);color:var(--primary-d)}
.errrow{background:var(--red-bg);border-radius:10px;padding:9px 11px;margin-bottom:7px;font-size:11px;color:#8a4a3c;line-height:1.6}
.errrow b{color:var(--red)}
.imp-log{background:#f7f4ef;border-radius:10px;padding:10px 12px;font-size:10.5px;color:#6b6058;line-height:1.8;margin-top:10px}
.batch-row{background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin-bottom:8px}
.batch-row .bl{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11.5px}
.batch-row .bd{font-size:10px;color:var(--muted);margin-top:5px;line-height:1.6}
.logrow{font-size:10.5px;color:#6b6058;padding:8px 10px;background:#fff;border-radius:9px;margin-bottom:6px;line-height:1.6}
.logrow b{color:var(--text)}
.ident-opt{display:flex;align-items:center;gap:11px;background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:12px;margin-bottom:9px;cursor:pointer}
.ident-opt.on{border-color:#e4bd8a;background:var(--soft)}
.ident-opt .io-ic{width:38px;height:38px;border-radius:12px;background:var(--soft);display:flex;align-items:center;justify-content:center;flex:none;font-size:18px}
.ident-opt .io-tx{flex:1;min-width:0}
.ident-opt .io-tx .n{font-size:13px;font-weight:700}
.ident-opt .io-tx .d{font-size:10.5px;color:var(--muted);margin-top:4px;line-height:1.5}

.foot{width:100%;max-width:520px;font-size:11px;color:#6b6058;line-height:1.85;padding:0 8px 26px}
.foot b{color:var(--text)}
.reset{color:var(--primary-d);cursor:pointer;font-weight:700}
.linkbox{background:#fff;border:1.5px solid var(--line);border-radius:11px;padding:9px 11px;font-size:10.5px;word-break:break-all;color:var(--primary-d);margin-top:8px}

/* ===== 电脑端响应式排版（只切 body 上的布局 class，业务/数据/字段/权限零改动） =====
   手机端永远不加任何 pc-* class，下面所有规则对手机端一律不生效。 */
/* v2.5.1：电脑端铺满浏览器有效宽度 —— 不再框在中间窄容器 / 手机壳里。
   原理：手机端靠 .device 的 420px 上限做成「手机壳」，这里在 pc-wide 下彻底解除，
   同时去掉圆角 / 阴影 / 内边距，让顶部通栏 + 左侧菜单 + 右侧内容区真正撑满整屏。
   .foot 是页脚说明，收在 1280px 居中保证长文可读，不影响内容区宽度。 */
body.pc-wide .topbar{max-width:none}
body.pc-wide .device{width:100%;max-width:none;padding:0;margin:0;border-radius:0;box-shadow:none;background:transparent}
body.pc-wide .screen{border-radius:0}
body.pc-wide .brandline .bl{font-size:15px}
body.pc-wide .foot{max-width:1280px;font-size:13px;line-height:1.95}
body.pc-wide .mask{align-items:center;justify-content:center}
body.pc-wide .sheet{width:100%;max-width:640px;border-radius:18px;max-height:86vh;padding:20px 22px;animation:none}

/* 后台：左侧菜单栏 + 右侧内容区（运营端 / 校长电脑完整版共用） */
body.pc-admin .screen{height:100vh;min-height:700px;display:grid;grid-template-columns:230px 1fr;grid-template-rows:56px 1fr;grid-template-areas:"nav nav" "tabs body"}
body.pc-admin .navbar{grid-area:nav;height:56px;padding:0 26px}
body.pc-admin .navbar .tt{font-size:15px}
body.pc-admin .tabbar{grid-area:tabs;height:auto;flex-direction:column;border-top:0;border-right:1px solid var(--line);padding:16px 12px;gap:4px;overflow-y:auto;background:#fdfbf7}
body.pc-admin .tabbar .tb{flex:none;flex-direction:row;justify-content:flex-start;gap:10px;font-size:13px;padding:9px 14px;border-radius:9px;width:100%}
body.pc-admin .tabbar .tb .gi{width:17px;height:17px;flex:none}
body.pc-admin .tabbar .tb .dot{position:static;margin-left:auto}
body.pc-admin .tabbar .tb.on{background:var(--soft);color:var(--primary-d);font-weight:800}
body.pc-admin .scroll{grid-area:body;padding:22px 30px 40px}
body.pc-admin .hero{padding:16px 20px}
body.pc-admin .hero .hi{font-size:17px}
body.pc-admin .card,body.pc-admin .listrow{padding:14px 16px}
body.pc-admin .stats .stat{padding:14px 12px}
body.pc-admin .stat .v{font-size:26px}

/* 登录页（电脑端）：干净后台登录 —— 深色背景 + 右侧白色登录卡片，卡片里只有表单本身。
   去掉左侧整块品牌介绍、角色说明、演示账号、引导长文；只切 body.pc-login（手机端永不加该类），
   手机登录页界面与文案一字不动。 */
body.pc-login{background:#04091b}
body.pc-login .topbar,
body.pc-wide.pc-login .pcbar,
body.pc-login .navbar,
body.pc-login .tabbar,
body.pc-login .foot{display:none}
body.pc-login .device{flex:1;margin:0;padding:0}
body.pc-login .screen{height:100vh;min-height:560px;display:block;background:transparent;border-radius:0}
body.pc-login .scroll{height:100%;padding:0;overflow-y:auto;display:block}
body.pc-gate .navbar{grid-area:nav;height:56px;padding:0 26px}
body.pc-gate .tabbar{display:none}

/* PC 登录页：极浅米白/淡蓝底 + 淡淡水墨与几何装饰 + 简洁标语 + 登录卡（纯 CSS，无图片依赖） */
.pclogin{position:relative;min-height:100%;display:flex;align-items:center;justify-content:space-between;gap:48px;
  padding:56px clamp(40px,8vw,150px);overflow:hidden;
  background:
    repeating-linear-gradient(45deg,transparent 0,transparent 28px,rgba(124,152,190,.022) 28px,rgba(124,152,190,.022) 29px),
    radial-gradient(900px 640px at 12% 18%,rgba(206,223,243,.34),transparent 70%),
    radial-gradient(780px 620px at 90% 86%,rgba(240,228,208,.30),transparent 70%),
    radial-gradient(620px 520px at 60% 4%,rgba(224,236,249,.26),transparent 72%),
    linear-gradient(135deg,#fbf9f5 0%,#f4f8fc 50%,#faf8f3 100%)}
/* 淡淡几何装饰：右上同心圆环 */
.pclogin:before{content:'';position:absolute;right:-130px;top:-130px;width:540px;height:540px;border-radius:50%;
  pointer-events:none;z-index:0;border:1px solid rgba(150,180,215,.13);
  box-shadow:0 0 0 58px rgba(214,228,244,.09),0 0 0 116px rgba(214,228,244,.06)}
/* 淡淡水墨椭圆：左下柔光 */
.pclogin:after{content:'';position:absolute;left:-150px;bottom:-210px;width:640px;height:540px;
  border-radius:48% 52% 58% 42%/52% 46% 54% 48%;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at 46% 46%,rgba(222,233,246,.40),transparent 68%)}
/* 左侧品牌标语区 */
.pclogin-hero{position:relative;z-index:2;flex:1 1 520px;max-width:640px;min-width:0;pointer-events:none}
.pclogin-hero-copy{position:relative;z-index:3;padding:20px 0 20px 10px}
.pclogin-hero-kicker{display:none}
.pclogin-hero-cn{font-family:"PingFang SC","Microsoft YaHei","HarmonyOS Sans SC","Noto Sans SC","Source Han Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:clamp(38px,4.6vw,62px);line-height:1.3;font-weight:700;letter-spacing:2px;white-space:nowrap;
  color:#1b3a63}
.pclogin-hero-cn span{display:block;color:#2c5b96}
.pclogin-hero-line{margin-top:26px;width:52px;height:3px;border-radius:3px;background:#2f6fd0}
.pclogin-hero-en{margin-top:18px;font-size:15px;letter-spacing:1px;color:#7c8ba3}
.pclogin-top{position:absolute;left:clamp(32px,4vw,64px);top:clamp(28px,4.5vh,52px);z-index:4;
  color:#3a587d;font-size:14.5px;font-weight:700;letter-spacing:.6px}
.pclogin-panel{position:relative;z-index:2;flex:0 0 auto;width:100%;max-width:396px;
  background:#fff;border:1px solid #e6ecf4;border-radius:16px;padding:42px 38px 32px;
  box-shadow:0 22px 60px rgba(35,66,115,.12),0 2px 8px rgba(35,66,115,.05)}
.pclogin-panel:before{content:'';position:absolute;left:38px;right:38px;top:0;height:3px;border-radius:0 0 4px 4px;
  background:linear-gradient(90deg,#1a7ff0,#66b6ff,#1a7ff0)}
.pcform-hd h1{position:relative;font-size:21px;font-weight:700;color:#132439;margin:0 0 28px;letter-spacing:.5px;padding-left:14px}
.pcform-hd h1:before{content:'';position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:3px;background:linear-gradient(#1a7ff0,#66b6ff)}
/* 输入行：左侧小图标 + 输入框，风格对齐参考图（细边框、小圆角、无多余标签） */
.plf{position:relative;margin-bottom:16px}
.plf-ic{position:absolute;left:13px;top:50%;transform:translateY(-50%);display:flex;pointer-events:none}
.plf-ic svg{width:18px;height:18px;fill:none;stroke:#9aa5b4;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pclogin-panel .plf input{width:100%;height:47px;border:1px solid #dde2ea;background:#f7faff;border-radius:8px;
  padding:0 14px 0 40px;font-size:14px;font-family:inherit;color:#1d2733;outline:none;
  transition:border-color .15s,box-shadow .15s,background .15s}
.pclogin-panel .plf input::placeholder{color:#b2bccb}
.pclogin-panel .plf input:focus{border-color:#1a7ff0;background:#fff;box-shadow:0 0 0 3px rgba(26,127,240,.12)}
.plf-ro{display:flex;align-items:center;gap:9px;height:47px;margin-bottom:16px;border:1px solid #e4e8ee;
  background:#f5f8fc;border-radius:8px;padding:0 14px;font-size:14px;color:#4a5566}
.plf-ro .plf-ic{position:static;transform:none}
.plf-ro b{font-weight:600;color:#1d2733;letter-spacing:.3px}
.plf-ro .linkbtn{margin-left:auto}
.linkbtn{background:none;border:0;padding:0;font-family:inherit;font-size:13px;color:#1a7ff0;cursor:pointer}
.linkbtn:hover{text-decoration:underline}
.pclogin-panel .btn.primary{height:47px;border-radius:8px;background:#1a7ff0;background-image:none;
  box-shadow:0 10px 22px rgba(26,127,240,.28);color:#fff;font-size:15px;font-weight:600;letter-spacing:2px;margin-top:8px}
.pclogin-panel .btn.primary:hover{background:#1470dd;box-shadow:0 12px 26px rgba(26,127,240,.38)}
.pclogin-panel .loginerr{font-size:12.5px;color:#d9534f;min-height:18px;margin-top:10px;text-align:left}
.plf-foot{display:flex;justify-content:flex-end;margin-top:2px;min-height:20px}
.plf-foot .linkbtn{color:#8a94a6;font-size:12.5px}
@media(max-width:1180px){ .pclogin{justify-content:center;padding:40px 24px} .pclogin-hero{display:none} }
@media(min-width:2000px){ .pclogin-panel{max-width:430px;padding:46px 42px 36px} }
/* 端限制提示页：宽屏居中卡片（保留原结构，仅放大字号与宽高） */
body.pc-gate .screen{height:auto;min-height:calc(100vh - 56px);display:grid;grid-template-columns:1fr;grid-template-rows:56px auto;grid-template-areas:"nav" "body"}
body.pc-gate .scroll{grid-area:body;padding:48px 32px 60px;display:flex;justify-content:center;align-items:flex-start}
body.pc-gate .login{width:100%;max-width:760px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:40px 44px;margin:0}
body.pc-gate .login h1{font-size:24px}
body.pc-gate .login .sub{font-size:13.5px}
body.pc-gate .login .logo{width:72px;height:72px;font-size:36px}

/* 校长手机精简版：8 个 tab 的紧凑样式 */
body.admin-m .tabbar{padding:5px 1px calc(5px + env(safe-area-inset-bottom))}
body.admin-m .tabbar .tb{font-size:9.5px;gap:3px}
body.admin-m .tabbar .tb .gi{width:22px;height:22px}
body.admin-m .tabbar .tb .dot{right:12%}
/* 手机端「更多」二级入口：图标头像 + 右侧箭头 */
body.admin-m .listrow[data-act="mGo"]{cursor:pointer}
body.admin-m .listrow[data-act="mGo"] .av{display:flex;align-items:center;justify-content:center;color:#8a6c48}
body.admin-m .listrow[data-act="mGo"] .av svg{width:16px;height:16px;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
/* V2.8：集团校长 / 子运营页面里的 .av 用的是 svgIcon（描边图标），
   之前只在 body.admin-m 下有描边规则，其它角色会因默认 fill 变成实心黑方块。这里补一条通用描边。 */
.av svg{width:18px;height:18px;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
/* 现场报名步骤条 */
body.admin-m .chip.g{background:var(--green-bg);color:var(--green);border-color:#cfe6da}

@media(max-width:430px){
  body{padding:0}
  .topbar{padding:10px 12px 6px;max-width:none}
  .device{max-width:none;border-radius:0;padding:0;box-shadow:none;margin-bottom:0}
  .screen{border-radius:0;height:calc(100vh - 92px);height:calc(100dvh - 92px);min-height:440px}
  .foot{padding:14px 16px 26px}
}

/* ==========================================================================
   v2.4.3 · PC 宽屏后台排版（顶部通栏 / 可折叠侧栏 / 表格 / 两栏表单 / 统计卡 / 放大字号）
   铁律：以下每条规则都带 body.pc-wide / body.pc-admin / body.pc-login / body.pc-gate 前缀，
   手机端永远拿不到这些 class，因此手机端样式一行都不受影响。
   ========================================================================== */

/* 顶部通栏：电脑显示、手机隐藏；电脑端 navbar 让位给通栏（仍占 grid 的 nav 行） */
.pcbar{display:none}
body.pc-wide .navbar{display:none}
body.pc-wide .pcbar{display:flex;grid-area:nav;align-items:center;justify-content:space-between;gap:16px;height:56px;padding:0 22px;background:linear-gradient(135deg,#fffaf3,#fdf1e2);border-bottom:1px solid var(--line)}
body.pc-wide .pcb-l,body.pc-wide .pcb-r{display:flex;align-items:center;gap:12px;min-width:0}
body.pc-wide .pcb-sys{font-size:13.5px;font-weight:800;letter-spacing:.3px;white-space:nowrap}
body.pc-wide .pcb-sep{color:#d9cbb8;font-size:15px}
body.pc-wide .pcb-tenant{font-size:12.5px;color:var(--primary-d);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.pc-wide .pcb-fold{width:30px;height:30px;flex:none;border:1.5px solid var(--line);background:#fff;border-radius:9px;font-size:13px;line-height:1;cursor:pointer;color:var(--text);font-family:inherit}
body.pc-wide .pcb-fold:hover{border-color:var(--primary);background:var(--soft)}
body.pc-login .pcb-fold,body.pc-gate .pcb-fold{display:none}
body.pc-wide .pcb-who{font-size:12.5px;font-weight:700;white-space:nowrap}
body.pc-wide .pcb-role{font-size:11px;color:var(--primary-d);background:var(--soft);border:1px solid #f0dcbf;padding:5px 11px;border-radius:14px;font-weight:700;white-space:nowrap}
body.pc-wide .pcb-btn{font-size:12px;padding:8px 15px;border-radius:9px;border:1.5px solid var(--line);background:#fff;color:var(--text);cursor:pointer;font-family:inherit;font-weight:700;white-space:nowrap}
body.pc-wide .pcb-btn:hover{border-color:var(--primary);color:var(--primary-d)}

/* 左侧菜单可折叠：只留图标，靠 title 显示全称 */
body.pc-collapsed.pc-admin .screen{grid-template-columns:66px 1fr}
body.pc-collapsed.pc-admin .tabbar{padding:16px 8px}
body.pc-collapsed.pc-admin .tabbar .tb{justify-content:center;padding:11px 0;gap:0}
body.pc-collapsed.pc-admin .tabbar .tb>span:not(.gi){display:none}
body.pc-collapsed.pc-admin .tabbar .tb .dot{display:none}

/* 列表页面：表格布局（字段横向拉开，行尾操作按钮）—— 字号 / 行高 / 内边距按鼠标操作放大 */
body.pc-wide .ptable-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow);margin-bottom:18px}
body.pc-wide table.ptable{width:100%;border-collapse:collapse;font-size:13px}
body.pc-wide .ptable th{background:#f7f2ea;color:#6b6058;font-size:11.5px;font-weight:700;text-align:left;padding:10px 12px;white-space:nowrap;border-bottom:1px solid var(--line);letter-spacing:.3px}
body.pc-wide .ptable td{padding:11px 12px;border-bottom:1px solid var(--line);color:var(--text);vertical-align:middle;line-height:1.6}
body.pc-wide .ptable tbody tr:last-child td{border-bottom:0}
body.pc-wide .ptable tbody tr:hover td{background:#fdfaf5}
/* 行尾操作列固定在右侧：列多 / 屏幕不够宽时表格内部横滑，但「编辑 / 详情 / 停用」始终可见可点 */
body.pc-wide .ptable td.ops,body.pc-wide .ptable th.ops{text-align:right;white-space:nowrap;position:sticky;right:0;z-index:1;background:#fff;box-shadow:-8px 0 10px -8px rgba(120,95,70,.28)}
body.pc-wide .ptable th.ops{background:#f7f2ea}
body.pc-wide .ptable tbody tr:hover td.ops{background:#fdfaf5}
body.pc-wide .ptable .mini{margin-left:8px;font-size:11.5px;padding:6px 11px}
body.pc-wide .ptable .chip{font-size:10.5px;padding:4px 8px}
body.pc-wide .ptable select{border:1.5px solid var(--line);border-radius:9px;padding:8px 11px;font-size:12.5px;font-family:inherit;background:#fff;color:var(--text);min-width:170px;max-width:280px}

/* 顶部工具栏：搜索 / 筛选 / 新增 / 导出 一行排开（放大到适合鼠标点） */
body.pc-wide .ptoolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:13px 15px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
body.pc-wide .ptoolbar .btn{width:auto;flex:0 0 auto;min-width:118px;padding:9px 14px;font-size:13px}
body.pc-wide .ptoolbar .mini{flex:0 0 auto;padding:7px 12px;font-size:12px}
body.pc-wide .ptoolbar .field{margin:0;flex:1 1 260px;min-width:230px}
body.pc-wide .ptoolbar .field label{display:none}
body.pc-wide .ptoolbar .field input{font-size:13px;padding:9px 12px}
body.pc-wide .ptoolbar input[type="date"]{border:1.5px solid var(--line);border-radius:9px;padding:8px 11px;font-size:12.5px;font-family:inherit;color:var(--text);background:#fff}

/* 新增 / 编辑表单：两栏网格，标签居左输入框居右，长文本整行，按钮右下 */
body.pc-wide .sheet{max-width:860px;display:grid;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:12px;align-content:start}
body.pc-wide .pcform{display:grid;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:12px;align-content:start}
body.pc-wide .sheet>*:not(.field),body.pc-wide .pcform>*:not(.field){grid-column:1/-1}
body.pc-wide .sheet>.field,body.pc-wide .pcform>.field{margin:0;display:grid;grid-template-columns:112px 1fr;align-items:center;gap:12px;min-width:0}
body.pc-wide .sheet>.field>label,body.pc-wide .pcform>.field>label{margin:0;text-align:right;font-size:12px;color:#6b6058;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.pc-wide .sheet>.field:has(textarea),body.pc-wide .pcform>.field:has(textarea){grid-column:1/-1}
body.pc-wide .sheet>.field:has(textarea)>label,body.pc-wide .pcform>.field:has(textarea)>label{align-self:start;padding-top:10px}
body.pc-wide .sheet>.btnrow,body.pc-wide .pcform>.btnrow{justify-content:flex-end;gap:10px;margin-top:6px}
body.pc-wide .sheet>.btnrow>*,body.pc-wide .pcform>.btnrow>*{flex:0 0 auto;min-width:132px}
body.pc-wide .sheet select,body.pc-wide .pcform select{width:100%;border:1.5px solid var(--line);background:#fdfbf7;border-radius:11px;padding:11px 12px;font-size:13px;font-family:inherit;outline:none;color:var(--text)}

/* 概览：统计卡片自适应网格（自动按可用宽度排满一行，换行也不会被拉成整行） */
body.pc-admin .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:16px}
body.pc-admin .stats .stat{min-width:0;padding:15px 12px}
body.pc-admin .stat .v{font-size:26px}
body.pc-admin .stat .l{font-size:11.5px}

/* 字号 / 按钮 / 间距：适配鼠标操作，紧凑精致（电脑端专用，参照 TalkingData 比例） */
body.pc-admin .scroll{font-size:13px}
body.pc-admin .hero{padding:16px 20px;margin-bottom:16px}
body.pc-admin .hero .hi{font-size:17px}
body.pc-admin .hero .mu{font-size:12px}
body.pc-admin .sec{font-size:13.5px;margin:18px 0 10px}
body.pc-admin .sec .more{font-size:11.5px}
body.pc-admin .btn{width:auto;display:inline-block;min-width:118px;font-size:13px;padding:9px 16px}
body.pc-admin .btnrow{gap:10px}
body.pc-admin .btnrow>.btn{flex:0 0 auto}
body.pc-admin .mini{font-size:12px;padding:7px 12px}
body.pc-admin .field input,body.pc-admin .scroll select{font-size:13px;padding:9px 12px}
body.pc-admin .imp-log,body.pc-admin .logrow{font-size:11.5px;line-height:1.8}
body.pc-admin .empty{font-size:12.5px;padding:32px 10px}
body.pc-admin .chip{font-size:11px;padding:5px 9px}
body.pc-admin .card,body.pc-admin .listrow{padding:14px 16px;font-size:13px}
/* PC 端列表头像 / 描边图标按比例缩小（基础 .av 38px 是手机端头像尺寸，不动） */
body.pc-admin .av{width:32px;height:32px;border-radius:10px;font-size:13px}
body.pc-admin .av svg{width:16px;height:16px}

/* 顶部只保留一条通栏：手机品牌栏在电脑端隐藏，实况徽标移入通栏 */
body.pc-wide .topbar{display:none}
body.pc-wide .device{margin:0}
body.pc-wide .pcb-live{font-size:10px;padding:3px 9px;flex:none}

/* 表格单元格默认不换行（列不挤压），长文本列用 .wrap 单独放开 */
body.pc-wide .ptable td{white-space:nowrap}
body.pc-wide .ptable td.wrap{white-space:normal;min-width:220px}

/* ==========================================================================
   v2.5.2 · PC 后台「自适应宽 + 多分辨率」强化
   只追加规则、不修改上面任何一条：原有验收断言全部保持原样；
   每条都带 body.pc-* 前缀，手机端（无这些 class）一行都不受影响。

   解决的三件事：
   1) 宽度自适应：所有祖先容器 100% / max-width:none，grid 的 1fr 列 min-width:0
      允许真正随屏幕收缩，内容区 padding 用 clamp() 随视口缩放，不写死固定值。
   2) 尺寸放大：表格 / 文字 / 按钮字号与内边距改用 clamp()，屏幕越大越舒展，
      按钮点击区域同步变大；弹窗表单在大屏跟着变宽，不再是居中固定 860px 小窗。
   3) 分分辨率适配：1366 笔记本、1600、1920、2K 各自微调留白；
      矮屏不再被 min-height:700px 撑出整页滚动。
   ========================================================================== */

/* 1) 主框架：宽度真正自适应，杜绝任何一层的固定窄宽 */
body.pc-wide .device,body.pc-wide .screen{width:100%;max-width:none}
body.pc-admin .screen{min-height:0}                 /* 矮屏跟随 100vh，不再被 700px 撑开 */
body.pc-wide .scroll{font-size:13px}
body.pc-admin .scroll{min-width:0;padding:clamp(18px,2vw,32px) clamp(18px,2.2vw,36px) 40px}
body.pc-wide .ptable-wrap{width:100%;max-width:none}

/* 2) 表格 / 文字 / 按钮：随视口宽度平滑缩放（紧凑精致、大屏不夸张） */
body.pc-wide table.ptable{font-size:clamp(12.5px,0.85vw,14px)}
body.pc-wide .ptable th{font-size:clamp(11px,0.72vw,12.5px);padding:clamp(9px,0.65vw,12px) clamp(10px,0.8vw,14px)}
body.pc-wide .ptable td{padding:clamp(9px,0.7vw,13px) clamp(10px,0.8vw,14px)}
body.pc-wide .ptable .mini{font-size:clamp(11.5px,0.78vw,12.5px);padding:clamp(6px,0.45vw,9px) clamp(11px,0.75vw,15px)}
body.pc-wide .ptable .chip{font-size:clamp(10.5px,0.7vw,12px);padding:clamp(4px,0.3vw,7px) clamp(8px,0.6vw,12px)}
body.pc-wide .ptable select{font-size:clamp(12.5px,0.82vw,14px);padding:clamp(8px,0.6vw,12px) clamp(10px,0.75vw,14px)}
body.pc-wide .ptoolbar{padding:clamp(13px,0.9vw,18px) clamp(15px,1vw,20px);gap:clamp(10px,0.8vw,14px)}
body.pc-wide .ptoolbar .btn{font-size:clamp(12.5px,0.88vw,13.5px);padding:clamp(9px,0.65vw,12px) clamp(14px,1vw,20px)}
body.pc-wide .ptoolbar .mini{font-size:clamp(12px,0.82vw,13px);padding:clamp(7px,0.5vw,10px) clamp(12px,0.8vw,16px)}
body.pc-wide .ptoolbar .field input{font-size:clamp(13px,0.88vw,14px);padding:clamp(9px,0.65vw,12px) clamp(12px,0.85vw,15px)}
body.pc-admin .scroll{font-size:clamp(13px,0.9vw,14px)}
body.pc-admin .btn{font-size:clamp(12.5px,0.88vw,13.5px);padding:clamp(9px,0.65vw,12px) clamp(16px,1.1vw,22px);min-width:clamp(112px,7.5vw,138px)}
body.pc-admin .mini{font-size:clamp(11.5px,0.8vw,12.5px);padding:clamp(6px,0.5vw,9px) clamp(11px,0.8vw,15px)}
body.pc-admin .field input,body.pc-admin .scroll select{font-size:clamp(13px,0.9vw,14px);padding:clamp(9px,0.65vw,12px) clamp(12px,0.85vw,15px)}
body.pc-admin .card,body.pc-admin .listrow{padding:clamp(13px,1vw,18px) clamp(14px,1.2vw,20px);font-size:clamp(12.5px,0.9vw,14px)}

/* 3) 统计卡 / 标题：随分辨率平滑缩放 */
body.pc-admin .stat .v{font-size:clamp(24px,1.8vw,30px)}
body.pc-admin .stat .l{font-size:clamp(11px,0.78vw,13px)}
body.pc-admin .hero .hi{font-size:clamp(16px,1.15vw,19px)}
body.pc-admin .sec{font-size:clamp(13px,0.92vw,14.5px)}

/* 4) 新增 / 编辑弹窗：大屏跟着变宽，不再是居中固定 860px 小窗（原 860px 规则保留，这里覆盖） */
@media(min-width:1400px){ body.pc-wide .sheet{max-width:min(1180px,88vw)} }
@media(min-width:1800px){ body.pc-wide .sheet{max-width:min(1360px,84vw)} }

/* 5) 分分辨率微调内容区留白（左侧导航菜单结构与宽度保持不动） */
@media(max-width:1366px){ body.pc-admin .scroll{padding:18px 22px 36px} }
@media(min-width:1920px){ body.pc-admin .scroll{padding:36px 56px 56px} }
@media(min-width:2400px){ body.pc-admin .scroll{padding:44px 72px 64px} }

/* 6) 登录页：卡片宽度已由 .pclogin-panel 固定，大屏只微调内边距（见上方 @media(min-width:2000px)） */

/* ==========================================================================
   v2.5.3 · 1366 / 1600 笔记本上表格也要能完整操作
   实测暴露两个真问题：
     1) 10 列表格 + 放大字号后比内容区宽（1366 超 225px、1600 超 87px），
        必须横向滚动才能看到最右边的「状态 / 操作」。
     2) 行尾操作列原本靠 position:sticky 右固定，但 border-collapse:collapse
        会让 td 的 sticky 失效（CSS 已知限制）——横滚时「编辑/详情/停用」消失，
        笔记本上实际点不到按钮。
   修法：① 改 border-collapse:separate + border-spacing:0，视觉与原来一致，
            但 sticky 能正常生效，操作列永远贴在表格右边缘；
         ② 窄屏（≤1500，覆盖 1366 / 1440 / 1500）收紧单元格留白与字号，
            让 10 列尽量一屏放得下，不靠横滚。
   ========================================================================== */

/* ① 修 sticky：separate + spacing:0，边框仍只用 border-bottom，不会出现双线 */
body.pc-wide table.ptable{border-collapse:separate;border-spacing:0}
body.pc-wide .ptable thead th{border-bottom:1px solid var(--line)}
body.pc-wide .ptable tbody td{border-bottom:1px solid var(--line)}

/* ② 窄屏收紧：保证 1366 笔记本一屏能看清全部列并点到按钮 */
@media(max-width:1500px){
  body.pc-wide table.ptable{font-size:13.5px}
  body.pc-wide .ptable th{padding:11px 10px;font-size:12px}
  body.pc-wide .ptable td{padding:12px 10px}
  body.pc-wide .ptable .mini{margin-left:5px;font-size:11.5px;padding:6px 10px}
  body.pc-wide .ptable .chip{font-size:10.5px;padding:4px 8px}
  body.pc-admin .scroll{padding:18px 20px 32px}
  body.pc-wide .ptoolbar{padding:14px 16px;gap:10px}
  body.pc-wide .ptoolbar .btn{font-size:13px;padding:10px 16px;min-width:130px}
}

/* ==========================================================================
   V2.7 · 考勤薪资 / 财务台账 专用样式
   PC 图表用纯 CSS（零依赖）；手机端全部带 body.m-app 前缀，绝不污染 PC 宽屏。
   ========================================================================== */
/* --- PC：月度收支柱状图 --- */
body.pc-wide .fchart{display:flex;align-items:flex-end;gap:14px;min-height:150px;padding:16px 18px;
  background:#fdfbf7;border:1px solid var(--line);border-radius:14px;overflow-x:auto}
body.pc-wide .fbar-col{flex:1;min-width:44px;display:flex;flex-direction:column;align-items:center;gap:6px}
body.pc-wide .fbar-stack{width:100%;height:120px;display:flex;align-items:flex-end;justify-content:center;gap:4px}
body.pc-wide .fbar{width:16px;border-radius:4px 4px 0 0;min-height:2px;transition:height .3s}
body.pc-wide .fbar.in{background:#8fae86}
body.pc-wide .fbar.out{background:#e0a968}
body.pc-wide .fbar-label{font-size:11px;color:var(--muted);white-space:nowrap}
body.pc-wide .flegend{display:flex;gap:18px;justify-content:center;margin:8px 0 4px;font-size:12px;color:var(--muted)}
body.pc-wide .flegend i.dot{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px}
body.pc-wide .flegend i.dot.in{background:#8fae86}
body.pc-wide .flegend i.dot.out{background:#e0a968}
/* --- PC：成本占比条 --- */
body.pc-wide .fratio-row{display:flex;align-items:center;gap:12px;padding:9px 4px;border-bottom:1px solid var(--line);font-size:13px}
body.pc-wide .fratio-name{width:140px;flex:none;font-weight:700}
body.pc-wide .fratio-track{flex:1;height:12px;background:var(--soft);border-radius:6px;overflow:hidden}
body.pc-wide .fratio-fill{height:100%;background:linear-gradient(90deg,#e0a968,#c98a45);border-radius:6px}
body.pc-wide .fratio-val{width:180px;flex:none;text-align:right;color:var(--muted)}
/* 手机端财务看板 / 薪资卡片里的数字不换行 */
body.m-app .stats .stat .v{white-space:nowrap}
body.m-app .listrow[data-act="mySalaryMonth"]{cursor:pointer}
/* 老师手机端 6 个底部 tab：紧凑排布，避免挤换行（只在手机端生效） */
body.m-app:not(.admin-m):not(.pc-wide) .tabbar .tb{font-size:10px;gap:3px}
body.m-app:not(.admin-m):not(.pc-wide) .tabbar .tb .gi{width:23px;height:23px}

/* ==========================================================================
   V2.8 · 连锁订阅域：到期横幅 / 订阅卡 / 报表筛选 / 分校卡 / 套餐卡
   浅色卡片风格与既有 .card/.hero 完全一致；PC 宽屏做多列网格，手机端保持单列卡片。
   ========================================================================== */
/* --- 通用中性 chip（订阅态「已取消」等，历史 .chip 只有 g/r 两色） --- */
.chip.gray{background:#f2eee8;color:var(--muted)}
/* --- 到期提醒横幅（集团校长 / 分校长 / 子运营首页共用） --- */
.sub-banner{border-radius:14px;padding:13px 15px;margin-bottom:13px;font-size:11.5px;line-height:1.75;
  background:#eef4fa;border:1px solid #d7e6f4;color:#3c5872;box-shadow:var(--shadow)}
.sub-banner.info{background:#eef4fa;border-color:#d7e6f4;color:#3c5872}
.sub-banner.warn{background:#fdf2e2;border-color:#f2dcb6;color:#8a6329}
.sub-banner.danger{background:var(--red-bg);border-color:#f0cdc5;color:var(--red)}
.sub-banner .sb-t{font-size:13px;font-weight:800;margin-bottom:5px}
.sub-banner .sb-l{margin:2px 0}
.sub-banner .sb-i{margin-top:7px;padding-top:7px;border-top:1px dashed rgba(0,0,0,.09);font-size:10.5px;opacity:.9}
.sub-banner b{font-weight:800}
/* --- 订阅卡（时效 / 套餐 / 剩余天数 / 金额） --- */
.sub-card{background:#fff;border-radius:15px;padding:14px 15px;margin-bottom:13px;box-shadow:var(--shadow);border:1px solid var(--line)}
.sub-card.warn{border-color:#f0d6a8}
.sub-card.danger{border-color:#eec3ba}
.sub-card .sc-h{font-size:13.5px;font-weight:800;display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}
.sub-card .sc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.sub-card .sc-grid>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.sub-card .sc-grid span{font-size:10px;color:var(--muted)}
.sub-card .sc-grid b{font-size:13px;font-weight:800;color:var(--text);overflow-wrap:anywhere}
.sub-card .sc-foot{margin-top:12px;padding-top:11px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.7}
.sub-card .sc-foot .btn{width:100%}
/* --- 报表统一校区筛选栏 --- */
.sub-filter{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:13px;box-shadow:var(--shadow)}
.sub-filter .sf-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:5px 0;font-size:11.5px}
.sub-filter .sf-lab{width:66px;flex:none;font-weight:800;color:var(--muted);font-size:11px}
.sub-filter .sf-row select{flex:1;min-width:150px;max-width:320px;border:1.5px solid var(--line);background:#fdfbf7;border-radius:9px;
  padding:8px 10px;font-size:12px;font-family:inherit;outline:none;color:var(--text)}
.sub-filter .sf-row select:disabled{background:#f2eee8;color:var(--muted)}
.sub-filter .sub-lock{color:var(--muted);font-size:10.5px}
.sub-lock{color:var(--muted);font-size:10.5px}
/* --- 分校区校长：锁定本校的筛选条（插在已有报表页顶部，不新增菜单项） --- */
.sub-locked{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#f7f4ef;border:1px solid var(--line);
  border-radius:12px;padding:10px 12px;margin-bottom:12px;font-size:11.5px}
.sub-locked .sl-lab{font-weight:800;color:var(--muted);font-size:11px}
.sub-locked select{border:1.5px solid var(--line);background:#f2eee8;border-radius:9px;padding:7px 10px;
  font-size:12px;font-family:inherit;color:var(--muted)}
/* --- 集团看板：分校卡片 --- */
.gbranch{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 14px;margin-bottom:9px;
  box-shadow:var(--shadow);cursor:pointer;transition:transform .15s,box-shadow .15s}
.gbranch:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(160,135,105,.16)}
.gbranch .gb-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px;font-weight:800;margin-bottom:6px}
.gbranch .gb-r{font-size:11px;color:var(--muted);line-height:1.75}
.gbranch .gb-f{margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:10.5px;color:var(--muted);
  display:flex;justify-content:space-between;align-items:center}
.gbranch .gb-f span{color:var(--primary-d);font-weight:800}
/* --- 集团续费：套餐卡 --- */
.gplans{display:grid;grid-template-columns:1fr;gap:9px}
.gplan{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:var(--shadow)}
.gplan .gp-h{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:800;margin-bottom:8px}
.gplan .gp-p{font-size:22px;font-weight:800;color:var(--primary-d);margin-bottom:10px}
.gplan .gp-p span{font-size:11px;color:var(--muted);font-weight:500}
.gplan .gp-n{font-size:10.5px;color:var(--muted)}
.gplan .btn{width:100%}
/* 8 张统计卡（运营经营看板）：PC 宽屏强制 4+4 均衡两行，避免 auto-fit 挤出孤零零第 8 张 */
body.pc-wide .stats.stats-8{grid-template-columns:repeat(4,1fr)}
/* --- PC 宽屏：卡片多列、字号放大，充分利用有效宽度 --- */
body.pc-wide .sub-banner{padding:16px 20px;font-size:13px}
body.pc-wide .sub-banner .sb-t{font-size:15px}
body.pc-wide .sub-card{padding:20px 24px}
body.pc-wide .sub-card .sc-grid{grid-template-columns:repeat(4,1fr);gap:16px 24px}
body.pc-wide .sub-card .sc-grid b{font-size:16px}
body.pc-wide .sub-filter{padding:16px 20px}
body.pc-wide .sub-filter .sf-lab{width:88px;font-size:12.5px}
body.pc-wide .sub-filter .sf-row select{font-size:14px;max-width:420px}
body.pc-wide .gbranch{display:inline-block;width:calc(33.333% - 8px);vertical-align:top;margin:0 8px 12px 0}
body.pc-wide .gplans{grid-template-columns:repeat(3,1fr);gap:14px}
body.pc-wide .gplan .gp-p{font-size:26px}
/* 手机端：分校卡 / 套餐保持单列，数字不换行 */
body.m-app .sub-card .sc-grid b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.m-app .gbranch{width:100%}
body.m-app .gplans{grid-template-columns:1fr}
/* --- 手机端报表表格（V2.8 集团 / 子运营 / 分校长报表弹窗都用 pcTable 渲染）---
   之前 .ptable 全部只在 body.pc-wide 下定义，手机端没有表格样式 → 390px 宽时表头竖排、数据错位。
   这里补一套「横向可滑动 + 不换行 + 紧凑字号」的基础样式，只作用于手机端，PC 规则一字不动。 */
body.m-app .ptable-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);
  border-radius:12px;background:#fff;box-shadow:var(--shadow);margin-bottom:12px}
body.m-app table.ptable{width:100%;min-width:max-content;border-collapse:collapse;font-size:11.5px}
body.m-app .ptable th{background:#f7f2ea;color:#6b6058;font-size:10.5px;font-weight:700;text-align:left;
  padding:9px 11px;white-space:nowrap;border-bottom:1px solid var(--line);letter-spacing:.2px}
body.m-app .ptable td{padding:9px 11px;border-bottom:1px solid var(--line);color:var(--text);
  vertical-align:middle;line-height:1.6;white-space:nowrap}
body.m-app .ptable tbody tr:last-child td{border-bottom:0}
body.m-app .ptable td.wrap{white-space:normal;min-width:120px}
body.m-app .ptable .chip{font-size:9px;padding:3px 6px}
body.m-app .ptable .mini{margin-left:0;font-size:10px;padding:5px 8px}

/* ===== 校长手机端首页 · 与「学员管理页」同款原生米黄版式 =====
   直接复用 .hero/.sec/.stats/.stat/.btn/.btnrow 等既有原生类，配色圆角与学员管理页完全一致。
   仅保留两个首页专属极简类：订阅状态行、经营看板下方小字链接。无独立方格卡片、无浅蓝硬编码。 */
/* 订阅状态行：一行 chip + 状态，无解释文字 */
body.m-app .home-sub{display:flex;align-items:center;gap:8px;background:var(--card);border-radius:14px;
  padding:10px 12px;margin-bottom:12px;box-shadow:var(--shadow)}
body.m-app .home-sub-state{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap}
/* 经营看板下方小字链接 */
body.m-app .home-more{text-align:center;color:var(--primary-d);font-size:12px;font-weight:700;margin:4px 0 2px;cursor:pointer;padding:4px}

/* ===== 手机端（校长 / 老师 / 家长）：清空所有页面底部的说明 / 备注 / 解释文字块 =====
   .imp-log 是全局统一的说明文字块（全站 155 处，均在页面底部）。
   仅在校长/admin、老师/teacher、家长/parent 手机端作用域隐藏，
   功能 / 列表 / 按钮 / 版式 / 配色 / 卡片一律不动；电脑端、运营端不受影响。 */
body.admin-m .imp-log,body.teacher-m .imp-log,body.parent-m .imp-log{display:none!important}
/* 老师 / 家长端作品评论弹层里「正在回复 @xx · 取消回复」夹带可点交互，不是纯说明文字，例外保留（否则取消回复点不到）。校长端维持原样不动。 */
body.teacher-m .imp-log.cm-replying,body.parent-m .imp-log.cm-replying{display:block!important}

/* ===== 校长手机端 · 侧滑返回 =====
   改用 history 占位 + popstate 拦截微信 WebView 原生边缘右滑关闭（逻辑见 app.js 的 pushGuardState / navBack）。
   已移除旧 touch 跟手动画样式(swipe-out)，避免与 WebView 原生手势冲突；版式 / 配色 / 卡片不变。 */

/* ===== 运营 PC · 新建校区表单：分组卡片 + 标签在上整齐网格（本次美化，只作用 .campus-form，不动其他弹窗） ===== */
.sheet .campus-form{display:flex;flex-direction:column;gap:16px}
.cf-group{border:1px solid #ebe5da;background:#fdfcf9;border-radius:14px;padding:16px 18px 18px}
.cf-group-title{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:800;color:#4a4038;margin-bottom:15px}
.cf-step{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:50%;background:var(--primary);color:#fff;font-size:12px;font-weight:800;flex:none}
.cf-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;align-items:start}
.cf-item{display:flex;flex-direction:column;gap:7px;min-width:0}
.cf-item.cf-full{grid-column:1/-1}
.cf-label{font-size:12.5px;color:#5c5249;font-weight:600;line-height:1.5}
.cf-label em{color:#c0392b;font-style:normal;font-weight:700}
.cf-item input,.cf-item select{width:100%;border:1.5px solid #e3dcd0;background:#fff;border-radius:10px;padding:11px 13px;font-size:13px;font-family:inherit;color:var(--text);outline:none;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.cf-item input::placeholder{color:#c4beb4;opacity:1}
.cf-item input:focus,.cf-item select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(214,158,90,.16)}
/* 归属类型：两段式卡片单选，选中高亮 */
.cf-radios{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cf-radio{display:flex;align-items:center;gap:10px;border:1.5px solid #e3dcd0;background:#fff;border-radius:11px;padding:11px 14px;cursor:pointer;transition:border-color .15s,background .15s}
.cf-radio:has(input:checked){border-color:var(--primary);background:#fdf4e9}
.cf-radio input{width:17px!important;height:17px;flex:none;margin:0;accent-color:var(--primary)}
.cf-radio span{font-size:13px;font-weight:700;color:#4a4038;display:flex;flex-direction:column;gap:2px}
.cf-radio small{font-size:11px;font-weight:400;color:#92877a}
.cf-actions{margin-top:2px}
/* 大屏：两组卡片并排，缩短弹窗高度；窄屏回退上下堆叠 */
@media(min-width:1400px){
  .sheet .campus-form{display:grid;grid-template-columns:1.15fr 1fr;gap:18px;align-items:start}
  .sheet .campus-form .cf-actions{grid-column:1/-1}
}
@media(max-width:560px){
  .cf-grid,.cf-radios{grid-template-columns:1fr}
}
/* 大屏下 select 统一为卡片输入框样式（覆盖通用 pc-wide select 规则，保证与 input 一致对齐） */
body.pc-wide .sheet .cf-item select{width:100%;border:1.5px solid #e3dcd0;background:#fff;border-radius:10px;padding:11px 13px;font-size:13px;font-family:inherit;color:var(--text);outline:none;box-sizing:border-box}
body.pc-wide .sheet .cf-item select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(214,158,90,.16)}

/* ===== 地址长文本：省略号 + 点击看全文/复制/编辑（本次美化，只作用 .addr-*，不动其他） ===== */
.addr-chip{display:inline-flex;align-items:center;gap:8px;max-width:210px;border:0;background:none;padding:0;cursor:pointer;color:var(--text);font-family:inherit;font-size:inherit;text-align:left}
.addr-chip:hover{color:var(--primary)}
.addr-chip .addr-more{color:var(--primary);font-size:11.5px;font-weight:700;white-space:nowrap;border-bottom:1px dashed rgba(214,158,90,.55)}
.addr-chip:hover .addr-more{border-bottom-style:solid}
.addr-full{background:#fdfbf7;border:1.5px solid #ebe5da;border-radius:12px;padding:18px 20px;font-size:15px;line-height:1.9;color:var(--text);word-break:break-all;user-select:text;min-height:64px}
.addr-tools{display:flex;gap:10px;flex-wrap:wrap}
.addr-tools .btn{min-width:110px;justify-content:center}
textarea.addr-textarea{width:100%;min-height:96px;resize:vertical;border:1.5px solid #e3dcd0;background:#fff;border-radius:10px;padding:12px 13px;font-size:13px;font-family:inherit;color:var(--text);outline:none;box-sizing:border-box;line-height:1.7}
textarea.addr-textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(214,158,90,.16)}
body.pc-wide .ptable td .addr-chip{font-size:inherit}

/* ===== 新建校区：统一价格套餐下拉 + 带入预览（只作用 .fee-sel / .fee-preview，不动其他） ===== */
.cf-item select.fee-sel{width:100%;border:1.5px solid #e3dcd0;background:#fff;border-radius:10px;padding:11px 13px;font-size:13px;font-family:inherit;color:var(--text);outline:none;box-sizing:border-box;transition:border-color .15s,box-shadow .15s;cursor:pointer}
.cf-item select.fee-sel:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(214,158,90,.16)}
.fee-preview{border:1.5px dashed #e3dcd0;background:#fdfcf9;border-radius:12px;padding:13px 16px;font-size:12.5px;line-height:1.8;color:#948979;min-height:52px}
.fee-preview.on{border:1.5px solid #d9e8d6;background:linear-gradient(135deg,#f4faf3,#fdfcf9)}
.fee-preview .fp-title{font-weight:800;color:#3f7a4a;font-size:12.5px;margin-bottom:8px}
.fee-preview .fp-row{display:flex;align-items:baseline;gap:12px;padding:5px 0;border-bottom:1px solid #eef2ea}
.fee-preview .fp-row:last-of-type{border-bottom:0}
.fee-preview .fp-row span{color:#6b6058;min-width:44px}
.fee-preview .fp-row b{font-size:17px;color:#2f6b3b;font-weight:800}
.fee-preview .fp-row em{font-style:normal;color:#9a9083;font-size:11.5px}
.fee-preview .fp-note{margin-top:8px;color:#948979;font-size:11.5px}
body.pc-wide .sheet .cf-item select.fee-sel{width:100%;border:1.5px solid #e3dcd0;background:#fff;border-radius:10px;padding:11px 13px;font-size:13px;font-family:inherit;color:var(--text);outline:none;box-sizing:border-box}
body.pc-wide .sheet .cf-item select.fee-sel:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(214,158,90,.16)}

/* ===== 套餐配置页：统一价格三步引导条 ===== */
.plan-guide{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:4px 0 16px;padding:14px 18px;border:1px solid #efe6d6;border-radius:14px;background:linear-gradient(135deg,#fdf7ec,#fdfcf9)}
.plan-guide .pg-step{display:flex;align-items:center;gap:9px;flex:1;min-width:190px}
.plan-guide .pg-step b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:50%;background:var(--primary);color:#fff;font-size:13px;font-weight:800}
.plan-guide .pg-step span{font-size:12.5px;color:#5c5249;font-weight:600;line-height:1.5}
.plan-guide .pg-arrow{color:#c9b79c;font-size:18px;font-weight:700;flex:none}
@media(max-width:900px){.plan-guide .pg-arrow{display:none}.plan-guide .pg-step{min-width:100%}}

/* ================= V3.5 角色管理（照 TalkingData 布局）：搜索栏 / 权限标签 / 两列复选矩阵 ================= */
.role-toolbar{display:flex;gap:10px;align-items:center;margin:2px 0 14px;flex-wrap:wrap}
.role-search{flex:0 0 320px;max-width:100%;border:1.5px solid var(--line);background:#fff;border-radius:8px;padding:9px 13px;font-size:12.5px;font-family:inherit;color:var(--text)}
.role-search:focus{outline:none;border-color:#3e83f8}
.rbtn{border:none;border-radius:7px;padding:9px 18px;font-size:12.5px;font-weight:700;cursor:pointer;font-family:inherit;flex:none}
.rbtn.blue{background:#3e83f8;color:#fff}
.rbtn.blue:active{background:#2f6ce0}
.rbtn.red{background:#f56c6c;color:#fff}
.rbtn.sm{padding:5px 13px;font-size:11.5px;border-radius:6px}
.role-pagebar{display:flex;gap:8px;align-items:center;font-size:12px;color:#7a7268;margin:14px 4px 4px}
.pg-btn{min-width:26px;height:26px;border:1px solid var(--line);background:#fff;border-radius:6px;font-size:12px;color:#7a7268;font-family:inherit}
.pg-btn.on{background:#3e83f8;border-color:#3e83f8;color:#fff}
.pg-jump{width:44px;height:26px;border:1px solid var(--line);border-radius:6px;text-align:center;font-size:12px;color:var(--text)}
.rt-desc{color:var(--muted);font-size:12px;max-width:200px;line-height:1.5}
.rt-perms{max-width:430px;line-height:2}
.rtag{display:inline-block;background:#eef4fe;color:#3e83f8;border-radius:5px;padding:2px 8px;font-size:10.5px;margin:1px 5px 1px 0;font-weight:600}
.rtag.gray{background:#f1ede6;color:#8a7f72;font-weight:600}
.role-edit{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px 28px 22px;max-width:880px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.rf{display:flex;gap:0;margin-bottom:18px}
.rf-l{flex:0 0 72px;font-size:12.5px;color:#4a443c;padding-top:9px;font-weight:700}
.rf-l b{margin-right:3px}
.rf-in{flex:1;max-width:420px;border:1.5px solid var(--line);border-radius:8px;padding:9px 13px;font-size:12.5px;font-family:inherit;color:var(--text)}
.rf-in:focus,.rf-ta:focus{outline:none;border-color:#3e83f8}
.rf-ta{flex:1;border:1.5px solid var(--line);border-radius:8px;padding:9px 13px;font-size:12.5px;font-family:inherit;color:var(--text);resize:vertical;min-height:64px}
.perm-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 40px;flex:1;align-content:start}
.perm-col{min-width:0}
.perm-it{display:flex;align-items:center;gap:9px;font-size:12px;color:#55504a;padding:6px 0;cursor:pointer;border-bottom:1px dashed #f0ebe2}
.perm-it input{width:auto;margin:0;accent-color:#3e83f8;flex:none}
.perm-it .pm-tip{color:var(--muted);font-size:10.5px}
/* 角色编辑页列顶「全选」行（V3.5.2）：加粗、与选项区分、下方实线 */
.perm-all{font-size:12.5px;color:#333;padding:8px 0;border-bottom:1px solid #e8e2d8;margin-bottom:4px}
.perm-all input{accent-color:#3e83f8}
.perm-note{font-size:10.5px;color:var(--muted);margin:-4px 0 18px 72px}

/* ==================== V3.7 家长端界面整改（奶油风 · 柔和低饱和，仅 body.parent-m 生效） ====================
   目标：轻量融合式功能入口 + 浅奶油底学习概览 + 无深绿大横幅。作用域严格限定家长手机端，
   不改其他端、不改业务结构。底部 4 tab / 消息中心 / 全部模块入口逻辑完全沿用 V3.6，仅视觉调整。 */
body.parent-m .screen{
  --bg:#faf7f0;--card:#fffdf8;--text:#5b4d3d;--muted:#a2947f;--line:#f0e8d9;
  --primary:#a07d52;--primary-d:#8a6941;--soft:#f7efe1;
  --green:#8fa87c;--green-bg:#f1f5ea;--red:#c47a68;--red-bg:#fbf0ec;
  --shadow:0 2px 10px rgba(120,95,60,.04);
}
body.parent-m{background:#f4efe5}
/* 家长端通用 hero：浅奶油渐变，去掉厚重感 */
body.parent-m .hero{background:linear-gradient(135deg,#fffdf8,#f8f1e4);border:1px solid #f0e8d9}
body.parent-m .navbar{background:#fffdf8}
body.parent-m .navbar .tt{color:#8a6941}
body.parent-m .navbar .who{background:#f8f1e4;border-color:#f0e8d9}
body.parent-m .scroll{background:#faf7f0}

/* 首页学习概览卡：浅奶油底 + 暖色文字层次（不再是深绿大横幅） */
.phero{background:linear-gradient(135deg,#fdf9f0,#f9f1e1);border:1px solid #f0e5d2;border-radius:20px;padding:15px 16px 13px;margin-bottom:13px;color:#5b4d3d;position:relative;overflow:hidden}
.ph-top{position:relative;z-index:1;padding-right:70px}
.ph-name{font-size:15px;font-weight:800;letter-spacing:.2px;color:#5b4d3d}
.ph-cls{font-size:10.5px;color:#a2947f;margin-top:5px;line-height:1.5}
.ph-remain{position:absolute;right:16px;top:14px;text-align:center;z-index:1}
.ph-num{font-size:32px;font-weight:800;line-height:1;color:#b08d57}
.ph-unit{font-size:9.5px;color:#a2947f;margin-top:3px}
.ph-bar{height:5px;border-radius:5px;background:#ece0c8;margin:13px 0 7px;overflow:hidden;position:relative;z-index:1}
.ph-bar i{display:block;height:100%;border-radius:5px;background:#c9a87c}
.ph-foot{display:flex;justify-content:space-between;font-size:10px;color:#a2947f;position:relative;z-index:1}
.ph-foot .low{color:#b5a18e;font-weight:600}

/* 家长端所有卡片圆角统一 20px（柔和一致）：概览卡 / 待办 / 作品 / 签到 / 消息卡 */
body.parent-m .listrow,
body.parent-m .card,
body.parent-m .artcard,
body.parent-m .checkincard,
body.parent-m .msghub-card{border-radius:20px}

/* 轻量功能入口（首页常用功能 / 我的全部功能）：融合式文字标签，无方块卡片感 */
.qlinks{display:grid;grid-template-columns:repeat(6,1fr);gap:12px 8px}
body.parent-m .qlinks .ql{grid-column:span 2;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 4px;background:#fffdf8;border:1px solid #efe5d4;border-radius:7px;font-size:11.5px;font-weight:600;color:#6b5a45;cursor:pointer;line-height:1;transition:background .12s,transform .12s}
body.parent-m .qlinks .ql:active{background:#f7efe1;transform:scale(.96)}
/* 首页恰好 5 项（作品/课时/请假/通知/留言）：前 3 项第一行，后 2 项各占半行 → 3+2 均衡两行 */
body.parent-m .qlinks .ql:nth-child(4):nth-last-child(2),
body.parent-m .qlinks .ql:nth-child(5):nth-last-child(1){grid-column:span 3}
.qlinks .ql svg{width:14px;height:14px;stroke:#b08d57;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pgrid-art{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:start}
/* 教师端轻量入口：与家长端同一套融合式小标签（首页常用功能 / 我的全部功能） */
body.teacher-m .qlinks .ql{grid-column:span 2;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 4px;background:#fffdf8;border:1px solid #efe5d4;border-radius:7px;font-size:11.5px;font-weight:600;color:#6b5a45;cursor:pointer;line-height:1;transition:background .12s,transform .12s}
body.teacher-m .qlinks .ql:active{background:#f7efe1;transform:scale(.96)}
body.teacher-m .qlinks .ql:nth-child(4):nth-last-child(2),
body.teacher-m .qlinks .ql:nth-child(5):nth-last-child(1){grid-column:span 3}

/* 消息中心聚合卡片：奶油浅底、去阴影 */
body.parent-m .msghub-card{display:flex;align-items:center;gap:11px;background:#fffdf8;border:1px solid #f0e8d9;border-radius:12px;padding:12px 13px;margin-bottom:9px;cursor:pointer;transition:background .12s}
body.parent-m .msghub-card:active{background:#f8f1e4}
.mh-ic{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none}
.mh-ic.b{background:#f7efe1;color:#8a6941}
.mh-ic.g{background:#f1f0e6;color:#8a8a5e}
.mh-ic svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mh-main{flex:1;min-width:0}
.mh-t{font-size:13px;font-weight:700;color:var(--text);display:flex;align-items:center;gap:6px}
.mh-d{font-size:10.5px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-badge{background:#fbf0ec;color:#c47a68;font-size:9px;font-weight:700;padding:2px 7px;border-radius:9px;white-space:nowrap}
.mh-arrow{color:#c5b69d;font-size:19px;flex:none}

/* 家长端底部 4 tab：奶茶色选中态 */
body.parent-m .tabbar{height:58px;padding:4px 6px calc(4px + env(safe-area-inset-bottom))}
body.parent-m .tabbar .tb{font-size:11px;gap:3px}
body.parent-m .tabbar .tb .gi{width:24px;height:24px}
body.parent-m .tabbar .tb.on{color:#8a6941}
body.parent-m .tabbar .tb.on .gi{background:var(--soft);border-radius:10px;padding:2px}

/* ==================== V3.9 教师端视觉对齐（奶油浅色系 · 仅 body.teacher-m 生效） ====================
   目标：老师工作台与家长端视觉统一。只覆盖配色、卡片圆角、状态标签与底部导航样式；
   页面结构、功能、文字、按钮、数据与路由一律不动。 */
body.teacher-m .screen{
  --bg:#faf7f0;--card:#fffdf8;--text:#5b4d3d;--muted:#a2947f;--line:#f0e8d9;
  --primary:#a07d52;--primary-d:#8a6941;--soft:#f7efe1;
  --green:#8fa87c;--green-bg:#f1f5ea;--red:#c47a68;--red-bg:#fbf0ec;
  --shadow:0 2px 10px rgba(120,95,60,.04);
}
body.teacher-m{background:#f4efe5}
body.teacher-m .scroll{background:#faf7f0}
body.teacher-m .navbar{background:#fffdf8}
body.teacher-m .navbar .tt{color:#8a6941}
body.teacher-m .navbar .who{background:#f8f1e4;border-color:#f0e8d9}

/* 欢迎卡 / 统计卡 / 待办卡与家长端卡片统一 20px 圆角，浅奶油底、去厚重阴影 */
body.teacher-m .hero{
  background:linear-gradient(135deg,#fffdf8,#f8f1e4);
  border:1px solid #f0e8d9;border-radius:20px;
}
body.teacher-m .hero .hi{color:var(--text)}
body.teacher-m .hero .mu{color:var(--muted)}
body.teacher-m .stat,
body.teacher-m .listrow,
body.teacher-m .card,
body.teacher-m .artcard,
body.teacher-m .checkincard{border-radius:20px}
body.teacher-m .stat{background:#fffdf8;border:1px solid #f0e8d9}
body.teacher-m .listrow,
body.teacher-m .card{background:#fffdf8;border:1px solid #f0e8d9}
body.teacher-m .nm .n{color:var(--text)}
body.teacher-m .nm .d{color:var(--muted)}
/* 作品发布待办卡原有内联红条过重，仅降饱和为家长端同款暖红，不改结构与交互 */
body.teacher-m .card[style*="border-left"]{border-left-color:#c47a68!important}

/* 教师端「我的」标准资料头：姓名置顶 + 头像点击更换，延续奶油浅色系 */
body.teacher-m .tprofile{background:linear-gradient(135deg,#fffdf8,#f8f1e4);border:1px solid #f0e8d9;border-radius:20px;padding:16px 15px 12px;margin-bottom:14px}
body.teacher-m .tp-top{display:flex;align-items:center;gap:12px}
body.teacher-m .tav-wrap{position:relative;width:68px;height:68px;flex:none;cursor:pointer}
body.teacher-m .tav-img{width:68px;height:68px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 8px rgba(120,95,60,.08);display:block}
body.teacher-m .tav-ph{display:flex;align-items:center;justify-content:center;background:#f1ece3;color:#8a6941;font-size:26px;font-weight:800}
body.teacher-m .tp-info{flex:1;min-width:0}
body.teacher-m .tp-name{font-size:18px;font-weight:800;color:var(--text);line-height:1.3}
body.teacher-m .tp-sub{font-size:11.5px;color:var(--muted);margin-top:5px;line-height:1.5}
body.teacher-m .tp-edit{width:28px;height:28px;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid #efe5d4;border-radius:9px;background:#fffdf8;color:#8a6941;cursor:pointer}
body.teacher-m .tp-edit svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.teacher-m .tp-tip{font-size:10.5px;color:var(--muted);margin-top:10px;text-align:center}

/* 资料编辑弹层 */
body.teacher-m .te-av-row{display:flex;align-items:center;gap:12px;margin-bottom:16px}
body.teacher-m .te-av-wrap{width:64px;height:64px;flex:none}
body.teacher-m .te-av-img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 8px rgba(120,95,60,.08);display:block}
body.teacher-m .te-av-ph{display:flex;align-items:center;justify-content:center;background:#f1ece3;color:#8a6941;font-size:24px;font-weight:800}
body.teacher-m .te-tip{font-size:10.5px;color:var(--muted);margin-top:6px;line-height:1.5}

/* 教师端小字号整体上调约 1px，保持奶油风不变 */
body.teacher-m .sec{font-size:13px}
body.teacher-m .sec .more{font-size:10.5px}
body.teacher-m .nm .n{font-size:13.5px}
body.teacher-m .nm .d{font-size:11.5px}
body.teacher-m .qlinks .ql{font-size:12px}
body.teacher-m .stat .l{font-size:10px}
body.teacher-m .chip{font-size:10px}
body.teacher-m .hero .mu{font-size:11.5px}

/* 状态标签：沿用家长端低饱和暖棕 / 灰绿，降低刺眼感 */
body.teacher-m .chip{background:#f7efe1;color:#8a6941;font-weight:600}
body.teacher-m .chip.r{background:#fbf0ec;color:#c47a68;font-weight:600}
body.teacher-m .chip.g{background:#f1f5ea;color:#8fa87c;font-weight:600}

/* 底部导航：与家长端 4 tab 的图标尺寸、文字字号与选中态一致 */
body.teacher-m .tabbar{height:58px;padding:4px 6px calc(4px + env(safe-area-inset-bottom))}
body.teacher-m .tabbar .tb{font-size:11px;gap:3px}
body.teacher-m .tabbar .tb .gi{width:24px;height:24px}
body.teacher-m .tabbar .tb.on{color:#8a6941}
body.teacher-m .tabbar .tb.on .gi{background:var(--soft);border-radius:10px;padding:2px}

/* ==================== V3.9 家长端全页面视觉统一（二级/三级页沿用首页奶油风） ====================
   作用域严格限定 body.parent-m。只统一视觉规范：底色/圆角/留白/文字配色/弱化高饱和。
   不照搬首页布局，不动任何功能、data-act 事件与数据逻辑。 */
/* 1. 全局底色：去纯白，统一浅暖米 */
body.parent-m .card,
body.parent-m .artcard,
body.parent-m .checkincard,
body.parent-m .msghub-card,
body.parent-m .listrow,
body.parent-m .logrow,
body.parent-m .field input{background:#fffdf8;border:1px solid #f0e8d9;box-shadow:0 2px 10px rgba(120,95,60,.04)}

/* 2. 圆角统一：主卡片 20px（与概览卡一致），记录条 16px，输入/头像 14px */
body.parent-m .hero,
body.parent-m .card,
body.parent-m .artcard,
body.parent-m .checkincard,
body.parent-m .msghub-card,
body.parent-m .listrow{border-radius:20px}
body.parent-m .logrow,
body.parent-m .imp-log{border-radius:16px}
body.parent-m .field input,
body.parent-m .av{border-radius:14px}
body.parent-m .card img,
body.parent-m .card video{border-radius:12px !important}

/* 3. 弱化高饱和：头像 inline 高饱和底 → 低饱和暖米；白字 → 暖棕；灰按钮/主按钮统一暖色 */
body.parent-m .av{background:#efe3d1 !important;color:#9a7b58 !important}
body.parent-m .mini.gray{background:#f3ece1;color:#8f806f}
body.parent-m .btn.primary{background:linear-gradient(135deg,#b98f5f,#9c7348);box-shadow:0 4px 12px rgba(156,115,72,.22)}
body.parent-m .btn.primary:disabled{background:#ece5d9;color:#b3a696;box-shadow:none}

/* 4. 文字配色标准：暗褐 → 暖棕；辅助文字统一 muted；标题统一暖深棕 */
body.parent-m [style*="color:#6b6058"]{color:#6b5a45 !important}
body.parent-m .card b,
body.parent-m .listrow .n,
body.parent-m .logrow b{color:var(--text)}
body.parent-m .imp-log{background:#f7f1e7;color:#8a7a68}

/* 5. 留白节奏：标题/卡片/记录条间距统一，呼吸感舒适不拥挤 */
body.parent-m .hero{padding:18px}
body.parent-m .hero .hi{font-size:17px}
body.parent-m .sec{margin:18px 2px 10px;color:#6b5a45}
body.parent-m .card{padding:15px;margin-bottom:11px}
body.parent-m .listrow{padding:13px 12px;margin-bottom:10px;gap:11px}
body.parent-m .logrow{padding:11px 13px;margin-bottom:8px;font-size:11px;line-height:1.7}
body.parent-m .btnrow{gap:9px}

/* ==================== v74 家长端「孩子资料编辑」头像样式（沿用奶油风，仅 body.parent-m） ==================== */
/* 列表/弹层里的孩子头像：有图片时圆形裁切铺满，无图沿用原首字底色 */
body.parent-m .av.av-img{padding:0;overflow:hidden;background:#efe3d1}
body.parent-m .av.av-img img{width:100%;height:100%;object-fit:cover;display:block}
/* 编辑弹层：头像预览 + 选择按钮横排 */
body.parent-m .child-av-row{display:flex;align-items:center;gap:14px}
body.parent-m .child-av-prev .av{width:62px;height:62px;border-radius:16px;font-size:24px}

/* ==================== v75 家长端右上角多孩切换器（奶油风，仅 body.parent-m） ==================== */
body.parent-m .navbar{position:relative}
body.parent-m .navbar .who.kid-switch{background:transparent;border:0;padding:0}
/* 触发胶囊：当前孩子头像 + 姓名 + 下拉箭头 */
.ck-trigger{display:inline-flex;align-items:center;gap:6px;background:#f8f1e4;border:1px solid #f0e8d9;border-radius:18px;padding:3px 9px 3px 4px;cursor:pointer;color:#6b5a45}
.ck-trigger .av{width:26px;height:26px;border-radius:50%;font-size:12px;flex:none}
.ck-cur{font-size:12px;font-weight:700;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ck-caret{font-size:11px;color:#a08a6b;transition:transform .15s}
.kid-menu.open ~ * .ck-caret,body.parent-m .kid-menu.open .ck-caret{transform:rotate(180deg)}
/* 下拉面板：绝对定位在 navbar 右下，右上角对齐胶囊 */
.kid-menu{display:none;position:absolute;right:12px;top:48px;width:230px;background:#fffdf8;border:1px solid #f0e8d9;border-radius:16px;box-shadow:0 10px 30px rgba(120,95,60,.16);padding:8px;z-index:60}
.kid-menu.open{display:block;animation:kmIn .16s ease-out}
@keyframes kmIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.km-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:800;color:#6b5a45;padding:6px 8px 9px;border-bottom:1px dashed #efe5d4;margin-bottom:5px}
.km-head span{font-size:10px;font-weight:600;color:#a2947f}
body.parent-m .km-row{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:12px;cursor:pointer;transition:background .12s}
body.parent-m .km-row:active{background:#f7efe1}
body.parent-m .km-row.on{background:#f8f1e4}
.km-row .av{width:38px;height:38px;border-radius:12px;font-size:16px;flex:none}
.km-info{flex:1;min-width:0}
.km-name{font-size:13px;font-weight:700;color:#5b4d3d;display:flex;align-items:center;gap:6px}
.km-now{font-size:9px;font-weight:700;color:#a07d52;background:#f3e8d5;border-radius:8px;padding:1px 6px}
.km-cls{font-size:10.5px;color:#a2947f;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.km-check{color:#a07d52;font-size:16px;font-weight:800;flex:none}
.km-tip{font-size:10px;color:#a2947f;text-align:center;padding:8px 4px 3px;border-top:1px dashed #efe5d4;margin-top:5px;line-height:1.5}

/* ==================== v90 家长端「账户信息」二级入口（仿教师端设置页，沿用奶油配色，仅 body.parent-m） ==================== */
body.parent-m .set-entry{display:flex;align-items:center;gap:11px;background:#fffdf8;border:1px solid #efe5d4;border-radius:20px;padding:14px 14px;box-shadow:var(--shadow);cursor:pointer;transition:background .12s,transform .12s}
body.parent-m .set-entry:active{background:#f7efe1;transform:scale(.995)}
body.parent-m .se-ic{width:38px;height:38px;border-radius:12px;background:#f6ead6;display:flex;align-items:center;justify-content:center;flex:none}
body.parent-m .se-ic svg{width:20px;height:20px;stroke:#b08d57;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.parent-m .se-tx,body.parent-m .so-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
body.parent-m .se-tx b,body.parent-m .so-tx b{font-size:13.5px;font-weight:700;color:#6b5a45;line-height:1.4}
body.parent-m .se-tx small,body.parent-m .so-tx small{font-size:11px;color:#a2947f;line-height:1.55}
body.parent-m .se-arrow{color:#b8a892;font-size:20px;line-height:1;flex:none}
body.parent-m .set-opt{display:flex;align-items:center;gap:11px;background:#fffdf8;border:1px solid #efe5d4;border-radius:15px;padding:13px 13px;margin-bottom:10px;cursor:pointer;transition:background .12s,transform .12s}
body.parent-m .set-opt:active{background:#f7efe1;transform:scale(.995)}
body.parent-m .set-opt.static{cursor:default}
body.parent-m .set-opt.static:active{background:#fffdf8;transform:none}
body.parent-m .so-ic{width:36px;height:36px;border-radius:12px;background:#f6ead6;display:flex;align-items:center;justify-content:center;flex:none}
body.parent-m .so-ic svg{width:19px;height:19px;stroke:#b08d57;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.parent-m .set-opt.danger .so-ic{background:#f9e8e3}
body.parent-m .set-opt.danger .so-ic svg{stroke:#c98d7e}
body.parent-m .set-opt.danger .so-tx b{color:#b57363}

/* ==================== v82 家长端校区简介：环境相册大图 + 教师风采展开（仅奶油风） ==================== */
body.parent-m .cp-env-item{cursor:pointer}
body.parent-m .cp-env-photo{position:relative;overflow:hidden;border-radius:12px;background:#f3ede3}
body.parent-m .cp-env-photo img{display:block;width:100%;height:100px;object-fit:cover;border-radius:12px !important}
body.parent-m .cp-env-zoom{position:absolute;right:6px;bottom:6px;background:rgba(255,253,248,.92);color:#8a6d4b;border-radius:8px;padding:2px 6px;font-size:9px;font-weight:700;box-shadow:0 2px 6px rgba(120,95,60,.12)}
body.parent-m .cp-env-big{display:block;width:100%;max-height:58vh;object-fit:contain;border-radius:14px;background:#f3ede3;touch-action:pan-y}
body.parent-m .cp-t-card{cursor:pointer;transition:border-color .15s,background .15s}
body.parent-m .cp-t-card.open{border-color:#e0bd8e;background:#fffaf1}
body.parent-m .cp-t-line{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
body.parent-m .cp-t-caret{font-size:10px;color:#a07d52;white-space:nowrap;flex:none;padding-top:3px}
body.parent-m .cp-t-detail{margin-top:10px;border-top:1px dashed #efe5d4;padding-top:9px;animation:cpFade .16s ease}
body.parent-m .cp-t-row{display:flex;gap:8px;font-size:10.5px;line-height:1.7;margin-bottom:5px}
body.parent-m .cp-t-row span{flex:none;width:52px;color:#a2947f}
body.parent-m .cp-t-row b{flex:1;min-width:0;font-weight:600;color:#6b5a45;word-break:break-word}
body.parent-m .cp-t-more{font-size:9.5px;color:#b1a18c;text-align:center;margin-top:6px}
@keyframes cpFade{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}

/* ==================== v87 教师端「我的」：设置入口 + 二级设置页（沿用奶油风） ==================== */
body.teacher-m .set-entry{display:flex;align-items:center;gap:11px;background:#fffdf8;border:1px solid #efe5d4;border-radius:14px;padding:12px 13px;box-shadow:var(--shadow);cursor:pointer;transition:background .12s,transform .12s}
body.teacher-m .set-entry:active{background:#f7efe1;transform:scale(.995)}
body.teacher-m .se-ic{width:36px;height:36px;border-radius:11px;background:#f6ead6;display:flex;align-items:center;justify-content:center;flex:none}
body.teacher-m .se-ic svg{width:19px;height:19px;stroke:#b08d57;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.teacher-m .se-tx,body.teacher-m .so-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
body.teacher-m .se-tx b,body.teacher-m .so-tx b{font-size:13px;font-weight:700;color:#6b5a45}
body.teacher-m .se-tx small,body.teacher-m .so-tx small{font-size:10.5px;color:#a2947f;line-height:1.5}
body.teacher-m .se-arrow{color:#b8a892;font-size:20px;line-height:1;flex:none}
body.teacher-m .set-opt{display:flex;align-items:center;gap:11px;background:#fffdf8;border:1px solid #efe5d4;border-radius:14px;padding:12px 13px;margin-bottom:10px;cursor:pointer;transition:background .12s,transform .12s}
body.teacher-m .set-opt:active{background:#f7efe1;transform:scale(.995)}
body.teacher-m .so-ic{width:34px;height:34px;border-radius:11px;background:#f6ead6;display:flex;align-items:center;justify-content:center;flex:none}
body.teacher-m .so-ic svg{width:18px;height:18px;stroke:#b08d57;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.teacher-m .set-opt.danger .so-ic{background:#f9e8e3}
body.teacher-m .set-opt.danger .so-ic svg{stroke:#c98d7e}
body.teacher-m .set-opt.danger .so-tx b{color:#b57363}

/* ==================== v88 教师端编辑资料弹层：卡片化排版，去技术提示 ==================== */
body.teacher-m .pf-avatar-card{display:flex;align-items:center;gap:14px;background:#fffdf8;border:1px solid #efe5d4;border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:var(--shadow)}
body.teacher-m .pf-avatar-card .te-av-wrap{width:68px;height:68px;flex:none}
body.teacher-m .pf-avatar-card .te-av-img{width:68px;height:68px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 8px rgba(120,95,60,.10);display:block}
body.teacher-m .pf-avatar-card .te-av-ph{display:flex;align-items:center;justify-content:center;background:#f1ece3;color:#8a6941;font-size:26px;font-weight:800}
body.teacher-m .pf-avatar-side{flex:1;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:7px}
body.teacher-m .pf-avatar-side .btn{margin:0;width:100%}
body.teacher-m .pf-avatar-side small{font-size:10.5px;color:#a2947f;line-height:1.4}
body.teacher-m .pf-field{gap:11px}
body.teacher-m .pf-field:active{transform:none;background:#fffdf8}
body.teacher-m .pf-field .so-tx small{font-size:10px}
body.teacher-m .pf-name-input{flex:0 0 42%;min-width:0;border:1.5px solid #efe5d4;background:#fff;border-radius:10px;padding:8px 10px;font-size:12px;font-family:inherit;color:#5b4d3d;outline:none}
body.teacher-m .pf-name-input:focus{border-color:#d8bd93}
body.teacher-m .pf-phone{cursor:default;background:#fbf7f0}
body.teacher-m .pf-phone:active{transform:none;background:#fbf7f0}
body.teacher-m .pf-phone .so-tx small{font-size:10.5px;line-height:1.5}

/* ==================== v89 老师个人亮点编辑 + 家长端本班老师展示（奶油风） ==================== */
body.teacher-m .pf-card{background:#fffdf8;border:1px solid #efe5d4;border-radius:14px;padding:4px 13px;margin-bottom:12px;box-shadow:var(--shadow)}
body.teacher-m .pf-card .pf-avatar-card{border:0;box-shadow:none;background:transparent;padding:12px 0 10px;margin:0}
body.teacher-m .pf-line{padding:10px 0;border-bottom:1px solid #f2eadc}
body.teacher-m .pf-line:last-child{border-bottom:0}
body.teacher-m .pf-line label{display:block;font-size:11.5px;font-weight:700;color:#6b5a45;margin-bottom:6px}
body.teacher-m .pf-line label span{font-weight:400;color:#a2947f;font-size:10px;margin-left:4px}
body.teacher-m .pf-line input,body.teacher-m .pf-line textarea{width:100%;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:9px 11px;font-size:13px;font-family:inherit;color:var(--text);outline:none}
body.teacher-m .pf-line input:focus,body.teacher-m .pf-line textarea:focus{border-color:#d8bd93}
body.teacher-m .pf-line textarea{height:64px;resize:none;line-height:1.6}
body.teacher-m .pf-line .pf-val{font-size:13px;color:#8a7b68;padding:2px 0}
body.teacher-m .pf-line.readonly label span{color:#b1a18c}
body.teacher-m .pf-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.teacher-m .pf-sec{font-size:12.5px;font-weight:800;color:#6b5a45;margin:14px 0 8px;display:flex;align-items:baseline;gap:7px}
body.teacher-m .pf-sec small{font-size:10px;font-weight:400;color:#a2947f}
body.teacher-m .pf-works-empty{font-size:11px;color:#a2947f;text-align:center;padding:16px;background:#faf6ee;border-radius:10px}
body.teacher-m .pf-works-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
body.teacher-m .pf-work{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#f3ede3}
body.teacher-m .pf-work img{width:100%;height:100%;object-fit:cover;display:block}
body.teacher-m .pf-work span{position:absolute;right:4px;top:4px;width:20px;height:20px;line-height:18px;text-align:center;border-radius:50%;background:rgba(255,253,248,.94);color:#b5736d;font-size:16px;font-weight:700;cursor:pointer}
body.teacher-m .pf-hint{font-size:10px;color:#a2947f;text-align:center;margin-top:7px}
/* 家长端：老师卡片 / 详情 / 作品 */
body.parent-m .pt-card{cursor:pointer;transition:border-color .15s,background .15s}
body.parent-m .pt-card:hover,body.parent-m .pt-card:active{border-color:#e0bd8e;background:#fffaf1}
.pt-av{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 8px rgba(120,95,60,.10);flex:none;background:#f3ede3}
.pt-av-ph{display:flex;align-items:center;justify-content:center;background:#f1ece3;color:#8a6941;font-size:22px;font-weight:800}
.pt-av-big{width:66px;height:66px;border-radius:16px;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 8px rgba(120,95,60,.10);flex:none;background:#f3ede3}
.pt-info{background:#faf6ee;border:1px solid #efe5d4;border-radius:12px;padding:8px 12px}
.pt-info-row{display:flex;gap:10px;font-size:11px;line-height:1.8;padding:3px 0}
.pt-info-row span{width:60px;flex:none;color:#a2947f}
.pt-info-row b{flex:1;min-width:0;font-weight:600;color:#6b5a45;word-break:break-word}
.pt-head{display:flex;gap:12px;align-items:center;margin:10px 0}
.pt-works{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pt-work{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#f3ede3;cursor:pointer}
.pt-work img{width:100%;height:100%;object-fit:cover;display:block}
.pt-work span{position:absolute;left:0;right:0;bottom:0;background:rgba(255,253,248,.9);color:#6b5a45;font-size:9.5px;text-align:center;padding:3px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===== v93 家长端/老师端「我的-设置」二级信息页（当前版本 / 关于我们 / 协议 / 隐私） ===== */
.fm-info-top{display:flex;align-items:center;margin:-2px 0 10px}
.fm-info-top span{font-size:12px;color:#a2947f;cursor:pointer;padding:4px 8px;margin-left:-8px;border-radius:8px}
.fm-info-top span:active{background:#f7efe1;color:#8a6941}
.fm-info-ver{display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column;padding:22px 0 14px}
.fm-info-ver b{font-size:30px;letter-spacing:.5px;color:#6b5a45;font-weight:800}
.fm-info-ver .chip{font-size:11px;padding:5px 12px;border-radius:12px}
.fm-info-note{font-size:11px;line-height:1.8;color:#a2947f;background:#faf6ee;border:1px solid #efe5d4;border-radius:12px;padding:10px 12px;margin-top:12px}
.fm-info-card{background:#fffdf8;border:1px solid #efe5d4;border-radius:14px;padding:4px 13px}
.fm-info-k{font-size:10px;color:#a2947f;margin-top:11px}
.fm-info-v{font-size:12.5px;color:#6b5a45;font-weight:600;line-height:1.7;word-break:break-word;margin-bottom:11px;border-bottom:1px dashed #efe5d4;padding-bottom:8px}
.fm-info-card .fm-info-v:last-child{border-bottom:none;margin-bottom:6px;padding-bottom:0}
.fm-info-doc{max-height:56vh;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#fffdf8;border:1px solid #efe5d4;border-radius:14px;padding:6px 14px}
.fm-info-p{font-size:12px;line-height:1.85;color:#6b6058;margin:10px 0}
.fm-info-p:first-child{font-weight:800;color:#6b5a45;font-size:13px;margin-top:12px}

/* ===== v94 登录页简洁化：隐藏左上角「登录 / 未登录」navbar 标题行（仅纯登录态，登录后自动恢复） ===== */
body.auth-login .navbar{display:none}
/* ===== v96 登录页：底部空白条的真因是空 tabbar 仍占位+白底，纯登录态一并隐藏；
   登录内容改为在可用高度里垂直居中（内容超高时自动从顶部滚动，不会裁切），底部给系统手势区留安全距离。
   只作用于 body.auth-login.m-app，登录后 / 端限制页 / PC 端全部不受影响。 ===== */
body.auth-login .tabbar{display:none}
body.auth-login.m-app .scroll{display:flex;align-items:flex-start;justify-content:center;padding:0 14px calc(14px + env(safe-area-inset-bottom,0px))}
body.auth-login.m-app .login{width:100%;margin:auto 0;padding:0 26px;transform:translateY(-4vh)}
