:root {
  --bg: #f2f5fa;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eef2fa;
  --ink: #161c2a;
  --ink-2: #3a4559;
  --muted: #6f7b8e;
  --faint: #97a2b4;
  --line: #e2e8f1;
  --line-strong: #d2dae6;
  --brand: #1f4f9e;
  --brand-deep: #143a78;
  --brand-soft: #e8effb;
  --brand-softer: #f2f7fe;
  --gold: #d99a2b;
  --gold-soft: #fbf1dc;
  --gold-deep: #a2690d;
  --danger: #b4423a;
  --danger-soft: #fbeceb;
  --info: #2f5fa8;
  --info-soft: #eaf0fb;
  --purple: #6b4fa8;
  --purple-soft: #f1ecfa;
  --green: #0f7a52;
  --green-soft: #e8f5ee;
  --gray: #6c7787;
  --gray-soft: #eef1f6;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(18, 28, 48, 0.04);
  --shadow: 0 12px 36px rgba(20, 38, 72, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(31, 79, 158, 0.18);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #ccd6e6;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* boot */
.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
}
.boot-mark {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.boot-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.boot-spinner,
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--line-strong);
  border-top-color: var(--brand);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ 登录 ============ */
.login-body {
  background: #081a38;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
}

.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 64px 32px;
  color: #e9f0ff;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(63, 105, 178, 0.22), transparent 60%),
    linear-gradient(152deg, #0c2451 0%, #071a3b 52%, #041027 100%);
}

.login-visual::after {
  content: "升";
  position: absolute;
  right: -40px;
  bottom: -140px;
  font-size: 460px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.028);
  line-height: 1;
  pointer-events: none;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
.orb-1 {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(217, 154, 43, 0.16), transparent 65%);
}
.orb-2 {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: 60px;
  background: radial-gradient(circle, rgba(63, 105, 178, 0.16), transparent 65%);
}

.login-visual-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
}

.login-hero {
  margin: auto 0;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.login-brand .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 22px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10, 22, 48, 0.18);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-visual h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.login-visual h1 span + span {
  margin-left: 0.85em;
}

.login-visual h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 28px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(217, 154, 43, 0.1));
}

.login-motto {
  margin: 36px 0 0;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 1px;
  color: var(--gold);
}

.login-form-side {
  position: relative;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(31, 79, 158, 0.06), transparent 60%),
    #f4f7fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px 28px;
}

.login-card {
  width: 100%;
  max-width: 408px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 36px 30px;
  box-shadow: 0 24px 70px rgba(20, 38, 72, 0.1);
}

.login-card-logo {
  display: block;
  width: 188px;
  height: auto;
  margin-bottom: 18px;
}

.login-card-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: 0.5px;
}

.login-card-head p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.login-card .field {
  margin-bottom: 16px;
}

.login-card .field > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.login-card input {
  height: 46px;
  background: var(--surface-2);
}

.btn-block {
  width: 100%;
}

.login-card .btn-lg {
  margin-top: 8px;
  height: 46px;
  font-size: 14.5px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 1px;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  transition: 0.18s;
}
.login-mobile-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-softer);
}
.login-mobile-link .arrow {
  color: var(--brand);
}

.login-note {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--faint);
  text-align: center;
}

.login-copyright {
  position: absolute;
  bottom: 22px;
  font-size: 11.5px;
  color: var(--faint);
}

.login-copyright a,
.side-icp,
.icp-note a {
  color: inherit;
  text-decoration: none;
}

.login-copyright a:hover,
.side-icp:hover,
.icp-note a:hover {
  text-decoration: underline;
}

.side-icp {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.42);
}

/* ============ 布局 ============ */
.shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(300px 200px at 0% 0%, rgba(63, 105, 178, 0.16), transparent 70%),
    linear-gradient(180deg, #0e2450 0%, #07152f 100%);
  color: #d9e2f2;
  transition: transform 0.24s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: 148px;
  height: auto;
}
.brand-text span {
  font-size: 10.5px;
  color: #8ba2c8;
  letter-spacing: 1.6px;
  margin-top: 6px;
}

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 43px;
  padding: 0 12px;
  border-radius: 10px;
  color: #aec0da;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  transition: background 0.16s, color 0.16s;
}
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.095);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
}
.nav-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.9;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
}
.nav-label {
  flex: 1;
  white-space: nowrap;
}
.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #2a1c05;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.side-foot {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 12px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7c579, #c08a22);
  color: #33230a;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.user-meta strong {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-meta span {
  font-size: 11px;
  color: #8ba2c8;
}
.side-actions {
  display: flex;
  gap: 8px;
}
.side-actions button {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #aec0da;
  display: grid;
  place-items: center;
  transition: 0.16s;
}
.side-actions button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.side-actions svg {
  width: 15px;
  height: 15px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(10, 18, 38, 0.45);
  backdrop-filter: blur(2px);
}

.main {
  margin-left: 244px;
  min-height: 100vh;
  background:
    radial-gradient(1100px 420px at 92% -8%, rgba(31, 79, 158, 0.055), transparent 60%),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 76px;
  padding: 0 28px;
  background: rgba(242, 245, 250, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 241, 0.9);
}

.menu-btn {
  display: none;
}

.page-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.page-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.date-chip {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.view {
  padding: 24px 28px 64px;
  max-width: 1480px;
  margin: 0 auto;
}

.page {
  animation: fadeUp 0.26s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.16s;
  text-decoration: none;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 79, 158, 0.18);
}
.btn-primary:hover {
  background: #17427f;
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.btn-ghost:hover {
  border-color: #b9c6d6;
  background: var(--surface-2);
}
.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
}
.btn-soft:hover {
  background: #dbe6f8;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #9c352e;
}
.btn-sm {
  height: 32px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-sm svg {
  width: 14px;
  height: 14px;
}
.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 11px;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  transition: 0.16s;
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.icon-btn:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
}
.link-btn:hover {
  text-decoration: underline;
}
.link-btn svg {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
}
.link-danger {
  border: none;
  background: none;
  padding: 0;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 600;
}
.link-danger:hover {
  text-decoration: underline;
}

/* ============ 卡片 / 面板 ============ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel + .panel {
  margin-top: 18px;
}
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-title {
  font-size: 15px;
  font-weight: 650;
  margin: 0;
}
.panel-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.panel-body {
  padding: 20px 22px;
}
.panel-body.flush {
  padding: 0;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* welcome */
.welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(420px 260px at 88% -30%, rgba(231, 197, 121, 0.22), transparent 65%),
    linear-gradient(112deg, #0f2b60, #1a4a97);
  box-shadow: 0 16px 40px rgba(15, 45, 95, 0.18);
}
.welcome::after {
  content: "";
  position: absolute;
  right: 44px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.welcome-text {
  position: relative;
  z-index: 1;
}
.welcome-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #e7c579;
  font-weight: 600;
  margin-bottom: 8px;
}
.welcome h2 {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: 0.3px;
}
.welcome p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(236, 242, 252, 0.72);
}
.welcome-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.welcome-actions .btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(4px);
}
.welcome-actions .btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.welcome-actions .btn-gold {
  background: #e7c579;
  border-color: #e7c579;
  color: #33230a;
}
.welcome-actions .btn-gold:hover {
  background: #f0d28f;
}

/* 优惠待审批提醒 */
.approval-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid #f0d9a8;
  background: #fdf6e6;
  color: #6b4a10;
  font-size: 13.5px;
  text-decoration: none;
  transition: 0.18s;
}
.approval-banner:hover {
  background: #fbefd3;
}
.approval-banner svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #c98a14;
}
.approval-banner strong {
  color: #a3620a;
}
.approval-banner-go {
  margin-left: auto;
  color: #a3620a;
  font-weight: 600;
  white-space: nowrap;
}
.approval-banner.is-done {
  border-color: #bfe3c8;
  background: #eef9f1;
  color: #23603a;
}
.approval-banner.is-done:hover {
  background: #e3f5e8;
}
.approval-banner.is-done svg,
.approval-banner.is-done .approval-banner-go {
  color: #2f8a52;
}
.approval-banner.is-done strong {
  color: #1d7a43;
}
.approval-banner.is-rejected {
  border-color: #f0c3c0;
  background: #fdf1f0;
  color: #7a2622;
}
.approval-banner.is-rejected:hover {
  background: #fbe4e2;
}
.approval-banner.is-rejected svg,
.approval-banner.is-rejected .approval-banner-go {
  color: #c0392b;
}
.approval-banner.is-rejected strong {
  color: #a32c22;
}
@media (max-width: 720px) {
  .approval-banner {
    align-items: flex-start;
    font-size: 13px;
  }
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.stat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-sm);
  transition: 0.18s;
}
.stat:hover {
  box-shadow: 0 10px 26px rgba(20, 38, 72, 0.07);
  transform: translateY(-1px);
}
.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-label {
  font-size: 12.5px;
  color: var(--muted);
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.stat-icon svg {
  width: 18px;
  height: 18px;
}
.stat-icon.gold {
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.stat-icon.blue {
  background: var(--info-soft);
  color: var(--info);
}
.stat-icon.red {
  background: var(--danger-soft);
  color: var(--danger);
}
.stat-value {
  margin: 12px 0 3px;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.stat-value small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.stat-sub {
  font-size: 11.5px;
  color: var(--faint);
}
.stat-sub strong {
  color: var(--brand);
  font-weight: 600;
}

/* dashboard */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.dash-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.dash-col > .panel + .panel {
  margin-top: 0;
}

.lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.lesson-row:first-child {
  padding-top: 0;
}
.lesson-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.lesson-time {
  width: 88px;
  flex-shrink: 0;
  text-align: center;
  padding: 7px 6px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.lesson-time strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.lesson-time span {
  font-size: 10.5px;
  opacity: 0.75;
}
.lesson-main {
  flex: 1;
  min-width: 0;
}
.lesson-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lesson-meta {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lesson-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lesson-meta svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}
.lesson-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.funnel-label {
  width: 58px;
  font-size: 12px;
  color: var(--ink-2);
  flex-shrink: 0;
}
.funnel-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.funnel-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #4c8ed6);
  transition: width 0.4s ease;
}
.funnel-row:nth-child(2) .funnel-bar i {
  background: linear-gradient(90deg, #3d7fc4, #6ba4dc);
}
.funnel-row:nth-child(3) .funnel-bar i {
  background: linear-gradient(90deg, #c9922c, #e7bb63);
}
.funnel-row:nth-child(4) .funnel-bar i {
  background: linear-gradient(90deg, #6b4fa8, #9c86cf);
}
.funnel-row:nth-child(5) .funnel-bar i {
  background: linear-gradient(90deg, #8d97a8, #b3bcc9);
}
.funnel-count {
  width: 26px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.recent-row:first-child {
  padding-top: 0;
}
.recent-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.recent-main {
  flex: 1;
  min-width: 0;
}
.recent-main strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.recent-main span {
  font-size: 11.5px;
  color: var(--muted);
}
.recent-amount {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.recent-amount.negative {
  color: var(--danger);
}
.recent-date {
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
}

/* ============ 工具栏 / 搜索 / 分段 ============ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--faint);
  pointer-events: none;
}
.search input {
  width: 236px;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  outline: none;
  transition: 0.16s;
}
.search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 79, 158, 0.1);
}
.search input::placeholder {
  color: var(--faint);
}
.filter-input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
  outline: none;
  transition: 0.16s;
}
.filter-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 79, 158, 0.1);
}
.filter-input:disabled {
  background: var(--surface-2);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #e8eef9;
  border-radius: 10px;
  flex-wrap: wrap;
}
.seg-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  transition: 0.15s;
  white-space: nowrap;
}
.seg-btn:hover {
  color: var(--ink);
}
.seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(18, 28, 48, 0.08);
}
.seg-btn .count {
  font-size: 11px;
  color: var(--faint);
  margin-left: 2px;
}
.seg-btn.active .count {
  color: var(--brand);
}

/* ============ 表格 ============ */
.table-wrap {
  overflow-x: auto;
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tbody tr.clickable {
  cursor: pointer;
}
.table tbody tr.clickable:hover td {
  background: #fafcff;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table .actions {
  text-align: right;
  white-space: nowrap;
}
.cell-main {
  font-weight: 600;
  color: var(--ink);
}
.cell-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person-cell .avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.amount-strong {
  font-weight: 700;
}
.amount-muted {
  color: var(--muted);
}
.amount-danger {
  color: var(--danger);
  font-weight: 700;
}
.amount-ok {
  color: var(--green);
  font-weight: 600;
}
.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 11.5px;
  margin: 2px 3px 2px 0;
}

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}
.badge-green {
  background: var(--green-soft);
  color: var(--green);
}
.badge-blue {
  background: var(--info-soft);
  color: var(--info);
}
.badge-amber {
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.badge-red {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-gray {
  background: var(--gray-soft);
  color: var(--gray);
}
.badge-purple {
  background: var(--purple-soft);
  color: var(--purple);
}
.badge-plain {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

/* ============ 表单 ============ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.form-grid .span-2 {
  grid-column: span 2;
}
.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field .req {
  color: var(--danger);
  margin-left: 2px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  outline: none;
  transition: 0.16s;
  font-size: 13px;
}
.field textarea {
  height: auto;
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 79, 158, 0.1);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2372807c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px;
}
.field-hint {
  margin-top: 5px;
  font-size: 11px;
  color: var(--faint);
  line-height: 1.5;
}
.college-picker {
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px;
  background: var(--surface);
}
.college-picker .filter-input {
  width: 100%;
  margin-bottom: 8px;
}
.college-options {
  max-height: 190px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 10px;
}
.college-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
}
.college-option:hover {
  background: var(--surface-2);
}
.college-option input {
  width: 14px;
  height: 14px;
  flex: none;
  accent-color: var(--brand);
}
.college-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.college-option em {
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
}
#college-selected {
  margin-top: 6px;
  color: var(--brand);
}
@media (max-width: 720px) {
  .college-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
.form-error {
  margin: 4px 0 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.form-section-title {
  grid-column: span 2;
  margin: 6px 0 -2px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.form-inline {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

/* ============ 标签页 ============ */
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative;
  padding: 11px 2px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: 0.16s;
}
.tab:hover {
  color: var(--ink);
}
.tab.active {
  color: var(--brand);
  font-weight: 650;
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.tab-body {
  padding-top: 16px;
}

/* ============ 弹窗 ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 20, 42, 0.42);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
  overflow-y: auto;
}
.modal-backdrop.open {
  opacity: 1;
}
.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(8, 16, 36, 0.28);
  transform: translateY(10px) scale(0.99);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.modal-backdrop.open .modal {
  transform: none;
  opacity: 1;
}
.modal-wide {
  width: min(780px, 100%);
}
.modal-xwide {
  width: min(1080px, 100%);
}
.modal-narrow {
  width: min(420px, 100%);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}
.modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}
.modal-body {
  padding: 18px 24px 22px;
  overflow-y: auto;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line);
}
.modal-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.modal-close {
  flex-shrink: 0;
}

/* ============ 空状态 / 加载 ============ */
.empty {
  padding: 48px 20px;
  text-align: center;
}
.empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--surface-3);
  color: var(--faint);
  display: grid;
  place-items: center;
}
.empty-icon svg {
  width: 26px;
  height: 26px;
}
.empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.empty-desc {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.7;
}
.view-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 90px 20px;
  color: var(--muted);
  font-size: 12.5px;
}

/* ============ 登录人水印 ============ */
#screen-watermark {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
  background-repeat: repeat;
  background-position: 0 0;
  user-select: none;
}

/* ============ toast ============ */
#toast-root {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 220px;
  max-width: 380px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #16213b;
  color: #eef3fc;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 14px 34px rgba(15, 35, 70, 0.24);
  animation: toastIn 0.22s ease both;
}
.toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.toast-success svg {
  color: #7fd8b8;
}
.toast-error {
  background: #4a201d;
}
.toast-error svg {
  color: #f0a8a2;
}
.toast.leaving {
  animation: toastOut 0.2s ease both;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ============ 课表 ============ */
.week-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.week-label {
  min-width: 190px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 650;
}
.week-label span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 1px;
}
.week-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  min-width: 900px;
}
.week-day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 250px;
  overflow: hidden;
}
.week-day.today {
  border-color: rgba(31, 79, 158, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 79, 158, 0.07);
}
.week-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.week-day-head .dow {
  font-size: 12px;
  font-weight: 650;
}
.week-day.today .dow {
  color: var(--brand);
}
.week-day-head .date {
  font-size: 11px;
  color: var(--muted);
}
.week-day.today .date {
  color: var(--brand);
  font-weight: 600;
}
.week-day-body {
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 200px;
}
.lesson-card {
  position: relative;
  padding: 8px 10px 9px;
  border-radius: 9px;
  background: var(--brand-softer);
  border-left: 3px solid var(--brand);
  cursor: pointer;
  transition: 0.15s;
}
.lesson-card:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
}
.lesson-card .lc-time {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.2px;
}
.lesson-card .lc-name {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lesson-card .lc-meta {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lesson-card.cancelled {
  opacity: 0.55;
  border-left-color: var(--gray);
  background: var(--gray-soft);
}
.lesson-card.cancelled .lc-time {
  color: var(--gray);
}
.lesson-card.cancelled .lc-name {
  text-decoration: line-through;
}
.day-add {
  border: 1px dashed var(--line-strong);
  background: transparent;
  height: 30px;
  border-radius: 8px;
  color: var(--faint);
  font-size: 16px;
  line-height: 1;
  transition: 0.15s;
}
.day-add:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-softer);
}
.week-empty {
  padding: 22px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--faint);
}

/* ============ 考勤 ============ */
.att-lessons {
  display: grid;
  gap: 10px;
}
.att-lesson {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: 0.15s;
}
.att-lesson:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.att-lesson-time {
  width: 96px;
  flex-shrink: 0;
}
.att-lesson-time strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.att-lesson-time span {
  font-size: 11px;
  color: var(--muted);
}
.att-lesson-main {
  flex: 1;
  min-width: 0;
}
.att-lesson-main strong {
  font-size: 13.5px;
  font-weight: 650;
}
.att-lesson-main p {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}
.att-lesson-side {
  display: flex;
  align-items: center;
  gap: 10px;
}
.att-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.att-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--surface-3);
  font-size: 12px;
  color: var(--ink-2);
}
.att-chip strong {
  font-size: 13px;
  font-weight: 700;
}
.att-chip.green {
  background: var(--green-soft);
  color: var(--green);
}
.att-chip.amber {
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.att-chip.blue {
  background: var(--info-soft);
  color: var(--info);
}
.att-chip.red {
  background: var(--danger-soft);
  color: var(--danger);
}
.att-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.att-sheet-title {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 4px;
}
.att-sheet-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.status-group {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}
.status-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
  transition: 0.14s;
}
.status-btn:hover {
  border-color: var(--faint);
}
.status-btn:disabled,
.remark-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.status-btn.active[data-status="出勤"] {
  background: var(--green-soft);
  border-color: rgba(15, 122, 82, 0.35);
  color: var(--green);
  font-weight: 650;
}
.status-btn.active[data-status="迟到"] {
  background: var(--gold-soft);
  border-color: rgba(162, 105, 13, 0.35);
  color: var(--gold-deep);
  font-weight: 650;
}
.status-btn.active[data-status="请假"] {
  background: var(--info-soft);
  border-color: rgba(47, 95, 168, 0.3);
  color: var(--info);
  font-weight: 650;
}
.status-btn.active[data-status="缺勤"] {
  background: var(--danger-soft);
  border-color: rgba(180, 66, 58, 0.3);
  color: var(--danger);
  font-weight: 650;
}
.remark-input {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12px;
  outline: none;
}
.remark-input:focus {
  border-color: var(--brand);
  background: var(--surface);
}

