/* ============================================================
   跃动啦啦操 · 课程点名系统 — 样式表
   适配：手机 / 平板（iPad）/ 电脑
   ============================================================ */

:root {
  --ink: #14161f;
  --ink-2: #454b5c;
  --muted: #868da0;
  --line: #e7eaf1;
  --line-strong: #d7dce8;
  --bg: #f5f7fb;
  --card: #ffffff;

  --primary: #ff3b5c;
  --primary-dark: #e01f43;
  --primary-soft: #ffe8ed;
  --amber: #ffb020;
  --teal: #12b3a5;
  --blue: #2f7dfa;

  --present: #12b3a5;
  --absent: #ef4b4b;
  --late: #f59300;
  --leave: #2f7dfa;
  --quit: #868da0;
  --makeup: #2f9e44;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(20, 22, 31, .05);
  --shadow: 0 14px 34px rgba(20, 22, 31, .09);
  --shadow-lg: 0 30px 70px rgba(20, 22, 31, .16);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }

/* ---------------------------------------------------------- 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ff5069, #ff2450);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  box-shadow: 0 6px 16px rgba(255, 59, 92, .32);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15.5px; letter-spacing: .2px; }
.brand-text small { font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }

.nav { display: flex; gap: 6px; flex: 1 1 auto; }

.nav-link {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
  transition: all .18s ease;
  white-space: nowrap;
}
.nav-link:hover { background: #f1f3f8; color: var(--ink); }
.nav-link.is-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.topbar-user { display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--ink-2);
  background: #f5f7fb;
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.user-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

/* ---------------------------------------------------------- 通用页面 */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 60px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-title { margin: 0 0 4px; font-size: 26px; letter-spacing: -.4px; }
.page-sub { margin: 0; color: var(--muted); font-size: 14px; }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.crumb {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 5px;
}
.crumb a { color: var(--primary-dark); }
.crumb span { color: var(--line-strong); }

/* ---------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, #ff5069, #ff2450);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 59, 92, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255, 59, 92, .34); }
.btn-primary:active { transform: translateY(0) scale(.99); }

.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: #f7f9fc; color: var(--ink); border-color: #c6cddd; }

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: #ffd2db;
}
.btn-soft:hover { background: #ffe2e8; }

.btn-block { width: 100%; padding: 12px 20px; font-size: 15.5px; }
.btn-sm { padding: 6px 14px; font-size: 13.5px; }

.link-btn {
  background: none; border: 0; padding: 2px 4px;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.link-btn:hover { color: var(--primary-dark); text-decoration: underline; }
.link-danger { color: var(--absent); }
.link-danger:hover { color: #cf2828; }

/* ---------------------------------------------------------- 表单 */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.compact { gap: 11px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink-2); font-weight: 600; letter-spacing: .2px; }

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  min-height: 44px;
}
.field input:focus,
.field select:focus {
  border-color: #ffb3c1;
  box-shadow: 0 0 0 4px rgba(255, 59, 92, .12);
}

.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1 1 0; }
.field-narrow { flex: 0 0 96px !important; }

