/* ============================================================
   德育管理系统 —— 全局样式（简洁、清爽、响应式）
   设计基调：白卡片 + 浅灰底 + 主色蓝 + 圆角 + 轻阴影
   ============================================================ */
:root {
  --primary: #3b6ef6;
  --primary-dark: #2b56d6;
  --primary-soft: #eaf0fe;
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e6eaf3;
  --text: #1f2a44;
  --text-2: #64748b;
  --success: #16a34a;
  --success-soft: #e8f7ee;
  --danger: #dc2626;
  --danger-soft: #fdeeee;
  --warning: #d97706;
  --warning-soft: #fdf3e3;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(30, 41, 99, .05), 0 4px 18px rgba(30, 41, 99, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg);
  line-height: 1.6;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }
a { color: var(--primary); text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; transition: all .15s;
  min-height: 40px; white-space: nowrap; user-select: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f3c6c6; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover:not(:disabled) { background: #dbe6fd; }
.btn-sm { padding: 4px 12px; min-height: 30px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px;
}
.card-title {
  font-size: 15px; font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 110, 246, .12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* ---------- 标签 / 徽章 ---------- */
.chip {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .15s;
  min-height: 34px; user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; padding: 1px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-orange { background: var(--warning-soft); color: var(--warning); }
.badge-blue { background: var(--primary-soft); color: var(--primary-dark); }
.badge-gray { background: #eef1f7; color: var(--text-2); }
.score-red { color: var(--danger); font-weight: 600; }
.score-green { color: var(--success); font-weight: 600; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 8px; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 10px 12px; background: #f7f9fd; color: var(--text-2);
  font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.table td { padding: 10px 12px; border-bottom: 1px solid #f0f3f9; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafbfe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 600; background: #f7f9fd; border-top: 1px solid var(--border); }

/* 班主任看板「考勤/作业总表」：小号单元格 + 学生列吸左 */
.tables-table { min-width: max-content; }
.tables-table th, .tables-table td { text-align: center; padding: 6px 8px; font-size: 12px; white-space: nowrap; }
.tables-table .sticky-col {
  position: sticky; left: 0; z-index: 1;
  background: #f7f9fd; font-weight: 600; text-align: left;
}
.tables-table tbody .sticky-col { background: var(--bg); }
.tables-table .name-col { min-width: 72px; }
.cell-empty { color: #c3cbd8; }
.cell-late { color: var(--warning); font-weight: 600; }
.cell-arrived { color: #16a34a; }
.cell-absent { color: var(--danger); font-weight: 600; }
.cell-leave { color: var(--primary); }
.cell-ok { color: #16a34a; }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px;
}
.stat .num { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat .lbl { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.stat.danger .num { color: var(--danger); }
.stat.ok .num { color: var(--success); }
.stat.warn .num { color: var(--warning); }
.stat.main .num { color: var(--primary-dark); }

/* ---------- 学生点选网格 ---------- */
.roster-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.student-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; transition: all .12s; min-height: 62px;
}
.student-btn .no { font-size: 11px; color: var(--text-2); }
.student-btn:hover { border-color: var(--primary); }
.student-btn.late { background: var(--warning-soft); border-color: #f3c983; }
.student-btn.absent { background: var(--danger-soft); border-color: #f1b3b3; }
.student-btn.ok { background: var(--success-soft); border-color: #b7e3c6; }
.student-btn .st {
  font-size: 11px; font-weight: 600; border-radius: 999px; padding: 0 8px;
}
.student-btn.late .st { color: var(--warning); }
.student-btn.absent .st { color: var(--danger); }
.student-btn.ok .st { color: var(--success); }
.student-btn.disabled { opacity: .4; pointer-events: none; }
/* 十节考勤：迟到后到班 / 请假 */
.student-btn.arrived { background: #d1fae5; border-color: #6ee7b7; }
.student-btn.arrived .st { color: #047857; }
.student-btn.leave { background: #e0e7ff; border-color: #a5b4fc; }
.student-btn.leave .st { color: #4338ca; }

/* 节次选择条（十节考勤）：已登记节次带红点 */
.lesson-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.lesson-chip {
  position: relative; padding: 7px 12px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  transition: all .12s; white-space: nowrap;
}
.lesson-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.lesson-chip .dot {
  position: absolute; top: -3px; right: -3px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--danger); border: 2px solid #fff;
}
.lesson-chip.on .dot { border-color: var(--primary); }

/* 班级日志表单 */
.log-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px; }
.log-grid .field { margin: 0; }
.log-lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.log-lesson-row {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.log-lesson-row .name { font-size: 12px; font-weight: 600; color: var(--text-2); flex-shrink: 0; min-width: 44px; }
.log-lesson-row input { flex: 1; border: none; outline: none; font-size: 13px; padding: 6px 0; }
.log-sect { margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.log-sect:first-child { margin-top: 0; }

/* ---------- 页头 / 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex-shrink: 0; background: #fff;
  border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--border);
}
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, #4f82ff, #2b56d6);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.sidebar nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 9px; color: var(--text-2); font-size: 14px; margin-bottom: 2px;
  cursor: pointer; transition: all .12s; border: none; background: none; width: 100%;
  min-height: 42px; text-align: left;
}
.nav-item:hover { background: #f4f7fd; color: var(--text); }
.nav-item.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.nav-item .ico { font-size: 17px; width: 22px; text-align: center; }
.nav-group { font-size: 12px; color: #9aa5bb; padding: 12px 14px 6px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; display: flex; align-items: center; gap: 12px;
  padding: 0 22px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar .page-title { font-size: 16px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 20px 22px 40px; width: 100%; max-width: 1180px; margin: 0 auto; }
.content.wide { max-width: 1400px; }

.role-switcher { position: relative; }
.role-switcher .cur {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
  font-size: 13px; min-height: 36px;
}
.role-switcher .cur .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
}
.role-switcher .menu {
  position: absolute; right: 0; top: 44px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(30, 41, 99, .16); border: 1px solid var(--border);
  min-width: 220px; padding: 6px; z-index: 60;
}
.role-switcher .menu .opt {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border-radius: 8px; border: none; background: none; font-size: 13.5px;
}
.role-switcher .menu .opt:hover { background: #f4f7fd; }
.role-switcher .menu .opt.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.role-switcher .menu .opt small { display: block; color: var(--text-2); font-size: 12px; }

/* ---------- 底部导航（移动端） ---------- */
.bottomnav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav .items { display: flex; }
.bottomnav .item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 6px; border: none; background: none; color: var(--text-2);
  font-size: 11px; min-height: 54px;
}
.bottomnav .item .ico { font-size: 20px; line-height: 1; }
.bottomnav .item.on { color: var(--primary); font-weight: 600; }

/* ---------- 弹窗 / 抽屉 ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(23, 32, 60, .45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 520px;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  animation: pop .18s ease;
}
.modal.wide { max-width: 720px; }
.modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center;
}
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- 提示 ---------- */
.toast-wrap {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  background: #24304f; color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 13.5px; box-shadow: 0 6px 24px rgba(23, 32, 60, .3);
  animation: slide-down .2s ease; max-width: 90vw;
}
.toast.success { background: #12833f; }
.toast.error { background: #c23030; }
@keyframes slide-down { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- 页签 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs .tab {
  padding: 9px 16px; border: none; background: none; font-size: 14px;
  color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs .tab.on { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eef3fe 0%, #f7f9fd 45%, #eef4ff 100%);
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 18px;
  box-shadow: 0 10px 40px rgba(42, 66, 143, .14); padding: 34px 32px 28px;
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand .logo {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 15px;
  background: linear-gradient(135deg, #4f82ff, #2b56d6);
  color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center;
}
.login-brand h1 { font-size: 20px; }
.login-brand p { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.demo-accounts { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border); }
.demo-accounts .ttl { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.demo-accounts .chips { gap: 6px; }
.demo-accounts .chip { padding: 4px 10px; min-height: 28px; font-size: 12px; }

/* ---------- 空状态 / 加载 ---------- */
.empty { text-align: center; color: var(--text-2); padding: 40px 10px; font-size: 13.5px; }
.empty .ico { font-size: 40px; display: block; margin-bottom: 8px; opacity: .5; }
.loading { text-align: center; color: var(--text-2); padding: 30px; }
.spin {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #d4dcee; border-top-color: var(--primary);
  animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 明细区 ---------- */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 140px; }
.dim-list { display: flex; flex-direction: column; gap: 10px; }
.dim-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.dim-row .name { flex: 1; font-weight: 500; }
.dim-btn {
  padding: 8px 20px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; font-size: 13.5px; min-height: 40px;
}
.dim-btn.pass { background: var(--success-soft); border-color: #b7e3c6; color: var(--success); font-weight: 600; }
.dim-btn.fail { background: var(--danger-soft); border-color: #f1b3b3; color: var(--danger); font-weight: 600; }
.dim-btn.off { opacity: .42; filter: grayscale(.4); font-weight: 400; }
.score-box {
  text-align: center; padding: 16px; border-radius: 12px; background: #f7f9fd;
  margin-bottom: 14px;
}
.score-box .num { font-size: 34px; font-weight: 700; color: var(--primary-dark); }
.score-box .lbl { color: var(--text-2); font-size: 12.5px; }

.diff-row { padding: 8px 0; border-bottom: 1px dashed #eef1f7; font-size: 13px; }
.diff-row:last-child { border-bottom: none; }
.diff-row .k { color: var(--text-2); margin-right: 8px; }
.diff-row .old { text-decoration: line-through; color: var(--danger); margin-right: 8px; }
.diff-row .new { color: var(--success); font-weight: 600; }

.danger-zone { border: 1px dashed #f1b3b3; border-radius: 10px; padding: 12px; margin-top: 14px; }

/* ---------- 身份选择页 ---------- */
.pick-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.pick-panel { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 36px 32px 24px; width: 100%; max-width: 680px; }
.pick-head { text-align: center; margin-bottom: 22px; }
.pick-logo { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #7c9cf8); color: #fff;
  font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pick-head h1 { font-size: 20px; margin: 0 0 6px; color: var(--text); }
.pick-head p { font-size: 13px; color: var(--text-2); margin: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pick-item { --c: var(--primary); --c-soft: var(--primary-soft);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 14px 18px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pick-item:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 8px 20px rgba(30, 41, 99, .10); }
.pick-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--c-soft);
  display: flex; align-items: center; justify-content: center; font-size: 26px; }
.pick-name { font-weight: 600; font-size: 15px; color: var(--c); }
.pick-extra { font-size: 12px; color: var(--text-2); min-height: 16px; }
.pick-foot { margin-top: 18px; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .bottomnav { display: block; }
  .content { padding: 14px 12px 92px; }
  .topbar { padding: 0 14px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat .num { font-size: 21px; }
  .roster-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .student-btn { padding: 8px 2px; min-height: 56px; font-size: 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .modal { max-width: 100%; }
  .toolbar > * { flex: 1; min-width: 0; }
  .pick-grid { grid-template-columns: 1fr; }
  .pick-panel { padding: 28px 18px 20px; }
  .eye-grid { grid-template-columns: 1fr; }
}

/* ---------- 卫生检查：标准说明 + [−][+] 加减分 ---------- */
.standard-card {
  background: #f6f9ff;
  border: 1px solid #dbe6ff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.std-group { margin-bottom: 10px; }
.std-group:last-child { margin-bottom: 0; }
.std-group-name {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 13px;
  margin-bottom: 6px;
}
.std-row {
  font-size: 12.5px;
  color: var(--text-1);
  line-height: 1.55;
  padding: 2px 0;
}
.std-row b { margin-right: 8px; }
.health-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.health-row:last-child { border-bottom: none; }
.health-row-mid { flex: 1; min-width: 0; }
.health-row-name { font-weight: 600; font-size: 13.5px; }
.health-row-std {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 2px;
}
.step-btn {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-1);
}
.step-btn.minus { color: var(--danger); border-color: #f1b3b3; background: var(--danger-soft); }
.step-btn.plus { color: var(--success); border-color: #b7e3c6; background: var(--success-soft); }
.step-btn:disabled { opacity: .35; cursor: not-allowed; }
.step-btn:active { transform: scale(.94); }

/* ---------- 眼保健操：班级网格 优/良/差 打勾 ---------- */
.eye-grade { margin-bottom: 14px; }
.eye-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.eye-cell {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
.eye-class-name { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.eye-btns { display: flex; gap: 6px; }
.eye-btn {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f4f6fa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-2);
}
.eye-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 仪容仪表：逐人问题描述 ---------- */
.ap-list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ap-name { flex: none; font-weight: 600; font-size: 13.5px; width: 72px; }

/* ---------- 备案条（工信部，所有页面底部） ---------- */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  text-align: center; font-size: 12px; color: var(--text-2);
  background: var(--card); border-top: 1px solid var(--border);
  padding: 4px 0; pointer-events: none;
}
.site-footer a { color: var(--text-2); text-decoration: none; pointer-events: auto; }
/* 移动端：备案条上移到底部导航之上，避免遮挡 */
@media (max-width: 768px) {
  .site-footer { bottom: calc(54px + env(safe-area-inset-bottom)); }
}