/* ============ 班级 ============ */
.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.class-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: 0.18s;
  display: flex;
  flex-direction: column;
}
.class-card:hover {
  box-shadow: 0 12px 30px rgba(20, 38, 72, 0.07);
  transform: translateY(-1px);
}
.class-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.class-card-head h3 {
  margin: 0 0 5px;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
}
.class-course {
  font-size: 11.5px;
  color: var(--muted);
}
.class-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.class-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.class-meta svg {
  width: 13px;
  height: 13px;
  opacity: 0.65;
  flex-shrink: 0;
}
.class-progress {
  margin-top: auto;
}
.class-progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.class-progress-top strong {
  color: var(--ink-2);
}
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #4c8ed6);
}
.progress i.warn {
  background: linear-gradient(90deg, #c9922c, #e7bb63);
}
.class-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.class-foot .btn {
  flex: 1;
}
.class-form-cards {
  display: grid;
  gap: 14px;
}
.class-form-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface-2, #f8fafc);
}
.class-form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.class-form-card-head > strong {
  font-size: 13.5px;
  font-weight: 650;
}
.class-form-card .form-grid {
  gap: 12px 14px;
}
.session-editor {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.session-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
}
.session-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.session-row {
  display: grid;
  grid-template-columns: 132px 76px minmax(86px, 1fr) auto minmax(86px, 1fr) auto 34px;
  align-items: center;
  gap: 8px;
}
.session-row select,
.session-row input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}
.session-row select {
  appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2372807c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.session-row input:focus,
.session-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 79, 158, 0.1);
}
.session-row .icon-btn {
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.session-hours {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--brand);
  white-space: nowrap;
}
.session-summary {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(31, 79, 158, 0.06);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.session-summary strong {
  color: var(--brand);
}
.class-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .session-row {
    grid-template-columns: 1fr 1fr;
  }
  .session-row [data-session="session_date"] {
    grid-column: span 2;
  }
  .session-row .amount-muted {
    display: none;
  }
  .session-row [data-session-hours] {
    justify-self: end;
  }
  .session-row .icon-btn {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

/* ============ 新建排课 ============ */
.schedule-builder {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sb-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
}
.sb-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sb-section-head strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}
.sb-section-head span {
  font-size: 11.5px;
  color: var(--faint);
}
.sb-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sb-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface-2, #f8fafc);
}
.sb-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sb-row-head strong {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}
.sb-row .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sb-row .form-grid .span-2 {
  grid-column: span 2;
}
.sb-time {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-time input {
  flex: 1;
  min-width: 0;
}
.sb-time span {
  flex: none;
  font-size: 12px;
  color: var(--muted);
}
.sb-add-row {
  margin-top: 12px;
}
.sb-summary {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--brand);
}
.sb-group-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}
@media (max-width: 900px) {
  .sb-row .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .sb-row .form-grid {
    grid-template-columns: 1fr;
  }
  .sb-row .form-grid .span-2 {
    grid-column: span 1;
  }
  .sb-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* ============ 学员详情 ============ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
  border: none;
  background: none;
  padding: 0;
}
.back-link:hover {
  color: var(--brand);
}
.back-link svg {
  width: 15px;
  height: 15px;
}
.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  flex-wrap: wrap;
}
.detail-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e7c579, #c08a22);
  color: #33230a;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.detail-main {
  flex: 1;
  min-width: 220px;
}
.detail-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-name h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
}
.detail-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.detail-info span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.detail-info svg {
  width: 13px;
  height: 13px;
  opacity: 0.65;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.mini-stat {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.mini-stat span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.mini-stat strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.mini-stat strong.danger {
  color: var(--danger);
}
.mini-stat strong.ok {
  color: var(--green);
}
.detail-tabs {
  margin-top: 20px;
}
.admission-block {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.admission-block:last-child {
  margin-bottom: 0;
}
.admission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.admission-head strong {
  font-size: 13.5px;
  font-weight: 650;
}
.admission-head span {
  font-size: 11.5px;
  color: var(--muted);
}
.admission-nums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 10px;
}
.admission-nums div span {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
  margin-bottom: 2px;
}
.admission-nums div strong {
  font-size: 14px;
  font-weight: 650;
}
.admission-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.payment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.payment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.payment-row:last-child {
  border-bottom: none;
}
.payment-row .p-main {
  flex: 1;
  color: var(--ink-2);
}
.payment-row .p-main span {
  color: var(--muted);
  margin-left: 8px;
}

/* ============ 通知 ============ */
.notice-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 12px;
}
.notice-card:last-child {
  margin-bottom: 0;
}
.notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.notice-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
}
.notice-date {
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
}
.notice-content {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.85;
  white-space: pre-wrap;
}
.notice-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--faint);
}
.notice-reads {
  color: var(--muted);
}

