/* ============================================
   学校收费系统 · 演示原型 全局样式
   视觉：教育蓝 + 金色点缀，简洁精致
============================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --primary-soft: #eff6ff;
  --sidebar-bg: #0c1e3d;
  --sidebar-hover: #13294f;
  --sidebar-active: #1e3a8a;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1e293b;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --border: #e6e9f2;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --info: #0ea5e9;
  --info-soft: #f0f9ff;
  --purple: #8b5cf6;
  --purple-soft: #f5f3ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #4f8bff 100%);
  --grad-sidebar: linear-gradient(180deg, #0c1e3d 0%, #0a1830 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(800px 500px at 12% 8%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(700px 500px at 88% 92%, rgba(245,158,11,.14), transparent 60%),
    linear-gradient(160deg, #f0f5ff 0%, #eef2fb 50%, #f6f8ff 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before, .login-wrap::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(10px); opacity: .5;
}
.login-wrap::before { width: 360px; height: 360px; background: radial-gradient(circle, rgba(37,99,235,.12), transparent 70%); top: -90px; right: -60px; }
.login-wrap::after { width: 420px; height: 420px; background: radial-gradient(circle, rgba(245,158,11,.10), transparent 70%); bottom: -120px; left: -80px; }

.login-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 920px;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: #fff; border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp .5s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.login-brand {
  background: var(--grad-sidebar);
  color: #fff; padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-brand::after {
  content: ""; position: absolute; right: -70px; bottom: -70px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
}
.login-brand .brand-top { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.login-logo {
  width: 48px; height: 48px; border-radius: 13px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(37,99,235,.35);
  border: 1px solid rgba(255,255,255,.4);
}
.login-brand h2 { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.login-brand .sub { font-size: 12px; color: #93a5c8; margin-top: 2px; }
.login-brand h1 { font-size: 26px; line-height: 1.5; font-weight: 700; }
.login-brand h1 span { color: #fbbf24; }
.login-brand p.lead { color: #a8b8d8; font-size: 13px; margin-top: 10px; max-width: 340px; }
.login-features { display: grid; gap: 12px; margin-top: 28px; }
.login-feature { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cdd9f2; }
.login-feature .dot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.2); }
.login-copy { font-size: 12px; color: #5d729c; margin-top: 30px; }

.login-form { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.login-form h3 { font-size: 24px; font-weight: 700; }
.login-form .hint { color: var(--text-2); font-size: 13px; margin: 6px 0 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.field input, .field select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; color: var(--text); background: #fbfcfe;
  transition: all .2s; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field .input-icon { position: relative; }
.field .input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: var(--text-3); }
.field .input-icon input { padding-left: 38px; }

.login-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.checkbox { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.checkbox input { accent-color: var(--primary); width: 15px; height: 15px; }
.link { color: var(--primary); font-size: 13px; }
.link:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; }

.btn-sm svg { width: 14px; height: 14px; }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.36); }
.btn-block { width: 100%; }

.btn-outline { border: 1px solid var(--border); color: var(--text-2); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--primary); background: var(--primary-soft); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-danger { color: var(--danger); background: var(--danger-soft); }
.btn-success { color: var(--success); background: var(--success-soft); }

.login-more { margin-top: 24px; text-align: center; font-size: 13px; color: var(--text-2); }

/* ============ 主布局 ============ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 216px; background: var(--grad-sidebar);
  color: #b9c6e0; display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: transform .25s;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.sidebar-brand .logo {
  width: 42px; height: 42px; border-radius: 11px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 14px rgba(0,0,0,.3); flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.2);
}
.sidebar-brand .name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.sidebar-brand .tag { font-size: 11px; color: #6d82ad; margin-top: 1px; }

.nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.nav-label { font-size: 11px; color: #5c7099; padding: 16px 12px 8px; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px; margin-bottom: 3px;
  font-size: 13.5px; cursor: pointer; color: #aebcd9;
  transition: all .18s; position: relative;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3.5px; height: 22px; border-radius: 3px; background: #60a5fa;
}
.nav-item .badge {
  margin-left: auto; background: rgba(239,68,68,.9); color: #fff;
  font-size: 10.5px; padding: 1px 7px; border-radius: 9px; font-weight: 600;
}
.sidebar-foot { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; color: #5c7099; display: flex; align-items: center; justify-content: space-between; }

.main { flex: 1; margin-left: 216px; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: 62px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 26px; gap: 16px;
  position: sticky; top: 0; z-index: 90;
}
.topbar .page-title { font-size: 16.5px; font-weight: 700; }
.topbar .crumb { font-size: 12px; color: var(--text-3); }
.topbar .crumb b { color: var(--text-2); font-weight: 500; }
.topbar .spacer { flex: 1; }
.topbar .search {
  display: flex; align-items: center; background: var(--bg);
  border-radius: 9px; padding: 0 12px; height: 36px; width: 240px; gap: 8px;
  border: 1px solid transparent; transition: all .2s;
}
.topbar .search:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.topbar .search svg { width: 15px; height: 15px; stroke: var(--text-3); flex-shrink: 0; }
.topbar .search input { border: none; background: none; outline: none; font-size: 13px; width: 100%; }
.topbar .icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--text-2); position: relative; transition: all .18s;
}
.topbar .icon-btn:hover { background: var(--bg); color: var(--text); }
.topbar .icon-btn svg { width: 19px; height: 19px; stroke: currentColor; }
.topbar .icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; background: var(--danger); border-radius: 50%; border: 1.5px solid #fff; }
.topbar .user { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 10px; cursor: pointer; transition: background .18s; }
.topbar .user:hover { background: var(--bg); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.avatar.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.avatar.green { background: linear-gradient(135deg, #34d399, #10b981); }
.avatar.purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.avatar.pink { background: linear-gradient(135deg, #f472b6, #ec4899); }
.avatar.cyan { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.user .meta { line-height: 1.25; }
.user .meta .n { font-size: 13px; font-weight: 600; }
.user .meta .r { font-size: 11px; color: var(--text-3); }

.content { padding: 24px 28px 48px; max-width: 1340px; width: 100%; margin: 0 auto; }

/* ============ 通用组件 ============ */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(230,233,242,.7);
  padding: 20px;
}
.card + .card, .card + .grid, .grid + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-head h3 { font-size: 15px; font-weight: 700; }
.card-head .desc { font-size: 12px; color: var(--text-3); }
.card-head .spacer { flex: 1; }

