/* 云帆课表 · 样式（按截图还原配色） */

:root {
  --bg: #f2f4f7;
  --card: #ffffff;
  --primary: #2f7bf5;
  --success: #22c164;
  --warning: #f5833c;
  --danger: #e5484d;
  --purple: #a855f7;
  --text: #1f2937;
  --muted: #8a94a6;
  --line: #e3e6ec;

  --grid-head-time: #f0eed9;
  --grid-head-date: #e2e9c6;
  --grid-head-mon: #dbe7f7;
  --grid-cell: #d3e8cc;
  --grid-line: #e8ebef;
  --grid-head-text: #4a5261;
  --grid-time-text: #5a6170;
  --grid-cell-text: #2c3a2a;

  /* 有背景照片时用的半透明版本（跟上面同色，只是透明） */
  --grid-head-time-a: rgba(240, 238, 217, .78);
  --grid-head-date-a: rgba(226, 233, 198, .78);
  --grid-head-mon-a: rgba(219, 231, 247, .80);
  --grid-cell-a: rgba(211, 232, 204, .72);

  --radius: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

/* ---------------- 登录 ---------------- */

.login {
  min-height: 100dvh; display: flex; flex-direction: column;
  justify-content: center; padding: 28px;
}
.login__logo { text-align: center; margin-bottom: 28px; }
.login__logo div:first-child {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 16px;
  background: var(--primary); color: #fff; font-size: 26px; font-weight: 700;
  display: grid; place-items: center;
}
.login__logo h1 { margin: 0; font-size: 22px; letter-spacing: 1px; }
.login__logo p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.login input {
  width: 100%; padding: 13px 14px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 16px; outline: none;
}
.login input:focus { border-color: var(--primary); }
.login__error { min-height: 18px; margin: 2px 0 10px; color: var(--danger); font-size: 13px; }

.btn {
  padding: 13px 16px; border-radius: var(--radius); font-size: 15px;
  font-weight: 600; transition: opacity .15s, transform .08s;
}
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .5; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--success { background: var(--success); color: #fff; }
.btn--ghost { background: var(--card); border: 1px solid var(--line); }
.btn--danger { background: var(--card); border: 1px solid var(--danger); color: var(--danger); }
.btn--block { width: 100%; }

/* ---------------- 顶部栏 ---------------- */

.topbar {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 8px 6px; background: var(--bg);
  position: sticky; top: 0; z-index: 20; max-width: 100%;
}
/* 日历页：上面一行 年/月/老师，下面一行按钮 */
.topbar--stack { flex-direction: column; align-items: stretch; }
.topbar__row {
  display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%;
}
.topbar__row--actions { justify-content: flex-start; flex-wrap: nowrap; overflow: hidden; }
/* 第一行的老师按钮占满剩余宽度，铃铛贴右边 */
.topbar__row--main .pick-btn--wide { flex: 1 1 auto; min-width: 0; }
.topbar__row--main .icon-btn--bell { margin-left: 0; }
#sel-campus {
  margin-right: auto; max-width: 46vw; min-width: 0;
  font-size: 12px; height: 30px;
}
.topbar__row--actions .pick-btn {
  flex: 0 0 auto; max-width: 40vw; height: 30px; font-size: 12px; padding: 0 8px;
}
.topbar select, .topbar .chip-btn {
  height: 30px; padding: 0 6px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 13px; color: var(--text); min-width: 0; flex: 0 1 auto;
}
#sel-year { flex: 0 0 auto; }
#sel-month { flex: 0 0 auto; }
#sel-teacher { flex: 1 1 0%; width: 0; min-width: 0; max-width: none; text-overflow: ellipsis; }
.topbar select { appearance: none; padding-right: 6px; }
.topbar .spacer { flex: 1; }

.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; flex: 0 0 30px;
}
.icon-btn--bell { background: var(--warning); color: #fff; }

.admin-btn {
  height: auto; min-height: 30px; padding: 5px 10px; border-radius: 6px;
  background: var(--primary); color: #fff;
  font-size: 12px; line-height: 1.2; white-space: nowrap; text-align: center;
  flex: 0 0 auto;
}

/* ---------------- 课表 ---------------- */

.weeks { padding: 0 6px 96px; }

.week { margin-bottom: 10px; background: var(--card); border-radius: 6px; overflow: hidden; }

.grid {
  display: grid;
  /* 第一列固定 46px，其余 7 列等分；minmax(0,1fr) 防止内容把列撑开 */
  grid-template-columns: 46px repeat(7, minmax(0, 1fr));
}

.gcell {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 2px;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  font-size: 11px; overflow: hidden; position: relative;
}

.ghead { min-height: 30px; background: var(--grid-head-date); font-size: 11px; color: var(--grid-head-text); }
.ghead.gtime, .gtime { background: var(--grid-head-time); font-size: 10px; color: var(--grid-time-text); }
button.gtime { font: inherit; font-size: 10px; color: #5a6170; border: 0; }
.gtime--edit { cursor: pointer; }
.gtime--edit:active { background: #e6e3c4; }
.ghead.mon { background: var(--grid-head-mon); }
.ghead.weekend { background: var(--grid-head-time); }
.ghead.outside { color: #b6bcc7; }

.gcell.lesson { background: var(--grid-cell); cursor: pointer; }
.gcell.date-cell { cursor: pointer; }

/* 已过点还没签到：一对一黄色 / 班课·一对二橙色 */
.gcell.lesson--pending-one { background: #ffef9f; box-shadow: inset 3px 0 0 #d9b520; }
.gcell.lesson--pending-group { background: #ffd39a; box-shadow: inset 3px 0 0 #e0871f; }

/* 非本月日期：只显示，不可点 */
.gcell--outside { background: #f7f8fa; cursor: default; }

.gnames {
  display: block; width: 100%;
  font-size: 10px; line-height: 1.15; color: var(--grid-cell-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px;
}

.gdot {
  position: absolute; top: 3px; right: 3px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--purple);
}

.gsum {
  grid-column: 1 / -1;
  display: flex; gap: 10px; padding: 5px 8px;
  border-bottom: 1px solid var(--grid-line);
  font-size: 11px; color: var(--muted);
}

/* ---------------- 底部操作 ---------------- */

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; gap: 10px; padding: 10px 12px calc(10px + var(--safe-bottom));
  background: var(--bg);
}
.bottom-bar .btn {
  flex: 1 1 0; min-width: 0; padding: 12px 6px; font-size: 15px; font-weight: 600;
  line-height: 1.25; white-space: normal; word-break: keep-all;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 12px;
}
.bottom-bar__two { font-size: 14px !important; line-height: 1.2; }

/* ---------------- 弹窗 ---------------- */

.modal-layer {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(17, 22, 31, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  width: 100%; max-width: 520px; max-height: 88dvh;
  background: var(--card); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden;
  animation: pop .16s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: .7; } }

.modal__head {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.modal__title { font-size: 16px; font-weight: 600; flex: 1; }
.modal__close { font-size: 20px; color: var(--muted); padding: 2px 6px; }

.modal__body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.modal__foot {
  display: flex; gap: 8px; padding: 10px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
}
.modal__foot .btn { flex: 1; }

.field { margin-bottom: 14px; }
.field__label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.segmented { display: flex; gap: 14px; align-items: center; }
.segmented label { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.segmented input { accent-color: var(--primary); }

/* 课程类型 + 科目 同一行 */
.type-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.subject-select {
  flex: 0 0 auto; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 13px; background: #fff;
}

/* 多选科目 */
.subject-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.subj {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; background: #fff;
}
.subj input { accent-color: var(--primary); }
.subj:has(input:checked) { border-color: var(--primary); color: var(--primary); background: #eef4ff; }

.time-row { display: flex; gap: 8px; }
.time-row input {
  flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; outline: none; background: #fff;
}
.time-row input::placeholder,
.roster__name::placeholder,
.roster__absent::placeholder { color: #b6bcc7; }

.roster { border-top: 1px solid var(--line); }
.roster__item {
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.roster__no { width: 14px; color: var(--muted); font-size: 12px; flex: 0 0 14px; }
.roster__name {
  flex: 1 1 auto; min-width: 0; padding: 7px 8px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 13px; outline: none; background: #fff;
}
.roster__present {
  flex: 0 0 auto; padding: 6px 5px; border-radius: 6px; border: 1px solid var(--line);
  font-size: 12px; background: #fff; color: var(--muted); white-space: nowrap;
}
.roster__present.is-on { background: var(--grid-cell); border-color: transparent; color: #2c3a2a; }
.roster__absent {
  flex: 0 0 58px; width: 58px; padding: 7px 4px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 12px; text-align: center; outline: none;
  background: #fff;
}
.roster__item .roster__hw, .roster__item .roster__del { order: 8; }
.roster__hw {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--purple);
  color: #fff; font-size: 12px; display: grid; place-items: center;
}
.roster__del { flex: 0 0 20px; color: var(--danger); font-size: 15px; width: 20px; }

/* 只读模式（管理员查看） */
.roster__plain { flex: 1; min-width: 0; font-size: 13px; padding: 7px 0; }
.roster__plain--sm { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.readonly-tag {
  flex: 0 0 auto; font-size: 11px; color: var(--warning);
  border: 1px solid var(--warning); border-radius: 4px; padding: 1px 5px;
}
.readonly-hint {
  margin: 10px 0 0; font-size: 12px; color: var(--muted);
  background: #fafbfc; border-radius: 6px; padding: 8px 10px;
}

.add-student {
  display: block; width: 100%; padding: 10px; margin-top: 10px;
  color: var(--primary); font-size: 14px; text-align: left;
}

.form-error { min-height: 18px; margin: 4px 0 0; color: var(--danger); font-size: 13px; }

/* 统计 */
.stat-section { margin-bottom: 18px; }
.stat-section h3 { font-size: 15px; margin: 0 0 8px; }
.stat-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
}
.stat-card__name { font-weight: 600; font-size: 14px; }
.stat-card__meta { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.6; }
.tag {
  display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px;
  background: var(--grid-cell); color: #2c3a2a; margin-right: 6px;
}
.tag--one { background: #fde8d8; color: #9a5a24; }
.tag--two { background: #efe3fb; color: #6b3fa0; }

.teacher-nums { display: flex; gap: 24px; margin-top: 8px; }
.teacher-nums div { text-align: center; font-size: 11px; color: var(--muted); }
.teacher-nums b { display: block; font-size: 20px; margin-bottom: 2px; }
.teacher-nums .n-group b { color: var(--success); }
.teacher-nums .n-one b { color: var(--primary); }
.teacher-nums .n-two b { color: var(--purple); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------------- 作业记录 ---------------- */

.hw-modal { max-width: 460px; }
.hw-info {
  background: #fafbfc; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 14px;
}
.hw-info__row {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: #4a5261; line-height: 2;
}
.hw-info__row b { color: var(--text); font-weight: 600; }
.hw-info select {
  padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; background: #fff;
}

.hw-block { margin-bottom: 14px; }
.hw-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hw-label { flex: 1; font-size: 14px; color: var(--text); }
.hw-add {
  background: var(--primary); color: #fff; border-radius: 6px;
  padding: 6px 10px; font-size: 12px;
}
.hw-percent { color: var(--danger); font-size: 14px; font-variant-numeric: tabular-nums; }

.hw-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.hw-thumb { position: relative; display: inline-block; }
.hw-thumb img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); display: block;
}
.hw-thumb button {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--danger); color: #fff;
  font-size: 12px; line-height: 1; display: grid; place-items: center;
}

.hw-range { width: 100%; accent-color: var(--primary); }

.hw-hands { display: flex; gap: 8px; }
.hw-hand {
  flex: 1; padding: 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font-size: 14px; color: #4a5261;
}
.hw-hand.is-on { border-color: var(--primary); color: var(--primary); background: #eef4ff; }

.hw-remind {
  background: var(--warning); color: #fff; border-radius: 6px;
  padding: 6px 10px; font-size: 12px;
}

.hw-textarea {
  width: 100%; min-height: 76px; padding: 10px; resize: vertical;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; outline: none; font-family: inherit;
}
.hw-textarea::placeholder { color: #b6bcc7; }

.hw-divider { height: 1px; background: var(--line); margin: 16px 0; }

/* 照片查看：单击收起、双指缩放 */
.viewer {
  position: fixed; inset: 0; z-index: 10500;
  background: rgba(8, 10, 14, .94);
  display: flex; align-items: center; justify-content: center;
  touch-action: none; overflow: hidden;
}
.viewer img {
  max-width: 100%; max-height: 100%;
  transform-origin: center center;
  user-select: none; -webkit-user-drag: none;
}
.viewer__save {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  padding: 11px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 14px; backdrop-filter: blur(6px);
}

/* 分享图预览 */
.share-body { background: #f2f4f7; }
.share-item { margin: 0 0 16px; }
.share-item img {
  width: 100%; display: block; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
}
.share-item .btn { margin-top: 8px; font-size: 13px; padding: 9px; }

/* 相册/拍照 小菜单 */
.sheet {
  width: 100%; max-width: 460px; margin: 0 auto;
  align-self: flex-end; background: #f2f4f7;
  border-radius: 14px 14px 0 0; overflow: hidden;
  padding-bottom: var(--safe-bottom);
}
.sheet__item {
  display: block; width: 100%; padding: 17px; background: #fff;
  font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line);
}
.sheet__item--cancel { color: var(--muted); border-bottom: 0; margin-top: 8px; }

/* ---------------- 学员缴费页 ---------------- */

.page { padding: 8px 12px 90px; }

.page__search input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; outline: none; background: var(--card);
}

.page__block {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin-top: 12px;
}
.page__title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }

.stat-row { display: flex; gap: 6px; }
.stat-row div { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.stat-row b { display: block; font-size: 20px; color: var(--text); margin-bottom: 2px; white-space: nowrap; }
.stat-row b.is-date { font-size: 15px; padding-top: 3px; }
.stat-row b.is-warn { color: var(--danger); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.form-grid select, .form-grid input {
  padding: 8px 10px; font-size: 14px; border: 1px solid var(--line);
  border-radius: 8px; outline: none; background: #fff; color: var(--text);
}
#pay-note {
  width: 100%; padding: 9px 10px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
}

.pay-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.pay-row:last-child { border-bottom: 0; }
.pay-row__main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-row__right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.seg-edit {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; color: #2f7bf5; text-decoration: underline;
}

/* 学生姓名联想 */
.suggest {
  margin: -2px 0 6px 26px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; overflow-y: auto; max-height: 210px;
  box-shadow: 0 4px 12px rgba(30, 40, 60, .08);
}
.suggest__head {
  position: sticky; top: 0; z-index: 1;
  padding: 8px 12px; font-size: 12px; color: #9aa3b0;
  background: #f4f6f9; border-bottom: 1px solid var(--line);
  pointer-events: auto;   /* 头部按钮要能点 */
}
.suggest__item {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 9px 12px; background: none; border: 0;
  border-bottom: 1px solid var(--line); font: inherit; font-size: 14px;
  color: var(--text); text-align: left; cursor: pointer;
}
.suggest__item:last-child { border-bottom: 0; }
.suggest__item:active { background: #eef4ff; }
/* 名单行上的剩余课时 */
.roster__left { flex: 0 0 auto;
  flex: 0 0 auto; font-size: 10px; line-height: 1;
  color: #2f7bf5; background: #eaf1ff; border-radius: 4px; padding: 3px 4px;
  white-space: nowrap;
}
.roster__left.is-low { color: #c0392b; background: #ffe8e6; }

.suggest__meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.suggest__left { color: #2f7bf5; font-weight: 600; }
.suggest__left.is-empty { color: #c0392b; }
.suggest__hint { padding: 9px 12px; font-size: 12px; color: var(--muted); }

/* 缴费批次 */
.batch { border-bottom: 1px solid var(--line); }
.batch:last-child { border-bottom: 0; }
.batch__labels {
  display: grid; grid-template-columns: 1.2fr .8fr .6fr .6fr;
  gap: 6px; font-size: 11px; color: var(--muted); padding-bottom: 4px;
}
.batch__head {
  display: grid; grid-template-columns: 1.2fr .8fr .6fr .6fr auto;
  gap: 6px; align-items: center; width: 100%;
  padding: 10px 0; background: none; border: 0; font: inherit;
  font-size: 14px; color: var(--text); text-align: left; cursor: pointer;
}
.batch__head .is-empty { color: var(--muted); }
.batch__arrow { color: var(--muted); font-size: 10px; }
.batch__items { padding: 0 0 10px 6px; }
.batch__item {
  padding: 8px 0; border-top: 1px dashed var(--line);
}
.batch__item-main {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
}
.batch__item-sub {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 3px; font-size: 12px; color: var(--muted); padding-left: 2px;
}
.batch__teacher { font-size: 12px; color: var(--muted); }
.batch__amount { margin-left: auto; white-space: nowrap; }
.seg-edit--danger { color: #c0392b; }
.batch__actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.batch__sum {
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
/* 各科目剩余 */
.subject-left {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.subject-left__item {
  font-size: 12px; color: #5a6170; background: #f4f6f9;
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px;
}
.subject-left__item b { color: #2f7bf5; font-weight: 600; }
.subject-left__item.is-empty b { color: #c0392b; }

/* 班型变更提醒 */
.ctc-notes { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ctc-notes__title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ctc-note {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; margin-bottom: 6px; border-radius: 8px;
  background: #fff8e6; border: 1px solid #f3dfae;
  font-size: 13px; color: #6b5322; line-height: 1.5;
}
.ctc-note input { margin-top: 2px; }
.ctc-note.is-done { background: #f2f7f2; border-color: #cfe3cf; color: #4a6b4a; }

/* 提醒弹窗 */
.notify-row {
  padding: 10px 12px; margin-bottom: 8px; border-radius: 8px;
  background: #fff8e6; border: 1px solid #f3dfae; font-size: 13px;
}
.notify-row__main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 课表池 */
.pool-page {
  position: fixed; inset: 0; background: #f4f6fa; z-index: 10400;
  display: flex; flex-direction: column; padding: 8px;
}
body.has-wallpaper .pool-page {
  /* 排课页自己有背景：一层浅白蒙版 + 照片，下面的课表不会透出来 */
  background-color: #f4f6fa;
  background-image: linear-gradient(rgba(244, 246, 250, .80), rgba(244, 246, 250, .80)),
                    var(--wallpaper-url, none);
  background-position: center, center center;
  background-size: cover, contain;
  background-repeat: no-repeat, no-repeat;
}
body.has-wallpaper .tp-block { background: rgba(255, 255, 255, .72); }
/* 注意：不要给 td/th 统一刷白，否则会把每位老师的配色和表头文字盖掉 */
body.has-wallpaper .tp-table td { background-color: rgba(255, 255, 255, .38); }
body.has-wallpaper .tp-corner,
body.has-wallpaper .tp-corner--date { background-color: rgba(247, 249, 252, .60); }
body.has-wallpaper .pool-tools select { background: rgba(255, 255, 255, .88); }
.pool-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pool-title { flex: 1; text-align: center; font-size: 16px; }
.pool-tools { display: flex; gap: 6px; margin-bottom: 6px; }
.pool-tools select {
  flex: 1; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; background: #fff;
}
.pool-hint { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.tp-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.tp-corner { min-width: 0; width: 34px; font-size: 9px; }
.tp-block {
  background: #fff; border-radius: 10px; margin-bottom: 10px; padding: 6px 6px 8px;
}
.tp-title {
  text-align: center; font-weight: 700; font-size: 13px; padding: 4px 0;
  color: var(--tp-head-text, #8a6d1f);
  background: var(--tp-head, #fff6d6);
  border-radius: 6px; margin-bottom: 4px;
}
.tp-table {
  border-collapse: collapse; width: 100%; font-size: 10px; table-layout: fixed;
}
.tp-table th, .tp-table td {
  border: 1px solid #e6ebf2; padding: 1px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
}
.tp-table thead th {
  background: var(--tp-soft, #eef3fb);
  color: var(--tp-head-text-soft, #33405c);
}
.tp-table thead th:nth-child(2), .tp-table thead th:nth-child(3),
.tp-table thead th:nth-child(4), .tp-table thead th:nth-child(5) {
  background: var(--tp-soft, #eef3fb);
}
.tp-table thead th:nth-child(6), .tp-table thead th:nth-child(7),
.tp-table thead th:nth-child(8) {
  background: var(--tp-head, #fff45c);
  color: var(--tp-head-text, #33405c);
}
.tp-corner { background: #f7f9fc; min-width: 92px; }
.tp-corner--date { background: #f7f9fc; font-size: 10px; color: var(--muted); }
.tp-date {
  background: var(--tp-soft, #fbfcfe); font-size: 10px;
  color: var(--tp-head-text-soft, #666);
}
.tp-table input {
  width: 100%; border: 0; background: transparent; font-size: 10px;
  padding: 4px 1px; outline: none;
}
.tp-table input:focus { background: #fffbe6; }

@media (max-width: 400px) {
  .tp-table { font-size: 9px; }
  .tp-table input { font-size: 9px; padding: 5px 0; }
  .tp-corner { width: 28px; }
}
.tp-slot input { font-weight: 600; }
.tp-date-input { color: #666; }
.tp-conflict {
  background: #ffe8e6; border: 1px solid #f0b3ae; color: #a12d22;
  font-size: 11px; padding: 6px 8px; border-radius: 8px; margin-bottom: 6px;
  line-height: 1.5;
}
.tp-suggest-list { display: none; }
.tp-pick-hint { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.tp-pick-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.tp-pick-table { border-collapse: collapse; width: 100%; font-size: 11px; }
.tp-pick-table th, .tp-pick-table td { border: 1px solid #eef1f6; padding: 4px 3px; }
.tp-pick-corner { background: #f7f9fc; font-size: 10px; color: var(--muted); }
.tp-pick-slot { background: #f7f9fc; font-weight: 600; white-space: nowrap; }
.tp-pick-col {
  background: #fff9d6; cursor: pointer; font-weight: 600; white-space: nowrap; font-size: 10px;
}
.tp-pick-col:hover { background: #ffe98a; }
.tp-pick-cell { text-align: center; min-width: 46px; }
.tp-pick-cell.has-text { cursor: pointer; color: #23405f; }
.tp-pick-cell.has-text:hover { background: #eaf1ff; }
.tp-suggest {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 10px; font-size: 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.tp-suggest:hover { background: #f3f8ff; }
.tp-suggest b { color: #2f7bf5; }

/* 课表池 */
.pool-wrap { flex: 1; overflow: auto; background: #fff; border-radius: 10px; }
.pool-table { border-collapse: collapse; width: 100%; font-size: 11px; }
.pool-table th, .pool-table td {
  border: 1px solid #e6ebf2; padding: 2px; min-width: 78px; vertical-align: top;
}
.pool-table thead th { background: #eef3fb; position: sticky; top: 0; z-index: 2; }
.pool-corner, .pool-rowhead {
  position: sticky; left: 0; background: #f7f9fc; z-index: 1; min-width: 116px;
}
.pool-table input {
  width: 100%; border: 0; background: transparent; font-size: 11px;
  padding: 3px 2px; outline: none;
}
.pool-table input:focus { background: #fffbe6; }
.pool-rowhead input.pool-row { font-weight: 600; }
.pool-rowhead input.pool-slot { color: var(--muted); font-size: 10px; }
.pool-head { text-align: center; font-weight: 600; }
.ask-input {
  width: 100%; margin-top: 6px; padding: 8px 10px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
}

/* 月初排课提醒 */
.month-note {
  border: 1px solid #ffe0b2; background: #fffbf2;
  border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
}
.month-note.is-done { background: #f5f6f8; border-color: #e3e7ee; }
.month-note__title {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600; margin-bottom: 4px;
}
.month-note__text { font-size: 12px; color: #5a6170; line-height: 1.6; }
.month-note__text b { color: #c0392b; }
.month-note__list { margin: 8px 0; }
.month-note__row {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 3px 0; color: #444;
}
.month-note__subject { color: var(--muted); }
.month-note__unmarked { margin-left: auto; color: #c0392b; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot--yellow { background: #e0c65a; }
.dot--orange { background: #e0871f; }

.notify-row__sub {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; font-size: 12px; color: var(--muted);
}
.notify-row--low { background: #fff1f0; border-color: #f5c6c6; }
.notify-row--low.is-done { background: #f3f5f7; border-color: #dfe4ea; color: var(--muted); }
.notify-row__done { font-size: 12px; color: var(--muted); }

/* 学员列表：一个学生一行 */
.enroll-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 8px; text-align: left;
}
.enroll-row__left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.enroll-row__meta { font-size: 12px; color: var(--muted); }
.enroll-row__right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.enroll-row__right b { font-size: 15px; color: var(--text); }

/* 多选：勾选行 + 底部操作条 */
.enroll-row.is-selectable {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; gap: 10px; cursor: pointer;
}
.enroll-row.is-selected { border-color: #2f7bf5; background: #f0f6ff; }
.enroll-check {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #c3cad6; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; line-height: 1;
}
.enroll-row.is-selected .enroll-check { background: #2f7bf5; border-color: #2f7bf5; }

.batch-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(30, 40, 60, .06);
}
.batch-bar__row { display: flex; align-items: center; gap: 8px; }
.batch-bar__row .btn { flex: 1; }
.batch-bar__count { font-size: 13px; color: var(--muted); margin-right: auto; }
.page--with-bar { padding-bottom: 96px; }

/* 校区学费统计 */
.fin-total {
  text-align: center; padding: 14px 0 16px; margin-bottom: 10px;
  background: linear-gradient(180deg, #eef4ff, #ffffff);
  border: 1px solid var(--line); border-radius: 12px;
}
.fin-total__num { font-size: 30px; font-weight: 700; color: #2f7bf5; }
.fin-total__num--expr { font-size: 21px; line-height: 1.35; }
.fin-total__label { font-size: 13px; color: #5a6170; margin-top: 2px; }
.fin-total__hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.fin-list { max-height: 340px; overflow-y: auto; }
.fin-row {
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.fin-row:last-child { border-bottom: 0; }
.fin-row__main { display: flex; align-items: baseline; gap: 6px; }
.fin-row__main b { font-size: 15px; }
.fin-row__grade { font-size: 12px; color: var(--muted); }
.fin-row__lessons { font-size: 12px; color: var(--muted); }
.fin-row__right {
  margin-left: auto; font-size: 15px; font-weight: 600; color: #c0392b;
}
.fin-row__sub { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* 工资 */
.sal-summary {
  display: flex; gap: 14px; justify-content: space-between;
  font-size: 13px; color: #5a6170; padding: 8px 12px; margin-bottom: 10px;
  background: #f4f7ff; border: 1px solid var(--line); border-radius: 10px;
}
.sal-summary b { color: #2f7bf5; font-size: 15px; }
.sal-group { font-size: 13px; font-weight: 600; margin: 12px 0 6px; color: #333; }
.sal-note { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.sal-row {
  padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
}
.sal-row.is-partner { background: #fffdf3; border-color: #f0e2b6; }
.sal-row__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sal-row__head b { font-size: 15px; white-space: nowrap; }
.sal-row__meta { font-size: 11px; color: var(--muted); flex-basis: 100%; order: 2; }
.sal-row__head .seg-edit { margin-left: 4px; white-space: nowrap; }
.sal-row__toggle { font-size: 10px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.sal-badge { white-space: nowrap; }
.sal-detail {
  margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px;
  background: #f7f9fc; border: 1px dashed var(--line);
}
.sal-detail__row {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 12px; padding: 5px 0; border-bottom: 1px solid #eef1f6;
}
.sal-detail__row:last-of-type { border-bottom: 0; }
.sal-detail__head { display: flex; align-items: baseline; gap: 6px; }
.sal-detail__head b { font-size: 13px; }
.sal-detail__subject { color: var(--muted); font-size: 11px; }
.sal-detail__meta { color: #5a6170; font-size: 11px; }
.sal-detail__calc { color: var(--muted); font-size: 11px; padding-left: 2px; }
.sal-detail__calc b { color: #2f7bf5; font-size: 12px; }
.sal-detail__sum {
  margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line);
  font-size: 12px; color: #5a6170; text-align: right;
}
.sal-detail__sum b { color: #c0392b; font-size: 14px; }
.sal-badge {
  font-size: 10px; color: #8a6d1f; background: #f7e7b5;
  border-radius: 4px; padding: 1px 5px;
}
.sal-row__calc { font-size: 12px; color: #5a6170; margin-top: 3px; }
.sal-row__salary {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--muted); margin-top: 4px;
}
.sal-row__salary b { font-size: 16px; color: #c0392b; }
.sal-neg { color: #c0392b; }
.sal-share { color: #1f4e79; }

/* 经费 */
.fund-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin-bottom: 10px;
}
.fund-grid div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 9px; background: #f7f9fc; border: 1px solid var(--line);
  border-radius: 8px; font-size: 12px; color: var(--muted);
}
.fund-grid div span { white-space: nowrap; }
.fund-grid .fund-wide { grid-column: 1 / -1; }
.fund-grid .fund-wide b { font-size: 15px; }
.fund-grid div b { white-space: nowrap; }
.fund-rate { cursor: pointer; border-color: #b9d0ff; background: #f3f8ff; }
.fund-rate::after { content: '改'; font-size: 10px; color: #2f7bf5; margin-left: 4px; }
.fund-grid b { font-size: 13px; color: var(--text); }
.fund-form { display: flex; gap: 8px; align-items: flex-end; }
.fund-form label {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--muted);
}
.fund-form input {
  padding: 8px 10px; font-size: 14px; border: 1px solid var(--line);
  border-radius: 8px; outline: none;
}
.fund-logs { margin-top: 8px; }
.fund-log {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; margin-bottom: 4px;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px;
}
.fund-log__note { color: var(--muted); }
.fund-log__del {
  margin-left: auto; border: 0; background: transparent;
  color: #c0392b; font-size: 16px; line-height: 1; cursor: pointer;
}
.modal__foot--stack { flex-direction: column; }
.modal__foot--stack > .btn { flex: none; width: 100%; }
.stat-tools { display: flex; gap: 8px; }
.stat-tools .btn { flex: 1; font-size: 13px; padding: 10px 6px; line-height: 1.3; }

/* 导入冲突列表 */
.conflict-list { max-height: 240px; overflow-y: auto; }
.conflict-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; margin-bottom: 6px; font-size: 13px;
  background: #fff5f5; border: 1px solid #f5c6c6; border-radius: 8px;
}
.conflict-row b { color: #9c0006; }
.conflict-row span { color: #5a6170; font-size: 12px; }
a.btn { text-decoration: none; text-align: center; }

/* 排课弹窗里的"同步到其他周" */
.editor-sync { display: flex; gap: 8px; margin-top: 12px; }
.editor-sync .btn { flex: 1; }

/* 管理员标记 */
.trow__admin { opacity: .55; }
.trow__admin.is-on { opacity: 1; color: #2f7bf5; font-weight: 700; }
.tag--archived {  margin-left: 6px; font-size: 11px; font-weight: 400;
  color: #7a8290; background: #eef0f4; border-radius: 4px; padding: 2px 6px;
}

/* ---------------- 用户管理 ---------------- */

.head-btn {
  padding: 6px 8px; border-radius: 6px; background: #f2f4f7;
  font-size: 12px; color: #4a5261; white-space: nowrap;
}
.head-btn--blue { background: #e3edff; color: var(--primary); }
.head-btn--warn { background: #fde8d8; color: #c2621f; }

.add-teacher { display: flex; gap: 6px; margin-bottom: 12px; }
.add-teacher input {
  flex: 1; min-width: 0; padding: 9px 10px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
}
.add-teacher select {
  width: 82px; padding: 9px 6px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 8px;
}
.add-teacher .btn { padding: 9px 12px; font-size: 14px; }

.teacher-list { display: flex; flex-direction: column; gap: 8px; }

.trow {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.trow.is-me { background: #f5f9ff; border-color: #cfe0ff; }
.trow__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trow__name { font-size: 15px; font-weight: 600; }
.trow__actions { display: flex; gap: 4px; flex: 0 0 auto; }
.trow__actions button {
  width: 28px; height: 28px; border-radius: 6px; background: #f7f8fa; font-size: 13px;
}

.chip-subject {
  font-size: 12px; color: #5a6170; background: #f2f4f7;
  border-radius: 6px; padding: 2px 8px;
}
.badge-me, .badge-admin, .badge-lock {
  font-size: 11px; border-radius: 4px; padding: 2px 6px; white-space: nowrap;
}
.badge-me { color: #ffffff; background: var(--primary); }
.badge-admin { color: #0f7a3d; background: #d9f2e0; }
.badge-lock { color: #9a5a24; background: #fde8d8; }

.btn--sm { padding: 6px 10px; font-size: 12px; font-weight: 500; border-radius: 8px; white-space: nowrap; }

/* 变更记录 */
.change-row {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
}
.change-row__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--text);
}
.change-row__head span { font-size: 12px; color: var(--muted); }
.change-row__done {
  margin-left: auto; font-size: 11px; color: #9a5a24;
  background: #fde8d8; border-radius: 4px; padding: 2px 6px;
}
.change-row__summary {
  margin-top: 4px; font-size: 13px; color: #4a5261; line-height: 1.5;
}
.change-row__actions {
  display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px;
}
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 20px; background: rgba(20,24,31,.92);
  color: #fff; font-size: 13px; z-index: 20000; max-width: 86vw; text-align: center;
}

.pool-select {
  width: 100%; padding: 7px 9px; margin-bottom: 6px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}

/* 欠课 / 欠费 */
.subject-left__item.is-arrears { background: #ffe8e6; border-color: #f0b3ae; color: #a12d22; }
.subject-left__item.is-arrears b { color: #a12d22; }
.arrears-tag {
  font-style: normal; font-size: 10px; margin-left: 4px;
  background: #c0392b; color: #fff; border-radius: 4px; padding: 1px 4px;
}
.arrears-list { border: 1px solid #f0b3ae; background: #fff6f5; border-radius: 10px; padding: 6px 8px; }
.arrears-row {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  padding: 5px 0; border-bottom: 1px dashed #f3d3cf; font-size: 12px;
}
.arrears-row:last-child { border-bottom: 0; }
.arrears-row b { font-size: 13px; }
.arrears-row__subject { color: var(--muted); font-size: 11px; }
.arrears-row__lessons { color: #a12d22; }
.arrears-row__money { margin-left: auto; color: #c0392b; font-weight: 600; }
.arrears-row__dates { flex-basis: 100%; color: var(--muted); font-size: 10px; }

/* 注册时选科目 */
.subject-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.subject-chip {
  padding: 6px 10px; font-size: 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #444;
}
.subject-chip.is-on {
  background: #2f7bf5; border-color: #2f7bf5; color: #fff; font-weight: 600;
}

/* 注册表单 */
.reg-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.reg-form input {
  width: 100%; padding: 9px 10px; font-size: 14px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; outline: none;
}
.reg-form input:focus { border-color: #2f7bf5; }

.login__addr {
  margin-top: 14px; text-align: center; font-size: 11px; color: var(--muted);
  line-height: 1.6;
}

.login__remember {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  font-size: 12px; color: var(--muted); margin: 2px 0 6px;
}
.login__remember input { width: 14px; height: 14px; accent-color: #2f7bf5; }

/* 学生某科某月的小课表（班型提醒弹窗） */
.ctc-note span { cursor: pointer; }
.ctc-note span:hover { text-decoration: underline dotted; }
.sg-table .sg-date { background: #eef3fb; font-size: 10px; font-weight: 600; }
.sg-table .sg-slot { background: #f7f9fc; font-size: 11px; white-space: nowrap; }
.sg-table .sg-cell { text-align: center; min-width: 52px; vertical-align: middle; }
.sg-table .sg-cell.is-bad { background: #fff4f3; }
.sg-item { font-size: 11px; line-height: 1.35; padding: 3px 2px; border-radius: 6px; }
.sg-item span { color: var(--muted); font-size: 10px; }
.sg-item.is-bad { background: #ffe8e6; color: #a12d22; font-weight: 600; }
.sg-item.is-focus { outline: 2px solid #2f7bf5; outline-offset: 1px; }

/* 窄屏适配：一屏看到周一到周日，不横向滚动 */
html, body { max-width: 100%; overflow-x: hidden; }
.weeks { padding: 0 4px 92px; }
.grid { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); }
.gcell {
  min-height: 38px; padding: 0 1px;
  font-size: 10px; line-height: 1.15; word-break: break-all;
}
.gcell__date, .weeks .date-cell, .week__head { font-size: 10px; }
.week__title, .week__sum { font-size: 10px; }
.bottom-bar { gap: 8px; padding: 8px; }
.bottom-bar .btn { font-size: 13px; padding: 10px 6px; }

@media (max-width: 400px) {
  .grid { grid-template-columns: 36px repeat(7, minmax(0, 1fr)); }
  .gcell { font-size: 9px; min-height: 34px; }
  .topbar select { font-size: 12px; }
  .admin-btn { font-size: 11px; padding: 0 7px; }
}

@media (min-width: 720px) {
  .grid { grid-template-columns: 52px repeat(7, minmax(0, 1fr)); }
  .gcell { font-size: 12px; min-height: 46px; }
}

/* 分享图：一键保存 / 分享微信 */
.share-actions { display: flex; gap: 8px; margin-bottom: 6px; }
.share-actions .btn { flex: 1; padding: 11px 8px; font-size: 14px; }

.pending-block--archived { background: #f7f8fa; border-color: var(--line); }
.pending-block--archived .pending-block__title { color: var(--muted); }

.topbar__title { white-space: nowrap; font-size: 14px; }

/* 注册：填写校区 / 加入校区 */
.reg-mode { display: flex; gap: 8px; margin-bottom: 12px; }
.reg-mode__btn {
  flex: 1; padding: 10px 6px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #444;
}
.reg-mode__btn.is-on {
  background: #2f7bf5; border-color: #2f7bf5; color: #fff; font-weight: 600;
}

/* 校区卡片 */
.campus-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.campus-card__main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.campus-card__code { font-size: 12px; color: #8a6d1f; background: #fff6d6; padding: 1px 6px; border-radius: 5px; }
.campus-card__sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* 经费弹窗里的各校区列表 */
.campus-sum { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.campus-sum__row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line);
}
.campus-sum__row:last-child { border-bottom: 0; }
.campus-sum__row b { font-size: 13px; }

/* 注册：校区联想下拉 */
.campus-pick { display: none; margin: -4px 0 10px; }
.campus-pick.is-open { display: block; }
.campus-pick__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 10px; margin-bottom: 4px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left;
}
.campus-pick__item:hover { background: #f3f8ff; }
.campus-pick__item b { font-size: 14px; }
.campus-pick__item span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.campus-pick__empty { font-size: 12px; color: var(--muted); padding: 6px 2px; }

/* 用户管理：这一行就是当前登录的人 */
.badge-self {
  font-size: 11px; color: #8a9099; background: #eef0f3;
  border-radius: 4px; padding: 1px 5px; margin-left: 2px;
}

/* 用户管理头部按钮多，标题别换行 */
.modal__head { gap: 4px; }
.modal__head .modal__title { white-space: nowrap; flex: 0 0 auto; }
.head-btn { padding: 0 7px; font-size: 11px; }

/* 顶部刷新按钮：放在校区下拉右边那块空白 */
.topbar-refresh {
  height: 30px; margin-right: 6px; border: 1px solid var(--line);
  background: #fff; color: #555; border-radius: 6px;
}

/* 用户管理：行里的校区标签 + 头部校区下拉 */
.chip-campus {
  font-size: 11px; color: #5b6b7f; background: #eef2f7;
  border-radius: 4px; padding: 1px 6px;
}
.head-select {
  height: 26px; padding: 0 4px; font-size: 11px; max-width: 108px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #444;
}

/* 学生学习情况 */
.learn-semester { margin-bottom: 12px; }
.learn-semester__title {
  font-size: 13px; font-weight: 700; color: #8a6d1f; background: #fff6d6;
  padding: 5px 8px; border-radius: 6px; margin: 8px 0 6px;
}
.learn-sub { font-size: 11px; color: var(--muted); margin: 6px 0 2px; }
.learn-block { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.learn-block__head {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: #fff; border: 0; cursor: pointer; font-size: 13px; text-align: left;
  border-radius: 8px;
}
.learn-block__count { color: var(--muted); font-size: 11px; }
.learn-block__arrow { margin-left: auto; color: #2f7bf5; font-size: 11px; }
.learn-rows { padding: 0 10px 8px; }
.learn-row {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  padding: 4px 0; border-top: 1px dashed var(--line);
}
.learn-row__date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.learn-row__main { flex: 1; min-width: 0; }
.learn-row__del { color: var(--danger); border: 0; background: none; cursor: pointer; }
.line-chart { margin: 4px 0 8px; }

/* 反馈 */
.fb-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.fb-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.fb-row { border-bottom: 1px solid var(--line); padding: 8px 0; }
.fb-row.is-done { opacity: .55; }
.fb-row__head { display: flex; align-items: center; gap: 6px; font-size: 12px; flex-wrap: wrap; }
.fb-row__time { color: var(--muted); font-size: 11px; }
.fb-row__text { font-size: 13px; margin-top: 4px; white-space: pre-wrap; }

/* 校区经费：点标题滚轮选年月 */
.fin-month__btn {
  display: inline-flex; align-items: center; gap: 4px; background: none;
  border: 0; padding: 0; font-size: inherit; font-weight: inherit; color: inherit;
  cursor: pointer;
}
.fin-month__caret { font-size: 11px; color: #2f7bf5; }
.fin-picker {
  display: flex; gap: 8px; background: #f7f9fc; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; margin-bottom: 10px;
}
.fin-picker__col { flex: 1; min-width: 0; }
.fin-picker__label { font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.fin-picker__list {
  max-height: 132px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity;
}
.fin-picker__item {
  display: block; width: 100%; padding: 7px 0; margin: 1px 0; font-size: 13px;
  border: 0; border-radius: 6px; background: #fff; color: #333; cursor: pointer;
  scroll-snap-align: center;
}
.fin-picker__item.is-on { background: #2f7bf5; color: #fff; font-weight: 600; }

/* 日练/测试：点一行展开详情 */
.learn-row-wrap { border-top: 1px dashed var(--line); }
.learn-row-wrap:first-child { border-top: 0; }
.learn-row { border-top: 0 !important; }
.learn-row[data-learn-detail] { cursor: pointer; }
.learn-row.is-open { background: #f6f9ff; }
.learn-row__pic { font-size: 11px; }
.learn-detail { padding: 4px 4px 10px; background: #f8fafd; border-radius: 6px; }
.learn-detail__text { font-size: 12px; color: #333; white-space: pre-wrap; margin-bottom: 6px; }
.learn-detail__empty { font-size: 12px; color: var(--muted); }

/* 背景照片：固定在最底层，不随页面滚动，也不挡字 */
#wallpaper-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  /* 书法国画类照片多为白底：用 multiply 让白底透明，只留下字/画 */
  mix-blend-mode: multiply;
  opacity: .55;
}
body.has-wallpaper #app {
  position: relative;
  z-index: 1;
  background: transparent;
}
body.has-wallpaper {
  background: #f2f4f7;
  /* 有背景照片时：配色不变，只是换成同色的半透明版本 */
  --card: rgba(255, 255, 255, .72);
  --grid-cell: var(--grid-cell-a);
  --grid-head-time: var(--grid-head-time-a);
  --grid-head-date: var(--grid-head-date-a);
  --grid-head-mon: var(--grid-head-mon-a);
}
/* 未排课的空白格：淡淡一层白，让照片透过来 */
body.has-wallpaper .gcell:not(.ghead):not(.lesson):not(.gcell--outside) {
  background: rgba(255, 255, 255, .30);
}
body.has-wallpaper .gcell--outside { background: rgba(247, 248, 250, .55); }
/* 待签到 / 已排课的高亮也别太实 */
body.has-wallpaper .gcell.lesson--pending-one { background: rgba(255, 239, 159, .85); }
body.has-wallpaper .gcell.lesson--pending-group { background: rgba(255, 211, 154, .85); }
/* 顶栏、底部按钮保持清楚 */
body.has-wallpaper .topbar { background: rgba(255, 255, 255, .90); }
body.has-wallpaper .bottom-bar { background: rgba(255, 255, 255, .88); }
body.has-wallpaper .topbar {
  background: rgba(255, 255, 255, .94);
}
.wp-preview {
  min-height: 72px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: 8px; color: var(--muted);
  font-size: 12px; padding: 6px; margin: 6px 0;
}
.wp-preview__img { max-width: 100%; max-height: 140px; border-radius: 6px; }

/* 铃铛里的新版本提示 */
.update-note {
  border: 1px solid #cfe0ff; background: #f2f7ff; border-radius: 10px;
  padding: 10px; margin-bottom: 10px;
}
.update-note__title { font-size: 13px; font-weight: 700; color: #1e56b3; }
.update-note__text { font-size: 12px; color: #55627a; margin: 4px 0 8px; }
/* 铃铛小红点 */
.icon-btn--bell { position: relative; }
.bell-dot {
  position: absolute; top: 1px; right: 1px; width: 10px; height: 10px;
  background: #e5484d; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(229, 72, 77, .35);
}

/* 换背景：新界面 */
.wp-sheet { max-width: 340px; }
.wp-sheet .modal__body { padding: 10px 12px; }
.wp-sheet .modal__head { padding: 10px 12px; }
.wp-picker {
  width: 100%; border: 1px dashed #c9d4e6; border-radius: 10px; background: #f7f9fd;
  min-height: 88px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 6px; overflow: hidden;
}
.wp-picker__hint {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #7b8798; font-size: 13px;
}
.wp-picker__plus {
  width: 28px; height: 28px; border-radius: 50%; background: #e6eefb; color: #2f7bf5;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.wp-picker__img { max-width: 100%; max-height: 130px; border-radius: 8px; }
.wp-tip { font-size: 11px; color: var(--muted); margin: 6px 0; line-height: 1.35; }
.wp-seg {
  display: flex; gap: 6px; background: #f0f3f8; border-radius: 10px; padding: 3px;
}
.wp-seg__btn {
  flex: 1; border: 0; background: transparent; padding: 8px 0; font-size: 13px;
  border-radius: 8px; color: #55627a; cursor: pointer;
}
.wp-seg__btn.is-on { background: #fff; color: #1e56b3; font-weight: 600; box-shadow: 0 1px 3px rgba(20,40,80,.12); }
.wp-foot { justify-content: space-between; }
/* 更新中心 */
.update-sheet { max-width: 340px; }
.upd-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px;
  background: #fff;
}
.upd-card.is-new { border-color: #cfe0ff; background: #f5f9ff; }
.upd-card__title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.upd-card__line {
  display: flex; justify-content: space-between; gap: 8px; font-size: 12px;
  color: #55627a; padding: 3px 0;
}
.upd-card__line b { color: #1f2937; font-weight: 600; max-width: 62%; word-break: break-all; text-align: right; }
.upd-card .btn { margin-top: 8px; }

/* ---------------- 表头配色（默认之外的可选方案） ---------------- */

/* 暖阳：杏色 + 奶油 */
body[data-palette="warm"] {
  --grid-head-time: #fbf0dd;
  --grid-head-date: #f7dcba;
  --grid-head-mon: #fbe6c9;
  --grid-cell: #f7d9bd;
  --grid-head-time-a: rgba(251, 240, 221, .78);
  --grid-head-date-a: rgba(247, 220, 186, .78);
  --grid-head-mon-a: rgba(251, 230, 201, .80);
  --grid-cell-a: rgba(247, 217, 189, .72);
}

/* 海盐：雾蓝 + 冰蓝 */
body[data-palette="ocean"] {
  --grid-head-time: #eef4fb;
  --grid-head-date: #d9e8f7;
  --grid-head-mon: #e3eefb;
  --grid-cell: #cfe3f5;
  --grid-head-time-a: rgba(238, 244, 251, .78);
  --grid-head-date-a: rgba(217, 232, 247, .78);
  --grid-head-mon-a: rgba(227, 238, 251, .80);
  --grid-cell-a: rgba(207, 227, 245, .72);
}

/* 抹茶：奶绿 + 鼠尾草 */
body[data-palette="matcha"] {
  --grid-head-time: #f1f5e9;
  --grid-head-date: #dde9cd;
  --grid-head-mon: #eef3e2;
  --grid-cell: #dcead4;
  --grid-head-time-a: rgba(241, 245, 233, .78);
  --grid-head-date-a: rgba(221, 233, 205, .78);
  --grid-head-mon-a: rgba(238, 243, 226, .80);
  --grid-cell-a: rgba(220, 234, 212, .72);
}

/* 多巴胺：粉 + 黄 + 薄荷 */
body[data-palette="dopamine"] {
  --grid-head-time: #fff3d6;
  --grid-head-date: #ffd9e6;
  --grid-head-mon: #d9f3ff;
  --grid-cell: #ffe7c9;
  --grid-head-time-a: rgba(255, 243, 214, .78);
  --grid-head-date-a: rgba(255, 217, 230, .78);
  --grid-head-mon-a: rgba(217, 243, 255, .80);
  --grid-cell-a: rgba(255, 231, 201, .72);
}

/* 莫兰迪：灰粉 + 雾灰蓝 */
body[data-palette="morandi"] {
  --grid-head-time: #f2eeea;
  --grid-head-date: #e4dbd6;
  --grid-head-mon: #e2e5ea;
  --grid-cell: #ded9d2;
  --grid-head-time-a: rgba(242, 238, 234, .78);
  --grid-head-date-a: rgba(228, 219, 214, .78);
  --grid-head-mon-a: rgba(226, 229, 234, .80);
  --grid-cell-a: rgba(222, 217, 210, .72);
}

/* 换背景弹窗：配色选择 */
.wp-section {
  font-size: 12px; color: #55627a; font-weight: 600; margin: 10px 0 5px;
}
.palette-row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.palette-chip {
  flex: 0 0 auto; width: 74px; border: 1.5px solid var(--line); background: #fff;
  border-radius: 9px; padding: 5px; cursor: pointer; text-align: left;
}
.palette-chip.is-on { border-color: #2f7bf5; box-shadow: 0 0 0 2px rgba(47,123,245,.15); }
.palette-chip__dots { display: flex; gap: 3px; margin-bottom: 5px; }
.palette-chip__dots i {
  width: 100%; height: 11px; border-radius: 3px; display: block;
}
.palette-chip__name { display: block; font-size: 12px; color: #1f2937; font-weight: 600; }
.palette-chip__tag { display: block; font-size: 10px; color: var(--muted); }

/* 波普撞色：奶油 + 宝蓝 + 玫红 */
body[data-palette="pop"] {
  --grid-head-time: #fff6ef;
  --grid-head-date: #0074bb;
  --grid-head-mon: #f52e56;
  --grid-cell: #f52e56;
  --grid-head-text: #ffffff;
  --grid-time-text: #1f2937;
  --grid-cell-text: #ffffff;
  --grid-head-time-a: rgba(255, 246, 239, .82);
  --grid-head-date-a: rgba(0, 116, 187, .82);
  --grid-head-mon-a: rgba(245, 46, 86, .82);
  --grid-cell-a: rgba(245, 46, 86, .82);
}

/* 午夜紫：玫红 + 靛蓝 + 深紫 */
body[data-palette="midnight"] {
  --grid-head-time: #ef4495;
  --grid-head-date: #32387b;
  --grid-head-mon: #110a50;
  --grid-cell: #32387b;
  --grid-head-text: #ffffff;
  --grid-time-text: #ffffff;
  --grid-cell-text: #ffffff;
  --grid-head-time-a: rgba(239, 68, 149, .82);
  --grid-head-date-a: rgba(50, 56, 123, .82);
  --grid-head-mon-a: rgba(17, 10, 80, .82);
  --grid-cell-a: rgba(50, 56, 123, .82);
}

/* 复古红蓝：米白 + 朱红 + 藏青 */
body[data-palette="vintage"] {
  --grid-head-time: #fef8e7;
  --grid-head-date: #ed2a22;
  --grid-head-mon: #1e2f5f;
  --grid-cell: #1e2f5f;
  --grid-head-text: #ffffff;
  --grid-time-text: #1f2937;
  --grid-cell-text: #ffffff;
  --grid-head-time-a: rgba(254, 248, 231, .82);
  --grid-head-date-a: rgba(237, 42, 34, .82);
  --grid-head-mon-a: rgba(30, 47, 95, .82);
  --grid-cell-a: rgba(30, 47, 95, .82);
}

body[data-palette="pop"] .ghead.outside,
body[data-palette="midnight"] .ghead.outside,
body[data-palette="vintage"] .ghead.outside { color: rgba(255, 255, 255, .75); }

/* 奶油橙：奶油 + 焦糖 */
body[data-palette="cream"] {
  --grid-head-time: #fdf3e3;
  --grid-head-date: #f6e2c3;
  --grid-head-mon: #fbeacd;
  --grid-cell: #f5dcc0;
  --grid-head-time-a: rgba(253, 243, 227, .78);
  --grid-head-date-a: rgba(246, 226, 195, .78);
  --grid-head-mon-a: rgba(251, 234, 205, .80);
  --grid-cell-a: rgba(245, 220, 192, .72);
}

/* 雾霾蓝：灰蓝天 + 雾白 */
body[data-palette="haze"] {
  --grid-head-time: #eef1f5;
  --grid-head-date: #d5dee9;
  --grid-head-mon: #e2e9f2;
  --grid-cell: #cbd7e6;
  --grid-head-time-a: rgba(238, 241, 245, .78);
  --grid-head-date-a: rgba(213, 222, 233, .78);
  --grid-head-mon-a: rgba(226, 233, 242, .80);
  --grid-cell-a: rgba(203, 215, 230, .72);
}

/* 橄榄：橄榄绿 + 亚麻 */
body[data-palette="olive"] {
  --grid-head-time: #f5f3e4;
  --grid-head-date: #e0dfc2;
  --grid-head-mon: #ecebd6;
  --grid-cell: #d9dbb9;
  --grid-head-time-a: rgba(245, 243, 228, .78);
  --grid-head-date-a: rgba(224, 223, 194, .78);
  --grid-head-mon-a: rgba(236, 235, 214, .80);
  --grid-cell-a: rgba(217, 219, 185, .72);
}

/* 樱花粉：樱粉 + 奶白 */
body[data-palette="sakura"] {
  --grid-head-time: #fdf2f4;
  --grid-head-date: #f8dde3;
  --grid-head-mon: #fbe8ed;
  --grid-cell: #f6d9e0;
  --grid-head-time-a: rgba(253, 242, 244, .78);
  --grid-head-date-a: rgba(248, 221, 227, .78);
  --grid-head-mon-a: rgba(251, 232, 237, .80);
  --grid-cell-a: rgba(246, 217, 224, .72);
}

/* 薄荷：薄荷绿 + 冰白 */
body[data-palette="mint"] {
  --grid-head-time: #eef8f4;
  --grid-head-date: #d3ece2;
  --grid-head-mon: #e4f4ee;
  --grid-cell: #cdeade;
  --grid-head-time-a: rgba(238, 248, 244, .78);
  --grid-head-date-a: rgba(211, 236, 226, .78);
  --grid-head-mon-a: rgba(228, 244, 238, .80);
  --grid-cell-a: rgba(205, 234, 222, .72);
}

/* 香芋：浅紫 + 灰白 */
body[data-palette="taro"] {
  --grid-head-time: #f6f2fb;
  --grid-head-date: #e4d9f3;
  --grid-head-mon: #efe8f8;
  --grid-cell: #ded3f0;
  --grid-head-time-a: rgba(246, 242, 251, .78);
  --grid-head-date-a: rgba(228, 217, 243, .78);
  --grid-head-mon-a: rgba(239, 232, 248, .80);
  --grid-cell-a: rgba(222, 211, 240, .72);
}

/* 配色库按钮 */
.palette-chip--add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #2f7bf5; border-style: dashed;
}
.palette-chip--add .palette-chip__plus { font-size: 18px; line-height: 1; }
.palette-lib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.palette-lib__item {
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  padding: 8px; cursor: pointer; text-align: left;
}
.palette-lib__item.is-on { opacity: .45; cursor: default; border-color: #c9d4e6; }
.palette-lib__dots { display: flex; gap: 4px; margin-bottom: 6px; }
.palette-lib__dots i { height: 16px; flex: 1; border-radius: 4px; display: block; }
.palette-lib__name { font-size: 13px; font-weight: 600; color: #1f2937; }
.palette-lib__tag { font-size: 11px; color: var(--muted); }

/* 配色库：自定义配色 */
.custom-palette {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #f9fbfe;
}
.custom-palette__title { font-size: 13px; font-weight: 700; color: #1e56b3; }
.custom-palette__inputs { display: flex; gap: 6px; margin: 6px 0; }
.custom-palette__input {
  flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 8px; font-size: 12px; background: #fff; color: #1f2937;
}
.custom-palette__preview { display: flex; gap: 6px; margin-bottom: 8px; }
.custom-palette__preview i {
  flex: 1; height: 22px; border-radius: 6px; display: block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

/* 弹窗永远不透明：有背景照片时也不让底下的课表透出来 */
body.has-wallpaper .modal,
.modal {
  background: #ffffff;
}
.modal__body { background: #ffffff; }

/* 学生行：签到按钮窄一点，缺时输入框放签到左边 */
.roster__present {
  padding: 6px 6px; font-size: 12px; min-width: 44px;
}
.roster__hw, .roster__del { flex: 0 0 auto; }
@media (max-width: 380px) {
  .roster__absent { flex: 0 0 50px; width: 50px; }
  .roster__present { min-width: 40px; }
}

/* 引用弹窗里的"直接填写" */
.tp-pick-input { display: block; margin-bottom: 6px; }
.tp-pick-input span { font-size: 12px; color: #55627a; display: block; margin-bottom: 4px; }
.tp-pick-input input {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; background: #fff; outline: none;
}
.tp-pick-input input:focus { border-color: #2f7bf5; }
.tp-pick-actions { display: flex; gap: 6px; margin-bottom: 8px; }

/* 单补按钮：一人补课按 2.3 节（班课）/ 1.46 节（一对二）扣 */
.roster__makeup {
  flex: 0 0 auto; padding: 5px 5px; border-radius: 6px; border: 1px solid var(--line);
  font-size: 10px; background: #fff; color: var(--muted); white-space: nowrap;
}
.roster__makeup.is-on {
  background: #ffe9c9; border-color: #f0b060; color: #8a4b00; font-weight: 700;
}

/* 填名字时的同名/相近确认 */
.stu-pick__label { font-size: 12px; color: #55627a; margin: 6px 0 4px; }
.stu-pick__item {
  display: flex; align-items: baseline; gap: 8px; width: 100%;
  padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; text-align: left;
}
.stu-pick__item--soft { background: #f7f8fb; }
.stu-pick__name { font-size: 15px; font-weight: 600; color: #23283a; }
.stu-pick__meta { font-size: 12px; color: #7a8497; }
.stu-pick__hint { font-size: 12px; color: #98a1b3; margin-top: 8px; line-height: 1.5; }

/* 作业弹窗里的 AI 总结按钮 + 结果框 */
.head-btn--ai {
  background: linear-gradient(135deg, #7c6cf0, #4f8ef7);
  color: #fff; border: none;
}
.ai-text {
  white-space: pre-wrap; word-break: break-word; margin: 0;
  font-family: inherit; font-size: 14px; line-height: 1.75;
  color: #23283a; background: #f7f8fb; border-radius: 10px;
  padding: 12px; max-height: 48vh; overflow: auto;
}

/* 学习记录里的 AI 试卷分析 */
.learn-ai { margin-top: 10px; }
.learn-ai__text { margin-top: 8px; font-size: 13px; }
.fb-thumb--pdf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 8px; background: #ffecec;
  color: #c0392b; font-size: 12px; font-weight: 700; text-decoration: none;
}

/* 更新中心里的"本次更新内容" */
.upd-notes { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.upd-notes__group + .upd-notes__group { margin-top: 10px; }
.upd-notes__title { font-size: 13.5px; font-weight: 700; color: #2f3b52; padding: 5px 0; }
.upd-notes__title { padding: 4px 0; }
.upd-notes__list li { font-size: 12px; color: #5b6678; line-height: 1.7; }

/* 反馈里的联系方式 */
.fb-row__contact {
  font-size: 12px; color: #2f7bf5; margin-top: 4px; word-break: break-all;
}

/* 上课提醒卡片（底部浮层） */
.class-remind {
  position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 10900;
  background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, .18);
  border: 1px solid rgba(47, 123, 245, .25);
  animation: remind-in .18s ease-out;
}
@keyframes remind-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.class-remind__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.class-remind__head b { font-size: 15px; color: #2f3b52; }
.class-remind__head span { font-size: 12px; color: #7a8497; }
.class-remind__body { font-size: 13px; color: #46506a; line-height: 1.6; }
.class-remind__body b { color: #d9534f; }
.class-remind__foot {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px;
}

/* 选 AI 版本 */
.ai-pick__quota {
  font-size: 12px; color: #7a8497; margin-bottom: 8px;
}
.ai-pick {
  display: block; width: 100%; text-align: left; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  margin-bottom: 8px;
}
.ai-pick__name { display: block; font-size: 14px; font-weight: 700; color: #23283a; }
.ai-pick__desc { display: block; font-size: 12px; color: #7a8497; margin-top: 2px; }
.ai-pick.is-locked { opacity: .65; }
.member-prompt { font-size: 14px; color: #2f3b52; line-height: 1.7; margin: 0 0 8px; }

/* 校区会员弹窗 */
.mem-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; }
.mem-list { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  margin: 6px 0 10px; max-height: 40vh; overflow: auto; }
.mem-until { font-size: 12px; color: #7a8497; margin-left: auto; }

/* AI 弹窗右上角的「调整」 */
.ai-tune { margin-left: auto; margin-right: 8px; }
.ai-hint__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-hint__chip {
  padding: 6px 10px; border-radius: 999px; border: 1px solid #d6e0f0;
  background: #f4f8ff; color: #2f5fa8; font-size: 12px;
}
.ai-hint__chip:active { background: #e3edff; }

/* 修改意见输入框占满一行 */
.ai-hint__label { display: block; margin-top: 4px; font-size: 13px; color: #55627a; }
.ai-hint__label textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px;
  padding: 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; line-height: 1.6; outline: none; background: #fff;
}
.ai-hint__label textarea:focus { border-color: #2f7bf5; }

/* 作业弹窗里已保存的 AI 总结 */
.hw-ai-saved {
  margin: 10px 0; border: 1px solid #d9e6ff; background: #f6f9ff;
  border-radius: 10px; padding: 10px 12px;
}
.hw-ai-saved__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #2f5fa8; font-weight: 700; margin-bottom: 6px;
}
.hw-ai-saved__text { background: transparent; padding: 0; font-size: 13px; max-height: 30vh; }

/* 缴费截图 */
.proof-block { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.proof-block__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #55627a; margin-bottom: 8px;
}
.proof-thumb { position: relative; display: inline-block; margin: 0 6px 6px 0; }
.proof-thumb img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
}
.proof-thumb__del {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
  border-radius: 50%; border: none; background: #e5484d; color: #fff;
  font-size: 12px; line-height: 18px; padding: 0;
}
.proof-empty { font-size: 12px; color: #98a1b3; }
.img-view {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .82);
}
.img-view img { max-width: 94vw; max-height: 90vh; border-radius: 8px; }

/* AI 对话 */
.chat-modal { display: flex; flex-direction: column; max-height: 80vh; }
.chat-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.chat-list { flex: 1; overflow-y: auto; padding: 4px 2px 8px; }
.chat-empty { font-size: 13px; color: #98a1b3; line-height: 1.8; padding: 12px 4px; }
.chat-item { display: flex; margin-bottom: 8px; }
.chat-item--user { justify-content: flex-end; }
.chat-bubble {
  max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 14px;
  line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.chat-item--user .chat-bubble { background: #2f7bf5; color: #fff; border-bottom-right-radius: 4px; }
.chat-item--assistant .chat-bubble { background: #f2f4f8; color: #23283a; border-bottom-left-radius: 4px; }
.chat-bubble--pending { color: #8a94a6; font-style: italic; }
.chat-quota { font-size: 12px; color: #98a1b3; padding: 4px 2px 6px; }
.chat-input {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 14px 14px; border-top: 1px solid var(--line);
}
.chat-input textarea {
  flex: 1; resize: none; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; line-height: 1.5; outline: none;
  font-family: inherit;
}
.chat-input textarea:focus { border-color: #2f7bf5; }

/* 排课表格子：两行小字，完整显示名字（表格尺寸不变） */
.tp-table td { vertical-align: middle; }
.tp-cell {
  display: block; width: 100%; box-sizing: border-box;
  height: 19px; border: 0; background: transparent;
  font-size: 8.5px; line-height: 1.05; padding: 1px 0;
  resize: none; overflow: hidden; outline: none;
  white-space: pre-wrap; word-break: break-all;
  font-family: inherit; color: inherit; text-align: left;
}
.tp-cell:focus { background: #fffbe6; }
@media (max-width: 400px) {
  .tp-cell { font-size: 8px; height: 18px; }
}

/* 年月选择：自绘小面板 */
.pick-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; color: #23283a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  height: 34px; box-sizing: border-box;
}
.pick-btn--wide { justify-content: flex-start; text-align: left; }
.pick-sheet { max-width: 330px; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick-grid--year { grid-template-columns: repeat(3, 1fr); max-height: 50vh; overflow: auto; }
.pick-cell {
  padding: 10px 0; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 14px; color: #23283a;
}
.pick-cell.is-on { background: #2f7bf5; border-color: #2f7bf5; color: #fff; font-weight: 700; }

/* 铃铛里的"这次更新了什么" */
.update-note__list {
  margin: 8px 0 10px; padding: 8px 10px; border-radius: 8px;
  background: rgba(47, 123, 245, .07);
}
.update-note__label { font-size: 12px; font-weight: 700; color: #2f5fa8; margin-bottom: 4px; }
.update-note__item { font-size: 12px; color: #46506a; line-height: 1.7; }

/* 老师/校区选择：竖排列表 */
.pick-btn--wide { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-list { display: flex; flex-direction: column; }
.pick-list__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font-size: 16px; color: #23283a; text-align: left;
}
.pick-list__item:last-child { border-bottom: 0; }
.pick-list__dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #c7cfdb; flex: 0 0 18px;
}
.pick-list__item.is-on { color: #17795e; font-weight: 700; }
.pick-list__item.is-on .pick-list__dot { border-color: #17795e; background: #17795e;
  box-shadow: inset 0 0 0 3px #fff; }

/* 点排课格子后的小浮层：显示完整姓名 */
.cell-peek {
  position: fixed; z-index: 10950;
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 30, 50, .18);
  border: 1px solid rgba(47, 123, 245, .25);
  padding: 8px 10px;
}
.cell-peek__text {
  font-size: 13px; color: #23283a; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all;
}
.cell-peek__foot {
  display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px;
}
.cell-peek__btn {
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; font-size: 12px; color: #46506a;
}
.cell-peek__btn:active { background: #eef3fb; }

/* 手写课表识别结果 */
.scan-sum { font-size: 13px; color: #46506a; margin-bottom: 6px; }
.scan-ok { color: #17795e; }
.scan-check { color: #b7791f; }
.scan-none { color: #c0392b; }
.scan-list { max-height: 52vh; overflow: auto; }
.scan-row {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  margin-bottom: 8px; background: #fff;
}
.scan-row--check { border-color: #f0d08a; background: #fffdf5; }
.scan-row--none { border-color: #efb7b3; background: #fff8f7; }
.scan-row__head {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: #7a8497; margin-bottom: 6px;
}
.scan-row__raw { font-size: 14px; color: #23283a; font-weight: 700; }
.scan-row__none { font-size: 12px; color: #c0392b; }
.scan-row select {
  width: 100%; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 13px; background: #fff;
}

.scan-row__time { margin-bottom: 6px; }
.scan-row__time select {
  width: 100%; padding: 6px 8px; border: 1px solid #f0d08a;
  border-radius: 6px; font-size: 13px; background: #fffdf5;
}

.scan-row__manual { display: flex; flex-direction: column; gap: 6px; }
.scan-row__manual input {
  width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid #efb7b3;
  border-radius: 6px; font-size: 13px; background: #fff;
}

.scan-row__raw--fix {
  border: 1px dashed #ef8f89; border-radius: 6px; background: #fff;
  padding: 2px 6px; color: #c0392b; font-weight: 700; font-size: 14px;
}
.scan-row__raw--fix:active { background: #ffecea; }

/* 识别结果：同一时间的人归成一个班课 */
.scan-group {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 8px 10px; margin-bottom: 10px;
}
.scan-group--class {
  border-left: 4px solid #2f7bf5;
  box-shadow: 0 2px 8px rgba(47, 123, 245, .08);
}
.scan-group__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding-bottom: 6px; border-bottom: 1px dashed #e6ebf2; margin-bottom: 8px;
}
.scan-group__when { font-size: 13px; color: #46506a; font-weight: 700; }
.scan-group__badge {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: #f1f4f9; color: #6b7787;
}
.scan-group__badge.is-class { background: #e8f0ff; color: #2f5fa8; font-weight: 700; }
.scan-group__names { display: flex; flex-direction: column; gap: 8px; }
.scan-name { border-left: 2px solid transparent; padding-left: 8px; }
.scan-name--check { border-left-color: #f0d08a; }
.scan-name--none { border-left-color: #ef8f89; }
.scan-name__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.scan-name__state { font-size: 11px; color: #7a8497; }
.scan-name--ok .scan-name__state { color: #17795e; font-weight: 700; }
.scan-name--check .scan-name__state { color: #b7791f; }
.scan-name--none .scan-name__state { color: #c0392b; }

.scan-group__all {
  margin-left: auto; padding: 3px 10px; border-radius: 999px;
  border: 1px solid #2f7bf5; background: #fff; color: #2f7bf5;
  font-size: 12px; font-weight: 700;
}
.scan-group__all:active { background: #e8f0ff; }
.scan-group__head { flex-wrap: wrap; }

.scan-date-pick {
  padding: 3px 6px; border: 1px solid #f0d08a; border-radius: 6px;
  background: #fffdf5; font-size: 13px; font-weight: 700; color: #b7791f;
}

/* 统计弹窗底部四个导出按钮：按用途配色 */
.scan-tools {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%;
}
.scan-tool {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 8px 3px; line-height: 1.2;
  border-width: 2px; border-style: solid; min-height: 54px;
  text-align: center; white-space: normal; min-width: 0;
}
.scan-tool__title { font-size: 12px; font-weight: 700; letter-spacing: 0; }
.scan-tool__sub { font-size: 10px; font-weight: 400; opacity: .8; line-height: 1.15; }
@media (max-width: 380px) {
  .scan-tool__title { font-size: 11px; }
  .scan-tool__sub { font-size: 9px; }
}
.scan-tool small, .scan-tool__sub { font-size: 11px; opacity: .85; font-weight: 400; }
.scan-tool--blank { border-color: #e05a4f; color: #b3372c; background: #fff6f5; }
.scan-tool--now { border-color: #2f7bf5; color: #2359b8; background: #f4f8ff; }
.scan-tool--import { border-color: #e39a1c; color: #9a6710; background: #fffaf0; }
.scan-tool--photo { border-color: #7b8794; color: #4a5563; background: #f7f9fb; }

/* 识别结果：直接按课表网格显示 */
.scan-grid-wrap { overflow: auto; max-height: 52vh; border: 1px solid var(--line); border-radius: 10px; }
.scan-grid { border-collapse: separate; border-spacing: 0; width: 100%;
  font-size: 11px; table-layout: fixed; }
.scan-grid th, .scan-grid td { border-bottom: 1px solid #eef1f5;
  border-right: 1px solid #eef1f5; padding: 4px 3px; vertical-align: top;
  word-break: break-all; }
.scan-grid thead th {
  position: sticky; top: 0; z-index: 2; background: #eef3fb; color: #33405c;
  font-weight: 700; white-space: nowrap;
}
.scan-grid__time {
  position: sticky; left: 0; z-index: 1; background: #f7f9fc; color: #46506a;
  font-weight: 700; white-space: nowrap; width: 46px; min-width: 46px;
}
.scan-grid thead .scan-grid__time { z-index: 3; }
.scan-cell { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 30px; }
.scan-chip {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px;
  border-radius: 999px; background: #eaf7f1; color: #17795e; font-size: 12px;
  border: 1px solid #cfeade;
}
.scan-chip--check { background: #fff7e6; color: #a06a13; border-color: #f0d9a8; }
.scan-chip--none { background: #fff0ef; color: #c0392b; border-color: #efc3bf; }
.scan-chip__x {
  border: 0; background: transparent; color: inherit; font-size: 14px;
  line-height: 1; padding: 0 0 0 2px; opacity: .65;
}
.scan-add {
  width: 24px; height: 24px; border-radius: 50%; border: 1px dashed #b9c4d4;
  background: #fff; color: #7b8794; font-size: 14px; line-height: 1;
}
.scan-undragged { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.scan-undragged__title { font-size: 12px; color: #b7791f; margin-bottom: 6px; }
.scan-undragged__row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 0; border-bottom: 1px solid #f2f5f9; font-size: 13px;
}
.scan-undragged__row select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.scan-undragged__raw { font-weight: 700; }
.scan-undragged__time { color: #7a8497; }

/* 识别等待界面 */
.scan-loading {
  max-width: 240px; padding: 26px 20px; text-align: center;
  background: #fff; border-radius: 16px;
}
.scan-loading__ring {
  width: 42px; height: 42px; margin: 0 auto 14px;
  border: 4px solid #e3ebf7; border-top-color: #2f7bf5; border-radius: 50%;
  animation: scan-spin .9s linear infinite;
}
@keyframes scan-spin { to { transform: rotate(360deg); } }
.scan-loading__title { font-size: 15px; font-weight: 700; color: #23283a; }
.scan-loading__hint { font-size: 12px; color: #7a8497; margin-top: 6px; }

/* 识别等待：窗内进度条，不用转圈 */
.scan-wait { padding: 26px 8px 18px; text-align: center; }
.scan-wait__title { font-size: 15px; font-weight: 700; color: #23283a; }
.scan-wait__bar {
  position: relative; height: 6px; border-radius: 999px; background: #e9eef7;
  margin: 16px 12px 12px; overflow: hidden;
}
.scan-wait__bar i {
  position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  border-radius: 999px; background: linear-gradient(90deg, #7fb0ff, #2f7bf5);
  animation: scan-slide 1.3s ease-in-out infinite;
}
@keyframes scan-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}
.scan-wait__hint { font-size: 12px; color: #7a8497; }

/* 列表/课表 切换按钮：明显一点 */
.scan-view {
  display: inline-flex; margin-left: auto; border: 1px solid #cfd8e6;
  border-radius: 8px; overflow: hidden; background: #f2f5fa;
}
.scan-view__btn {
  padding: 5px 14px; border: 0; background: transparent;
  font-size: 13px; color: #5a6478; font-weight: 700;
}
.scan-view__btn.is-on { background: #2f7bf5; color: #fff; }
.scan-view__btn + .scan-view__btn { border-left: 1px solid #cfd8e6; }

/* 一周一块 */
.scan-week { margin-bottom: 12px; }
.scan-week__title {
  font-size: 12px; font-weight: 700; color: #2f5fa8; margin: 6px 0 4px;
}
.scan-grid th small { margin-left: 2px; font-size: 10px; opacity: .7; }
.scan-grid th.is-weekend, .scan-grid td.is-weekend { background: #fffdf3; }

/* 窄屏也能放下 7 天 */
.scan-chip { font-size: 10px; padding: 2px 4px; }
.scan-add { width: 20px; height: 20px; font-size: 12px; }
.scan-chip__x { font-size: 12px; }

/* 网格里的姓名：一行显示，× 摆在右上角 */
.scan-chip--tight {
  position: relative; padding: 1px 4px; margin: 1px 0;
  white-space: normal; word-break: break-all; line-height: 1.15;
  max-width: 100%;
}
.scan-chip--tight .scan-chip__name { display: inline; }
.scan-chip--tight .scan-chip__x {
  position: absolute; top: -7px; right: -6px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; border: 1px solid #d6deea;
  color: #8a93a3; font-size: 11px; line-height: 12px; text-align: center;
  padding: 0; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.scan-cell { gap: 2px; }

/* 网格单元格：右下角的小加号 */
.scan-grid td { position: relative; padding-right: 14px; }
.scan-add--corner {
  position: absolute; right: 2px; bottom: 2px;
  width: 16px; height: 16px; font-size: 11px; line-height: 1;
  border: 1px dashed #c3ccda; background: #fff; color: #8a93a3;
}
.scan-chip--tight { font-size: 10px; padding: 1px 4px; margin: 1px 0; }

/* 红笔 = 一对一 */
.scan-group__badge.is-one2one { background: #ffe9e7; color: #c0392b; font-weight: 700; }
.scan-chip--one2one { border-color: #e05a4f !important; color: #b3372c !important;
  background: #fff4f3 !important; }

/* 转课：原单变灰、显示消耗和编号 */
.batch__item.is-transferred { opacity: .55; background: #f5f7fa; }
.batch__item-moved {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 12px; color: #8a94a6; margin: 4px 0 2px;
}
.transfer-code {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  background: #eef1f6; border-radius: 4px; padding: 1px 6px; color: #5a6478;
}
.transfer-code--in { background: #e8f0ff; color: #2f5fa8; font-weight: 700; }

/* 转课弹窗 */
.transfer-info {
  font-size: 13px; color: #46506a; background: #f4f8ff; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 10px;
}
.transfer-field { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.transfer-field > span { width: 92px; font-size: 13px; color: #5a6478; flex: 0 0 92px; }
.transfer-field input, .transfer-field select {
  flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; background: #fff;
}
.transfer-types { display: flex; gap: 8px; flex: 1; }
.transfer-type {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13px;
}
.transfer-type.is-on { border-color: #2f7bf5; background: #f4f8ff; color: #2359b8; }
.transfer-preview {
  font-size: 13px; color: #23283a; background: #fffaf0; border: 1px solid #f0e0bd;
  border-radius: 8px; padding: 10px; margin-top: 4px;
}
.transfer-preview b { color: #c0392b; font-size: 16px; }
.transfer-preview__hint { font-size: 11px; color: #8a94a6; }

/* 待审核的新学生名字 */
.pending-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  margin-bottom: 8px; background: #fffdf5;
}
.pending-item__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pending-item__head b { font-size: 14px; }
.pending-item__head span { font-size: 12px; color: #7a8497; }
.pending-item__actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* 待审核的学生名字：课表格子标紫 */
.gcell.lesson--waiting {
  background: #f3e8ff !important;
  border: 1px dashed #a855f7 !important;
  color: #6b21a8 !important;
}
.gcell.lesson--waiting .gnames { color: #6b21a8; }

/* 没排上的清单 */
.issues { max-height: 50vh; overflow: auto; }
.issue {
  display: flex; gap: 8px; align-items: baseline; padding: 8px 0;
  border-bottom: 1px solid #f2f5f9; font-size: 13px;
}
.issue__when { flex: 0 0 82px; color: #7a8497; font-size: 12px; }
.issue__text { flex: 1; color: #23283a; }

/* 作业高拍仪 */
.scanner {
  width: min(720px, 96vw); background: #0f1720; border-radius: 14px;
  padding: 12px; display: flex; flex-direction: column; gap: 10px; color: #e7edf5;
}
.scanner__head { display: flex; align-items: center; gap: 10px; }
.scanner__head b { font-size: 15px; }
.scanner__toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.scanner__status { font-size: 12px; color: #9fb3c8; margin-left: auto; }
.scanner__stage { position: relative; background: #000; border-radius: 10px; overflow: hidden; }
.scanner__stage video { width: 100%; max-height: 56vh; object-fit: contain; display: block; }
.scanner__frame {
  position: absolute; inset: 6%; border: 2px dashed rgba(90, 220, 170, .85);
  border-radius: 8px; pointer-events: none;
}
.scanner__count {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 800; color: #5adcaa; text-shadow: 0 2px 12px rgba(0,0,0,.6);
  pointer-events: none;
}
.scanner__bar { display: flex; gap: 8px; align-items: center; }
.scanner__select {
  flex: 1; padding: 8px; border-radius: 8px; border: 1px solid #2a3a4a;
  background: #16202b; color: #e7edf5; font-size: 13px;
}
.scanner__shots {
  display: flex; gap: 8px; overflow-x: auto; min-height: 72px; align-items: center;
}
.scanner__thumb {
  position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 8px;
  overflow: hidden; background: #1b2733;
}
.scanner__thumb img { width: 100%; height: 100%; object-fit: cover; }
.scanner__thumb span {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; text-align: center;
  background: rgba(0,0,0,.6); padding: 1px 0;
}
.scanner__thumb[data-pending] { opacity: .7; }

.update-note__app {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  margin: 8px 0 4px; padding: 8px 10px; border-radius: 8px;
  background: #f4f8ff; font-size: 13px; color: #2359b8;
}

/* 转课弹窗里的选择按钮 */
.transfer-pick {
  flex: 1; text-align: left; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font-size: 14px; color: #23283a;
}

/* 新缴费：必填截图 */
.enr-proof { margin-top: 10px; }
.enr-proof__title { font-size: 13px; color: #5a6478; margin-bottom: 6px; }
.enr-proof__preview { margin-top: 8px; }
.enr-proof__preview img {
  width: 100%; max-height: 180px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 8px; background: #fafbfd;
}

/* 名单提示：可多选 */
.suggest__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; flex-wrap: nowrap;
}
.suggest__hinttext { font-size: 11px; color: #8b93a3; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__acts { display: flex; align-items: center; gap: 4px; flex: none;
  position: relative; z-index: 2; }
.suggest__close {
  border: 0; background: transparent; color: #5b6478; font-size: 12px; padding: 4px 2px;
}
.suggest__item { display: flex; align-items: center; gap: 6px; }
.suggest__item .suggest__tick { color: #b3bbc9; font-size: 12px; width: 14px; }
.suggest__item.is-picked {
  background: #eef4ff; border-radius: 8px;
}
.suggest__item.is-picked .suggest__tick { color: #2f6bd8; }
.suggest__apply {
  border: 0; border-radius: 999px; padding: 5px 10px;
  background: #2f6bd8; color: #fff; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.suggest__apply[disabled] { background: #e3e8f0; color: #9aa4b5; }

/* 学员上课记录导出：本月/上月快捷键 */
.export-quick {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.export-quick .btn--sm { padding: 4px 10px; font-size: 12px; }
.export-quick__hint { font-size: 11px; color: #8b93a3; margin-left: auto; }

/* 合并学员 */
.confirm__title { font-size: 15px; font-weight: 700; color: #23283a; }
.merge-list {
  margin-top: 10px; max-height: 240px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 8px;
}
.merge-item {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  padding: 9px 10px; background: none; border: 0; text-align: left;
  border-bottom: 1px solid var(--line); font: inherit;
}
.merge-item:last-child { border-bottom: 0; }
.merge-item__name { font-size: 14px; font-weight: 600; color: #23283a; }
.merge-item__meta { font-size: 11px; color: #8b93a3; }
#merge-search {
  width: 100%; margin-top: 10px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 14px;
}

/* 合并申请与审批记录 */
.merge-field { display: block; margin-top: 10px; font-size: 13px; color: #5a6478; }
.merge-field input {
  width: 100%; margin-top: 4px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 14px;
}
.merge-item.is-picked { background: #eef4ff; }
.pending-item__hint { font-size: 12px; color: #8b93a3; margin-left: 6px; }
.pending-item__sub { font-size: 12px; color: #8b93a3; margin-top: 2px; }
.merge-history { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.merge-history__title { font-size: 12px; color: #8b93a3; margin-bottom: 4px; }
.merge-history__row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; padding: 4px 0;
}
.head-btn--sm { padding: 3px 8px; font-size: 12px; }

/* 审批记录列表 */
.approval-row {
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.approval-row:last-child { border-bottom: 0; }
.approval-row__main { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.approval-row__sub { font-size: 12px; color: #5a6478; margin-top: 3px; }
.approval-row__meta { font-size: 11px; color: #8b93a3; margin-top: 3px; }
.approval-tag {
  font-size: 11px; padding: 1px 6px; border-radius: 999px;
  background: #eef1f6; color: #5a6478;
}
.approval-tag--pending { background: #fff3d6; color: #a06a00; }
.approval-tag--approved { background: #e3f6e9; color: #1f7a44; }
.approval-tag--rejected { background: #fdecec; color: #b23b3b; }
.approval-tag--revoked { background: #eeeaf9; color: #5b4b8a; }

/* 备案号页脚：固定在底部细条，底部按钮整体上移 18px */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #9aa3b0; text-decoration: none;
  background: var(--bg); z-index: 60;
}
.site-footer:hover { color: #5a6478; }
.bottom-bar { bottom: 18px; }