.field-password { position: relative; }
.field-password input { padding-right: 62px; }
.pwd-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: #f2f4f9; color: var(--ink-2);
  font-size: 12px; padding: 5px 10px; border-radius: 8px; cursor: pointer;
}
.pwd-toggle:hover { background: #e9ecf4; }

.file-field input[type="file"] {
  padding: 8px 10px;
  background: #fbfcfe;
  font-size: 13.5px;
  cursor: pointer;
}

.help-text { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.help-text b { color: var(--ink-2); }
.down-link { font-size: 13px; color: var(--blue); text-align: center; }
.down-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------- 提示条 */
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.flash {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid transparent;
}
.flash-success { background: #e9f9f4; color: #0b7d71; border-color: #bfece2; }
.flash-error { background: #feecec; color: #c02727; border-color: #f8cccc; }
.flash-info { background: #eaf1ff; color: #1f5fd0; border-color: #cddcff; }

/* ---------------------------------------------------------- 登录 / 注册 */
.auth-body { background: #fff; }

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-wrap-single { grid-template-columns: 1fr; }

.auth-side {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #23263a 0%, #1b1e2d 45%, #2a1a25 100%);
  color: #fff;
  padding: 56px 60px;
  display: flex;
  align-items: center;
}

.side-glow {
  position: absolute; border-radius: 50%; filter: blur(10px);
  pointer-events: none;
}
.side-glow-a {
  width: 460px; height: 460px; left: -160px; top: -140px;
  background: radial-gradient(circle, rgba(255, 59, 92, .42), transparent 62%);
}
.side-glow-b {
  width: 380px; height: 380px; right: -120px; bottom: -130px;
  background: radial-gradient(circle, rgba(255, 176, 32, .28), transparent 65%);
}

.side-inner { position: relative; z-index: 2; max-width: 460px; }

.side-badge {
  display: inline-block;
  font-size: 11.5px; letter-spacing: 3px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 26px;
}

.side-title {
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: -.8px;
  margin: 0 0 18px;
  font-weight: 700;
}
.side-title em {
  font-style: normal;
  background: linear-gradient(100deg, #ffb020, #ff5b7b 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.side-desc { color: rgba(255, 255, 255, .68); font-size: 14.5px; line-height: 1.8; margin: 0 0 30px; }

.side-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-points li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.side-points i {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb020, #ff3b5c);
  flex: 0 0 auto;
}

/* 花球装饰（放在左下角，不遮挡文字） */
.pom {
  position: absolute;
  right: 34px; bottom: 34px;
  width: 168px; height: 168px;
  opacity: .75;
  pointer-events: none;
  z-index: 1;
}
.pom span {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ff8ea0, #ff3b5c 66%);
  box-shadow: 0 8px 20px rgba(255, 59, 92, .3);
}
.pom span:nth-child(1) { transform: rotate(0deg) translateY(-46px); }
.pom span:nth-child(2) { transform: rotate(45deg) translateY(-46px); background: radial-gradient(circle at 34% 30%, #ffd88a, #ffb020 68%); }
.pom span:nth-child(3) { transform: rotate(90deg) translateY(-46px); }
.pom span:nth-child(4) { transform: rotate(135deg) translateY(-46px); background: radial-gradient(circle at 34% 30%, #ffd88a, #ffb020 68%); }
.pom span:nth-child(5) { transform: rotate(180deg) translateY(-46px); }
.pom span:nth-child(6) { transform: rotate(225deg) translateY(-46px); background: radial-gradient(circle at 34% 30%, #ffd88a, #ffb020 68%); }
.pom span:nth-child(7) { transform: rotate(270deg) translateY(-46px); }
.pom span:nth-child(8) { transform: rotate(315deg) translateY(-46px); background: radial-gradient(circle at 34% 30%, #ffd88a, #ffb020 68%); }
.pom b {
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffffff, #ffd7df 62%);
  box-shadow: 0 6px 18px rgba(255, 255, 255, .35);
}

.auth-main {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(680px 320px at 92% -8%, #fff1f4 0%, transparent 70%),
    radial-gradient(600px 320px at 6% 106%, #eef6ff 0%, transparent 70%),
    #fff;
}

.auth-main-single { background: var(--bg); }

.auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}

.auth-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }

.mini-mark {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ff5069, #ff2450);
  color: #fff; font-weight: 700; font-size: 21px;
  box-shadow: 0 8px 18px rgba(255, 59, 92, .3);
}

.auth-card-head h2 { margin: 0; font-size: 20px; letter-spacing: -.2px; }
.auth-card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.auth-foot { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-foot a { color: var(--primary-dark); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.auth-tip { margin: 16px 0 0; font-size: 12px; color: var(--muted); max-width: 430px; text-align: center; }

/* ---------------------------------------------------------- 统计条 */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px;
}
.stat-num { font-size: 26px; font-weight: 700; letter-spacing: -.6px; }
.stat-label { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------- 班级卡片 */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 16px;
}

.class-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.class-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--amber));
  opacity: .9;
}
.class-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #ffd2db;
}

.class-card-top { display: flex; align-items: center; justify-content: space-between; }

.class-chip {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary-dark); background: var(--primary-soft);
  padding: 3px 9px; border-radius: 6px; font-weight: 600;
}

.badge { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.badge-on { background: #e9f9f4; color: #0b7d71; }
.badge-off { background: #f3f4f8; color: var(--muted); }

.class-name { margin: 2px 0 0; font-size: 19px; letter-spacing: -.3px; }

.class-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.meta-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }

.ico-cal, .ico-user {
  width: 14px; height: 14px; display: inline-block; flex: 0 0 auto;
  background-repeat: no-repeat; background-size: 14px 14px; opacity: .55;
}
.ico-cal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2314161f'%3E%3Cpath d='M7 2v2H4a2 2 0 00-2 2v14a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2h-3V2h-2v2H9V2H7zm13 8v10H4V10h16z'/%3E%3C/svg%3E");
}
.ico-user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2314161f'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E");
}

.class-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.class-card-foot {
  margin-top: 10px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--primary-dark); font-size: 13.5px; font-weight: 600;
}
.enter-arrow { transition: transform .2s ease; }
.class-card:hover .enter-arrow { transform: translateX(4px); }

/* ---------------------------------------------------------- 空状态 */
.empty-state {
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
}
.empty-art {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 24px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 24px; font-weight: 700;
}
.empty-state h3 { margin: 0 0 6px; font-size: 18px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------- 教务管理 */
.admin-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 17px; letter-spacing: -.2px; }
.panel-hint { font-size: 12px; color: var(--muted); }

.class-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow: auto; }

.class-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  transition: border-color .16s ease, background .16s ease;
}
.class-row.is-current { border-color: #ffc9d3; background: #fff7f9; }

.class-row-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.class-row-main strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.class-row-main small { font-size: 11.5px; color: var(--muted); }

.class-row-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.class-row-actions form { display: inline; margin: 0; }

.current-class-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(120deg, #fff5f7, #fffaf2);
  border: 1px solid #ffe0e6;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.current-class-bar > div { display: flex; flex-direction: column; gap: 0; flex: 1 1 auto; min-width: 0; }
.small-label { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.current-class-bar strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: #fff; border: 1px solid #ffd9e0; color: var(--primary-dark); font-weight: 600;
}

.two-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }

.boxed {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #fbfcfe;
}

.form-title { margin: 0; font-size: 14px; color: var(--ink-2); font-weight: 700; }

.list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.list-head h3 { margin: 0; font-size: 15.5px; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  min-width: 180px;
  outline: none;
  font-size: 13.5px;
}
.search-form input[type="search"]:focus { border-color: #ffb3c1; box-shadow: 0 0 0 3px rgba(255, 59, 92, .1); }

.muted-note {
  margin: 0;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: #fbfcfe;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------- 表格 */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

.data-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #f7f9fc;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: .3px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f3f8;
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcff; }

.w-idx { width: 56px; color: var(--muted); font-size: 12.5px; }
.w-gender { width: 76px; }
.w-act { width: 84px; }
.cell-name { font-weight: 600; }
.cell-phone { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.gender-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.g-f { background: #ffeef2; color: #c72c52; }
.g-m { background: #eaf1ff; color: #2456b8; }

/* ---------------------------------------------------------- 点名表 */
.summary-bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.sum-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.sum-item::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--line-strong);
}
.sum-num { font-size: 23px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; }
.sum-label { font-size: 11.5px; color: var(--muted); }

.sum-total::after { background: var(--ink); }
.st-present::after { background: var(--present); }
.st-absent::after { background: var(--absent); }
.st-late::after { background: var(--late); }
.st-leave::after { background: var(--leave); }
.st-makeup::after { background: var(--makeup); }
.st-quit::after { background: var(--quit); }

.sum-item.st-present .sum-num { color: var(--present); }
.sum-item.st-absent .sum-num { color: var(--absent); }
.sum-item.st-late .sum-num { color: var(--late); }
.sum-item.st-leave .sum-num { color: var(--leave); }
.sum-item.st-makeup .sum-num { color: var(--makeup); }
.sum-item.st-quit .sum-num { color: var(--quit); }

.sum-rate { background: linear-gradient(130deg, #fff6f8, #fff); border-color: #ffdde4; }
.sum-rate .sum-num { color: var(--primary-dark); }
.sum-rate::after { background: var(--primary); }

.sheet-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.tip { font-size: 12.5px; color: var(--muted); }
.toolbar-right { display: flex; gap: 8px; }

.sheet-wrap { border-radius: var(--radius); }

.sheet-table { min-width: 640px; }
.sheet-table .sticky-col { position: sticky; left: 0; background: #fff; z-index: 1; }
.sheet-table thead .sticky-col { background: #f7f9fc; z-index: 3; }
.sheet-table tbody tr:hover .sticky-col { background: #fbfcff; }

.date-picker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 5px 14px;
}
.date-picker span { font-size: 12.5px; color: var(--muted); }
.date-picker input {
  border: 0; background: transparent; outline: none;
  font-size: 13.5px; font-weight: 600; padding: 4px 0;
  color: var(--ink);
}

/* 状态下拉 */
.status-select select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 7px 34px 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  background-color: #f7f9fc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23868da0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  min-width: 116px;
}
.status-select select:focus { box-shadow: 0 0 0 3px rgba(20, 22, 31, .08); }

.status-select.st-present select { background-color: #e9f9f4; border-color: #b7e8dd; color: #0b7d71; }
.status-select.st-absent  select { background-color: #feecec; border-color: #f7c9c9; color: #c02727; }
.status-select.st-late    select { background-color: #fff3dd; border-color: #ffdca6; color: #a56600; }
.status-select.st-leave   select { background-color: #eaf1ff; border-color: #c8d9ff; color: #1f5fd0; }
.status-select.st-quit    select { background-color: #f2f3f7; border-color: #dcdfe8; color: #5f6678; }

/* 保存提示 */
.save-toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translate(-50%, 12px);
  background: rgba(20, 22, 31, .9);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 90;
  pointer-events: none;
}
.save-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.save-toast.is-error { background: rgba(180, 30, 40, .92); }

/* ---------------------------------------------------------- 弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(17, 19, 28, .46); backdrop-filter: blur(2px); }
.modal-box {
  position: relative;
  width: min(420px, calc(100vw - 36px));
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 16.5px; }
.modal-close {
  border: 0; background: #f2f4f9; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 17px; color: var(--ink-2);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---------------------------------------------------------- 页脚 */
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sep { color: var(--line-strong); }

/* ============================================================ 响应式 */

/* 平板横屏 / 小笔记本 */
@media (max-width: 1080px) {
  .admin-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .summary-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .auth-side { padding: 44px 40px; }
  .side-title { font-size: 34px; }
}

/* iPad 竖屏 */
@media (max-width: 900px) {
  .page { padding: 20px 18px 50px; }
  .topbar-inner { padding: 10px 16px; gap: 14px; }
  .brand-text small { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .class-list { max-height: none; }
  .two-forms { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 32px 20px 48px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .summary-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .class-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

/* 手机 */
@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .topbar-inner { gap: 10px; }
  .brand-mark { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
  .brand-text strong { font-size: 14px; }
  .nav { order: 3; width: 100%; justify-content: center; padding-top: 8px; }
  .topbar-inner { flex-wrap: wrap; }
  .topbar-user { margin-left: auto; }
  .user-chip { display: none; }

  .page-head { margin-bottom: 16px; }
  .page-title { font-size: 21px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1 1 auto; }

  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-num { font-size: 20px; }

  .class-grid { grid-template-columns: 1fr; }

  .summary-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sum-item { padding: 10px 12px; }
  .sum-num { font-size: 19px; }
  .sum-rate { grid-column: span 2; flex-direction: row; align-items: baseline; justify-content: space-between; }

  .panel { padding: 16px; }
  .modal-box { width: calc(100vw - 24px); padding: 18px; }

  .hide-sm { display: none; }
  .sheet-table { min-width: 420px; }
  .sheet-table .cell-status select { min-width: 96px; padding: 7px 28px 7px 12px; font-size: 13px; }

  .auth-main { padding: 24px 16px 40px; }
  .auth-card { padding: 22px 18px 20px; border-radius: 18px; }
  .field-row { flex-direction: column; }
  .field-narrow { flex: 1 1 auto !important; }

  .list-head { flex-direction: column; align-items: stretch; }
  .search-form input[type="search"] { min-width: 0; flex: 1 1 auto; }
}

/* 打印点名表 */
@media print {
  .topbar, .footer, .page-head-actions, .sheet-toolbar, .summary-bar, .save-toast { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .table-wrap { border: 0; }
  .data-table { min-width: 0; }
  .status-select select { border: 0; background-image: none; padding-left: 0; }
}


/* ---- 业务补充样式（周课表 / 课时 / 退出锁定 / 家长通知 / 权限） ---- */
#app { min-height: 100vh; }
.page { min-height: calc(100vh - 124px); }
.demo-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .5px;
  color: #8a5a00; background: #fff4d9; border: 1px solid #ffe0a3;
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.demo-flag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ffb020;
}
.auth-demo {
  margin: 0 0 16px; padding: 11px 14px;
  background: #f6f8fc; border: 1px dashed #d7dcea;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: #454b5c;
}
.auth-demo code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; color: #14161f; background: #fff;
  padding: 2px 7px; border-radius: 6px; border: 1px solid #e7eaf1;
}
.auth-demo .fill-btn {
  border: 1px solid #ffd2db; background: #fff; color: #e01f43;
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  flex: 0 0 auto;
}
.auth-demo .fill-btn:hover { background: #fff2f5; }

.reset-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12.5px; color: #868da0; text-decoration: underline;
}
.reset-link:hover { color: #e01f43; }

.sandbox-banner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fffaf0; border: 1px solid #ffe6b8; border-radius: 12px;
  padding: 9px 14px; margin-bottom: 18px;
  font-size: 12.5px; color: #7a5a10;
}
.sandbox-banner b { color: #a5710a; }

.cell-status { width: 220px; }
.row-note { font-size: 11.5px; color: #98a0b3; line-height: 1.35; margin-top: 2px; }
.insert-hint { font-size: 11.5px; color: #868da0; margin-top: 6px; }

.toast-stack {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  z-index: 120; pointer-events: none;
}
.toast-item {
  background: rgba(20, 22, 31, .92); color: #fff;
  font-size: 13.5px; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  animation: toastIn .2s ease;
  max-width: min(520px, calc(100vw - 32px));
}
.toast-item.is-error { background: rgba(180, 30, 40, .94); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.flash-inline {
  padding: 10px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px;
  border: 1px solid transparent;
}
.flash-inline.err { background: #feecec; color: #c02727; border-color: #f8cccc; }
.flash-inline.ok { background: #e9f9f4; color: #0b7d71; border-color: #bfece2; }

/* ---- 角色 / 权限 / 教练员管理 ---- */
.role-tag {
  font-size: 10.5px; font-weight: 700; color: #2456b8; background: #eaf1ff;
  border-radius: 999px; padding: 2px 7px; margin-left: 6px; letter-spacing: .2px;
}
.auth-demo { flex-direction: column; align-items: stretch; gap: 8px; }
.demo-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.perm-hint {
  font-size: 12.5px; color: #8a5a00; background: #fff7e6; border: 1px dashed #ffe0a3;
  border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; line-height: 1.6;
}
.coach-list { display: flex; flex-direction: column; gap: 10px; }
.coach-card {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 14px 16px;
}
.coach-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.coach-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coach-avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: #ffeef2; color: #c72c52;
}
.coach-avatar.is-admin { background: #eaf1ff; color: #2456b8; }
.coach-name-box { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.coach-name-box strong { font-size: 14.5px; color: var(--ink); }
.coach-name-box small { font-size: 12px; color: #7b8296; }
.coach-actions { flex: 0 0 auto; }
.perm-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.perm-title { font-size: 12px; font-weight: 600; color: #7b8296; }
.perm-tip { font-size: 11.5px; color: #98a0b3; margin-left: auto; }
.perm-toggle {
  border-radius: 999px; font-size: 12px; font-weight: 600;
  padding: 5px 12px; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.perm-toggle.is-on { background: #e9f9f4; color: #0b7d71; border-color: #bfece2; }
.perm-toggle.is-on:hover { background: #d8f4ec; }
.perm-toggle.is-off { background: #f2f4f8; color: #8a91a3; border-color: #e2e6ef; }
.perm-toggle.is-off:hover { background: #eaeef5; }
.perm-legend { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.admin-self {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff;
}
.panel-head-sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---- 家长通知 / 联系电话隐藏 ---- */
.phone-mask { color: #6b7280; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.phone-full { display: none; font-variant-numeric: tabular-nums; }
.sheet-table.show-phone .phone-mask { display: none; }
.sheet-table.show-phone .phone-full { display: inline; }
.notify-sub { font-size: 12.5px; color: #7b8296; margin: 0 0 12px; line-height: 1.6; }
.notify-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.notify-tab {
  border: 1px solid var(--line); background: #f7f9fc; color: #6b7280;
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.notify-tab.is-active { background: #ffe9ef; border-color: #ffc9d7; color: #c72c52; }
.notify-text {
  display: block; width: 100%; box-sizing: border-box; min-height: 220px; max-height: 44vh;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1f2333; background: #fbfcff; resize: vertical;
}
.notify-text:focus { outline: none; border-color: #ffc9d7; box-shadow: 0 0 0 3px #ffe9ef; }

.toolbar-right { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .sheet-toolbar { align-items: flex-start; }
  .toolbar-right { width: 100%; justify-content: flex-start; }
}

.tpl-links { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.tpl-links .down-link {
  background: none; border: 0; padding: 0; cursor: pointer; align-self: flex-start;
  text-align: left; color: #c72c52; font-size: 12.5px;
}
.tpl-links .down-link:hover { text-decoration: underline; }

.row-actions { display: flex; align-items: center; gap: 10px; }
.modal-sub { margin: -6px 0 12px; font-size: 12.5px; color: #7b8296; }

.tel-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: #1f6fd0; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tel-link:hover { text-decoration: underline; }
.tel-ico { width: 13px; height: 13px; flex: 0 0 auto; fill: #1f6fd0; opacity: .85; }

.weekday-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-chip { position: relative; display: inline-flex; }
.wd-chip input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.wd-chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; padding: 7px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: #f8fafd;
  font-size: 12.5px; color: #5b6276; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.wd-chip input:checked + span {
  background: #ffe9ef; border-color: #ffc9d7; color: #c72c52; font-weight: 600;
}
.wd-chip input:focus-visible + span { outline: 2px solid #ffc9d7; outline-offset: 1px; }
.time-range { display: flex; align-items: flex-end; gap: 8px; }
.time-range .field { flex: 1; min-width: 0; }
.time-sep { font-size: 12px; color: #8a91a3; padding-bottom: 11px; }

.cell-lesson { white-space: nowrap; }
.lesson-main { display: block; font-size: 12.5px; color: #343a4d; font-variant-numeric: tabular-nums; }
.lesson-main b { color: #c72c52; font-weight: 700; }
.lesson-sub { display: block; font-size: 10.5px; color: #98a0b0; }
.lesson-empty { font-size: 11px; color: #98a0b0; }

@media (max-width: 500px) {
  .tel-link { gap: 0; }
  .tel-ico { display: none; }
  .sheet-table thead th, .sheet-table tbody td { padding-left: 7px; padding-right: 7px; }
  .sheet-table .w-idx { width: 22px; }
  .sheet-table .lesson-sub { display: none; }
  .sheet-table .w-status { width: 94px; }
  .sheet-table .status-select, .sheet-table .status-select select { min-width: 0; width: 100%; }
  .sheet-table .quit-tag { margin-left: 4px; padding: 0 4px; font-size: 9.5px; }
}

.quit-tag {
  display: inline-block; margin-left: 6px; padding: 1px 5px;
  border-radius: 6px; background: #ffe6ec; color: #c72c52;
  font-size: 10.5px; font-weight: 700; line-height: 1.6; vertical-align: middle;
}

.w-act { width: 96px; }
.row-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

.status-select.is-locked select,
.status-select select:disabled {
  cursor: not-allowed; color: #7b8397; background-color: #f2f4f8;
  opacity: 1; padding-right: 26px; background-image: none;
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .two-forms { grid-template-columns: minmax(0, 1fr) !important; }
  .form .field input, .form .field select, .form .field textarea { min-width: 0; width: 100%; }
  .panel-head { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .auth-demo { flex-wrap: wrap; }
  .cell-status { width: 120px; }
  .panel-hint { display: none; }
  .data-table { min-width: 0; }
  .data-table thead th, .data-table tbody td { padding: 9px 8px; }
  .data-table .w-idx { width: 30px; }
  .data-table .w-gender { width: 56px; }
  .data-table .w-act { width: 56px; }
  .field-row { grid-template-columns: minmax(0, 1fr) !important; }
  .sheet-table { min-width: 0; }
  .sheet-table .w-idx { width: 32px; }
  .sheet-table .cell-status, .sheet-table .w-status { width: 122px; }
  .sheet-table thead th, .sheet-table tbody td { padding: 9px 8px; }
  .sheet-table .cell-name { white-space: nowrap; }
  .demo-flag { display: none; }
}


/* ---- PHP 版补充：当前班级 / 名单工具条 / 电话链接 ---- */
.class-row-main { color: inherit; text-decoration: none; }
.class-row-main:hover strong { color: #c72c52; }
.current-class {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid #ffd7e0; border-radius: 12px; background: #fff7f9;
}
.current-class > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.current-class small { font-size: 11.5px; color: #8a91a3; }
.current-class strong { font-size: 15px; color: var(--ink); }
.current-class-schedule { font-size: 12px; color: #6b7280; }
.current-class-actions { display: flex; align-items: center; gap: 8px; }
.data-table-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 10px; padding-top: 14px; border-top: 1px solid var(--line);
}
.data-table-toolbar h3 { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.table-search {
  width: 220px; max-width: 100%; padding: 8px 12px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 999px; background: #f8fafd; color: var(--ink);
}
.table-search:focus { outline: none; border-color: #ffc9d7; background: #fff; box-shadow: 0 0 0 3px #ffe9ef; }
.empty-cell { text-align: center; color: var(--muted); font-size: 12.5px; padding: 24px 12px !important; }
.empty-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 6px 0; }
.w-lesson { width: 92px; }
@media (max-width: 640px) {
  .table-search { width: 100%; }
  .current-class-actions { width: 100%; justify-content: flex-start; }
}

/* 四张统计卡：宽屏四列，窄屏两列，避免落单 */
.stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---- 校区管理 ---- */
.campus-panel { margin-bottom: 16px; }
.campus-admin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.campus-list { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 320px; min-width: 0; }
.campus-tag {
  display: inline-flex; align-items: center; gap: 4px; margin: 0;
  background: #fff4f7; border: 1px solid #ffd6e0; color: #c72c52;
  border-radius: 999px; padding: 5px 8px 5px 13px; font-size: 13px; font-weight: 600;
}
.campus-del {
  border: 0; background: none; color: #d6557a; font-size: 15px; line-height: 1;
  cursor: pointer; padding: 2px 5px; border-radius: 7px;
}
.campus-del:hover { background: #ffe1e8; }
.campus-empty { font-size: 12.5px; color: #98a0b3; line-height: 1.6; }
.campus-add { display: flex; gap: 8px; flex: 0 1 340px; }
.campus-add input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 10px; font: 13px/1 var(--font); color: var(--ink); background: #fff;
}
.campus-add input:focus { outline: none; border-color: #ffc9d7; box-shadow: 0 0 0 3px #ffe9ef; }
.btn-xs { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; white-space: nowrap; }

.coach-campus-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.campus-picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.campus-picker.is-form { margin-top: 8px; }
.campus-chip { position: relative; display: inline-flex; }
.campus-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.campus-chip span {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #f8fafd; color: #5b6276; font-size: 12px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.campus-chip input:checked + span { background: #ffe9ef; border-color: #ffc9d7; color: #c72c52; font-weight: 600; }
.campus-chip input:focus-visible + span { outline: 2px solid #ffc9d7; outline-offset: 1px; }
.campus-summary { font-size: 12px; color: #8a91a3; }
.campus-summary.is-empty { color: #98a0b3; }

@media (max-width: 620px) {
  .campus-admin { flex-direction: column; align-items: stretch; }
  .campus-list { flex: 1 1 auto; }
  .campus-add { flex: 1 1 auto; }
  .campus-add input { width: 100%; }
}

/* ---- 班级校区标签 ---- */
.campus-badge {
  display: inline-block; margin-right: 6px; padding: 2px 8px;
  border-radius: 999px; background: #fff1f5; border: 1px solid #ffd6e0;
  color: #c72c52; font-size: 11.5px; font-weight: 600; vertical-align: 2px;
}
.class-row-main .campus-badge { margin-bottom: 2px; }
.class-card .class-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campus-badge.is-empty { background: #fff7e6; border-color: #ffe0a3; color: #8a5a00; }
.panel-note { margin: 0 0 10px; font-size: 12px; color: #8a5a00; background: #fffaf0; border: 1px dashed #ffe3b5; border-radius: 10px; padding: 8px 10px; line-height: 1.6; }

/* ---- 校区卡片（点名第一步） ---- */
.campus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.campus-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: 16px; background: #fff;
  border: 1px solid #eceff5; box-shadow: 0 10px 30px rgba(20, 24, 40, .05);
  text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.campus-card:hover { transform: translateY(-2px); border-color: #ffd6e0; box-shadow: 0 16px 34px rgba(199, 44, 82, .12); }
.campus-card-top { display: flex; align-items: center; justify-content: space-between; }
.campus-kicker {
  font-size: 11.5px; letter-spacing: 1px; color: #c72c52;
  background: #fff1f5; border: 1px solid #ffd6e0; border-radius: 999px; padding: 3px 9px;
}
.campus-count { font-size: 12.5px; color: #98a0b3; }
.campus-name { margin: 0; font-size: 21px; letter-spacing: -.3px; }
.campus-meta { margin: 0; font-size: 13px; color: #7b8397; }
.campus-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #c72c52; font-weight: 600; }
@media (max-width: 1000px) { .campus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .campus-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
