:root {
  --ink: #0d1b2a;
  --text: #33475b;
  --muted: #6b7f95;
  --faint: #93a5b8;
  --line: #e3eaf1;
  --line-soft: #eef3f8;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --brand: #0f6e56;
  --brand-dark: #0a4f3e;
  --brand-soft: #e6f4ef;
  --brand-line: #bfe3d6;
  --blue: #185fa5;
  --blue-soft: #e8f1fb;
  --amber: #a4610a;
  --amber-soft: #fdf3e0;
  --red: #b42318;
  --red-soft: #fdecea;
  --purple: #5b3fa8;
  --purple-soft: #f0ecfb;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 35, 60, 0.04), 0 6px 18px -12px rgba(15, 35, 60, 0.22);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0; }

/* ---------- 登录页 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-hero {
  background: linear-gradient(160deg, #0d3f33 0%, #0f6e56 55%, #15806a 100%);
  color: #eafaf3;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.035), 0 0 0 130px rgba(255, 255, 255, 0.02);
}
.auth-hero h1 {
  color: #fff;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-top: 28px;
}
.auth-hero .lead {
  color: rgba(234, 250, 243, 0.78);
  font-size: 14px;
  margin-top: 14px;
  max-width: 360px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.01em;
}
.auth-brand .dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.auth-points { position: relative; z-index: 2; margin-top: 34px; display: grid; gap: 14px; }
.auth-points li {
  list-style: none;
  color: rgba(234, 250, 243, 0.9);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.auth-points .tick {
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 11px;
  margin-top: 1px;
}
.auth-foot { font-size: 12px; color: rgba(234, 250, 243, 0.5); position: relative; z-index: 2; }

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--surface);
}
.auth-box { width: 100%; max-width: 350px; }
.auth-box h2 { font-size: 22px; letter-spacing: -0.02em; }
.auth-box .sub { color: var(--muted); font-size: 13px; margin-top: 6px; margin-bottom: 24px; }
.auth-switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 15px; }
.label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.label .req { color: var(--red); margin-left: 2px; }
.hint { font-size: 12px; color: var(--faint); margin-top: 5px; }

.input, .select, textarea.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.1);
}
.input::placeholder { color: #a9b8c8; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%236b7f95' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.input-lg { padding: 12px 14px; font-size: 15px; }
textarea.input { resize: vertical; min-height: 68px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.06s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { background: #f7fafc; border-color: #cfdbe6; }
.btn:active { transform: translateY(0.5px); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); }
.btn-danger { color: var(--red); border-color: #f3cfcb; background: #fff; }
.btn-danger:hover { background: var(--red-soft); border-color: #eeb8b2; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head h2 { font-size: 15px; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px;
  flex: 0 0 216px;
  background: #0c2b24;
  color: #cfe7de;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 20px 18px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar .brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex: 0 0 28px;
}
.sidebar .brand small { display: block; font-size: 11px; color: rgba(207, 231, 222, 0.55); font-weight: 400; }
.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-group {
  font-size: 11px;
  color: rgba(207, 231, 222, 0.4);
  padding: 14px 10px 6px;
  letter-spacing: 0.06em;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #b8d5cb;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255, 255, 255, 0.13); color: #fff; font-weight: 500; }
.nav a .ico { width: 15px; text-align: center; opacity: 0.8; font-size: 13px; }
.sidebar .foot {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: rgba(207, 231, 222, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar .foot a { color: rgba(207, 231, 222, 0.72); }
.sidebar .foot a:hover { color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 14px;
}
.topbar .title { font-size: 15px; font-weight: 600; color: var(--ink); }
.topbar .who { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.content { padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- 统计卡 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  position: relative;
  overflow: hidden;
}
.stat .k { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .v {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.stat .d { font-size: 12px; color: var(--faint); margin-top: 4px; }
.stat.accent { background: linear-gradient(180deg, #f2fbf7, #fff); border-color: var(--brand-line); }
.stat.accent .v { color: var(--brand-dark); }
.stat.warn { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #f3e0bc; }
.stat.warn .v { color: var(--amber); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px;
  background: #fafcfd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  color: var(--text);
}
.tbl tbody tr:hover { background: #fbfdfe; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .strong { color: var(--ink); font-weight: 600; }
.tbl .mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tbl .school { color: var(--ink); font-weight: 500; }
.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; }
.tbl-empty { padding: 44px 20px; text-align: center; color: var(--faint); font-size: 13px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}
.badge.plain::before { display: none; }
.b-pending { background: var(--amber-soft); color: var(--amber); }
.b-processing { background: var(--blue-soft); color: var(--blue); }
.b-completed { background: var(--brand-soft); color: var(--brand); }
.b-cancelled { background: #f1f4f7; color: #778a9c; }
.b-failed { background: var(--red-soft); color: var(--red); }
.b-unpaid { background: var(--red-soft); color: var(--red); }
.b-paid { background: var(--brand-soft); color: var(--brand); }
.b-refunded { background: var(--purple-soft); color: var(--purple); }
.b-prepaid { background: var(--blue-soft); color: var(--blue); }
.b-postpay { background: #f4f0e6; color: #8a6d2f; }
.b-on { background: var(--brand-soft); color: var(--brand); }
.b-off { background: #f1f4f7; color: #778a9c; }
.b-morning { background: #fdf1e3; color: #a4610a; }
.b-normal { background: #eef2f6; color: #557086; }

/* ---------- 筛选条 ---------- */
.filters {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: #fcfdfe;
}
.filters .f { display: flex; flex-direction: column; gap: 5px; }
.filters .f label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.filters .input, .filters .select { padding: 7px 10px; font-size: 13px; height: 34px; }
.filters .select { padding-right: 28px; }
.filters .grow { flex: 1; min-width: 160px; }
.sum-bar {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 11px 20px;
  background: #f7fafc;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}
.sum-bar b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sum-bar .sep { color: var(--line); }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.pager .pages { display: flex; gap: 4px; align-items: center; }
.pager .pg {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  font-size: 12.5px;
}
.pager .pg:hover { border-color: #cfdbe6; text-decoration: none; background: #f9fbfc; }
.pager .pg.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .pg.dis { opacity: 0.45; pointer-events: none; }

/* ---------- flash ---------- */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid;
}
.flash-ok { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-dark); }
.flash-error { background: var(--red-soft); border-color: #f3cfcb; color: var(--red); }
.flash .x { margin-left: auto; cursor: pointer; opacity: 0.5; }

/* ---------- 代理端 ---------- */
.agent-page { max-width: 560px; margin: 0 auto; padding: 0 16px 96px; }
.agent-head {
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.agent-head .t { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.agent-head .s { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--brand-line);
}
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .inner { max-width: 560px; margin: 0 auto; width: 100%; display: flex; }
.tabbar a {
  flex: 1;
  text-align: center;
  padding: 9px 0 10px;
  font-size: 11.5px;
  color: var(--faint);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.tabbar a .ico { font-size: 17px; line-height: 1; }
.tabbar a.on { color: var(--brand); font-weight: 500; }
.tabbar a:hover { text-decoration: none; }

.amount-box {
  background: linear-gradient(160deg, #0d3f33, #10634e);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}
.amount-box .k { font-size: 12.5px; color: rgba(255, 255, 255, 0.68); }
.amount-box .v {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-top: 2px;
}
.amount-box .v small { font-size: 15px; font-weight: 500; margin-right: 2px; opacity: 0.8; }
.amount-box .calc { text-align: right; font-size: 12px; color: rgba(255, 255, 255, 0.6); line-height: 1.7; }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards label {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: block;
  background: #fff;
}
.radio-cards label .n { font-size: 14px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.radio-cards label .d { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.radio-cards input:checked + label {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(15, 110, 86, 0.09);
}
.radio-cards input:checked + label .n { color: var(--brand-dark); }

.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 10px;
}
.order-card:hover { border-color: #cfdbe6; box-shadow: var(--shadow); text-decoration: none; }
.order-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-card .no { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.order-card .school { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-top: 3px; }
.order-card .meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 7px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.order-card .amt { font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.kv-list { display: grid; gap: 0; }
.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
}
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); flex: 0 0 auto; }
.kv .v { color: var(--ink); text-align: right; word-break: break-all; font-weight: 500; }
.kv .v.mono { font-family: var(--mono); font-size: 12.5px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 16px 22px;
  font-size: 12.5px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  margin-left: 5px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
}
.timeline li.done::before { border-color: var(--brand); background: var(--brand); }
.timeline li .tt { color: var(--ink); font-weight: 500; font-size: 13px; }
.timeline li .tm { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

.empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--faint);
}
.empty .ico { font-size: 30px; opacity: 0.35; margin-bottom: 10px; }
.empty .t { font-size: 13.5px; color: var(--muted); }
.empty .d { font-size: 12.5px; margin-top: 4px; }

/* ---------- 图表 ---------- */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 10px; }
.bar-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.bar-chart .bar {
  width: 100%;
  max-width: 26px;
  background: linear-gradient(180deg, #189b7c, #0f6e56);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: opacity 0.15s;
}
.bar-chart .col:hover .bar { opacity: 0.78; }
.bar-chart .lb { font-size: 10px; color: var(--faint); white-space: nowrap; min-height: 12px; line-height: 12px; }
.bar-chart .bar.zero { background: var(--line-soft); }

.rank-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line-soft);
}
.rank-row:last-child { border-bottom: none; }
.rank-row .idx {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--line-soft);
  color: var(--muted);
  font-size: 11px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.rank-row:first-child .idx { background: var(--brand); color: #fff; }
.rank-row .nm { min-width: 0; }
.rank-row .nm .t {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-row .nm .track { height: 3px; background: var(--line-soft); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.rank-row .nm .track i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.rank-row .val { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; font-size: 13px; }
.rank-row .val small { color: var(--faint); font-weight: 400; font-size: 11.5px; display: block; text-align: right; }

/* ---------- 工具类 ---------- */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 600; color: var(--ink); }
.mono { font-family: var(--mono); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; }
.gap-grid { display: grid; gap: 16px; }
.grid-2col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.scroll-x { overflow-x: auto; }
.pill-tabs { display: flex; gap: 4px; background: #eef3f8; padding: 3px; border-radius: 8px; }
.pill-tabs a {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}
.pill-tabs a.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(15,35,60,0.06); }
.pill-tabs a:hover { text-decoration: none; color: var(--ink); }

details.disclose summary {
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 0;
}
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose summary:hover { color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-2col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { min-height: 100vh; padding: 32px 22px; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 60;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  }
  .sidebar.open { transform: translateX(0); }
  .scrim {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 40, 0.35);
    z-index: 55;
    display: none;
  }
  .scrim.on { display: block; }
  .menu-btn { display: inline-flex !important; }
  .content { padding: 16px 14px 40px; }
  .topbar { padding: 0 14px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
  .menu-btn { display: none !important; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px 13px; }
  .stat .v { font-size: 20px; }
  .filters { padding: 12px 14px; }
  .filters .f { flex: 1 1 140px; }
  .card-head { padding: 14px; }
  .card-body { padding: 15px; }
  .sum-bar { padding: 10px 14px; gap: 12px; font-size: 12px; }
  .tbl th, .tbl td { padding: 10px 11px; }
  .pager { padding: 12px 14px; }
  .amount-box { padding: 15px 16px; }
  .amount-box .v { font-size: 26px; }
}

/* ---------- 模态框 ---------- */
dialog.modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  width: min(400px, calc(100vw - 32px));
  box-shadow: 0 18px 50px -18px rgba(10, 30, 50, 0.4);
  color: var(--text);
  background: var(--surface);
}
dialog.modal::backdrop { background: rgba(10, 25, 40, 0.38); }
dialog.modal .m-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
dialog.modal .m-head h3 { font-size: 15px; }
dialog.modal .m-body { padding: 18px; }
dialog.modal .m-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: #fbfcfd;
}

/* ---------- 仪表盘双列 ---------- */
.dash-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.dash-col { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1080px) { .dash-cols { grid-template-columns: 1fr; } }

/* ---------- 跑型卡片上的单价 ---------- */
.radio-cards label .p {
  display: block;
  margin-top: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.radio-cards label .p i {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
  margin-left: 3px;
}
.radio-cards label .p.unset { font-size: 12.5px; font-weight: 400; color: var(--faint); }
.radio-cards input:checked + label .p { color: var(--brand-dark); }

/* ---------- 表格分组表头 ---------- */
.tbl thead tr.sub th {
  background: #f7f9fb;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  padding-top: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.tbl thead tr.grp th { border-bottom: 1px solid var(--line-soft); }
.tbl thead tr.grp th.sep { border-left: 1px solid var(--line-soft); }
.tbl tbody tr td.sep { border-left: 1px solid var(--line-soft); }

/* ---------- 学校表单：跑型价格分组 ---------- */
.price-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.price-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px 2px;
  background: #fcfdfe;
}
.price-group .pg-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.price-group .field { margin-bottom: 12px; }
@media (max-width: 720px) { .price-groups { grid-template-columns: 1fr; } }

.tbl thead tr.grp th.grp-title {
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