/* 登录后的未读通知弹窗：手机上字号放大，方便年纪偏大的员工阅读 */
.notice-popup h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}
.notice-popup-meta {
  margin-bottom: 12px;
  font-size: 11.5px;
  color: var(--faint);
}
.notice-popup .notice-content {
  font-size: 13.5px;
  line-height: 1.9;
}
@media (max-width: 640px) {
  .notice-popup .notice-content {
    font-size: 15px;
    line-height: 1.95;
  }
}

/* ============ 设置 ============ */
.settings-section {
  padding: 20px 22px;
}
.settings-section + .settings-section {
  border-top: 1px solid var(--line);
}
.settings-section h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 650;
}
.settings-section .desc {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.settings-form {
  max-width: 560px;
}
.user-list {
  display: flex;
  flex-direction: column;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.user-row:last-child {
  border-bottom: none;
}
.user-row-main {
  flex: 1;
  min-width: 0;
}
.user-row-main strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.user-row-main span {
  font-size: 11.5px;
  color: var(--muted);
}
.user-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.simple-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.simple-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.simple-row:last-child {
  border-bottom: none;
}
.simple-row .grow {
  flex: 1;
  min-width: 0;
}
.simple-row .muted {
  color: var(--muted);
  font-size: 11.5px;
}

/* ============ 收据 ============ */
.receipt-wrap {
  padding: 2px;
  overflow-x: auto;
}
.receipt-sheet {
  min-width: 980px;
  background: #fff;
  padding: 22px 26px 18px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  color: #1b2333;
}
.rf-head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.rf-logo {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  padding-bottom: 12px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.rf-logo-part {
  background: #1a4f9c;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  padding: 7px 10px 9px;
}
.rf-logo-part2 {
  position: relative;
  margin-left: 3px;
  padding-right: 14px;
}
.rf-logo-part2 sup {
  font-size: 9px;
  letter-spacing: 0;
  vertical-align: top;
}
.rf-logo-part2 i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 7px;
  background: repeating-linear-gradient(90deg, #f7c600 0 5px, transparent 5px 7px);
}
.rf-headline {
  flex: 1;
  min-width: 0;
}
.rf-title {
  margin: 0;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 6px;
  text-indent: 6px;
}
.rf-rule {
  height: 5px;
  margin: 8px 0 6px;
  background:
    linear-gradient(#1b2333, #1b2333) left top / 100% 3px no-repeat,
    linear-gradient(#1b2333, #1b2333) left bottom / 100% 1px no-repeat;
}
.rf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0f1a2b;
}
.rf-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 6px;
  font-size: 15.5px;
  color: #0f1a2b;
}
.rf-table th,
.rf-table td {
  border: 1px solid #1b2333;
  padding: 10px 11px;
  line-height: 1.5;
  vertical-align: middle;
  word-break: break-word;
}
.rf-table th {
  font-weight: 600;
  text-align: center;
  color: #1f2b3f;
  background: #eef3fa;
  font-size: 14px;
}
.rf-table td {
  font-weight: 600;
}
.rf-c1 { width: 104px; }
.rf-c2 { width: 150px; }
.rf-c3 { width: 70px; }
.rf-c4 { width: 116px; }
.rf-c5 { width: 88px; }
.rf-c6 { width: 150px; }
.rf-c7 { width: 212px; }
.rf-notice {
  vertical-align: top;
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  color: #26324a;
}
.rf-notice-title {
  margin-bottom: 6px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}
.rf-notice ol {
  margin: 0;
  padding-left: 16px;
}
.rf-notice li {
  margin-bottom: 5px;
}
.rf-amount {
  text-align: right;
  font-size: 19px;
  font-weight: 700;
}
.rf-upper {
  letter-spacing: 1px;
}
.rf-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.rf-note {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed #dee5f0;
  font-size: 11.5px;
  color: #7d8a9d;
}
.modal-receipt {
  width: min(1080px, 100%);
}
.modal-receipt .modal-body {
  padding: 8px 10px 4px;
}
.receipt-image-wrap {
  text-align: center;
}
.receipt-image-wrap img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 27, 50, 0.14);
}
.receipt-image-tip {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ============ 响应式 ============ */
@media (max-width: 1240px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .class-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .shell.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(8, 16, 36, 0.25);
  }
  .shell.nav-open .sidebar-backdrop {
    display: block;
  }
  .main {
    margin-left: 0;
  }
  .menu-btn {
    display: inline-grid;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
  .login-form-side {
    min-height: 100vh;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 16px;
    height: 68px;
  }
  .topbar-right .date-chip,
  .topbar-right .btn {
    display: none;
  }
  .view {
    padding: 16px 14px 56px;
  }
  .welcome {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .welcome h2 {
    font-size: 19px;
  }
  .welcome-actions {
    width: 100%;
  }
  .welcome-actions .btn {
    flex: 1;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar-left,
  .toolbar-right {
    width: 100%;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: span 1;
  }
  .form-section-title {
    grid-column: span 1;
  }
  .detail-head {
    padding: 18px;
  }
  .detail-actions {
    width: 100%;
  }
  .detail-actions .btn {
    flex: 1;
  }
  .admission-nums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .att-lesson {
    flex-wrap: wrap;
    gap: 10px;
  }
  .att-lesson-side {
    width: 100%;
    justify-content: flex-end;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: calc(100vh - 24px);
  }
  .modal-head {
    padding: 16px 18px 0;
  }
  .modal-body {
    padding: 16px 18px 18px;
  }
  .modal-foot {
    padding: 12px 18px 16px;
  }
  .page-head h1 {
    font-size: 17px;
  }
  .page-head p {
    display: none;
  }
  .login-card {
    padding: 30px 24px 24px;
  }
  .login-form-side {
    padding: 24px 16px;
  }
  .login-copyright {
    position: relative;
    bottom: auto;
    margin-top: 22px;
  }
}

/* ============ 报名缴费 ============ */
.enroll-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 2px 0 18px;
}
.invite-enroll-banner {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 16px;
  padding: 11px 14px;
  border: 1px solid rgba(31, 79, 158, 0.18);
  border-radius: 12px;
  background: var(--brand-soft, #e8effb);
  font-size: 12.5px;
  color: var(--ink-2);
}
.invite-enroll-banner strong {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.invite-enroll-banner span {
  color: var(--ink);
  font-weight: 600;
}
.invite-enroll-banner em {
  font-style: normal;
  color: var(--muted);
}
.invite-enroll-banner.is-done {
  border-color: var(--line);
  background: var(--surface-2, #f5f7fb);
}
.invite-enroll-banner.is-done strong {
  color: var(--muted);
}
.enroll-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--brand);
}
.enroll-head h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  letter-spacing: -0.3px;
}
.enroll-head p {
  margin: 0;
  max-width: 660px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.enroll-head-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--faint);
}
.enroll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.enroll-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.enroll-side {
  position: sticky;
  top: 18px;
}
.enroll-step {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--line-strong);
  letter-spacing: 1px;
}
.enroll-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
}
.enroll-readout > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.enroll-readout span {
  font-size: 11px;
  color: var(--muted);
}
.enroll-readout strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.enroll-readout em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--faint);
  line-height: 1.5;
}
.pay-styles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pay-style {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 7px;
  row-gap: 1px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  transition: 0.16s;
}
.pay-style:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-softer);
  box-shadow: 0 0 0 3px rgba(31, 79, 158, 0.08);
}
.pay-style input[type='radio'] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand);
}
.pay-style-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.pay-style-hint {
  grid-column: 2;
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .pay-styles {
    gap: 6px;
  }
  .pay-style {
    column-gap: 6px;
    padding: 7px 8px;
  }
  .pay-style-name {
    font-size: 12.5px;
  }
  .pay-style-hint {
    display: none;
  }
}
.enroll-summary h3 {
  margin: 7px 0 12px;
  font-size: 17px;
}
.summary-total {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0 18px;
}
.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.summary-list span {
  color: var(--muted);
}
.summary-list strong {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.summary-list strong.ok {
  color: var(--green);
}
.summary-list strong.danger {
  color: var(--danger);
}
.enroll-submit {
  width: 100%;
  height: 44px;
  font-size: 14px;
}
.enroll-summary .field-hint {
  margin-top: 12px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
}
.profile-grid > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.profile-grid span {
  font-size: 11px;
  color: var(--muted);
}
.profile-grid strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
  .enroll-layout {
    grid-template-columns: 1fr;
  }
  .enroll-side {
    position: static;
  }
}
@media (max-width: 760px) {
  .enroll-readout {
    grid-template-columns: 1fr;
  }
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .enroll-head {
    align-items: flex-start;
  }
  .enroll-head-meta {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 480px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  #screen-watermark {
    display: none !important;
  }
  body.printing {
    background: #fff;
  }
  body.printing > * {
    visibility: hidden;
  }
  body.printing #modal-root,
  body.printing #modal-root * {
    visibility: visible;
  }
  body.printing .modal-backdrop {
    position: static;
    display: block;
    padding: 0;
    background: none;
    opacity: 1;
  }
  body.printing .modal {
    width: 100%;
    max-width: none;
    max-height: none;
    box-shadow: none;
    background: transparent;
  }
  body.printing .modal-head,
  body.printing .modal-foot,
  body.printing .no-print {
    display: none !important;
  }
  body.printing .modal-body {
    padding: 0;
    overflow: visible;
  }
  body.printing .receipt-sheet {
    min-width: 0;
    padding: 0;
  }
  body.printing .receipt-wrap {
    overflow: visible;
  }
  @page {
    size: A4 landscape;
    margin: 8mm;
  }
}