.grid { display: grid; gap: 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1200px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.stat-card { position: relative; overflow: hidden; padding: 20px; }
.stat-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.stat-card .ico svg { width: 21px; height: 21px; stroke: currentColor; }
.stat-card .label { font-size: 13px; color: var(--text-2); }
.stat-card .value { font-size: 27px; font-weight: 800; margin-top: 4px; letter-spacing: .3px; }
.stat-card .value small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.stat-card .trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 8px; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.stat-card .trend.up { color: var(--success); background: var(--success-soft); }
.stat-card .trend.down { color: var(--danger); background: var(--danger-soft); }
.stat-card .sub { font-size: 12px; color: var(--text-3); margin-top: 8px; }

.ico.blue { background: var(--primary-soft); color: var(--primary); }
.ico.green { background: var(--success-soft); color: var(--success); }
.ico.gold { background: var(--warning-soft); color: var(--warning); }
.ico.purple { background: var(--purple-soft); color: var(--purple); }
.ico.red { background: var(--danger-soft); color: var(--danger); }
.ico.cyan { background: var(--info-soft); color: var(--info); }

/* 徽章 */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { color: var(--success); background: var(--success-soft); }
.badge.warning { color: #d97706; background: var(--warning-soft); }
.badge.danger { color: var(--danger); background: var(--danger-soft); }
.badge.info { color: #0284c7; background: var(--info-soft); }
.badge.primary { color: var(--primary); background: var(--primary-soft); }
.badge.gray { color: var(--text-2); background: #f1f5f9; }
.badge.purple { color: var(--purple); background: var(--purple-soft); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-3);
  padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 13px 14px; border-bottom: 1px solid #f1f3f8; color: var(--text); white-space: nowrap; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #f8fafd; }
tbody tr:last-child td { border-bottom: none; }
td .cell-main { font-weight: 600; color: var(--text); }
td .cell-sub { font-size: 12px; color: var(--text-3); }

/* 工具条 */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .seg { display: flex; background: #eef1f7; border-radius: 9px; padding: 3px; }
.toolbar .seg button { padding: 6px 14px; font-size: 12.5px; border-radius: 7px; color: var(--text-2); font-weight: 500; transition: all .18s; }
.toolbar .seg button.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px rgba(16,24,40,.1); }
.toolbar .spacer { flex: 1; }
.input, .select {
  height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 13px; color: var(--text); background: #fff; outline: none; transition: border .18s;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.select { padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' 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 10px center; }

/* 分页 */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: flex-end; padding-top: 14px; }
.pagination .page {
  min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--text-2); transition: all .15s; border: 1px solid transparent;
}
.pagination .page:hover { background: var(--bg); }
.pagination .page.active { background: var(--primary); color: #fff; font-weight: 600; }
.pagination .info { font-size: 12.5px; color: var(--text-3); margin-right: 8px; }

/* 空状态 / 占位 */
.placeholder { text-align: center; padding: 44px 20px; color: var(--text-3); }
.placeholder svg { width: 54px; height: 54px; stroke: #cbd5e1; margin-bottom: 12px; }
.placeholder p { font-size: 13px; }

/* ============ 仪表盘 ============ */
.hero-banner {
  border-radius: var(--radius); padding: 24px 28px; color: #fff;
  background:
    radial-gradient(500px 200px at 85% 0%, rgba(255,255,255,.14), transparent 60%),
    var(--grad-primary);
  box-shadow: 0 10px 26px rgba(37,99,235,.28);
  display: flex; align-items: center; gap: 20px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.hero-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 26px solid rgba(255,255,255,.07);
}
.hero-banner .hi { font-size: 21px; font-weight: 700; }
.hero-banner .msg { font-size: 13.5px; opacity: .9; margin-top: 6px; }
.hero-banner .hero-date { margin-left: auto; text-align: right; font-size: 12.5px; opacity: .85; position: relative; z-index: 2; }
.hero-banner .hero-date b { display: block; font-size: 19px; font-weight: 700; }

/* 进度条 */
.progress { height: 7px; background: #eef1f7; border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: var(--grad-primary); transition: width .6s; }
.progress.green > i { background: linear-gradient(90deg, #34d399, #10b981); }
.progress.gold > i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.progress.purple > i { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.progress.red > i { background: linear-gradient(90deg, #f87171, #ef4444); }

/* 收费进度列表 */
.fee-progress-item { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed #eef1f7; }
.fee-progress-item:last-child { border-bottom: none; }
.fee-progress-item .name { width: 86px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.fee-progress-item .bar { flex: 1; }
.fee-progress-item .val { width: 120px; text-align: right; font-size: 12.5px; color: var(--text-2); flex-shrink: 0; }
.fee-progress-item .val b { color: var(--text); font-size: 13px; }

/* 环形图 */
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut-center { text-align: center; }
.donut-legend { flex: 1; display: grid; gap: 10px; }
.donut-legend .item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.donut-legend .item .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut-legend .item .lbl { color: var(--text-2); flex: 1; }
.donut-legend .item .num { font-weight: 700; }
.donut-legend .item .pct { color: var(--text-3); font-size: 12px; width: 42px; text-align: right; }

/* 简易柱状图 / 折线图 SVG */
.chart-box { width: 100%; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 18px; justify-content: flex-end; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 10px; height: 4px; border-radius: 3px; }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs button { padding: 10px 16px; font-size: 13.5px; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .18s; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

/* 订单卡片 */
.order-list { display: grid; gap: 12px; }
.order-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid #eef1f7; border-radius: 12px; transition: all .18s;
}
.order-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.order-item .o-ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.order-item .o-ico svg { width: 19px; height: 19px; stroke: currentColor; }
.order-item .o-main { flex: 1; min-width: 0; }
.order-item .o-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.order-item .o-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.order-item .o-amount { text-align: right; flex-shrink: 0; }
.order-item .o-amount .v { font-size: 16px; font-weight: 800; color: var(--text); }
.order-item .o-amount .st { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 缴费步骤 */
.steps { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 2px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; }
.step::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 24px); width: calc(100% - 48px); height: 2px; background: #e6e9f2; z-index: 0; }
.step:first-child::before { display: none; }
.step .num { width: 30px; height: 30px; border-radius: 50%; background: #eef1f7; color: var(--text-3); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.step.done .num { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 10px rgba(37,99,235,.3); }
.step.active .num { background: #fff; color: var(--primary); border: 2px solid var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.step .t { font-size: 12px; color: var(--text-3); }
.step.done .t, .step.active .t { color: var(--text); font-weight: 600; }

/* 缴费方式 */
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.pay-method {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 16px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: all .18s;
}
.pay-method:hover { border-color: var(--primary); }
.pay-method.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.pay-method svg { width: 30px; height: 30px; }
.pay-method .pm-name { font-size: 13px; font-weight: 600; }
.pay-method .pm-desc { font-size: 11.5px; color: var(--text-3); }

/* 列表行 */
.list-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f1f3f8; }
.list-row:last-child { border-bottom: none; }
.list-row .lr-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-weight: 600; font-size: 13.5px; }
.list-row .lr-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.list-row .lr-val { font-size: 13.5px; font-weight: 700; }
.list-row .lr-val .u { font-size: 11.5px; color: var(--text-3); font-weight: 500; }

/* 信息统计条 */
.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.info-cell { background: #f8fafd; border: 1px solid #eef1f7; border-radius: 12px; padding: 14px 16px; }
.info-cell .k { font-size: 12px; color: var(--text-3); }
.info-cell .v { font-size: 18px; font-weight: 800; margin-top: 4px; }
.info-cell .v small { font-size: 12px; font-weight: 500; color: var(--text-3); }

/* 学生卡片 */
.student-card {
  border: 1px solid #eef1f7; border-radius: 12px; padding: 16px;
  display: flex; align-items: center; gap: 14px; transition: all .18s;
}
.student-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.student-card .sc-meta { flex: 1; min-width: 0; }
.student-card .sc-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.student-card .sc-info { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.7; }
.student-card .sc-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* 消息 */
.notice-list .list-row { cursor: pointer; }
.notice-list .list-row:hover { background: #fafbfe; }

/* toast */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-70px);
  background: #0f172a; color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); z-index: 999;
  display: flex; align-items: center; gap: 9px; transition: transform .3s ease; opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast svg { width: 17px; height: 17px; stroke: #4ade80; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg); padding: 26px; transform: scale(.96); transition: transform .2s;
}
.modal-mask.show .modal { transform: scale(1); }
.modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.modal .m-desc { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.modal .m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.modal .m-actions .btn { flex: 1; }
.modal .pay-qr {
  width: 160px; height: 160px; margin: 10px auto 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border); padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.modal .pay-qr svg { width: 72px; height: 72px; stroke: var(--primary); }


/* 子菜单 */
.nav-sub { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.nav-sub.open { max-height: 320px; }
.nav-item.has-sub .arrow { margin-left: auto; font-size: 10px; color: #6d82ad; transition: transform .25s; }
.nav-item.has-sub.open-sub .arrow { transform: rotate(180deg); }
.nav-item.has-sub.open-sub { color: #fff; }
.nav-sub .nav-item { padding-left: 44px; font-size: 12.8px; }
.nav-sub .nav-item.active { background: rgba(37,99,235,.22); color: #fff; }
.nav-sub .nav-item.active::before { left: -12px; }

/* 详情统计条 & 汇总卡片 */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-box { background: #f8fafd; border: 1px solid #eef1f7; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.kpi-box .k-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-box .k-ico svg { width: 18px; height: 18px; stroke: currentColor; }
.kpi-box .k-main .k { font-size: 12px; color: var(--text-3); }
.kpi-box .k-main .v { font-size: 19px; font-weight: 800; margin-top: 1px; }
.kpi-box .k-main .v small { font-size: 12px; font-weight: 500; color: var(--text-3); }

/* 侧边栏移动端 */
.sidebar.open { transform: translateX(0); }
@media (max-width: 900px) { .topbar #menuBtn { display: inline-flex !important; } }

/* 响应式 */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; }
  .login-card { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .pay-methods { grid-template-columns: 1fr; }
}
