/* Task #1284: H5 干部端样式
 * 设计基准：手机 375px 宽移动优先，平板/一体机(min-width: 768px) 内容区居中限宽
 * 触控目标：按钮/输入框最小高度 48px（Kiosk 场景手指操作）
 */

/* ---------- 变量与重置 ---------- */
:root {
  /* Task #1303: 主色对齐小程序端 operate 页 (#1565C0) */
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #E3F2FD;
  --text-main: #1f2329;
  --text-sub: #6b7280;
  --text-light: #9ca3af;
  --bg-page: #F5F7FA;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --danger: #e54545;
  --success: #16a34a;
  --radius: 8px;
  --radius-sm: 6px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 56px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
input { user-select: text; }
button { font-family: inherit; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: linear-gradient(160deg, #eaf1ff 0%, #f5f6f8 60%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px 28px 28px;
  box-shadow: 0 8px 40px rgba(58, 122, 254, 0.10);
  text-align: center;
}
.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 34px;
  font-weight: 600;
  line-height: 72px;
}
.login-title { font-size: 22px; font-weight: 600; }
.login-subtitle { font-size: 14px; color: var(--text-sub); margin-top: 4px; margin-bottom: 28px; }
.login-form { text-align: left; }
.remember-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: -4px 0 12px;
}
.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-sub);
}
.remember-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.remember-text { user-select: none; }
.login-error {
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: #fdf0f0;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 14px;
}
.login-foot { margin-top: 22px; font-size: 12px; color: var(--text-light); }