/* ---------- 院校资料库 ---------- */
.college-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.college-list-panel,
.college-detail {
  overflow: hidden;
}

.college-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 320px;
  max-height: calc(100vh - 230px);
  padding: 8px;
  overflow-y: auto;
}

.college-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
}

.college-item:hover {
  background: var(--surface-2);
}

.college-item.active {
  background: var(--brand-soft);
  border-color: rgba(31, 79, 158, 0.18);
  color: var(--brand-deep);
}

.college-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.college-item-main strong {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.college-item-main span {
  font-size: 12px;
  color: var(--muted);
}

.college-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.college-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.catalog-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.catalog-head h4 {
  margin: 0;
  font-size: 14px;
}

.catalog-head span {
  font-size: 12px;
  color: var(--muted);
}

.catalog-add {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.catalog-add input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
}

.catalog-add input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-softer);
}

.catalog-add .btn {
  flex: none;
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}

.catalog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.catalog-row > span:first-child {
  font-size: 13px;
}

.catalog-row-actions {
  display: flex;
  flex: none;
  gap: 10px;
}

.catalog-empty {
  margin: 4px 0;
  color: var(--faint);
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .college-layout {
    grid-template-columns: 1fr;
  }

  .college-list {
    max-height: 260px;
  }
}

/* leaderboard */
.table .rank-col {
  width: 70px;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--surface-2, #f1f4fb);
  color: var(--muted);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #f7d774, #e0a92f);
  color: #5c3d00;
  box-shadow: 0 4px 10px rgba(224, 169, 47, 0.35);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #e6ebef, #b9c4cc);
  color: #3c4a52;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #f0c9a6, #cf8f5a);
  color: #5a3214;
}

