/* ==========================================================================
   管理端页面样式：工作台 / 学员管理 / 缴费中心 / 课时流水
   统一前缀：.dash-  .stu-  .pay-  .hours-
   ========================================================================== */

/* --------------------------------------------------------------------------
   通用小件
   -------------------------------------------------------------------------- */
.sk-value {
  display: block;
  width: 58%;
  height: 27px;
  margin: 14px 0 10px;
  border-radius: 8px;
}

.danger-text {
  color: var(--red) !important;
}
.danger-text:hover {
  background: var(--red-soft) !important;
  border-color: rgba(239, 68, 68, 0.24) !important;
}

/* ==========================================================================
   工作台
   ========================================================================== */
.dash-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.2s;
}
.dash-page.is-loading {
  gap: 16px;
}
.dash-page.is-refreshing {
  opacity: 0.86;
}

/* ---------- Hero ---------- */
.dash-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 46px);
  padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.6vw, 34px);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(680px 320px at 8% -30%, rgba(124, 124, 248, 0.5), transparent 64%),
    radial-gradient(520px 300px at 102% 118%, rgba(255, 122, 89, 0.28), transparent 66%),
    linear-gradient(128deg, #191a3d 0%, #23235a 52%, #1a1b42 100%);
  box-shadow: 0 28px 60px -38px rgba(18, 21, 48, 0.7);
}
.dash-hero-glow {
  position: absolute;
  right: -90px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(165, 180, 252, 0.22);
  pointer-events: none;
}
.dash-hero-glow::before,
.dash-hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(165, 180, 252, 0.14);
  inset: 52px;
}
.dash-hero-glow::after {
  inset: 118px;
  border-color: rgba(255, 154, 124, 0.24);
}
.dash-hero-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.dash-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: #aab0d6;
  letter-spacing: 0.03em;
  flex-wrap: wrap;
}
.dash-role-tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e5e7ff;
  background: rgba(139, 148, 255, 0.22);
  border: 1px solid rgba(165, 180, 252, 0.32);
}
.dash-role-tag.role-teacher {
  color: #b8f5e9;
  background: rgba(13, 148, 136, 0.24);
  border-color: rgba(45, 212, 191, 0.3);
}
.dash-role-tag.role-parent {
  color: #ffd6c8;
  background: rgba(255, 122, 89, 0.2);
  border-color: rgba(255, 154, 124, 0.32);
}
.dash-hero h1 {
  margin-top: 12px;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.24;
  font-weight: 780;
  letter-spacing: -0.025em;
  color: #f7f8ff;
}
.dash-hero p {
  margin-top: 9px;
  max-width: 560px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #b2b7dc;
}
.dash-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #c3c8e8;
  font-size: 10.5px;
  white-space: nowrap;
}
.dash-chip .icon {
  color: #9aa0cd;
}
.dash-chip.warn {
  color: #ffe0b3;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.26);
}
.dash-chip.warn .icon {
  color: #fcd34d;
}
.dash-chip.danger {
  color: #ffc8c8;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.26);
}
.dash-chip.danger .icon {
  color: #fca5a5;
}
.dash-hero-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.dash-quick-wrap {
  position: relative;
  z-index: 1;
  flex: none;
  width: min(320px, 36%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dash-quick-label {
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8b91bb;
  text-transform: uppercase;
}
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.dash-quick {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #eceefc;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.dash-quick:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.dash-quick-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(139, 148, 255, 0.22);
  color: #c7ccff;
}
.dash-quick.tone-teal .dash-quick-icon {
  background: rgba(45, 212, 191, 0.18);
  color: #8ff0e2;
}
.dash-quick.tone-coral .dash-quick-icon {
  background: rgba(255, 154, 124, 0.2);
  color: #ffb9a6;
}
.dash-quick.tone-amber .dash-quick-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}
.dash-quick-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-quick-arrow {
  flex: none;
  color: #7f86b4;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.18s, transform 0.18s;
}
.dash-quick:hover .dash-quick-arrow {
  opacity: 1;
  transform: none;
}
.dash-live-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 10px;
  color: #8fd8c1;
}
.dash-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}
.dash-live-hint.pulse {
  animation: dashLivePulse 0.9s ease;
}
@keyframes dashLivePulse {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* hero 骨架 / 错误 */
.dash-hero-skeleton {
  display: block;
  min-height: 196px;
  padding: 30px;
}
.dash-skeleton-line {
  height: 13px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  animation: dashShimmer 1.5s ease infinite;
}
.dash-skeleton-line + .dash-skeleton-line {
  margin-top: 13px;
}
.dash-skeleton-line.w-40 { width: 40%; }
.dash-skeleton-line.w-50 { width: 50%; }
.dash-skeleton-line.w-60 { width: 60%; }
.dash-skeleton-line.big {
  height: 30px;
  width: 46%;
  margin-top: 20px;
  border-radius: 10px;
}
@keyframes dashShimmer {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}
.dash-hero-error {
  display: block;
}
.dash-hero-error h1 {
  margin-top: 10px;
}
.dash-hero-error p {
  color: #b2b7dc;
}
.dash-hero-error .btn {
  color: var(--ink);
}

.dash-stat-skeleton {
  justify-content: flex-start;
  gap: 4px;
}
.dash-skeleton-pad {
  padding: 18px 20px 22px;
}

/* ---------- 主体布局 ---------- */
.dash-main {
  display: grid;
  grid-template-columns: minmax(0, 1.92fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}
.dash-col-main,
.dash-col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.dash-col-main > .card + .card,
.dash-col-side > .card + .card {
  margin-top: 0;
}

/* ---------- 趋势图 ---------- */
.dash-card-trend .card-body {
  padding: 6px 18px 16px;
}
.dash-chart-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}
.dash-chart {
  width: 100%;
  min-width: 480px;
  height: auto;
  display: block;
}
.dash-axis-text {
  fill: var(--muted-2);
  font-size: 9.5px;
  font-family: var(--font);
}
.dash-x-text {
  fill: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font);
}
.dash-x-sub {
  fill: var(--muted-2);
  font-size: 8.5px;
  font-family: var(--font);
}
.dash-chk-text {
  fill: #c2410c;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font);
}
.dash-bar-group rect {
  transition: opacity 0.18s;
}
.dash-bar-group:hover rect {
  opacity: 0.85;
}
.dash-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.dash-legend-bar {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(180deg, #8b83f6, #4f46e5);
}
.dash-legend-line {
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: #ff7a59;
  position: relative;
}
.dash-legend-line::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid #ff7a59;
  background: #fff;
}