/* ---------- 表单通用 ---------- */
.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  font-size: 17px;
  color: var(--text-main);
  background: #f7f8fa;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
}
.input:focus { background: #fff; border-color: var(--primary); }

/* ---------- 按钮通用 ---------- */
.btn-primary {
  min-height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary:active { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.6; }
.btn-block { display: block; width: 100%; }
.btn-ghost {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-main);
  font-size: 15px;
  cursor: pointer;
}
.btn-ghost:active { background: #f3f4f6; }
.btn-mini {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  border-radius: 17px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 17px; font-weight: 600; }
.topbar-user { font-size: 13px; color: var(--text-sub); }

/* ---------- 页面主体 ---------- */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 14px calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
}
.empty-tip {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
}

/* ---------- 卡片（视图复用；Task #1303 对齐小程序 section：圆角 8px + 轻阴影） ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card-sub { font-size: 12px; color: #999; }

/* ---------- 标签（视图复用） ---------- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--primary-light);
  color: var(--primary);
}
.tag-success { background: #ecfdf3; color: var(--success); }
.tag-danger { background: #fdf0f0; color: var(--danger); }
.tag-gray { background: #f3f4f6; color: var(--text-sub); }

/* ---------- 两列网格（视图复用） ---------- */
.grid-2 {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
}
.grid-2 > .grid-cell {
  flex: 0 0 calc(50% - 8px);
  margin: 4px;
}

/* ---------- 加载态（视图复用） ---------- */
.loading {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  max-width: 860px;
  margin: 0 auto;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.tab-item {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
}
.tab-item.active { color: var(--primary); font-weight: 600; }
.tab-item.tab-exit { color: var(--text-light); }

/* ---------- 全局 toast ---------- */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 32px);
  transform: translateX(-50%) translateY(10px);
  z-index: 100;
  max-width: 80%;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(31, 35, 41, 0.88);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Task #1285: 量化录入视图 ---------- */

/* 身份切换分段器 */
.seg {
  display: flex;
  background: #f3f4f6;
  border-radius: var(--radius-sm);
  padding: 4px;
}
.seg-btn {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 15px;
  color: var(--text-sub);
  cursor: pointer;
}
.seg-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.seg + .card-sub { margin-top: 8px; }

/* 班级/日期两列表单 */
.form-row { display: flex; margin: 0 -5px; }
.form-col { flex: 1; margin: 0 5px; min-width: 0; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.textarea {
  min-height: 72px;
  padding: 10px 14px;
  line-height: 1.5;
  resize: none;
}

/* 卡片头（标题+计数同行） */
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.card-head .card-title { margin-bottom: 0; }
.center-row {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.empty-line {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}
.warn-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff7e8;
  color: #b45309;
  font-size: 13px;
}

/* 学生多选筹码 */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -4px;
}
.chip {
  min-height: 44px;
  padding: 0 16px;
  margin: 4px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  font-size: 15px;
  color: var(--text-main);
  cursor: pointer;
}
.chip.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.chip-seat {
  display: inline-block;
  margin-right: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--text-sub);
  font-size: 12px;
}
.chip.selected .chip-seat { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* 维度/状态横向滚动 Tab */
.tabs-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px 10px;
  scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-second { margin-top: -2px; }
.tab-pill {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 18px;
  margin: 0 4px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
}
.tab-pill.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* 场景列表项 */
.scene-list { margin: 0 -4px; }
.scene-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 12px;
  margin: 4px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.scene-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
/* Task #1303: 已选场景右上角圆勾（对齐小程序 scene-check） */
.scene-item.selected::after {
  content: '\2713';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(21, 101, 192, 0.35);
}
.scene-main { flex: 1; min-width: 0; }
.scene-name { font-size: 15px; font-weight: 600; word-break: break-all; }
.scene-item.selected .scene-name { color: var(--primary); }
.scene-desc {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-light);
  word-break: break-all;
}
.scene-note {
  margin-top: 2px;
  font-size: 13px;
  color: var(--primary);
  word-break: break-all;
}
.mod-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff7e8;
  color: #b45309;
  font-size: 11px;
  font-weight: 400;
  vertical-align: 1px;
}
/* Task #1307: 未选中场景的附件数量角标 */
.att-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f1fb;
  color: var(--primary);
  font-size: 11px;
  font-weight: 400;
  vertical-align: 1px;
}
.scene-side {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 10px;
}
.scene-score {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--text-sub);
}
.score-positive { background: #e3f2fd; color: #1565c0; }
.score-negative { background: #ffebee; color: #c62828; }
/* Task #1303: 分值已修改橙色态（对齐小程序 score-modified） */
.scene-score.score-modified {
  background: #FFF3E0;
  color: #FF9800;
  box-shadow: 0 0 0 1.5px #FF9800 inset;
}
.scene-edit {
  min-height: 34px;
  min-width: 34px;
  margin-left: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  color: var(--text-sub);
  font-size: 13px;
  cursor: pointer;
}
.scene-edit:active { background: #f3f4f6; }

/* 底部提交栏（悬浮于底部导航之上） */
.submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}
.submit-info { font-size: 14px; color: var(--text-sub); }
.submit-info b { color: var(--primary); font-size: 16px; }
.submit-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.submit-bar .btn-primary { min-width: 128px; }
.submit-bar-spacer { height: 96px; }

/* 弹窗（分值调整/提交成功） */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.5);
}
.modal-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 22px 20px 18px;
}
.modal-title {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}
.modal-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}
.modal-scene .scene-score { margin-left: 8px; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.modal-actions .btn-ghost,
.modal-actions .btn-primary { min-height: 44px; margin-left: 10px; }
.modal-actions .btn-primary { min-width: 96px; }
.success-box { text-align: center; }
.success-icon {
  width: 56px;
  height: 56px;
  margin: 4px auto 12px;
  border-radius: 50%;
  background: #ecfdf3;
  color: var(--success);
  font-size: 30px;
  font-weight: 600;
  line-height: 56px;
}
.success-text { font-size: 15px; color: var(--text-sub); }
.success-text b { color: var(--success); font-size: 20px; }

/* ---------- 统计视图（Task #1286） ---------- */
/* KPI 概览 */
.kpi-grid { display: flex; flex-wrap: wrap; margin: -6px; }
.kpi-cell {
  flex: 0 0 calc(50% - 12px);
  margin: 6px;
  padding: 14px 10px;
  background: #f7f8fa;
  border-radius: var(--radius-sm);
  text-align: center;
}
.kpi-num { font-size: 26px; font-weight: 700; line-height: 1.2; }
.kpi-num.kpi-pos { color: #1565c0; }
.kpi-num.kpi-neg { color: #c62828; }
.kpi-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* 来源筛选 chips */
.source-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.source-chip {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-sub);
}
.source-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 排行列表（学生/班级/评价方） */
.rank-item {
  display: flex;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid #f3f4f6;
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  flex: none;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}
.rank-num.r1 { background: #fff3e0; color: #ef6c00; }
.rank-num.r2 { background: #e3f2fd; color: #1565c0; }
.rank-num.r3 { background: #efebe9; color: #8d6e63; }
.rank-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-sub { flex: none; margin-left: 8px; font-size: 12px; color: var(--text-light); }
.rank-score { flex: none; margin-left: 10px; font-size: 15px; font-weight: 700; }
.rank-score.pos { color: #1565c0; }
.rank-score.neg { color: #c62828; }

/* 维度分布（条形） */
.dist-row { padding: 8px 0; }
.dist-info { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.dist-name { font-size: 14px; font-weight: 500; }
.dist-count { font-size: 12px; color: var(--text-light); }
.dist-count .rank-score { font-size: 12px; margin-left: 2px; }
.dist-bar { height: 6px; border-radius: 3px; background: #f3f4f6; overflow: hidden; }
.dist-bar-fill { height: 100%; border-radius: 3px; background: var(--primary); }

/* 最近记录列表 */
.rec-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.rec-item:last-child { border-bottom: none; }
.rec-time {
  flex: none;
  width: 112px;
  padding-top: 2px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}
.rec-main { flex: 1; min-width: 0; }
.rec-title { font-size: 14px; font-weight: 600; word-break: break-all; }
.rec-scene { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--text-sub); }
.rec-sub { margin-top: 2px; font-size: 12px; color: var(--text-light); }
.rec-score { flex: none; margin-left: 10px; }

/* ---------- 点评记录视图（Task #1293，二期-A） ---------- */
/* 记录卡片操作行（改分/删除） */
.rec-actions {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.rec-actions .btn-mini { margin-right: 8px; }
.btn-mini-danger {
  border-color: var(--danger);
  color: var(--danger);
}
/* 记录文字内容行 */
.rec-text {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-sub);
  word-break: break-all;
}
/* 弹窗正文（删除确认） */
.modal-text {
  text-align: center;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 10px;
}
.modal-text + .warn-tip { text-align: center; }
/* 危险操作确认按钮 */
.btn-primary.btn-danger {
  background: linear-gradient(150deg, #ef5b5b 0%, var(--danger) 100%);
}

/* ---------- 平板/一体机自适应 ---------- */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .login-card { max-width: 460px; padding: 52px 36px 36px; }
  .login-title { font-size: 26px; }
  .login-subtitle { font-size: 15px; }
  .input { min-height: 56px; font-size: 18px; }
  .btn-primary { min-height: 56px; font-size: 18px; }
  .topbar { height: 60px; }
  .topbar-title { font-size: 19px; }
  .topbar-user { font-size: 14px; }
  .page-wrap { padding: 20px 20px calc(var(--tabbar-h) + var(--safe-bottom) + 32px); }
  .card-title { font-size: 18px; }
  .tab-item { font-size: 16px; }
  /* Task #1285: 录入视图大屏适配 */
  .chip { min-height: 48px; padding: 0 20px; font-size: 16px; }
  .scene-item { min-height: 68px; padding: 12px 14px; }
  .scene-name { font-size: 17px; }
  .scene-desc, .scene-note { font-size: 14px; }
  .scene-score { min-width: 50px; height: 36px; font-size: 16px; }
  .tab-pill { min-height: 44px; padding: 0 22px; font-size: 15px; }
  .seg-btn { min-height: 48px; font-size: 16px; }
  .submit-bar .btn-primary { min-width: 160px; }
  .modal-title { font-size: 19px; }
  /* Task #1286: 统计视图大屏适配 */
  .kpi-cell { flex: 0 0 calc(25% - 12px); padding: 18px 10px; }
  .kpi-num { font-size: 30px; }
  .kpi-label { font-size: 13px; }
  .source-chip { min-height: 44px; padding: 0 20px; font-size: 15px; }
  .rank-item { padding: 12px 4px; }
  .rank-num { width: 30px; height: 30px; line-height: 30px; font-size: 14px; }
  .rank-name { font-size: 16px; }
  .rank-score { font-size: 16px; }
  .dist-name { font-size: 15px; }
  .rec-time { width: 132px; font-size: 13px; }
  .rec-title { font-size: 15px; }
  .rec-scene { font-size: 14px; }
  .rec-sub { font-size: 13px; }
  /* Task #1293: 记录视图大屏适配 */
  .rec-text { font-size: 14px; }
  .modal-text { font-size: 16px; }
}

/* ================= Task #1295: 班级管理视图（二期-C 三项管理） ================= */
.mg-group { border-top: 1px solid #eef1f6; padding: 12px 0 4px; }
.mg-group:first-of-type { border-top: none; }
.mg-members { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mg-members .tag { display: inline-flex; align-items: center; gap: 4px; }
.mg-member-x { border: none; background: transparent; color: #98a2b3; font-size: 13px; line-height: 1; padding: 0 2px; cursor: pointer; min-width: 20px; min-height: 20px; }
.mg-member-x:active { color: #d92d20; }
.mg-check-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.mg-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #1f2937; min-height: 36px; padding: 0 4px; }
.mg-check input { width: 18px; height: 18px; }



/* ================= Task #1296: 附件上传与缩略图（二期-D） ================= */
/* 场景卡附件行需独占一行：允许换行 + 宽度 100% */
.scene-item { flex-wrap: wrap; }
.scene-atts {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(58, 122, 254, 0.25);
}
.att-thumbs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.att-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f3f4f6;
  flex: 0 0 52px;
}
.att-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-noimg {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 12px; color: var(--text-light);
}
.att-del {
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  border: none;
  border-radius: 0 0 0 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
}
.att-add { flex: 0 0 auto; }
.att-add:disabled { opacity: 0.6; }

/* 记录列表附件缩略图 */
.rec-atts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.rec-att {
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
  flex: 0 0 48px;
}
.rec-att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-att-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-light);
  cursor: default;
}


/* ================= Task #1303: 录入页视觉对齐小程序 operate 页 ================= */

/* 顶部选择器条（班级+日期同行，白底贴顶） */
.selector-bar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}
.selector-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 4px 6px;
  background: #F5F7FA;
  border-radius: 5px;
}
.selector-label {
  flex: none;
  font-size: 11px;
  color: #999;
  margin-right: 4px;
}
.selector-value {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 双身份徽章切换（对齐小程序 identity-badge-bar） */
.identity-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px 8px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}
.identity-badge {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
}
.identity-badge.badge-class.active {
  background: #E3F2FD;
  border-color: #5DCAA5;
  color: #085041;
  font-weight: 600;
}
.identity-badge.badge-school.active {
  background: #E6F1FB;
  border-color: #85B7EB;
  color: #0C447C;
  font-weight: 600;
}
.identity-hint {
  flex: 0 0 100%;
  text-align: center;
  font-size: 11px;
  color: #999;
}

/* 场景区双列布局（左维度 / 右状态Tab+场景列表，对齐小程序 dim-scene-layout） */
.dim-layout {
  display: flex;
  height: 280px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.dim-left {
  flex: none;
  width: 88px;
  background: #f8f8f6;
  border-right: 1px solid #eee;
  overflow-y: auto;
}
.dim-left-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 6px;
  font-size: 13px;
  font-family: inherit;
  color: #555;
  text-align: center;
  line-height: 1.3;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  cursor: pointer;
}
.dim-left-item.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}
.dim-left-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}
.dim-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.state-tabs {
  flex: none;
  display: flex;
  background: #f8f8f6;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  scrollbar-width: none;
}
.state-tabs::-webkit-scrollbar { display: none; }
.state-tab {
  flex: 1;
  min-width: 56px;
  border: none;
  background: transparent;
  padding: 10px 6px;
  font-size: 12px;
  font-family: inherit;
  color: #666;
  text-align: center;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}
.state-tab.active { background: #fff; font-weight: 600; }
.state-tab.active.state-positive { color: #1565C0; }
.state-tab.active.state-negative { color: #c62828; }
.state-tab.active.state-neutral { color: #6a1b9a; }
.state-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 1px;
}
.state-tab.active.state-positive::after { background: #1565C0; }
.state-tab.active.state-negative::after { background: #c62828; }
.state-tab.active.state-neutral::after { background: #6a1b9a; }
/* 双列布局内的场景列表：占满右列并内部滚动 */
.scene-card .scene-list {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 6px 8px;
}

/* 临时改分弹窗（对齐小程序 edit-scene-modal） */
.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-title-row .modal-title { margin-bottom: 0; }
.edit-scene-tip {
  font-size: 11px;
  font-weight: 400;
  color: #FF9800;
  background: #FFF3E0;
  padding: 2px 8px;
  border-radius: 4px;
}
.edit-orig {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5F7FA;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 12px;
  color: #8A8A8A;
}
.edit-orig-label {
  flex: none;
  background: #E0E0E0;
  color: #666;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.edit-orig-name {
  flex: 1;
  min-width: 0;
  color: #2C2C2C;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.edit-orig-score {
  flex: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}
.edit-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.edit-score-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--primary);
  border-radius: 17px;
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.edit-score-btn:active { background: #E3F2FD; }
.edit-score-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  background: #F5F7FA;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: #2C2C2C;
  text-align: center;
  outline: none;
}
.edit-score-input:focus {
  border-color: var(--primary);
  background: #fff;
}
.edit-score-unit {
  flex: none;
  font-size: 12px;
  color: #8A8A8A;
}
.edit-warning {
  margin-top: 10px;
  padding: 8px 10px;
  background: #FFF8E1;
  border-left: 3px solid #FFC107;
  border-radius: 4px;
  font-size: 11px;
  color: #8A6914;
  line-height: 1.5;
}

/* 提交前二次确认弹窗（对齐小程序确认弹窗 modal-stat） */
.modal-stats { margin-bottom: 6px; }
.modal-stat {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #F5F7FA;
}
.modal-stat:last-child { border-bottom: none; }
.modal-stat-label { font-size: 13px; color: #666; }
.modal-stat-value { font-size: 13px; color: #333; font-weight: 500; }
.modal-stat-value.highlight {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}
.modal-warning {
  margin-top: 10px;
  padding: 8px 10px;
  background: #FFF8E1;
  color: #8B6E00;
  font-size: 11px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* 大屏适配（Task #1303） */
@media (min-width: 768px) {
  .selector-bar { padding: 10px; }
  .selector-value { height: 40px; font-size: 14px; }
  .identity-badge { min-height: 42px; font-size: 14px; }
  .dim-layout { height: 320px; }
  .dim-left { width: 104px; }
  .dim-left-item { padding: 16px 8px; font-size: 14px; }
  .state-tab { padding: 12px 8px; font-size: 13px; }
  .edit-score-btn { width: 40px; height: 40px; }
  .edit-score-input { height: 40px; font-size: 17px; }
  .modal-stat-label, .modal-stat-value { font-size: 14px; }
  .modal-warning, .edit-warning { font-size: 12px; }
}

/* ================================================================
   Task #1304: 学生座次表网格选人（对齐小程序 operate 页，rpx/2=px）
   ================================================================ */

/* ---------- 学生选择卡片骨架 ---------- */
.card.card-flush { padding: 12px 12px 8px; }
.stu-card-head {
  align-items: center;
}
.stu-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.seat-mode-btn {
  padding: 4px 10px;
  background: #E3F2FD;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  min-height: 26px;
}
.select-all-btn {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  min-height: 26px;
}
.select-all-btn.active {
  background: var(--primary);
  color: #fff;
}
.stu-card-body { min-width: 0; }

/* ---------- 搜索条（姓名/学号/班级学号） ---------- */
.stu-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  padding: 2px 10px;
  margin-bottom: 8px;
}
.stu-search-input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  font-family: inherit;
}
.stu-search-input::placeholder { color: #bbb; }
.stu-search-clear {
  border: none;
  background: none;
  padding: 4px 6px;
  font-size: 15px;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
}
.stu-count-line { margin-bottom: 8px; }

/* ---------- 讲台 + 前门行 ---------- */
.podium-row {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  gap: 6px;
  padding: 8px 2px 6px;
}
.door-slot {
  display: flex;
  align-items: center;
  min-height: 36px;
}
.door-slot:first-child { justify-content: flex-start; }
.door-slot.door-right { justify-content: flex-end; }
.door-label {
  font-size: 10px;
  color: #e65100;
  font-weight: 500;
  line-height: 1.2;
}
.podium-static {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(15, 110, 86, 0.2);
}
.podium-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
}

/* ---------- 座位网格 ---------- */
.seat-grid { padding: 0 2px 8px; }
.seat-row {
  display: flex;
  gap: 2px;
  margin-bottom: 2px;
  justify-content: center;
}
.seat-cell {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  min-height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1px 1px;
  border-radius: var(--radius-sm);
  background: #fafafa;
  border: 1px solid #eee;
  position: relative;
  transition: all 0.15s;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.seat-cell:active { transform: scale(0.96); }
.seat-cell.seat-empty {
  background: #F5F7FA;
  border-style: dashed;
  opacity: 0.5;
  cursor: default;
}
.seat-cell.seat-occupied {
  background: #fff;
  border-color: var(--primary);
}
.seat-cell.seat-selected {
  background: var(--primary);
  border-color: #0a5a44;
  box-shadow: 0 2px 6px rgba(15, 110, 86, 0.3);
}
.seat-cell.seat-selected .seat-label,
.seat-cell.seat-selected .seat-name,
.seat-cell.seat-selected .seat-label-only { color: #fff; }
.seat-cell.seat-dimmed {
  opacity: 0.25;
  filter: grayscale(60%);
}
.seat-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1px;
}
.seat-name {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  color: #333;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.seat-placeholder {
  font-size: 10px;
  color: #bbb;
  line-height: 1.2;
}
.seat-label-only {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}
.seat-cell.seat-cell-compact { min-height: 24px; }
.seat-check {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ---------- 座位统计条 ---------- */
.seat-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 4px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}
.seat-stats span { font-size: 11px; color: #666; }
.seat-stats i {
  font-style: normal;
  font-size: 11px;
  color: #ddd;
}

/* ---------- 未入座学生区 ---------- */
.unseated-section { margin-top: 8px; }
.unseated-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #F0F7FF;
  border: 1px solid #D6E4FF;
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.unseated-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}
.unseated-hint {
  font-size: 10px;
  color: #8B9CB3;
}
.unseated-section .student-grid-fallback {
  border: 1px solid #D6E4FF;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 4px;
  background: #fff;
}

/* ---------- 降级/未入座通用 4 列卡片网格 ---------- */
.student-grid-fallback {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.student-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-sm);
  min-height: 40px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.student-card:active { transform: scale(0.96); }
.student-card.selected {
  background: var(--primary);
  border-color: #0a5a44;
  box-shadow: 0 2px 6px rgba(15, 110, 86, 0.3);
}
.student-card-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 1px;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-card-no {
  font-size: 9px;
  color: #999;
  line-height: 1.2;
}
.student-card.selected .student-card-name { color: #fff; }
.student-card.selected .student-card-no { color: rgba(255, 255, 255, 0.8); }
.student-card.card-compact { min-height: 28px; }

/* ---------- 纯头像模式：3 列大卡片 ---------- */
.avatar-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 4px 2px 8px;
}
.avatar-card {
  flex: 0 0 calc(33.333% - 6px);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 8px;
  background: #FAFAFA;
  border: 1px solid #EEE;
  border-radius: 6px;
  position: relative;
  transition: all 0.15s;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.avatar-card:active { transform: scale(0.96); }
.avatar-card.avatar-card-selected {
  background: #E3F2FD;
  border-color: var(--primary);
}
.avatar-card.avatar-card-dimmed {
  opacity: 0.25;
  filter: grayscale(60%);
}
.avatar-card-ph {
  width: 60px;
  height: 60px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}
.avatar-card-selected .avatar-card-ph {
  border: 2px solid #fff;
  box-sizing: border-box;
}
.avatar-card-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar-card-selected .avatar-card-name { color: var(--primary); }
.avatar-card-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ---------- 无座位表降级提示条 ---------- */
.no-seat-tip {
  background: #FFF8E1;
  color: #8B6E00;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* 大屏适配（Task #1304：座位格加大便于触控） */
@media (min-width: 768px) {
  .seat-cell { min-height: 40px; }
  .seat-cell.seat-cell-compact { min-height: 30px; }
  .seat-label { font-size: 10px; }
  .seat-name { font-size: 13px; }
  .seat-label-only { font-size: 11px; }
  .seat-check { width: 16px; height: 16px; font-size: 11px; }
  .student-card { min-height: 48px; }
  .student-card.card-compact { min-height: 34px; }
  .student-card-name { font-size: 14px; }
  .student-card-no { font-size: 10px; }
  .avatar-card-ph { width: 72px; height: 72px; font-size: 24px; }
  .avatar-card-name { font-size: 15px; }
  .stu-search-input { height: 36px; font-size: 14px; }
  .seat-mode-btn, .select-all-btn { font-size: 12px; min-height: 30px; }
  .seat-stats span, .seat-stats i { font-size: 12px; }
  .no-seat-tip { font-size: 12px; }
  .unseated-title { font-size: 13px; }
  .unseated-hint { font-size: 11px; }
  .podium-text { font-size: 15px; }
}

/* ================================================================
   Task #1305: 点评小组/班级模式（对齐小程序 operate 页，rpx/2=px）
   ================================================================ */

/* ---------- 模式切换条（个体/小组/班级三分段） ---------- */
.mode-switch-bar {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e0e0e0;
  margin-bottom: 12px;
}
.mode-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #666;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mode-tab:active { background: #F5F7FA; }
.mode-tab.mode-active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.mode-count { color: var(--primary); font-weight: 500; }

/* ---------- 班级/小组多选 chips ---------- */
.class-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
.class-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: 16px;
  background: #F5F7FA;
  border: 1px solid #e0e0e0;
  font-size: 13px;
  color: #555;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.class-chip:active { transform: scale(0.96); }
.class-chip.class-chip-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 500;
}
.group-chip { gap: 3px; }
.group-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.group-chip-count {
  font-size: 10px;
  opacity: 0.7;
}

/* ---------- 班级点评对象卡片 ---------- */
.class-target-card {
  display: flex;
  align-items: center;
  padding: 16px 12px;
  background: #E3F2FD;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
}
.class-target-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 12px;
}
.class-target-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.class-target-name {
  font-size: 15px;
  font-weight: 600;
  color: #0D47A1;
  line-height: 1.3;
}
.class-target-desc {
  font-size: 12px;
  color: #5C7BAD;
  line-height: 1.4;
  margin-top: 2px;
}

/* 大屏适配（Task #1305） */
@media (min-width: 768px) {
  .mode-tab { padding: 12px 0; font-size: 15px; }
  .class-chip { padding: 8px 16px; font-size: 14px; }
  .group-chip-count { font-size: 11px; }
  .class-target-icon { width: 52px; height: 52px; font-size: 20px; }
  .class-target-name { font-size: 16px; }
  .class-target-desc { font-size: 13px; }
}

/* ---------- #1306 座位编辑（manage 座位 tab） ---------- */
.seat-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 0 4px;
}
.st-step-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.st-step-label {
  font-size: 12px;
  color: #5b6472;
  font-weight: 500;
}
.st-step-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #d8dee9;
  background: #fff;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.st-step-btn:active { background: #f1f4f9; }
.st-step-btn:disabled { opacity: 0.35; }
.st-step-val {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.seat-tool-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0 10px;
}
.seat-save-btn {
  background: var(--primary);
  color: #fff;
  border: none;
}
.seat-save-btn:active { opacity: 0.9; }
.seat-save-btn:disabled { opacity: 0.5; }
/* 编辑态座位网格：空位也允许点击（覆盖 .seat-empty 的 default cursor） */
.seat-grid-edit .seat-cell.seat-empty {
  cursor: pointer;
  opacity: 0.7;
}
.seat-cell.seat-swap-src {
  background: #fff3e0 !important;
  border-color: #e65100 !important;
  box-shadow: 0 0 0 2px rgba(230, 81, 0, 0.2);
}
.seat-cell.seat-swap-src .seat-label,
.seat-cell.seat-swap-src .seat-name {
  color: #e65100 !important;
}
/* 学生选择弹窗列表 */
.seat-pick-list {
  max-height: 46vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.seat-pick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.seat-pick-item:active { background: #f1f4f9; }
.seat-pick-name {
  font-size: 14px;
  color: #222;
  font-weight: 500;
}
.seat-pick-no {
  font-size: 11px;
  color: #8a94a6;
  margin-top: 2px;
}