.table tbody tr.rank-me td {
  background: var(--brand-soft);
}

.table tbody tr.rank-me td:first-child {
  box-shadow: inset 3px 0 0 var(--brand);
}

.table td .tag {
  margin-left: 6px;
}

/* leaderboard · TOP5 醒目卡片 */
.rank-panel .panel-head {
  justify-content: center;
  padding: 22px 18px 18px;
  text-align: center;
}

.rank-panel .panel-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 1px;
}

.rank-head-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.rank-head-icon svg {
  width: 18px;
  height: 18px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px 18px 20px;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-2);
}

.rank-item.top-1 {
  background: linear-gradient(120deg, #fff6dc, #ffe8b4);
  border-color: #f0d18a;
}

.rank-item.top-2 {
  background: linear-gradient(120deg, #f9fbfc, #e6edf1);
  border-color: #d3dde4;
}

.rank-item.top-3 {
  background: linear-gradient(120deg, #fdf4ec, #f9e3d0);
  border-color: #eed2b8;
}

.rank-item.rank-me {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.rank-item .rank-badge {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border-radius: 12px;
  font-size: 16px;
}

.rank-main {
  min-width: 0;
  text-align: center;
}

.rank-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.rank-sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.rank-metrics {
  display: flex;
  align-items: center;
  gap: 30px;
}

.rank-metric {
  min-width: 76px;
  text-align: center;
}

.rank-metric strong {
  display: block;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.rank-metric span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.rank-metric.rank-amount strong {
  color: var(--brand);
}

@media (max-width: 720px) {
  .rank-panel .panel-head {
    padding: 16px 14px 14px;
  }
  .rank-panel .panel-title {
    font-size: 19px;
  }
  .rank-list {
    padding: 12px;
    gap: 9px;
  }
  .rank-item {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "badge main"
      "metrics metrics";
    gap: 10px 12px;
    padding: 13px 14px;
    border-radius: 12px;
  }
  .rank-item .rank-badge {
    grid-area: badge;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .rank-main {
    grid-area: main;
    text-align: left;
  }
  .rank-name {
    font-size: 17px;
  }
  .rank-sub {
    font-size: 13px;
  }
  .rank-metrics {
    grid-area: metrics;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    padding-top: 9px;
    border-top: 1px dashed var(--line);
  }
  .rank-metric {
    min-width: 0;
    text-align: center;
  }
  .rank-metric strong {
    font-size: 20px;
  }
  .rank-metric span {
    font-size: 12.5px;
  }
}

/* 员工考勤 · 定位打卡 */
.checkin-hero {
  overflow: clip;
}
.checkin-clock {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.05;
  margin: 4px 0 8px;
  font-variant-numeric: tabular-nums;
}
.checkin-hero p {
  max-width: 620px;
  line-height: 1.6;
}
.checkin-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.checkin-actions .btn {
  min-width: 132px;
}
.checkin-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.checkin-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}
.checkin-actions .btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .checkin-clock {
    font-size: 36px;
  }
  .checkin-actions {
    width: 100%;
  }
  .checkin-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* ============ 手机端可读性：放大字号与触控区域 ============ */
@media (max-width: 720px) {
  :root {
    --ink: #101625;
    --ink-2: #2c3548;
    --muted: #4d5a70;
    --faint: #64748b;
    --line: #d9e0ec;
    --line-strong: #c4cfdf;
  }
  body {
    font-size: 16px;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .page-head h1 {
    font-size: 21px;
  }
  .view {
    padding: 18px 16px 64px;
  }

  .nav-item {
    height: 52px;
    gap: 12px;
    font-size: 16px;
  }
  /* 手机端菜单顺序：报名收费紧随工作台，其余保持原顺序 */
  .nav-item[data-route='dashboard'] {
    order: -2;
  }
  .nav-item[data-route='finance'] {
    order: -1;
  }
  .nav-icon,
  .nav-icon svg {
    width: 20px;
    height: 20px;
  }

  .btn {
    height: 46px;
    padding: 0 18px;
    font-size: 15px;
    border-radius: 11px;
  }
  .btn-sm {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
  .link-btn,
  .link-danger {
    font-size: 15px;
    padding: 6px 2px;
  }

  .welcome h2 {
    font-size: 22px;
  }
  .welcome p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(240, 246, 255, 0.92);
  }
  .welcome-eyebrow {
    font-size: 13px;
  }

  table.table {
    display: block;
    font-size: 15px;
  }
  table.table thead {
    display: none;
  }
  table.table tbody {
    display: block;
  }
  table.table tbody tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  table.table tbody tr:last-child {
    border-bottom: 0;
  }
  table.table tbody td {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: auto;
    padding: 4px 2px;
    border: 0;
    text-align: left;
  }
  table.table tbody td::before {
    content: attr(data-label);
    flex: 0 0 76px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
  }
  table.table tbody td:not([data-label])::before {
    display: none;
  }
  table.table tbody td.actions {
    padding-top: 8px;
    white-space: normal;
  }
  table.table .num {
    text-align: left;
  }
  table.table tbody tr.clickable:hover td {
    background: transparent;
  }
  .cell-sub {
    font-size: 14px;
    color: var(--muted);
  }
  .panel-sub {
    font-size: 14px;
  }
  .table-wrap {
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  .badge,
  .tag {
    height: 26px;
    font-size: 13px;
  }
  .badge-gray {
    background: #e9edf4;
    color: #4a5568;
  }
  .seg-btn {
    padding: 9px 14px;
    font-size: 14.5px;
  }

  .stat-label {
    font-size: 14px;
  }
  .stat-value {
    font-size: 34px;
  }
  .stat-value small {
    font-size: 16px;
  }
  .stat-sub {
    font-size: 14px;
    color: var(--muted);
  }

  .field > span {
    margin-bottom: 7px;
    font-size: 14.5px;
  }
  .field input,
  .field select,
  .field textarea {
    height: 48px;
    font-size: 16px;
  }
  .field textarea {
    min-height: 110px;
    line-height: 1.65;
  }
  .field-hint,
  .form-error {
    font-size: 13px;
  }

  .modal-head h3 {
    font-size: 20px;
  }
  .modal-body {
    font-size: 16px;
  }
  .empty-title {
    font-size: 16px;
  }
  .empty-desc {
    font-size: 14px;
  }
}

/* ============ 弹层选择（替代原生 datalist，手机端可用） ============ */
input.picker-input {
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2372807c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.picker-search {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
}
.picker-search:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.picker-list {
  margin-top: 10px;
  max-height: min(52vh, 400px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.picker-row {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.picker-row:last-child {
  border-bottom: 0;
}
.picker-row:hover {
  background: var(--brand-softer);
}
.picker-row.is-active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-softer);
}
.picker-custom {
  color: var(--brand);
  font-weight: 600;
}
.picker-empty {
  margin: 0;
  padding: 20px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 720px) {
  .picker-search {
    height: 48px;
    font-size: 16px;
  }
  .picker-list {
    max-height: 56vh;
  }
  .picker-row {
    min-height: 52px;
    font-size: 16px;
  }
}

/* ============ 费用报销 ============ */
.rb-reason {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rb-money {
  font-weight: 700;
}
.rb-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.rb-amount {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.rb-done {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #bfe3c8;
  background: #eef9f1;
  color: #23603a;
}
.rb-done svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: #2f8a52;
}
.rb-done strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}
.rb-done span {
  display: block;
  font-size: 13px;
  color: #2f7a4c;
}
.rb-done span + span {
  margin-top: 3px;
}
.rb-done.is-rejected {
  border-color: #f0c3c0;
  background: #fdf1f0;
  color: #7a2622;
}
.rb-done.is-rejected svg {
  color: #c0392b;
}
.rb-done.is-rejected span {
  color: #8a3830;
}
.reimbursement-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.reimbursement-info span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.reimbursement-info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.rb-block {
  margin-top: 20px;
}
.rb-block h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.rb-block p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.bill-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bill-gallery a {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.bill-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bill-gallery a.is-failed {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bill-gallery a.is-failed img {
  display: none;
}
.bill-tile-failed {
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}
.bill-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: var(--surface-2);
  border-radius: 12px;
}
.bill-preview img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}
.bill-preview-failed {
  margin: 0;
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}
.bill-upload {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.bill-add {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 110px;
  height: 110px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  background: var(--surface-2);
}
.bill-add:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.bill-add svg {
  width: 24px;
  height: 24px;
}
.bill-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.bill-thumb {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bill-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bill-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(22, 28, 42, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.bill-thumb button svg {
  width: 14px;
  height: 14px;
}
.approval-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--brand-softer);
  border: 1px solid #d8e5fa;
  color: var(--brand-deep);
  font-size: 13px;
}
.approval-preview strong {
  font-weight: 700;
}
.approval-timeline {
  padding: 6px 0 0 4px;
}
.approval-node {
  position: relative;
  padding: 0 0 20px 36px;
}
.approval-node::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.approval-node:last-child::before {
  display: none;
}
.approval-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #fff;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.approval-dot svg {
  width: 15px;
  height: 15px;
}
.approval-node.done .approval-dot {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}
.approval-node.rejected .approval-dot {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}
.approval-node.current .approval-dot {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-deep);
}
.approval-node.withdrawn .approval-dot {
  background: var(--gray-soft);
  border-color: var(--gray);
  color: var(--gray);
}
/* 付款驳回后重新提交，时间线用轮次分隔 */
.approval-node.round-head .approval-dot {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}
.approval-node.round-head .approval-body strong {
  color: var(--brand);
}
.approval-body strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}
.approval-body em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.approval-body p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 8px 10px;
  white-space: pre-wrap;
  word-break: break-word;
}
.rb-step-state {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}
.approval-node.done .rb-step-state {
  color: var(--green);
}
.approval-node.rejected .rb-step-state {
  color: var(--danger);
}
.approval-node.current .rb-step-state {
  color: var(--gold-deep);
}
.rb-approve-summary {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
}
.rb-approve-summary .rb-amount {
  margin: 6px 0 2px;
}
@media (max-width: 720px) {
  .reimbursement-info {
    grid-template-columns: 1fr 1fr;
  }
  .rb-amount {
    font-size: 24px;
  }
  .rb-reason {
    max-width: 170px;
  }
}

/* ============ 在线收款码 ============ */
.pay-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.pay-code-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.pay-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pay-code-head strong {
  font-size: 14px;
  font-weight: 650;
}
.pay-code-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  overflow: hidden;
}
.pay-code-preview img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.pay-code-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 12.5px;
}
.pay-code-empty svg {
  width: 28px;
  height: 28px;
}
.pay-code-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pay-code-actions .btn-primary {
  margin-left: auto;
}
.pay-code-upload {
  cursor: pointer;
}
.pay-code-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}
.pay-code-note .field {
  margin-bottom: 10px;
}
@media (max-width: 720px) {
  .pay-code-preview {
    min-height: 160px;
  }
}

/* ============ 收款码 ============ */
.qr-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
}
.qr-img {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}
.qr-img img {
  display: block;
  width: 100%;
  max-width: 240px;
  max-height: 260px;
  object-fit: contain;
}
.qr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--faint);
  font-size: 12.5px;
}
.qr-empty svg {
  width: 26px;
  height: 26px;
}
.qr-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  white-space: pre-wrap;
}
@media (max-width: 720px) {
  .qr-img img {
    max-height: 220px;
  }
}