/* ---------- 今日课程 ---------- */
.dash-session-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 20px 20px;
}
.dash-session {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: border-color 0.16s, background 0.16s, transform 0.16s, box-shadow 0.16s;
}
.dash-session:hover {
  border-color: #d4d9ef;
  background: #fcfcff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -22px rgba(23, 26, 58, 0.45);
}
.dash-session-time {
  flex: none;
  width: 50px;
  text-align: right;
  padding-right: 11px;
  border-right: 1px solid var(--line);
}
.dash-session-time strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dash-session-time span {
  display: block;
  font-size: 9.5px;
  color: var(--muted-2);
}
.dash-session-bar {
  flex: none;
  width: 4px;
  height: 34px;
  border-radius: 4px;
  background: var(--session-color, var(--primary));
}
.dash-session-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-session-title {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-session-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--muted);
}
.dash-session-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.dash-session-attend {
  flex: none;
  width: 72px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-attend-num {
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dash-attend-num strong {
  font-size: 13px;
  color: var(--ink);
}
.dash-attend-label .progress {
  height: 5px;
}
.dash-session-arrow {
  flex: none;
  color: var(--muted-2);
}

/* ---------- 低余额 ---------- */
.dash-low-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 14px;
}
.dash-low-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  transition: background 0.16s;
}
.dash-low-item:hover {
  background: var(--surface-soft);
}
.dash-low-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dash-low-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.dash-low-sub {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-low-balance {
  flex: none;
  font-size: 15px;
  font-weight: 750;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.dash-low-balance small {
  margin-left: 2px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
}
.dash-low-arrow {
  flex: none;
  color: var(--muted-2);
}

/* ---------- 家长端 ---------- */
.dash-children {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-child {
  padding: 15px 16px;
  border-radius: 17px;
  background: linear-gradient(160deg, #fbfcff, #f5f7ff);
  border: 1px solid var(--line);
}
.dash-child + .dash-child {
  margin-top: 0;
}
.dash-child-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dash-child-id {
  flex: 1;
  min-width: 0;
}
.dash-child-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.dash-child-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}
.dash-child-balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}
.dash-child-balance strong {
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dash-child-balance > span {
  font-size: 11px;
  color: var(--muted);
}
.dash-child-balance .dash-child-tip {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted-2);
}
.dash-child-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.dash-child .progress {
  height: 8px;
}

.dash-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-upcoming {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 12px;
  border-bottom: 1px dashed #eef0f8;
  color: var(--ink);
  transition: background 0.16s;
}
.dash-upcoming:last-child {
  border-bottom: 0;
}
.dash-upcoming:hover {
  background: var(--surface-soft);
}
.dash-upcoming-date {
  flex: none;
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dash-upcoming-date strong {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-2);
}
.dash-upcoming-date > span {
  font-size: 10px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.dash-upcoming-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-upcoming-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-upcoming-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
  flex-wrap: wrap;
}

.dash-pay-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  border: 0;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(255, 122, 89, 0.28), transparent 60%),
    radial-gradient(360px 240px at 0% 100%, rgba(45, 212, 191, 0.22), transparent 62%),
    linear-gradient(140deg, #1b1c44 0%, #2a2c66 100%);
  box-shadow: var(--shadow-md);
}
.dash-pay-card + .card {
  margin-top: 0;
}
.dash-pay-glow {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.dash-pay-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}
.dash-pay-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffd6c8;
}
.dash-pay-card .card-title {
  color: #f4f5ff;
  font-size: 14px;
}
.dash-pay-card .card-sub {
  color: #a6acd2;
  margin-top: 2px;
}
.dash-pay-balance {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 4px;
}
.dash-pay-balance strong {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dash-pay-balance span {
  font-size: 11.5px;
  color: #aab0d8;
}
.dash-pay-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: #a6acd2;
}
.dash-pay-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.dash-pay-actions .btn-ghost {
  color: #dfe2ff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.dash-pay-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dash-reminder-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 20px;
}
.dash-reminder-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--amber-soft);
  color: #b45309;
}
.dash-reminder-main {
  flex: 1;
  min-width: 160px;
}
.dash-reminder-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  flex-wrap: wrap;
}
.dash-reminder-main p {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}
.dash-reminder-foot {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 10px;
  color: var(--muted-2);
}

