:root {
  --primary: #2f9e63;
  --primary-dark: #237a4c;
  --primary-soft: #e8f6ee;
  --bg: #f2f7f4;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e2ece6;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}

a { color: var(--primary); }
button { font-family: inherit; }

/* ------------------------------------------------------------------ 登录 */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: linear-gradient(160deg, #e8f6ee 0%, #f2f7f4 45%, #ffffff 100%);
}
.login-box {
  width: 100%; max-width: 420px; background: var(--card); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 28px 24px; border: 1px solid var(--border);
}
.login-box h1 { font-size: 20px; margin: 0 0 4px; }
.login-logo {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  box-shadow: 0 6px 16px rgba(47, 158, 99, .28);
}
.login-box { text-align: left; }
.login-box h1, .login-box .sub { text-align: center; }
.login-box .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.login-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.login-tabs button {
  flex: 1; padding: 9px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #fff; color: var(--muted); cursor: pointer; font-size: 14px;
}
.login-tabs button.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; background: #fff; color: var(--text); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 158, 99, .14); }
/* v1.71.9 修复：.field input 的 width:100%/padding 会污染多选列表里的 checkbox（勾选框撑满整行、文字被挤到下一行） */
.pj-mp-list input[type="checkbox"], [data-sr] input[type="checkbox"] {
  width: 16px !important; height: 16px !important; padding: 0 !important; margin: 0 !important; flex: 0 0 auto;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--primary); color: #fff; cursor: pointer; font-size: 15px; font-weight: 600;
}
.btn:hover { background: var(--primary-dark); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--border); font-weight: 500; }
.btn.ghost:hover { background: #f6faf7; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.danger { background: var(--danger); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.demo-list { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.demo-list h4 { font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.demo-chip {
  display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; cursor: pointer; color: var(--text);
}
.demo-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ------------------------------------------------------------------ 外壳：左侧栏 + 主区（2026-09-16 改版：薄荷绿工作台风格） */
.shell { display: flex; min-height: 100vh; align-items: stretch; }
.side {
  width: 232px; flex: 0 0 232px; background: #fff; border-right: 1px solid var(--border);
  padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { display: flex; gap: 10px; align-items: center; padding: 2px 6px; }
.side-brand .brand-ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(47, 158, 99, .28);
}
.side-brand b { display: block; font-size: 15.5px; line-height: 1.3; }
.side-brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.side-nav { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.side-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 13px; border: none; background: none; border-radius: 12px;
  font-size: 14.5px; color: var(--muted); cursor: pointer; text-align: left; white-space: nowrap;
}
.side-nav button svg { flex: 0 0 auto; }
.side-nav button:hover { background: #f3f8f5; color: var(--text); }
.side-nav button.on { background: var(--primary-soft); color: var(--ac, var(--primary)); font-weight: 600; }
.side-foot { border-top: 1px dashed var(--border); padding-top: 12px; }
.side-foot .who { font-size: 13px; color: var(--muted); line-height: 1.4; padding: 0 6px; }
.side-foot .who b { color: var(--text); font-size: 14px; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 12px 22px; display: flex; align-items: center; gap: 12px;
}
.top-title { font-size: 17px; margin: 0; }
.date-chip {
  padding: 5px 12px; border-radius: 999px; background: var(--primary-soft);
  color: var(--primary); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.topbar .spacer { flex: 1; }
.topbar .brand { font-weight: 700; font-size: 16px; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.topbar .brand small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.topbar .who { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.3; }
.topbar .who b { color: var(--text); font-size: 14px; }
/* v1.39.0 页面容器：每次进入页面换一个全新容器，旧容器随切页作废——
   上一页迟到的异步写入自然落空，不再把新页面盖掉（详见 app.js 的说明）。 */
.page-view { display: block; min-width: 0; }

.wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding: 20px 24px 44px; }

/* ------------------------------------------------------------------ 卡片 */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.card.entry { cursor: pointer; transition: .16s; position: relative; overflow: hidden; }
.card.entry:hover { border-color: var(--ac, var(--primary)); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.card.entry::after {
  content: ''; position: absolute; right: -22px; top: -22px; width: 72px; height: 72px;
  border-radius: 50%; background: var(--ac, var(--primary)); opacity: .08; pointer-events: none;
}
.card.entry .ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.card.entry h3 { margin: 0 0 4px; font-size: 16px; }
.card.entry p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.card.entry .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #f3f4f6; color: var(--muted); }
.tag.on { background: var(--primary-soft); color: var(--primary); }
.tag.phase { background: var(--warn-soft); color: var(--warn); }
.tag.ok { background: var(--success-soft); color: var(--success); }
.tag.bad { background: var(--danger-soft); color: var(--danger); }

.section-title { font-size: 15px; font-weight: 700; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--primary); flex: 0 0 auto; }
.section-title:first-child { margin-top: 6px; }
.section-title .line { flex: 1; height: 1px; background: var(--border); }

/* 带图标的节标题（首页 / 工作台新风格） */
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin: 22px 0 12px; }
.sec-h .sec-ico {
  width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

/* 首页统计大卡：软彩底图标 + 右上角装饰圆 */
.qstat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.qstat {
  position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow);
}
.qstat::after {
  content: ''; position: absolute; right: -20px; top: -20px; width: 76px; height: 76px;
  border-radius: 50%; background: var(--qc, var(--primary-soft)); opacity: .5; pointer-events: none;
}
.qstat .q-ico {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.qstat .q-n { font-size: 26px; font-weight: 700; line-height: 1.2; position: relative; z-index: 1; }
.qstat .q-n small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.qstat .q-l { font-size: 13px; color: var(--muted); margin-top: 2px; position: relative; z-index: 1; }

/* 今日快捷操作卡 */
.qa-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.qa-card {
  display: flex; gap: 12px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow); cursor: pointer; transition: .16s;
}
.qa-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); border-color: var(--qc, var(--primary)); }
.qa-card .qa-ico {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; flex: 0 0 auto;
}
.qa-card b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.qa-card .qa-d { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat .n { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat .n small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------------ 表格 */
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: #f4faf6; color: #33604a; font-weight: 600; font-size: 13px; position: sticky; top: 0; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f7fbf8; }
td.wrap-cell { white-space: normal; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  cursor: pointer; font-size: 14px; color: var(--muted);
}
.tabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ------------------------------------------------------------------ 表单行 */
.form-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-items: end; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }

/* ------------------------------------------------------------------ 课表（薄荷绿风格：表头浅绿、有课格子淡绿） */
.timetable { width: 100%; border-collapse: collapse; font-size: 13px; }
.timetable th, .timetable td { border: 1px solid #d7e8dd; padding: 6px 8px; text-align: center; white-space: normal; min-width: 88px; }
.timetable th { background: #e3f2e9; color: #1f6b43; }
.timetable th small { font-weight: 400; }
.timetable td.empty { background: #fbfdfb; color: #c4d6ca; }
.timetable tbody td:not(.empty) { background: #f2faf5; }
.timetable td b { color: #1f6b43; }
.timetable td.head-lesson { background: var(--primary-soft); }

/* ------------------------------------------------------------------ 弹窗与提示 */
.mask {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .42); z-index: 90;
  display: flex; padding: 18px;
  overflow-y: auto;   /* 弹窗内容高于屏幕时可整体下滚（v1.32.3 修复巡检单填 2 个班后无法下翻） */
}
.modal { background: #fff; border-radius: 14px; max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; margin: auto; /* margin:auto 居中：内容超高时顶部不被裁掉且可滚动 */ }
.modal.wide { max-width: 880px; }
.modal h3 { margin: 0; padding: 16px 18px 0; font-size: 16px; }
.modal .body { padding: 12px 18px; font-size: 14px; color: var(--text); }
.modal .body p { margin: 0 0 10px; }
.modal .foot { padding: 12px 18px 16px; display: flex; justify-content: flex-end; gap: 8px; }
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #111827; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 90vw; }
.toast.ok { background: #15803d; }
.toast.err { background: #b91c1c; }

.hint { font-size: 13px; color: var(--muted); background: #f7fbf8; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.empty-box { text-align: center; padding: 40px 20px; color: var(--muted); }
.loading { text-align: center; padding: 30px; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; font-size: 13px;
}
.chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.chip .x { cursor: pointer; color: var(--muted); font-weight: 700; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; }
.kv .k { color: var(--muted); }
.list-plain { margin: 0; padding-left: 18px; font-size: 14px; }
.list-plain li { margin-bottom: 3px; }

/* 审批中心：页内标签条、双列表单栅格、单据卡片列表 */
.tabbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabbar button {
  padding: 8px 14px; border: 1px solid var(--border); background: #fff; border-radius: 999px;
  font-size: 14px; color: var(--muted); cursor: pointer;
}
.tabbar button.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
/* 课程安排表「节次」格：节名 + 上下课时间（块级两行，避免行内内边距叠字） */
.slot-cell { display: inline-block; text-align: left; line-height: 1.5; }
.slot-cell .slot-time { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; }
/* 页签红点数字（审批中心：待我签名 / 待我审批 / 我的申请 / 全部记录） */
.tabbar .tb-badge {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 5px; margin-left: 6px; border-radius: 9px;
  background: #dc2626; color: #fff; font-size: 11px; font-weight: 700;
  text-align: center; vertical-align: 1px;
}
.tabbar button.on .tb-badge { background: #fff; color: #dc2626; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.list-cards { display: flex; flex-direction: column; gap: 8px; }
.list-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.list-item:hover { border-color: var(--primary); }
.tag.err { background: #fee2e2; color: #b91c1c; }
.tag.ok { background: #dcfce7; color: #15803d; }

/* 顶栏通知铃铛 */
.bell { position: relative; border: none; background: none; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; }
.bell:hover { background: var(--primary-soft); color: var(--primary); }
.bell-badge {
  position: absolute; top: -2px; right: -4px; background: #dc2626; color: #fff;
  font-size: 11px; line-height: 16px; min-width: 16px; height: 16px; border-radius: 8px;
  padding: 0 4px; text-align: center; font-weight: 700;
}
.bell-panel {
  position: fixed; top: 52px; right: 12px; width: min(360px, calc(100vw - 24px));
  max-height: 65vh; overflow: auto; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 60; padding: 10px 12px;
}
.bell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bell-item { border-bottom: 1px solid var(--border); padding: 8px 2px; cursor: pointer; }
.bell-item:last-child { border-bottom: none; }
.bell-item.unread { background: var(--primary-soft); border-radius: 8px; padding-left: 8px; }

/* ------------------------------------------------------------------ 窄屏：侧栏折叠为顶部横排导航 */
@media (max-width: 920px) {
  .shell { display: block; }
  .side { position: static; height: auto; width: auto; flex: none; padding: 12px; gap: 10px; border-right: none; border-bottom: 1px solid var(--border); overflow: visible; }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav button { flex: 0 0 auto; width: auto; padding: 9px 13px; }
  .side-foot { display: none; }
  .wrap { padding: 14px; }
}

@media (max-width: 560px) {
  .topbar .brand small { display: none; }
  .grid, .grid.wide { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .qstat-row, .qa-row { grid-template-columns: repeat(2, 1fr); }
  .kv { grid-template-columns: 90px 1fr; }
}

/* ==================================================================== 手机版外壳
   2026-09-17 校长口径：手机端＝钉钉/浏览器进入后的「快捷工作台」，只放常用模块，
   顶部一条细栏（☰ 我的 / 标题 / 通知），内容区＝简讯卡 + 分组图标；没有底部栏、没有「全部入口」。
   能进哪些模块由校长在「系统 → 手机端」统一设定（全校一套），复杂操作在电脑端完成。
   桌面端外壳与样式完全不受影响。 */
@media (max-width: 768px) {
  /* v1.35.0：手机端所有输入控件字号 >=16px——夸克/iOS 内核对 <16px 的输入框聚焦时会自动放大页面且不回弹
     （校长 2026-09-18 反馈"登录进去就要手动缩小"的根因）；并禁用文本自动调整。 */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  input, select, textarea { font-size: 16px !important; }
  .m-shell { display: flex; flex-direction: column; min-height: 100vh; }
  .m-top {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 6px;
    padding: 8px 8px; padding-top: calc(8px + env(safe-area-inset-top));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
  }
  .m-title {
    flex: 1; min-width: 0; font-size: 17px; text-align: center;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .m-btn {
    width: 40px; height: 40px; flex: 0 0 40px; border: none; background: none; cursor: pointer;
    border-radius: 11px; color: var(--text); position: relative;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .m-btn:active { background: var(--primary-soft); }
  .m-btn .bell-badge { top: 4px; right: 3px; }
  /* v1.77.1：「退出」两字在 40px 定宽里放不下会竖排换行——放开定宽 */
  .m-top .m-btn.m-out { width: auto; flex: 0 0 auto; padding: 0 10px; font-size: 12.5px; }
  .m-main { flex: 1; padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); }
  /* 手机端内容微调：表格更紧凑，工具栏允许换行 */
  .toolbar { flex-wrap: wrap; gap: 8px; }
  th, td { font-size: 13px; padding: 6px 8px; }
  .modal { width: calc(100vw - 24px); max-width: 460px; }
}

/* ===================== 手机工作台首页（2026-09-17 校长口径 · 方案一） =====================
   全局定义（不放在媒体查询里），这样「系统 → 手机端」在电脑上也能预览真实样式。
   结构：问候 → 三张简讯卡（今日课程/今日任务/我的申请）→ 分组图标（点开即填表）。
   2026-09-17 校长口径：不再有「全部入口」与底部快捷栏——手机端能进哪些模块，全部由后台配置决定。 */
.m-greet { display: flex; align-items: center; gap: 8px; margin: 2px 0 11px; }
.m-greet-t { flex: 1; min-width: 0; font-size: 19px; font-weight: 700; }
.m-greet-t small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.m-brief {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--bbg); border: 1px solid var(--bbd); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 9px;
}
.m-brief:active { filter: brightness(.98); }
.m-brief-ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bc); color: #fff;
}
.m-brief-tx { flex: 1; min-width: 0; }
.m-brief-tx b { font-size: 13.5px; display: block; }
.m-brief-tx span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.m-brief-n {
  font-style: normal; background: #dc2626; color: #fff; font-size: 10px;
  border-radius: 8px; padding: 0 5px; margin-left: 6px;
}
.m-brief-arr { color: #b6bdc7; font-size: 18px; }
.m-brief.calm { background: #f6f8fa; border-color: #e6eaef; }
.m-brief.calm .m-brief-ico { background: #aab4c0; }
.m-group { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 10px 8px; margin-top: 11px; }
.m-group h4 { font-size: 13.5px; margin-bottom: 11px; }
.m-group h4 small { color: var(--muted); font-size: 10.5px; font-weight: 400; margin-left: 6px; }
.m-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 19px; }
.m-app {
  border: none; background: none; cursor: pointer; padding: 5px 2px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.m-app-ico {
  width: 46px; height: 46px; border-radius: 13px; color: #fff; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.m-app:active .m-app-ico { transform: scale(.94); }
.m-app b { font-size: 11px; font-weight: 500; line-height: 1.25; text-align: center; }
.m-app.todo b { color: var(--muted); }
/* v1.33.1: 记录类图标右上角「查」角标——与填报类图标一眼区分，防误触 */
.m-app-q { position: absolute; bottom: -4px; right: -6px; background: #33604a; color: #fff; font-size: 9px; font-style: normal; line-height: 1; padding: 3px 5px; border-radius: 8px; border: 1.5px solid #fff; }
.modal .foot { flex-wrap: wrap; }
.m-out { color: #b91c1c; font-size: 13px; font-weight: 500; padding: 4px 8px; }
.m-app-n {
  position: absolute; top: -4px; right: -6px; background: #ff4d4f; color: #fff;
  font-style: normal; font-size: 9.5px; border-radius: 9px; padding: 1px 5px; border: 1.5px solid #fff;
}
.m-app-tag {
  font-style: normal; font-size: 9px; color: #b3904a; background: #fdf6e6;
  border: 1px solid #f0e3c2; border-radius: 4px; padding: 0 4px;
}
/* 通用底部面板（简讯卡详情、任务清单） */
.m-sheet { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; }
.m-sheet-top {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: #fff; border-bottom: 1px solid var(--border);
}
.m-sheet-title { flex: 1; min-width: 0; font-size: 15px; }
.m-sheet-body { flex: 1; overflow: auto; padding: 12px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.m-sheet-foot {
  display: flex; gap: 10px; flex-wrap: wrap; padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--border);
}
.m-sheet-foot .btn { flex: 1; min-width: 104px; }
/* ☰「我的」面板（本人身份 + 账号操作） */
.m-me {
  display: flex; align-items: center; gap: 11px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px;
}
.m-me-av {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; color: #fff;
  background: var(--primary); display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 600;
}
.m-me-tx { flex: 1; min-width: 0; }
.m-me-tx b { font-size: 16px; display: block; }
.m-me-tx span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.m-note { font-size: 12px; color: var(--muted); line-height: 1.75; padding: 12px 4px 0; }
.m-row, .m-task { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; margin-bottom: 9px; }
.m-row { display: flex; gap: 10px; align-items: flex-start; }
.m-row-k { flex: 0 0 88px; font-size: 12.5px; font-weight: 600; color: var(--primary); }
.m-row-v { flex: 1; min-width: 0; font-size: 13px; }
.m-task { display: flex; gap: 10px; align-items: center; }
.m-task-tx { flex: 1; min-width: 0; }
.m-task-tx b { font-size: 13.5px; display: block; }
.m-task-tx span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
/* 电脑上打开面板时收成居中卡片，不占满整屏 */
@media (min-width: 769px) {
  .m-sheet {
    inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(560px, 92vw); max-height: 78vh; border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; box-shadow: 0 22px 60px rgba(16, 24, 40, .22);
  }
}

/* ===================== 手机专用表单（2026-09-17 校长口径） =====================
   巡课登记 / 请假申请的手机版排布：控件一律大号、一屏一步、底部固定操作条。
   字段与接口跟电脑端完全一致，电脑端表单不受影响。 */
.fm-sec { margin-bottom: 12px; }
.fm-sec > label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.fm-sec textarea, .fm-sec input[type=date], .fm-actual select, .fm-more input { font-size: 15px; }
.fm-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fm-slot {
  border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 9px 4px;
  font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.fm-slot small { font-size: 10px; color: var(--muted); }
.fm-slot.on { border-color: var(--primary); background: var(--primary-soft); color: #1f6b47; font-weight: 700; }
.fm-classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fm-cls {
  border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 11px 4px;
  font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.fm-cls small { font-size: 10px; color: #b45309; }
.fm-cls.on { border-color: var(--primary); background: var(--primary-soft); color: #1f6b47; font-weight: 700; }
.fm-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.fm-quick button {
  border: 1px solid var(--border); background: #fff; border-radius: 16px;
  padding: 5px 12px; font-size: 12px; cursor: pointer;
}
.fm-quick button:active { border-color: var(--primary); background: var(--primary-soft); }
.fm-seg { display: flex; gap: 6px; }
.fm-seg > button {
  flex: 1; border: 1px solid #e7ebf0; background: #f4f6f9; border-radius: 9px;
  padding: 10px 0; font-size: 13px; color: #6b7280; cursor: pointer;
}
.fm-seg > button.on { background: #eaf7f0; border-color: var(--primary); color: #217a55; font-weight: 700; }
.fm-two { display: flex; gap: 12px; }
.fm-two > div { flex: 1; min-width: 0; }
.fm-note {
  font-size: 12px; color: var(--muted); background: #f6f8fa; border: 1px solid #e6eaef;
  border-radius: 9px; padding: 8px 10px; line-height: 1.6; margin: 8px 0;
}
.fm-note.hide { display: none; }
.fm-sum { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.fm-auto {
  font-size: 12.5px; background: #eaf7f0; border: 1px solid #cdebd9; color: #2f6b52;
  border-radius: 10px; padding: 9px 11px; line-height: 1.6; margin-bottom: 10px;
}
.fm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fm-chip { border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 4px 10px; font-size: 11.5px; cursor: pointer; }
.fm-chip.on { border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.fm-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; margin-bottom: 10px; }
.fm-card h4 { font-size: 13px; margin-bottom: 8px; }
.fm-card h4 small { font-size: 10.5px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.fm-line { font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; line-height: 1.7; }
.fm-line b { color: var(--text); }
.fm-link { display: block; margin-top: 4px; border: none; background: none; color: #2563eb; font-size: 12px; padding: 0; cursor: pointer; text-align: left; }
.fm-actual { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px; margin-top: 8px; }
.fm-actual label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.fm-shoot {
  width: 100%; border: 2px dashed #b9c6d4; background: #fbfcfd; border-radius: 12px;
  padding: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.fm-shoot-ico { font-size: 26px; }
.fm-shoot b { font-size: 13.5px; color: #37516b; }
.fm-shoot small { font-size: 10.5px; color: #93a1af; }
.fm-thumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.fm-thumb { position: relative; }
.fm-thumb img { width: 86px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.fm-thumb button {
  position: absolute; top: -6px; right: -6px; border: none; background: var(--danger); color: #fff;
  border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 11px;
}
.fm-more { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; margin-bottom: 10px; font-size: 12.5px; }
.fm-more summary { cursor: pointer; color: var(--muted); }
.fm-more input { width: 100%; margin-top: 8px; }
.fm-add { width: 100%; margin-bottom: 8px; }
.fm-rest { font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.fm-bar {
  position: sticky; bottom: 0; display: flex; gap: 9px; padding: 10px 0 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 45%);
}
.fm-bar .btn { padding: 13px 0; font-size: 14.5px; }
.fm-b1 { flex: 0 0 96px; }
.fm-b2 { flex: 1; }
.fm-steps { display: flex; align-items: center; gap: 6px; padding: 2px 2px 12px; }
.fm-step {
  width: 22px; height: 22px; border-radius: 50%; background: #eef1f5; color: #9aa2ad;
  font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.fm-step.on { background: var(--primary); color: #fff; }
.fm-step.done { background: #d6f0e3; color: #2f8a5c; }
.fm-stepline { flex: 0 0 22px; height: 2px; background: #eef1f5; }
.fm-steptx { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.fm-aff { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid #f2f4f7; }
.fm-aff:last-child { border-bottom: none; }
.fm-aff b { background: #eef3ff; color: #3b6fd4; border-radius: 6px; padding: 1px 7px; font-size: 11.5px; }
.fm-aff span { color: var(--muted); }
.fm-cands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fm-cand {
  border: 1px solid #cdebd9; background: #f6fdf9; border-radius: 10px; padding: 9px 10px;
  font-size: 13px; font-weight: 600; color: #245c43; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; text-align: left;
}
.fm-cand small { font-size: 10.5px; font-weight: 400; color: #4e8a6c; }
.fm-cand.on { border-color: var(--primary); background: var(--primary-soft); }
.fm-busy { font-size: 12.5px; color: #9aa2ad; padding: 6px 0; border-bottom: 1px dashed #eef1f5; display: flex; justify-content: space-between; gap: 8px; }
.fm-busy small { font-size: 11px; color: #b0b7c0; }
.fm-pick2 { display: flex; gap: 9px; }
.fm-pick {
  flex: 1; border: 1px solid var(--border); background: #fff; border-radius: 11px; padding: 11px 10px;
  cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px;
}
.fm-pick b { font-size: 13px; }
.fm-pick small { font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.fm-pick.on { border-color: var(--primary); background: #f4fdf9; }
.fm-kv { display: flex; gap: 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid #f2f4f7; }
.fm-kv:last-child { border-bottom: none; }
.fm-kv span { flex: 0 0 52px; color: var(--muted); }
.fm-kv b { flex: 1; text-align: right; }

/* 必填项红色星号（证明文件等选填项不标） */
.req { color: #dc2626; font-style: normal; font-weight: 700; margin-left: 2px; }
/* 课程安排表里未选代课人的下拉：红框提示 */
.lv-sub-sel.miss { border-color: #dc2626; background: #fef2f2; }

/* 手写签名：详情/复核页的签名图片 */
.sig-img { height: 34px; max-width: 150px; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; vertical-align: middle; }
/* 手写签名板 */
.sig-box { position: relative; }
.sig-pad { width: 100%; height: 150px; border: 1.5px dashed #94a3b8; border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.sig-tip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #94a3b8; font-size: 13px; pointer-events: none; }

/* ===================== 界面精修（2026-09-16 排版优化） ===================== */
/* 标签：更立体的软色底 + 细描边 */
.tag { border: 1px solid transparent; font-weight: 500; }
.tag.on  { border-color: rgba(47, 158, 99, .35); }
.tag.phase { border-color: rgba(217, 119, 6, .35); }
.tag.ok  { border-color: #bbf7d0; }
.tag.err, .tag.bad { border-color: #fecaca; }
/* 主按钮：轻投影；幽灵按钮 hover 描边上色 */
.btn { box-shadow: 0 1px 2px rgba(47, 158, 99, .28); }
.btn.ghost { box-shadow: none; }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn.danger { box-shadow: 0 1px 2px rgba(220, 38, 38, .28); }
/* 页签：选中态轻投影 */
.tabbar button.on { box-shadow: 0 1px 3px rgba(47, 158, 99, .3); }
/* 表格：隔行浅底、表头字距 */
th { letter-spacing: .04em; }
/* 列表卡片：卡片间留缝，避免贴在一起 */
.card.list-cards { display: grid; gap: 8px; padding: 12px; }
/* 月度报表勾选列 */
.rp-chk-lb { display: flex; justify-content: center; }
.rp-chk { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* 个人工作台卡片头（图标 + 标题 + 操作） */
.ws-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.ws-head .ws-ico {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; flex: 0 0 auto;
}
.ws-head b { font-size: 15px; }

/* 页面直接打印（汇总表等）：只留正文，所见即所得 */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
}

@media print {
  .side, .topbar, .navbar, .tabbar, .toolbar, .btn, .demo-list, .toast-host,
  .m-top, .m-sheet { display: none !important; }
  .m-main { padding: 0 !important; }
  body { background: #fff; }
  .shell { display: block; }
  .wrap { max-width: none; padding: 0; }
  .card { border: none; box-shadow: none; padding: 0 0 8px; }
  .table-wrap { border: none; box-shadow: none; overflow: visible; }
  th, td { border: 1px solid #94a3b8; }
  .timetable th { background: #eef5f0; color: #111827; }
  .sig-img { max-height: 40px; }
}

/* 打印预览层（页内弹出，不依赖新窗口，不受弹窗拦截影响） */
.print-modal { width: 96vw; max-width: 960px; display: flex; flex-direction: column; max-height: 92vh; }
.print-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.print-bar .print-tip { color: var(--muted); font-size: 12px; flex: 1; }
.print-frame { width: 100%; height: 74vh; border: 0; background: #eef1f5; display: block; border-radius: 0 0 var(--radius) var(--radius); }

/* ===========================================================================
   v1.86.0 迎检中心（校长 2026-10-14 拍板）
   配色沿用全站绿主色（--primary #2f9e63），状态色复用全站 tag 语义。
   =========================================================================== */
.ij-pj { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow); transition: .15s; }
.ij-pj:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.ij-pj-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ij-pj-name { font-size: 16px; font-weight: 700; }
.ij-pj-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin: 6px 0 8px; }
.ij-pj-stat { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.ij-bar { height: 6px; background: var(--primary-soft); border-radius: 999px; overflow: hidden; }
.ij-bar-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
/* v1.99.11 解析页：行内小操作链接（改 / 删 / 改名称方法） */
.ij-mini { font-size: 12px; color: #2563eb; text-decoration: none; white-space: nowrap; margin-left: 4px; }
.ij-mini:hover { text-decoration: underline; }
/* v1.99.13 评估方法列：上级原文 / 我的补充 / 平台建议 三段分色 */
.ij-lock { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.m-cell { padding: 8px 9px; }
.m-orig, .m-mine, .m-sug { font-size: 12.5px; line-height: 1.72; padding: 6px 8px; border-radius: 6px; margin-bottom: 6px; }
.m-orig:last-child, .m-mine:last-child, .m-sug:last-child { margin-bottom: 0; }
.m-orig { background: #f6f7f9; color: #4b5563; }
.m-mine { background: #eef8f2; color: #14532d; border-left: 3px solid #12864f; }
.m-sug { background: #fff7ed; color: #7c2d12; border-left: 3px solid #f08c00; }
.m-tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 6px; background: #e5e7eb; color: #6b7280; vertical-align: 1px; }
.m-tag.mine { background: #12864f; color: #fff; }
.m-tag.sug { background: #f08c00; color: #fff; }
.m-sug .ij-mini { color: #b45309; font-weight: 600; }
/* v1.99.14 材料目录：按篇/章分组 */
.ij-matbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: #f6f8fa; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 6px; }
.ij-matbar select, .ij-matbar input[type=date] { height: 30px; padding: 0 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12.5px; background: #fff; }
.ij-mat-ch { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.ij-mat-chh { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f3f7f5; border-bottom: 1px solid #e5e7eb; }
.ij-mat-chh b { font-size: 13.5px; color: #1f6b43; }
.ij-mat-ch table { margin: 0; }
.ij-mat-ch td { font-size: 12.5px; }

.ij-warn { background: var(--warn-soft); border: 1px solid #fcd9a1; border-radius: var(--radius-sm);
  padding: 9px 12px; margin-bottom: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.ij-warn-it { color: #92400e; font-size: 13px; }

.ij-book-h { margin: 16px 0 6px; }
.ij-book-h .sec-h { margin: 0; }
.ij-assignee, .ij-due { width: 100%; padding: 5px 8px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; background: #fff; color: var(--text); }

.ij-share { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
  background: var(--primary-soft); border: 1px solid #cfe9da; border-radius: var(--radius); padding: 16px; }
.ij-code-box { text-align: center; }
.ij-code-label { color: var(--muted); font-size: 12.5px; }
.ij-code { font-size: 34px; font-weight: 800; letter-spacing: 6px; color: var(--primary-dark);
  font-family: ui-monospace, Consolas, monospace; margin: 6px 0 8px; }
.ij-share-tip { flex: 1; min-width: 240px; color: #35604a; font-size: 13px; line-height: 1.9; }
.ij-link { margin-top: 14px; }
.ij-link-row { display: flex; gap: 8px; margin-top: 6px; }
.ij-link-row input { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #f8fafc; font-size: 12.5px; }
.ij-qr { margin-top: 12px; text-align: center; }
.ij-opens { margin-top: 6px; }

.ij-prev { margin: 10px 0 8px; font-size: 13.5px; }
.ij-prev-books { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; }
.ij-prev-book { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.ij-prev-book:last-child { border-bottom: 0; }
.ij-prev-bt { font-weight: 700; color: var(--primary-dark); font-size: 13.5px; }
.ij-prev-ul { margin: 5px 0 0; padding-left: 20px; }
.ij-prev-ul li { font-size: 12.5px; color: #374151; line-height: 1.8; }
.ij-seq { display: inline-block; min-width: 22px; color: var(--muted); }

/* ---- 立项向导 · 细则上传与材料建议（v1.106.0） ---- */
.ij-drop { border: 1.5px dashed #c3cddb; border-radius: var(--radius); background: #f8fafc;
  padding: 16px 14px; text-align: center; margin-top: 6px; transition: .15s; }
.ij-drop.on { border-color: var(--primary); background: #eef6ff; }
.ij-drop-t { font-size: 13.5px; color: #374151; }
.ij-drop-t a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ij-drop-h { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.ij-file-ok { margin: 8px 0 2px; font-size: 12.5px; line-height: 1.8; }
.ij-good { color: #15803d; font-weight: 600; }
.ij-bad { color: #b91c1c; }
.ij-dim { color: var(--muted); font-size: 12.5px; }

.ij-step2 { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.ij-step2-t { font-weight: 700; font-size: 13.5px; color: #111827; margin-bottom: 6px; }
.ij-adopt-bar { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px;
  padding: 8px 12px; background: #f1f5f9; border-radius: var(--radius-sm); }
.ij-sug-row { display: flex; gap: 9px; padding: 8px 2px; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.ij-sug-row:last-child { border-bottom: 0; }
.ij-sug-row.done { background: #f6fdf8; }
.ij-sug-ck { flex: 0 0 auto; padding-top: 2px; }
.ij-sug-main { flex: 1; min-width: 0; }
.ij-sug-q { font-size: 13px; color: #111827; line-height: 1.75; }
.ij-sug-a { font-size: 12.5px; color: #6b7280; margin-top: 3px; line-height: 1.7; }
.ij-sug-a b { color: #b45309; font-weight: 600; }
.ij-sug-row.done .ij-sug-a b { color: #15803d; }

/* ---- 目录编排（v1.106.0） ---- */
.ij-toc-bh { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary-dark); font-size: 13.5px; }
.ij-toc-tb input.ij-toc-title { width: 100%; padding: 6px 9px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; font-size: 13px; color: #111827; transition: .12s; }
.ij-toc-tb input.ij-toc-title:hover { border-color: var(--border); background: #f8fafc; }
.ij-toc-tb input.ij-toc-title:focus { border-color: var(--primary); background: #fff; outline: none; }
.ij-toc-tb td { vertical-align: middle; }

.check-list { max-height: 300px; overflow: auto; margin-top: 8px; }
.check-item { display: block; padding: 7px 4px; border-bottom: 1px dashed var(--border); font-size: 13.5px; }

/* 成书预览（骨架，最终翻页效果复用电子书样书组件） */
.ij-book-prev { max-height: 70vh; overflow: auto; background: #eef1f5; padding: 14px; border-radius: var(--radius-sm); }
.ij-page { background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 26px 30px;
  margin: 0 auto 16px; max-width: 560px; min-height: 240px; position: relative; }
.ij-pg-cover { text-align: center; padding: 26px 0; }
.ij-pg-kind { color: var(--muted); letter-spacing: 4px; font-size: 12.5px; }
.ij-pg-cover h2 { font-size: 25px; margin: 16px 0 22px; line-height: 1.5; }
.ij-pg-org { font-size: 15px; font-weight: 600; }
.ij-pg-date { color: var(--muted); margin-top: 8px; font-size: 13px; }
.ij-pg-toc h3 { text-align: center; letter-spacing: 6px; font-size: 17px; margin-bottom: 14px; }
.ij-pg-toc ol { padding-left: 22px; }
.ij-pg-toc li { margin: 8px 0; font-size: 13.5px; }
.ij-pg-body h4 { font-size: 16.5px; margin-bottom: 6px; }
.ij-pg-meta { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.ij-pg-note { font-size: 13.5px; line-height: 1.9; }
.ij-pg-files { padding-left: 20px; margin-top: 8px; }
.ij-pg-files li { font-size: 13px; margin: 5px 0; }
.ij-fk { display: inline-block; background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 4px; padding: 0 5px; font-size: 11px; margin-right: 4px; }
.ij-pg-nofile { color: var(--muted); font-size: 13px; font-style: italic; margin-top: 10px; }
.ij-pg-end { text-align: center; padding: 40px 0; color: #374151; font-size: 14px; line-height: 2; }
.ij-pg-no { text-align: center; color: #9ca3af; font-size: 11.5px; margin-top: 16px; }
/* v1.105.0 成书翻书：正文直接印在书页上 */
.bk-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bk-idx { font-size: 13px; color: var(--muted); min-width: 64px; text-align: center; }
.bk-stage { max-height: 68vh; overflow: auto; }
.bk-toc { padding-left: 4px; list-style: none; }
.bk-toc li { display: flex; align-items: baseline; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed #e5e7eb; cursor: pointer; font-size: 13.5px; }
.bk-toc li:hover { background: #f0f9f4; }
.bk-toc .no { flex: 0 0 26px; color: var(--muted); text-align: right; }
.bk-toc .tt { flex: 1 1 auto; min-width: 0; }
.bk-toc .dt { flex: 1 1 30px; border-bottom: 1px dotted #cbd5e1; }
.bk-toc .pg { flex: 0 0 auto; color: var(--muted); }
.bk-doc { margin: 12px 0; padding: 14px 16px; border: 1px solid #eef1f5; border-radius: 8px; background: #fcfdfe; }
.bk-doc .ij-h1 { font-size: 19px; text-align: center; margin: 16px 0 10px; font-weight: 700; }
.bk-doc .ij-h2 { font-size: 16px; margin: 14px 0 8px; font-weight: 700; }
.bk-doc .ij-h3 { font-size: 14.5px; margin: 12px 0 6px; font-weight: 600; }
.bk-doc .ij-p { margin: 8px 0; line-height: 1.95; text-indent: 2em; text-align: justify; font-size: 13.5px; }
.bk-doc .ij-tbl { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
.bk-doc .ij-tbl td { border: 1px solid #cbd5e1; padding: 6px 8px; }
.bk-img img { max-width: 100%; border: 1px solid #e5e7eb; border-radius: 6px; display: block; margin: 10px auto; }

/* ---- 书页图片：横滑 + 点击放大（v1.106.0） ---- */
.bk-strip { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 12px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.bk-strip::-webkit-scrollbar { height: 6px; }
.bk-strip::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.bk-slide { flex: 0 0 auto; scroll-snap-align: center; max-width: 86%; text-align: center; }
.bk-slide img { max-height: 46vh; max-width: 100%; border: 1px solid #e5e7eb; border-radius: 6px;
  cursor: zoom-in; display: block; margin: 0 auto; background: #fff; }
.bk-slide .cap { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.bk-strip-tip { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: -4px; }
/* 图文混排里的插图 */
.ij-fig { margin: 10px auto; text-align: center; }
.ij-fig-img { max-width: 100%; max-height: 42vh; border: 1px solid #e5e7eb; border-radius: 6px;
  cursor: zoom-in; background: #fff; }
/* 放大遮罩 */
.bk-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(15,23,42,.9);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.bk-zoom img { max-width: 94vw; max-height: 92vh; border-radius: 4px; background: #fff; }
.bk-zoom .x { position: absolute; top: 14px; right: 20px; color: #fff; font-size: 26px; opacity: .8; }
/* 目录里「待补」的灰字行 */
.bk-toc li.ij-todo-li { opacity: .55; }
.bk-pdf iframe, .bk-frame { width: 100%; height: 62vh; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.bk-fallback { display: flex; align-items: center; gap: 9px; padding: 12px 13px; margin: 10px 0; border: 1px dashed #d6dee8; border-radius: 8px; background: #f9fbfe; }
.bk-fallback .ic { flex: 0 0 auto; padding: 3px 8px; border-radius: 6px; background: #eaf2ff; color: #1f5fd8; font-size: 11px; font-weight: 700; }
.bk-fallback .tx { flex: 1 1 auto; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .ij-code { font-size: 28px; letter-spacing: 4px; }
  .ij-share { flex-direction: column; }
  .ij-page { padding: 18px 16px; }
  .ij-pj-meta { gap: 8px; }
}

/* 课后服务登记：签名前完整性提示（v1.99.19）
   .af-alert＝红色大字提示条；.af-miss＝缺失字段红框；.af-card-miss＝未锁定班级整卡红框 */
.af-alert { display: flex; gap: 10px; align-items: flex-start; background: #fef2f2; border: 2px solid #dc2626;
  border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; color: #b91c1c;
  font-size: 18px; font-weight: 700; line-height: 1.55; box-shadow: 0 2px 10px rgba(220, 38, 38, .12); }
.af-alert .af-alert-ico { font-size: 22px; line-height: 1.2; }
.af-miss { box-shadow: 0 0 0 2px #dc2626; border-radius: 8px; padding: 6px 8px; background: #fff5f5; }
.af-miss > label { color: #b91c1c !important; font-weight: 700; }
.af-miss select, .af-miss input { border-color: #dc2626 !important; }
.af-miss .fm-seg button { border-color: #dc2626 !important; }
.af-card-miss { outline: 2px solid #dc2626; outline-offset: 2px; }
@media (max-width: 640px) {
  .af-alert { font-size: 17px; padding: 11px 12px; }
}