/* 月度课时确认 */
.review-month-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.review-month-picker select {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 28px 0 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}
.review-stats {
  margin-top: 0;
  margin-bottom: 18px;
}
.review-table td {
  vertical-align: middle;
}
.review-feedback {
  max-width: 260px;
  font-size: 13px;
  line-height: 1.45;
}
.review-feedback-danger {
  color: var(--danger);
}
.review-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px;
  margin-bottom: 16px;
}
.review-eyebrow {
  display: block;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.review-hours {
  margin: 10px 0 6px;
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.review-hours small {
  margin-left: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.review-meta {
  font-size: 13px;
  color: var(--muted);
}
.review-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.review-inline-note {
  font-size: 12.5px;
}
.review-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 18px;
  border-bottom: 1px dashed var(--line);
}
.review-detail-total {
  margin-top: 8px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}
.review-detail-total small {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.review-detail-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12.5px;
  text-align: right;
}
.review-detail-table {
  margin-top: 16px;
}
.review-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.review-note strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
.review-note p {
  margin: 0 0 6px;
  white-space: pre-wrap;
  line-height: 1.6;
}
.review-note span {
  font-size: 12px;
  color: var(--muted);
}
.review-note.is-danger {
  background: var(--danger-soft);
  border-color: #f0c9c5;
  color: var(--danger);
}
.review-note.is-info {
  background: var(--info-soft);
  border-color: #cdddf7;
  color: var(--info);
}
.review-handle-field {
  margin-top: 18px;
}
.review-handle-field textarea {
  min-height: 100px;
}
@media (max-width: 720px) {
  .review-stats {
    grid-template-columns: 1fr 1fr;
  }
  .review-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .review-hero-side {
    align-items: flex-start;
    text-align: left;
  }
  .review-hours {
    font-size: 46px;
  }
  .review-detail-head {
    flex-direction: column;
  }
  .review-detail-side {
    align-items: flex-start;
    text-align: left;
  }
  .review-feedback {
    max-width: none;
  }
  .review-month-picker {
    width: 100%;
  }
  .review-month-picker select {
    flex: 1;
  }
}

/* ============ 工作台 · 数据导出 ============ */
.dash-tabs {
  display: flex;
  margin-bottom: 18px;
}
.export-range {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.export-range .field {
  width: 210px;
}
.export-grid {
  display: grid;
  gap: 14px;
}
.export-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.export-card-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.export-card-icon svg {
  width: 22px;
  height: 22px;
}
.export-main {
  flex: 1;
  min-width: 0;
}
.export-main strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}
.export-main span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 720px) {
  .dash-tabs .segmented {
    width: 100%;
  }
  .dash-tabs .seg-btn {
    flex: 1;
    text-align: center;
  }
  .export-range .field {
    width: 100%;
  }
  .export-card {
    flex-wrap: wrap;
    padding: 18px;
  }
  .export-card .btn {
    width: 100%;
  }
}

/* ============ 试听课 ============ */
.trial-filter .field {
  width: 142px;
}
.trial-filter .field:last-child {
  width: 180px;
}
.trial-date-actions input {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}
.review-month-picker input[type="month"] {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}
.trial-qr {
  text-align: center;
}
.trial-qr-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.trial-qr-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.trial-qr-canvas {
  margin: 16px auto 10px;
  width: 260px;
  max-width: 100%;
}
.trial-qr-canvas canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.trial-qr-link {
  display: block;
  margin: 0 auto;
  padding: 8px 10px;
  max-width: 100%;
  border-radius: 8px;
  background: var(--surface-2, #f5f7fb);
  color: var(--ink-2);
  font-size: 12px;
  word-break: break-all;
  line-height: 1.5;
}
.trial-qr-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}
.trial-qr-warn {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--warning-soft, #fff7e6);
  color: var(--gold-deep, #8a5a00);
  font-size: 12px;
  line-height: 1.6;
}
.invite-regs {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.invite-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.invite-sec-head h4 {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.invite-sec-head span {
  font-size: 12.5px;
  color: var(--muted);
}
.invite-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.invite-item:last-child {
  border-bottom: 0;
}
.invite-item-main {
  flex: 1;
  min-width: 0;
}
.invite-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.invite-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-2, #f1f4f9);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.invite-tag.is-pending {
  background: var(--warning-soft, #fff7e6);
  color: var(--gold-deep, #8a5a00);
}
.invite-item-meta {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-item-time {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}
.invite-item-actions {
  flex: 0 0 auto;
}
.invite-empty {
  margin: 10px 0;
  padding: 14px;
  text-align: center;
  border-radius: 10px;
  background: var(--surface-2, #f5f7fb);
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 720px) {
  .trial-filter {
    align-items: flex-start;
  }
  .trial-filter .toolbar-left {
    width: 100%;
  }
  .trial-filter .field,
  .trial-filter .field:last-child {
    width: calc(50% - 5px);
  }
  .trial-filter .toolbar-right,
  .trial-filter .toolbar-right .btn {
    width: 100%;
  }
  .trial-date-actions {
    width: 100%;
  }
  .trial-date-actions input {
    flex: 1;
  }
  .trial-qr-canvas {
    width: 230px;
  }
}