/* ==========================================================================
   学员管理
   ========================================================================== */
.stu-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stu-stats {
  margin-bottom: 2px;
}
.stu-stat-skeleton {
  justify-content: flex-start;
}
.stu-filter-card .table-toolbar,
.hours-filter-card .table-toolbar {
  border-bottom: 0;
  padding: 14px 16px;
}
.stu-filter-card,
.hours-filter-card {
  border-radius: 18px;
}
.stu-toolbar-tip,
.hours-toolbar-tip,
.pay-toolbar-tip {
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
}
.stu-filter-select {
  width: 168px;
  height: 32px;
  border-radius: 9px;
  font-size: 11.5px;
  padding-left: 10px;
}
.stu-toolbar .search-box .input {
  height: 32px;
  font-size: 12px;
}
.stu-table-card {
  overflow: hidden;
}
.stu-name-btn {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  width: 100%;
}
.stu-name-btn:hover .cell-main {
  color: var(--primary);
}
.stu-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 220px;
}
.stu-classes .tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-more {
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.tag-off {
  margin-left: 5px;
  background: var(--slate-soft);
  color: var(--slate);
}
.stu-balance {
  min-width: 92px;
}
.stu-balance-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stu-balance-num span {
  margin-left: 2px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
}
.stu-balance-num.is-low {
  color: var(--red);
}
.stu-balance .progress {
  margin-top: 5px;
  height: 5px;
}
.stu-checkin {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.stu-checkin .cell-sub {
  margin-top: 0;
}
.stu-checkin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.stu-actions .btn {
  padding: 0 9px;
}
tr.is-inactive td {
  opacity: 0.72;
}
.stu-table tbody tr {
  transition: background 0.14s;
}

/* ---------- 学员表单 ---------- */
.stu-form-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.16);
  color: #b42318;
  font-size: 11.5px;
  line-height: 1.6;
}
.stu-form-alert .icon {
  margin-top: 2px;
  flex: none;
}
.stu-form-alert.full {
  grid-column: 1 / -1;
}
.stu-class-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
}
.stu-class-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.stu-class-option:hover {
  border-color: var(--line-strong);
  background: #fff;
}
.stu-class-option:has(input:checked) {
  border-color: rgba(79, 70, 229, 0.4);
  background: var(--primary-soft);
}
.stu-class-option input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex: none;
}
.stu-class-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.stu-class-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.stu-class-meta {
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.45;
}
.stu-class-empty {
  margin-top: 4px;
}
.stu-class-option.is-full {
  opacity: 0.62;
  cursor: not-allowed;
  background: var(--surface-mute);
}
.stu-class-option.is-full:hover {
  border-color: var(--line);
  background: var(--surface-mute);
}
.stu-class-full {
  display: inline-flex;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--red-soft);
  color: #b91c1c;
  font-size: 8.5px;
  font-weight: 600;
  vertical-align: 1px;
}
.stu-class-capacity {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

/* ---------- 学员详情 ---------- */
.stu-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stu-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.stu-detail-id {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.stu-detail-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.stu-detail-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}
.stu-detail-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.stu-detail-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.stu-detail-balance {
  flex: none;
  min-width: 150px;
  padding: 13px 16px;
  border-radius: 15px;
  background: linear-gradient(150deg, var(--green-soft), #f3fdf9);
  border: 1px solid rgba(16, 185, 129, 0.16);
  text-align: right;
}
.stu-detail-balance.is-low {
  background: linear-gradient(150deg, var(--red-soft), #fff7f7);
  border-color: rgba(239, 68, 68, 0.16);
}
.stu-detail-balance-label {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}
.stu-detail-balance strong {
  display: block;
  margin: 2px 0;
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stu-detail-balance.is-low strong {
  color: var(--red);
}
.stu-detail-balance-hint {
  font-size: 9.5px;
  color: var(--muted-2);
}
.stu-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.stu-detail-stat {
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.stu-detail-stat-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.stu-detail-stat strong {
  display: block;
  margin: 3px 0 1px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stu-detail-stat-hint {
  font-size: 9.5px;
  color: var(--muted-2);
}
.stu-detail-tabs .tabs {
  background: var(--surface-mute);
}
.stu-detail-panel {
  min-height: 180px;
}
.stu-mini-table {
  font-size: 12px;
}
.stu-mini-table th {
  background: var(--surface-soft);
  padding: 9px 12px;
}
.stu-mini-table td {
  padding: 10px 12px;
}
.stu-note-cell {
  max-width: 260px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.stu-enroll-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.stu-enroll {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.stu-enroll-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}
.stu-enroll-main {
  flex: 1;
  min-width: 0;
}
.stu-enroll-name {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
}
.stu-enroll-meta {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------- 调整课时 ---------- */
.stu-adjust-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stu-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-mute);
}
.stu-segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.stu-segmented button.active {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 1px 3px rgba(20, 24, 50, 0.1);
}
.stu-segmented button[data-dir="sub"].active {
  color: #b42318;
}
.stu-adjust-preview {
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  font-size: 12px;
  color: var(--muted);
}
.stu-adjust-preview strong {
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- 家长账号提示 ---------- */
.stu-account {
  text-align: center;
}
.stu-account-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 12px;
}
.stu-account p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.stu-account-rows {
  margin: 14px 0;
  padding: 4px 14px;
  border-radius: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  text-align: left;
}
.stu-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.stu-account-row:last-child {
  border-bottom: 0;
}
.stu-account-row span {
  color: var(--muted);
}
.stu-account-row strong {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   缴费中心
   ========================================================================== */
.pay-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pay-stat-skeleton {
  justify-content: flex-start;
}
.pay-list-card,
.pay-table-card {
  overflow: hidden;
}
.pay-toolbar .search-box .input {
  height: 32px;
  font-size: 12px;
}
.pay-tabs {
  display: inline-flex;
}
.pay-amount {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pay-table .cell-mono {
  font-size: 10.5px;
}
.pay-actions {
  min-width: 168px;
}
.pay-actions .btn + .btn {
  margin-left: 4px;
}

/* ---------- 家长 hero ---------- */
.pay-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(560px 320px at 88% -20%, rgba(99, 102, 241, 0.12), transparent 64%),
    radial-gradient(420px 280px at 0% 120%, rgba(255, 122, 89, 0.1), transparent 66%),
    linear-gradient(140deg, #ffffff 0%, #f7f8ff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pay-hero-glow {
  position: absolute;
  right: -70px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.14);
  pointer-events: none;
}
.pay-hero-glow::after {
  content: "";
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 89, 0.16);
}
.pay-hero-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.pay-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}
.pay-hero-balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.pay-hero-balance strong {
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pay-hero-balance > span {
  font-size: 12px;
  color: var(--muted);
}
.pay-hero-badge {
  align-self: center;
  margin-left: 4px;
}
.pay-hero-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pay-hero-child-name {
  font-size: 13px;
  font-weight: 650;
}
.pay-hero-child-sub {
  font-size: 10.5px;
  color: var(--muted);
}
.pay-hero-meta {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.pay-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pay-hero-children {
  position: relative;
  z-index: 1;
  flex: none;
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 20px;
  border-left: 1px dashed var(--line-strong);
}
.pay-hero-children-label,
.hours-children-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.pay-child-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.pay-child-chip:hover {
  border-color: var(--line-strong);
}
.pay-child-chip.active {
  border-color: rgba(79, 70, 229, 0.4);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}
.pay-child-chip > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pay-child-chip-balance {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 套餐 ---------- */
.pay-packages-card .card-body {
  padding-top: 14px;
}
.pay-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pay-package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #ffffff, #fbfbff);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.pay-package:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.pay-package.is-recommended {
  border-color: rgba(79, 70, 229, 0.36);
  background: linear-gradient(165deg, #f7f7ff, #ffffff);
  box-shadow: 0 18px 40px -32px rgba(79, 70, 229, 0.65);
}
.pay-package-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: linear-gradient(120deg, #ff9a7c, #ff7a59);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}
.pay-package-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  padding-right: 56px;
}
.pay-package-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}
.pay-package-price strong {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pay-package-price span {
  font-size: 10px;
  color: var(--muted);
}
.pay-package-hours {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 11px;
  color: var(--muted);
}
.pay-package-hours strong {
  font-size: 12px;
  color: var(--primary-strong);
}
.pay-package-desc {
  margin: 10px 0 8px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 34px;
}
.pay-package-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.pay-package .btn {
  margin-top: auto;
}

/* ---------- 订单 ---------- */
.pay-orders-card .card-head {
  flex-wrap: wrap;
}
.pay-orders-card .tabs {
  flex-wrap: wrap;
}

/* ---------- 新建缴费表单 ---------- */
.pay-form-body {
  padding-top: 4px;
}
.pay-form .input.is-locked,
.pay-form .input[readonly] {
  background: var(--surface-mute);
  color: var(--muted);
  cursor: not-allowed;
}
.pay-form-summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 11.5px;
  flex-wrap: wrap;
}
.pay-form-summary strong {
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

/* ---------- 家长确认购买 ---------- */
.pay-confirm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pay-confirm-package {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--primary-soft), #f8f8ff);
  border: 1px solid rgba(99, 102, 241, 0.16);
}
.pay-confirm-name {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
}
.pay-confirm-hours {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--primary-strong);
  font-weight: 600;
}
.pay-confirm-package p {
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.6;
}
.pay-confirm-rows {
  padding: 2px 13px;
  border-radius: 12px;
  background: var(--surface-soft);
}
.pay-confirm-total {
  border-bottom: 0;
}
.pay-confirm-total .v {
  font-size: 17px;
  color: var(--coral);
}
.pay-channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 2px;
}
.pay-channel-label {
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.pay-channel-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pay-channel-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.pay-channel-option input {
  accent-color: var(--primary);
}

/* ---------- 支付成功 ---------- */
.pay-success {
  padding: 6px 2px 2px;
  text-align: center;
}
.pay-success-ring {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #6ee7b7, var(--green));
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(16, 185, 129, 0.7);
  animation: paySuccessPop 0.5s cubic-bezier(0.22, 1.2, 0.36, 1);
  margin-bottom: 14px;
}
@keyframes paySuccessPop {
  0% { transform: scale(0.55); opacity: 0; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.pay-success h3 {
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.02em;
}
.pay-success > p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.pay-success > p strong {
  color: var(--primary-strong);
}
.pay-success-card {
  margin: 16px 0;
  padding: 4px 14px;
  border-radius: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  text-align: left;
}
.pay-success-actions {
  margin-bottom: 10px;
}
.pay-success-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted-2);
}

/* ---------- 订单详情 ---------- */
.pay-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pay-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pay-detail-amount {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.pay-detail-no {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.pay-detail-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
}
.pay-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0 9px 2px;
  font-size: 11.5px;
  color: var(--muted-2);
}
.pay-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 26px;
  bottom: -6px;
  width: 1px;
  background: var(--line);
}
.pay-step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #fff;
  flex: none;
  z-index: 1;
}
.pay-step.done {
  color: var(--ink-2);
}
.pay-step.done .pay-step-dot {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.pay-step.refunded {
  color: #b42318;
}
.pay-step.refunded .pay-step-dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.pay-step-time {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted-2);
}

/* ==========================================================================
   课时流水
   ========================================================================== */
.hours-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hours-stat-skeleton {
  justify-content: flex-start;
}
.hours-type-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.hours-dates {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.hours-date-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--muted);
}
.hours-date {
  width: 132px;
  height: 32px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 11.5px;
}
.hours-table-card {
  overflow: hidden;
}
.hours-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hours-delta.is-in {
  color: #0b7a5c;
}
.hours-delta.is-out {
  color: #b42318;
}
.hours-delta .icon {
  width: 12px;
  height: 12px;
}
.hours-balance {
  font-weight: 650;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.hours-note-cell {
  max-width: 280px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.hours-table-parent .hours-note-cell {
  max-width: 320px;
}

.hours-balance-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 20px;
  background:
    radial-gradient(480px 280px at 94% -20%, rgba(99, 102, 241, 0.12), transparent 62%),
    linear-gradient(145deg, #ffffff, #f8f9ff);
}
.hours-balance-main {
  flex: 1;
  min-width: 0;
}
.hours-balance-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}
.hours-balance-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 7px 0 9px;
}
.hours-balance-value strong {
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hours-balance-value > span {
  font-size: 12px;
  color: var(--muted);
}
.hours-balance-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hours-balance-name {
  font-size: 12.5px;
  font-weight: 650;
}
.hours-balance-sub {
  font-size: 10.5px;
  color: var(--muted);
}
.hours-balance-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.hours-children {
  flex: none;
  width: 236px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 20px;
  border-left: 1px dashed var(--line-strong);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1360px) {
  .dash-hero {
    gap: 26px;
  }
  .dash-quick-wrap {
    width: min(290px, 34%);
  }
  .pay-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .dash-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-col-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }
  .dash-col-side > .card + .card {
    margin-top: 0;
  }
  .dash-col-side.dash-col-side-parent {
    display: flex;
  }
  .stu-filter-select {
    width: 150px;
  }
}

@media (max-width: 1080px) {
  .dash-hero {
    flex-direction: column;
  }
  .dash-quick-wrap {
    width: 100%;
  }
  .dash-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stu-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pay-hero {
    flex-direction: column;
  }
  .pay-hero-children,
  .hours-children {
    width: 100%;
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .pay-hero-children .pay-hero-children-label,
  .hours-children .hours-children-label {
    flex-basis: 100%;
  }
  .pay-child-chip {
    width: auto;
  }
  .hours-balance-card {
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .dash-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-col-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .stu-detail-head {
    flex-direction: column;
  }
  .stu-detail-balance {
    text-align: left;
    width: 100%;
  }
  .stu-class-picker {
    grid-template-columns: minmax(0, 1fr);
  }
  .pay-packages {
    grid-template-columns: minmax(0, 1fr);
  }
  .pay-package-desc {
    min-height: 0;
  }
  .stu-filter-select {
    flex: 1;
    min-width: 132px;
    width: auto;
  }
  .hours-date {
    flex: 1;
    min-width: 120px;
    width: auto;
  }
}

@media (max-width: 720px) {
  .dash-hero {
    padding: 20px 18px;
    border-radius: 20px;
  }
  .dash-hero-glow {
    display: none;
  }
  .dash-hero p {
    font-size: 12px;
  }
  .dash-quick {
    padding: 9px 10px;
    font-size: 11.5px;
  }
  .dash-quick-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
  }
  .dash-session {
    flex-wrap: wrap;
    gap: 9px;
  }
  .dash-session-attend {
    width: auto;
    flex: 1;
    text-align: left;
  }
  .dash-session-arrow {
    display: none;
  }
  .dash-session .badge {
    margin-left: auto;
  }
  .dash-child-balance .dash-child-tip {
    margin-left: 0;
    flex-basis: 100%;
  }
  .dash-upcoming-date {
    width: 84px;
  }
  .dash-pay-card {
    padding: 18px;
  }
  .dash-pay-balance strong {
    font-size: 32px;
  }
  .stu-detail-id {
    flex-direction: column;
    gap: 10px;
  }
  .stu-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stu-enroll {
    flex-wrap: wrap;
  }
  .pay-hero {
    padding: 18px;
  }
  .pay-hero-glow {
    display: none;
  }
  .pay-package {
    padding: 14px;
  }
  .pay-package-name {
    padding-right: 0;
  }
  .pay-package-flag {
    position: static;
    align-self: flex-start;
    margin-bottom: 8px;
  }
  .hours-balance-card {
    padding: 17px;
  }
  .pay-actions {
    min-width: 0;
  }
  .stu-note-cell,
  .hours-note-cell {
    max-width: 200px;
  }
}

@media (max-width: 560px) {
  .dash-hero h1 {
    font-size: 22px;
  }
  .dash-hero-meta {
    gap: 6px;
  }
  .dash-chip {
    height: 25px;
    font-size: 10px;
  }
  .dash-quick-text {
    font-size: 11px;
  }
  .dash-quick-arrow {
    display: none;
  }
  .dash-quick-grid {
    gap: 7px;
  }
  .dash-pay-head .card-title {
    font-size: 13px;
  }
  .stu-detail-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stu-detail-actions .btn {
    flex: 1;
  }
  .pay-package-price strong {
    font-size: 22px;
  }
  .hours-balance-value strong {
    font-size: 30px;
  }
}

/* 打印时隐藏交互按钮 */
@media print {
  .dash-quick-wrap,
  .pay-actions,
  .stu-actions {
    display: none !important;
  }
}
