/* 高三备考系统 · Admin design system */
:root {
  color-scheme: light;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #eff6ff;
  --ink: #111827;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --surface-3: #f3f4f6;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --green: #15803d;
  --green-soft: #f0fdf4;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --tierA: #047857;
  --tierB: #b45309;
  --tierC: #2563eb;
  --tierD: #7c3aed;
  --sans: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: var(--sans);
  --shadow: 0 1px 2px rgba(17, 24, 39, .03), 0 8px 24px rgba(17, 24, 39, .04);
  --sidebar: 240px;
  --topbar: 64px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --brand: #60a5fa;
  --brand-2: #93c5fd;
  --brand-soft: #172554;
  --ink: #0b0d10;
  --paper: #0b0d10;
  --surface: #111318;
  --surface-2: #171a20;
  --surface-3: #1d2128;
  --line: #252a33;
  --line-strong: #343a46;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --green: #4ade80;
  --green-soft: #10271a;
  --amber: #fbbf24;
  --amber-soft: #2a210f;
  --red: #f87171;
  --red-soft: #321719;
  --shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 12px 30px rgba(0, 0, 0, .12);
}

html { background: var(--paper); }
body { letter-spacing: -.005em; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--sans); letter-spacing: -.025em; }
button, input, select, textarea { transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), opacity .18s var(--ease); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent); outline-offset: 2px; }

.app { min-height: 100dvh; background: var(--paper); }
.side {
  width: var(--sidebar); flex-basis: var(--sidebar); background: var(--ink); color: #d1d5db;
  border-right: 1px solid rgba(255,255,255,.06); transition: width .22s var(--ease), flex-basis .22s var(--ease), transform .22s var(--ease);
}
.brand { height: var(--topbar); padding: 0 14px 0 16px; display: flex; align-items: center; gap: 10px; border-bottom-color: rgba(255,255,255,.07); }
.brand-logo { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 8px; background: #2563eb; color: white; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand-copy { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; }
.brand .mark { font-family: var(--sans); font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.brand .sub { margin-top: 1px; color: #77808f; letter-spacing: .04em; font-size: 10px; }
.side-collapse { width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(255,255,255,.04); color: #8e98a8; font-size: 19px; line-height: 1; }
.side-collapse:hover { color: white; background: rgba(255,255,255,.09); }
.nav { padding: 14px 10px; overflow-y: auto; overflow-x: hidden; }
.nav-group-label { padding: 14px 10px 6px; color: #667080; font-size: 10px; font-weight: 600; letter-spacing: .12em; white-space: nowrap; text-transform: uppercase; }
.nav button { position: relative; min-height: 40px; gap: 11px; padding: 9px 11px; border-radius: 8px; color: #9ca3af; font-size: 13.5px; font-weight: 450; margin: 1px 0; white-space: nowrap; overflow: hidden; }
.nav button .ic { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 18px; }
.nav button .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav button:hover { color: #f3f4f6; background: rgba(255,255,255,.055); }
.nav button.on { color: #fff; background: rgba(37,99,235,.22); box-shadow: none; }
.nav button.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: #60a5fa; }
.side .foot { min-height: 68px; padding: 12px 12px; display: flex; align-items: center; gap: 9px; border-top-color: rgba(255,255,255,.07); }
.user-avatar, .top-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; border: 0; background: #263142; color: #e5e7eb; font-size: 12px; font-weight: 650; }
.user-copy { flex: 1; min-width: 0; line-height: 1.25; overflow: hidden; white-space: nowrap; }
.side .foot b { display: block; overflow: hidden; text-overflow: ellipsis; color: #e5e7eb; font-size: 12px; }
#whoRole { color: #707a89; font-size: 10.5px; margin-top: 3px; }
.side .foot .logout-btn { margin: 0; width: auto; min-width: 34px; padding: 6px 8px; color: #7d8797; border-color: transparent; }
.side .foot .logout-btn:hover { color: #fca5a5; background: rgba(239,68,68,.08); }

.workspace { flex: 1; min-width: 0; min-height: 100vh; }
.topbar { position: sticky; z-index: 40; top: 0; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.crumb { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted-2); font-size: 12.5px; white-space: nowrap; }
.crumb i { color: var(--line-strong); font-style: normal; }.crumb strong { color: var(--text); font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.search-trigger { height: 34px; min-width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: left; }
.search-trigger:hover { border-color: var(--line-strong); background: var(--surface); }
.search-symbol { font-size: 19px; line-height: 1; transform: rotate(-20deg); color: var(--muted-2); }
kbd { margin-left: auto; padding: 2px 6px; border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--muted-2); font: 10px var(--sans); box-shadow: 0 1px 0 var(--line); }
.icon-action { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.icon-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.top-avatar { width: 34px; height: 34px; background: var(--brand-soft); color: var(--brand); }
.mobile-menu { display: none; width: 36px; height: 36px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mobile-menu span { display: block; height: 1.5px; margin: 3px 0; background: var(--text); border-radius: 2px; }
.menu-btn { display: none !important; }

.main { width: 100%; max-width: 1560px; margin: 0 auto; padding: 28px 32px 64px; }
.ph { align-items: center; margin-bottom: 20px; min-height: 36px; }
.ph h2 { font-size: 23px; font-weight: 620; color: var(--text); }
.ph .hint, .hint { color: var(--muted); font-size: 12.5px; }
.ph + .hint { padding-left: 0; }
.card { border-color: var(--line); border-radius: var(--radius); box-shadow: none; overflow: hidden; }
.card:hover { border-color: color-mix(in srgb, var(--line-strong) 75%, var(--line)); }
.grid { gap: 16px; }
.stat { position: relative; min-height: 126px; padding: 22px; background: var(--surface); }
.stat::after { content: ""; position: absolute; inset: auto 18px 0 18px; height: 2px; border-radius: 2px 2px 0 0; background: var(--brand); opacity: .65; }
.stat .n { font-family: var(--sans); color: var(--text); font-size: 32px; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 7px; color: var(--muted); font-size: 12.5px; }
.stat-trend { display: inline-flex; align-items: center; gap: 3px; margin-top: 8px; color: var(--green); font-size: 11px; }
.stat-trend.neutral { color: var(--muted-2); }
.section-title { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }

.btn { min-height: 36px; padding: 8px 13px; border-color: var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 500; box-shadow: 0 1px 1px rgba(17,24,39,.02); }
.btn:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-2); }
.btn.pri, .btn.on { border-color: var(--brand); background: var(--brand); color: white; box-shadow: 0 1px 2px rgba(37,99,235,.16); }
.btn.pri:hover, .btn.on:hover { border-color: var(--brand-2); background: var(--brand-2); color: white; }
.btn.sm { min-height: 30px; padding: 5px 10px; border-radius: 7px; font-size: 11.5px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }.btn.ghost:hover { background: var(--surface-3); color: var(--red); }
.btn.danger { border-color: var(--red); background: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(.92); }
.toolbar { min-height: 48px; gap: 8px; padding: 8px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

table { font-size: 13px; font-variant-numeric: tabular-nums; }
thead { position: sticky; top: 0; z-index: 2; }
thead th { height: 44px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 550; letter-spacing: .015em; }
tbody td { min-height: 48px; padding: 13px 14px; border-bottom-color: var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
tbody td > b { font-weight: 560; }
.card > table, .card > div > table { min-width: 600px; }
.badge { min-height: 23px; padding: 3px 8px; border-radius: 999px; font-weight: 500; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .72; }
.tA { background: var(--green-soft); color: var(--tierA); }.tB { background: var(--amber-soft); color: var(--tierB); }.tC { background: var(--brand-soft); color: var(--tierC); }.tD { background: color-mix(in srgb, var(--tierD) 10%, var(--surface)); color: var(--tierD); }
.lv-none { background: var(--surface-3); }.lv-green { background: var(--green-soft); }.lv-red { background: var(--red-soft); }
.lv-yellow { background: var(--amber-soft); color: var(--amber); }

.field { margin-bottom: 16px; }.field label { margin-bottom: 7px; color: var(--text); font-size: 12px; font-weight: 520; }
.field input, .field select, .field textarea, td input, td select { min-height: 38px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.frow { gap: 16px; }.note { color: var(--muted); font-size: 12.5px; }
.pf-sec { margin-top: 20px; padding-top: 18px; }.pf-lab { margin-bottom: 10px; letter-spacing: .06em; font-weight: 600; }

.mask { align-items: center; padding: 24px; background: rgba(15,23,42,.48); backdrop-filter: blur(4px); animation: fadeIn .16s ease-out; }
.modal { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.2); animation: panelIn .2s var(--ease); }
.mhead { padding: 18px 22px; }.mhead h3 { font-family: var(--sans); font-size: 17px; font-weight: 620; }.mbody { padding: 20px 22px; }.mfoot { padding: 14px 22px; background: var(--surface-2); border-radius: 0 0 12px 12px; }
.x { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 7px; font-size: 20px; }.x:hover { background: var(--surface-3); color: var(--text); }
.empty { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px 20px; color: var(--muted); }
.empty .big { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 9px; background: var(--surface-3); font-size: 18px; filter: grayscale(1); opacity: .8; }

.authwrap { background: radial-gradient(circle at 20% 10%, rgba(37,99,235,.18), transparent 32%), #0b0d10; }
.authcard { padding: 34px 32px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; box-shadow: 0 28px 80px rgba(0,0,0,.42); }
.authcard::before { content: "高"; display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 10px; background: #2563eb; color: white; font-weight: 700; }
.authcard h1 { font-family: var(--sans); font-size: 20px; font-weight: 650; }.authcard .as { margin: 6px 0 22px; }
.auth-public-links { display: flex; justify-content: center; gap: 18px; margin-top: 15px; font-size: 11.5px; }.auth-public-links a { color: var(--muted); text-decoration: none; }.auth-public-links a:hover { color: var(--brand); }

.command-mask, .confirm-mask { position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-start; justify-content: center; padding: 14vh 20px 20px; background: rgba(15,23,42,.45); backdrop-filter: blur(5px); }
.command-mask.on, .confirm-mask.on { display: flex; animation: fadeIn .15s ease-out; }
.command-panel { width: min(620px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 28px 90px rgba(0,0,0,.28); animation: panelIn .18s var(--ease); }
.command-input { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted-2); }
.command-input input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.command-list { max-height: 360px; overflow: auto; padding: 8px; }
.command-group { padding: 8px 10px 5px; color: var(--muted-2); font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.command-item { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; font-size: 13px; }
.command-item:hover, .command-item.active { background: var(--brand-soft); color: var(--brand); }
.command-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }.command-item small { margin-left: auto; color: var(--muted-2); }
.command-empty { padding: 36px; text-align: center; color: var(--muted); font-size: 13px; }

.confirm-mask { align-items: center; padding-top: 20px; }
.confirm-panel { width: min(390px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 28px 90px rgba(0,0,0,.25); animation: panelIn .18s var(--ease); }
.confirm-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 700; }
.confirm-panel h3 { font-size: 17px; }.confirm-panel p { margin: 8px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast-stack { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 380px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-size: 12.5px; animation: toastIn .22s var(--ease); }
.toast-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--green); }.toast.error .toast-dot { background: var(--red); }.toast.warn .toast-dot { background: var(--amber); }

.overview-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.overview-welcome h2 { font-size: 24px; font-weight: 620; }.overview-welcome p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }.overview-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.overview-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 16px; margin-top: 16px; }
.chart-card { padding: 18px; }.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }.chart-head b { font-size: 14px; font-weight: 600; }.chart-head span { color: var(--muted); font-size: 11px; }
.mini-bars { height: 190px; display: flex; align-items: end; gap: 14px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); background-image: linear-gradient(to top, var(--line) 1px, transparent 1px); background-size: 100% 25%; }
.mini-bar { min-width: 24px; flex: 1; position: relative; height: var(--h); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--brand) 78%, white); transition: opacity .18s, filter .18s; }
.mini-bar:hover { filter: brightness(.92); }.mini-bar::after { content: attr(data-label); position: absolute; left: 50%; bottom: -27px; max-width: 70px; transform: translateX(-50%); color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-bar::before { content: attr(data-value); position: absolute; left: 50%; top: -21px; transform: translateX(-50%); color: var(--text); font-size: 10px; opacity: 0; }.mini-bar:hover::before { opacity: 1; }
.distribution { padding: 18px; }.dist-total { margin: 8px 0 18px; font-size: 30px; font-weight: 650; letter-spacing: -.04em; }.dist-list { display: grid; gap: 13px; }.dist-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }.dist-track { height: 6px; overflow: hidden; border-radius: 6px; background: var(--surface-3); }.dist-fill { height: 100%; width: var(--w); border-radius: inherit; background: var(--brand); }.dist-row:nth-child(2) .dist-fill { background: #60a5fa; }.dist-row:nth-child(3) .dist-fill { background: #93c5fd; }

/* 学籍与长期学生档案 */
.filter-bar { padding: 10px; }
.filter-search { min-width: 240px; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted-2); }
.filter-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.filter-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12.5px; }
.student-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.student-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 650; }
.student-cell b, .student-cell small { display: block; }.student-cell small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.table-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 2px; color: var(--muted); font-size: 12px; }.table-pager > div { display: flex; gap: 7px; }.table-pager .btn:disabled { opacity: .42; cursor: not-allowed; }
.modal.archive { max-width: 1040px; }
.archive-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.archive-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 18px; font-weight: 650; }
.archive-head h3 { font-size: 19px; }.archive-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }.archive-status { margin-left: auto; }
.archive-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 0; }
.archive-stats { padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.archive-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); }.archive-stats b { font-size: 22px; font-weight: 650; }.archive-stats span { color: var(--muted); font-size: 11px; }
.archive-section { min-width: 0; padding-top: 20px; }.archive-section h4 { margin-bottom: 14px; font-size: 14px; font-weight: 620; }.archive-section h4 span { color: var(--muted-2); font-size: 11px; font-weight: 450; }
.description-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.description-grid > div { min-height: 67px; padding: 12px 14px; background: var(--surface); }.description-grid .span-2 { grid-column: span 2; }.description-grid span, .description-grid b { display: block; }.description-grid span { margin-bottom: 5px; color: var(--muted); font-size: 10.5px; }.description-grid b { overflow-wrap: anywhere; font-size: 12.5px; font-weight: 520; }
.archive-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.timeline { position: relative; }.timeline::before { content: ""; position: absolute; left: 4px; top: 7px; bottom: 7px; width: 1px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 12px; padding-bottom: 18px; }.timeline-item > i { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }.timeline-item b { font-size: 12.5px; font-weight: 600; }.timeline-item span { float: right; color: var(--muted-2); font-size: 10.5px; }.timeline-item p { margin: 3px 0; color: var(--text); font-size: 11.5px; }.timeline-item small { color: var(--muted); font-size: 10.5px; }
.growth-list { display: grid; gap: 9px; max-height: 360px; overflow: auto; }.growth-item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.growth-item > span { color: var(--muted-2); font-size: 10.5px; }.growth-item b { font-size: 12.5px; font-weight: 600; }.growth-item small { display: inline-block; margin-left: 7px; color: var(--brand); font-size: 10px; }.growth-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-section { margin-bottom: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }.form-section:last-child { margin-bottom: 0; border-bottom: 0; }.form-section h4 { margin-bottom: 14px; font-size: 13px; font-weight: 620; }
.event-help { padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 11.5px; line-height: 1.6; }

/* 手机快速考勤 */
.attendance-head { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.attendance-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.attendance-summary b { color: var(--text); font-size: 14px; }.attendance-summary .warn { color: var(--amber); }.attendance-summary .danger { color: var(--red); }
.attendance-list { display: grid; gap: 9px; }
.attendance-card { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(390px,1.8fr) minmax(200px,1fr); align-items: center; gap: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.attendance-student { display: flex; align-items: center; gap: 10px; }.attendance-index { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 11px; }.attendance-student b { margin-right: 7px; font-size: 14px; }
.attendance-options { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; }.att-option { min-height: 34px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer; }.att-option:hover { border-color: var(--line-strong); color: var(--text); }.att-option.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }.att-option[data-status="late"].on { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }.att-option[data-status="absent"].on { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.attendance-note { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }.attendance-save { position: sticky; z-index: 8; bottom: 12px; display: flex; justify-content: flex-end; padding-top: 14px; pointer-events: none; }.attendance-save .btn { min-width: 160px; box-shadow: 0 10px 28px rgba(37,99,235,.22); pointer-events: auto; }

/* 教师工作量核算 */
.workload-month { display: flex; align-items: center; gap: 8px; }.workload-tabs { display: flex; gap: 7px; margin-bottom: 16px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }.workload-tabs .btn { flex: 0 0 auto; border-color: transparent; background: transparent; }.workload-tabs .btn.pri { background: var(--brand); color: #fff; }
.ph.sub { margin: 2px 0 12px; }.ph.sub h3 { font-size: 17px; font-weight: 620; }.workload-kpis { margin-bottom: 16px; }.workload-kpis .stat .n { font-size: 27px; }.check-line { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 12.5px; }.check-line input { width: 16px; height: 16px; accent-color: var(--brand); }
.choice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }.choice-grid .check-line { min-height: 38px; padding: 8px 10px; }
.public-settings-card { margin-top: 18px; padding: 18px; }.public-settings-card textarea { min-height: 140px; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 11.5px; line-height: 1.55; }.public-settings-card .toolbar { justify-content: space-between; margin-bottom: 0; }
.teacher-search { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(220px,1.2fr); gap: 8px; }.teacher-search input { background: var(--brand-soft); border-color: color-mix(in srgb,var(--brand) 28%,var(--line)); }
.name-link { padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 650; cursor: pointer; }.name-link:hover { text-decoration: underline; }
.bigdata-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 16px 18px; border-radius: 12px; background: linear-gradient(120deg,#0f172a,#173b69); color: #fff; box-shadow: 0 10px 28px rgba(15,23,42,.13); }.bigdata-head span,.bigdata-head b { display: block; }.bigdata-head span { color: #93c5fd; font-size: 11px; letter-spacing: .16em; }.bigdata-head b { margin-top: 4px; font-size: 19px; }.bigdata-live { color: #86efac; font-size: 11px; }
.workload-insights { display: grid; grid-template-columns: 1.25fr 1fr .9fr; gap: 14px; margin-bottom: 16px; }.workload-insights > .card { padding: 17px; }.metric-bars { display: grid; gap: 14px; }.metric-bars > div { display: grid; grid-template-columns: 82px 1fr 90px; align-items: center; gap: 9px; font-size: 11px; }.metric-bars i { height: 7px; overflow: hidden; border-radius: 9px; background: var(--surface-3); }.metric-bars em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),#22c55e); }.metric-bars b { text-align: right; font-size: 11px; }
.rank-list { display: grid; gap: 5px; }.rank-list button { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }.rank-list button:hover { background: var(--surface-2); }.rank-list i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-style: normal; }.rank-list span,.rank-list small { display: block; }.rank-list small { margin-top: 2px; color: var(--muted); font-size: 9.5px; }.rank-list b { font-size: 11px; }
.finance-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 15px; }.finance-kpis > div { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }.finance-kpis span,.finance-kpis b { display: block; }.finance-kpis span { margin-bottom: 5px; color: var(--muted); font-size: 10.5px; }.finance-kpis b { font-size: 18px; }

/* 成绩管理与多维分析 */
.analysis-filter { margin-bottom: 16px; padding: 16px 18px; }.analysis-filter-main { display: grid; grid-template-columns: minmax(250px,1.6fr) minmax(130px,.7fr) minmax(110px,.5fr) auto; align-items: end; gap: 10px; }.analysis-filter .field,.analysis-params .field { margin: 0; }.analysis-params { display: grid; grid-template-columns: repeat(6,minmax(88px,1fr)) auto; align-items: end; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }.analysis-params label { font-size: 10.5px; }.analysis-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 15px 18px; border-radius: 11px; background: linear-gradient(120deg,#172554,#164e63); color: #fff; }.analysis-head span,.analysis-head b { display: block; }.analysis-head span { color: #a5f3fc; font-size: 11px; letter-spacing: .1em; }.analysis-head b { margin-top: 4px; font-size: 17px; }.analysis-head small { color: #cbd5e1; text-align: right; }
.analysis-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 15px; }.analysis-kpis .stat { min-height: 100px; }.analysis-kpis .stat .n { font-size: 25px; }.analysis-tabs { display: flex; gap: 7px; margin-bottom: 14px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }.analysis-tabs .btn { flex: 0 0 auto; border-color: transparent; background: transparent; }.analysis-tabs .btn.pri { background: var(--brand); color: #fff; }.analysis-layout { display: grid; grid-template-columns: 1.45fr .75fr; gap: 14px; margin-bottom: 14px; }.analysis-card { padding: 17px; }.score-distribution { height: 220px; display: flex; align-items: flex-end; gap: 8px; padding-top: 20px; }.score-distribution > div { height: 100%; min-width: 38px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }.score-distribution span { font-size: 10.5px; text-align: center; }.score-distribution span small { display: block; color: var(--muted); }.score-distribution i { width: min(40px,80%); margin: 5px 0; border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg,#22c55e,var(--brand)); }.score-distribution b { color: var(--muted); font-size: 9.5px; white-space: nowrap; }.analysis-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }.analysis-summary > div { padding: 13px; border-radius: 8px; background: var(--surface-2); }.analysis-summary span,.analysis-summary b { display: block; }.analysis-summary span { color: var(--muted); font-size: 10.5px; }.analysis-summary b { margin-top: 4px; font-size: 18px; }
.analysis-delta { display: inline-flex; min-width: 42px; justify-content: center; padding: 2px 7px; border-radius: 12px; background: var(--surface-3); color: var(--muted); font-size: 10.5px; }.analysis-delta.up { background: var(--green-soft); color: var(--green); }.analysis-delta.down { background: var(--red-soft); color: var(--red); }.comparison-bar { display: block; width: 100px; height: 7px; overflow: hidden; border-radius: 8px; background: var(--surface-3); }.comparison-bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),#22c55e); }.trend-card { display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 12px; margin-top: 14px; padding: 17px; }.trend-wrap { grid-column: 1/-1; min-height: 90px; color: var(--muted); }.an-sub-full { width: 70px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }.teacher-tag { display: block; margin-top: 4px; color: var(--muted); white-space: nowrap; }.teacher-class,.subject-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 10.5px; }.student-analysis-tool { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 17px; }.student-analysis-tool select { min-width: 250px; }.target-kpis { margin-bottom: 14px; }.student-trend-chart { margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); overflow-x: auto; }.student-trend-chart > div { display: flex; justify-content: space-between; gap: 8px; min-width: 520px; }.student-trend-chart span { text-align: center; }.student-trend-chart span b,.student-trend-chart span small { display: block; }.student-trend-chart span small { max-width: 90px; overflow: hidden; color: var(--muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }

/* 后台批量导入 */
.import-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.import-card { min-height: 248px; display: flex; flex-direction: column; padding: 20px; }
.import-card h3 { margin: 14px 0 7px; font-size: 16px; font-weight: 620; }
.import-card p { flex: 1; margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.import-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 20px; font-weight: 650; }
.import-actions { display: flex; gap: 8px; margin-top: 15px; }
.import-actions .btn { flex: 1; justify-content: center; }
.import-preview, .import-result { margin-top: 16px; padding: 18px; }
.import-errors { display: grid; gap: 7px; max-height: 280px; overflow: auto; }
.import-errors > div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--red-soft); font-size: 11.5px; }
.import-errors b { color: var(--red); }.import-errors span { color: var(--text); overflow-wrap: anywhere; }

/* Art Design Pro 风格的产品级后台外壳 */
:root {
  --brand: #5b5ce2;
  --brand-2: #4849c9;
  --brand-soft: #f0f0ff;
  --ink: #18181b;
  --paper: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f1f3f7;
  --line: #e8eaf0;
  --line-strong: #d9dce5;
  --text: #25262b;
  --muted: #737786;
  --muted-2: #a5a9b5;
  --green: #13a870;
  --green-soft: #eaf9f3;
  --amber: #e59b24;
  --amber-soft: #fff7e8;
  --red: #e05252;
  --red-soft: #fff0f0;
  --shadow: 0 1px 2px rgba(22,28,45,.02), 0 5px 18px rgba(22,28,45,.035);
  --sidebar: 244px;
  --topbar: 60px;
  --radius: 12px;
}
[data-theme="dark"] {
  --brand: #8587ff;
  --brand-2: #7476ee;
  --brand-soft: #292a4e;
  --ink: #f3f4f8;
  --paper: #111218;
  --surface: #191a22;
  --surface-2: #20212a;
  --surface-3: #282a35;
  --line: #2c2e39;
  --line-strong: #3a3d49;
  --text: #f1f2f6;
  --muted: #a5a8b4;
  --muted-2: #737785;
  --green-soft: #123329;
  --amber-soft: #382b16;
  --red-soft: #3a1d20;
  --shadow: 0 8px 28px rgba(0,0,0,.15);
}
body { background: var(--paper); }
.side {
  background: var(--surface); color: var(--muted); border-right: 1px solid var(--line);
  box-shadow: 5px 0 18px rgba(25,29,42,.02);
}
.brand { height: var(--topbar); padding: 0 13px 0 17px; border-bottom: 1px solid var(--line); }
.brand-logo {
  width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px;
  background: linear-gradient(145deg,#7173f3,#4d4ed2); box-shadow: 0 7px 16px rgba(91,92,226,.22);
}
.brand-logo span { transform: translateY(-.5px); }
.brand .mark { color: var(--text); font-size: 14px; font-weight: 700; }
.brand .sub { color: var(--muted-2); font-size: 9.5px; letter-spacing: .02em; }
.side-collapse { border-color: var(--line); background: var(--surface-2); color: var(--muted-2); }
.side-collapse:hover { border-color: var(--line-strong); background: var(--surface-3); color: var(--text); }
.nav { padding: 13px 11px 18px; }
.nav-group-label { padding: 16px 10px 7px; color: var(--muted-2); letter-spacing: .09em; }
.nav button { min-height: 42px; padding: 10px 11px; border-radius: 9px; color: var(--muted); font-size: 13.5px; }
.nav button:hover { color: var(--text); background: var(--surface-2); }
.nav button.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.nav button.on::before { left: auto; right: -11px; top: 8px; bottom: 8px; width: 3px; background: var(--brand); }
.side .foot { min-height: 72px; padding: 12px 13px; border-top: 1px solid var(--line); }
.user-avatar { background: var(--brand-soft); color: var(--brand); }
.side .foot b { color: var(--text); }
#whoRole { color: var(--muted-2); }
.side .foot .logout-btn { color: var(--muted-2); }
.side .foot .logout-btn:hover { color: var(--red); background: var(--red-soft); }
.topbar { padding: 0 26px; background: color-mix(in srgb,var(--surface) 94%,transparent); }
.crumb strong { font-weight: 650; }
.search-trigger { min-width: 232px; background: var(--surface-2); border-color: transparent; }
.search-trigger:hover { border-color: var(--brand); background: var(--surface); }
.icon-action { border-color: transparent; background: var(--surface-2); }
.top-avatar { border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.worktabs-bar {
  position: sticky; z-index: 35; top: var(--topbar); height: 40px; display: flex; align-items: center; gap: 5px;
  padding: 5px 25px; border-bottom: 1px solid var(--line); background: color-mix(in srgb,var(--surface) 96%,transparent);
  backdrop-filter: blur(12px);
}
.worktab-home,.worktab { height: 29px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.worktab-home { width: 29px; font-size: 17px; }
.worktab-home:hover { background: var(--surface-3); color: var(--brand); }
.worktab { display: flex; align-items: center; gap: 7px; padding: 0 10px; font-size: 11.5px; }
.worktab.active { background: var(--brand-soft); color: var(--brand); }
.worktab i { color: var(--muted-2); font-style: normal; font-size: 13px; }
.worktab-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.main { max-width: 1600px; padding: 24px 28px 64px; }
.ph { margin-bottom: 18px; }
.ph h2 { font-size: 22px; font-weight: 680; }
.card { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card:hover { border-color: var(--line-strong); }
.stat::after { display: none; }
.btn { border-radius: 7px; box-shadow: none; }
.btn.pri,.btn.on { box-shadow: 0 5px 12px rgba(91,92,226,.14); }
.toolbar { border-radius: 11px; box-shadow: var(--shadow); }
thead th { background: var(--surface-2); color: var(--muted); font-weight: 600; }
tbody tr:hover { background: color-mix(in srgb,var(--brand-soft) 48%,var(--surface)); }
.badge { border-radius: 6px; }
.section-title { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; }
.section-title > div b,.section-title > div span { display: block; }
.section-title > div b { color: var(--text); font-size: 13.5px; }
.section-title > div span { margin-top: 2px; color: var(--muted); font-size: 10.5px; font-weight: 400; }

/* 模块化全校工作台 */
.overview-welcome {
  position: relative; overflow: hidden; align-items: center; min-height: 112px; padding: 22px 24px; margin-bottom: 18px;
  border: 1px solid color-mix(in srgb,var(--brand) 12%,var(--line)); border-radius: 14px;
  background: linear-gradient(112deg,color-mix(in srgb,var(--brand-soft) 72%,var(--surface)),var(--surface) 66%);
  box-shadow: var(--shadow);
}
.overview-welcome::after { content: ""; position: absolute; right: -35px; top: -80px; width: 250px; height: 250px; border-radius: 50%; border: 44px solid color-mix(in srgb,var(--brand) 7%,transparent); pointer-events: none; }
.overview-kicker { display: block; margin-bottom: 7px; color: var(--brand); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; }
.overview-welcome h2 { font-size: 23px; font-weight: 700; }
.overview-welcome p { color: var(--muted); }
.overview-date { position: relative; z-index: 1; min-width: 185px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: color-mix(in srgb,var(--surface) 88%,transparent); }
.overview-date span,.overview-date b { display: block; }
.overview-date span { margin-bottom: 2px; color: var(--muted-2); font-size: 9.5px; }
.overview-date b { color: var(--text); font-size: 11.5px; font-weight: 600; }
.overview-stat-grid { gap: 14px; }
.art-stat { min-height: 118px; display: flex; align-items: center; gap: 13px; padding: 18px; transition: transform .2s var(--ease),box-shadow .2s var(--ease); }
.art-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28,32,48,.07); }
.art-stat .stat-copy { min-width: 0; flex: 1; }
.art-stat .l { margin: 0 0 3px; font-size: 11px; }
.art-stat .n { font-size: 28px; line-height: 1.15; }
.art-stat .stat-trend { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-stat-icon,.quick-grid i { display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-style: normal; font-weight: 700; }
.ov-stat-icon { width: 43px; height: 43px; font-size: 14px; }
.blue { background: #eaf2ff !important; color: #3577e6 !important; }.violet { background: #f0edff !important; color: #7656dd !important; }.amber { background: #fff5e5 !important; color: #dc8d18 !important; }.green { background: #e9f9f2 !important; color: #15a36c !important; }
[data-theme="dark"] .blue { background: #1d2d4a !important; color: #78a9ff !important; }[data-theme="dark"] .violet { background: #2f284c !important; color: #a995ff !important; }[data-theme="dark"] .amber { background: #3b2d17 !important; color: #f0b45c !important; }[data-theme="dark"] .green { background: #17372c !important; color: #5fd5a2 !important; }
.stat-arrow { align-self: flex-start; color: var(--muted-2); font-size: 13px; }
.art-dashboard-row { grid-template-columns: minmax(0,1.55fr) minmax(300px,.72fr); gap: 14px; margin-top: 14px; }
.chart-card,.distribution { min-height: 328px; }
.chart-head { margin-bottom: 16px; }
.chart-head b { font-size: 13.5px; }.chart-head span { line-height: 1.5; }
.chart-tag { padding: 4px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand) !important; font-weight: 600; }
.chart-tag.success { background: var(--green-soft); color: var(--green) !important; }
.mini-bars { height: 226px; gap: 10px; padding-inline: 7px; background-size: 100% 20%; }
.mini-bar { min-width: 18px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg,#8587f3,var(--brand)); box-shadow: 0 6px 13px rgba(91,92,226,.12); }
.distribution { padding: 18px; }
.distribution .chart-head { padding: 0; }
.dist-total { margin: 4px 0 19px; font-size: 37px; }
.dist-total b { font-size: inherit; }.dist-total small { margin-left: 3px; color: var(--muted-2); font-size: 15px; }
.dist-row { grid-template-columns: 62px 1fr 30px; }
.dist-track { height: 7px; background: var(--surface-3); }
.dist-fill { background: linear-gradient(90deg,var(--brand),#8d8ef5); }
.overview-lower { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.72fr); gap: 14px; margin-top: 14px; }
.overview-table-card { min-width: 0; }
.overview-table-card .table-scroll { max-height: 430px; overflow: auto; }
.overview-side-stack { display: grid; align-content: start; gap: 14px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.quick-grid button { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid transparent; border-radius: 9px; background: var(--surface-2); color: var(--text); text-align: left; }
.quick-grid button:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.quick-grid i { width: 34px; height: 34px; font-size: 12px; }
.quick-grid span { min-width: 0; }.quick-grid b,.quick-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-grid b { font-size: 11.5px; }.quick-grid small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.snapshot-list { display: grid; grid-template-columns: 1fr 1fr; padding: 4px 15px 15px; }
.snapshot-list > div { padding: 12px 7px; border-bottom: 1px solid var(--line); }
.snapshot-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.snapshot-list span,.snapshot-list b { display: block; }
.snapshot-list span { margin-bottom: 4px; color: var(--muted); font-size: 10px; }.snapshot-list b { font-size: 14px; }
.snapshot-list b small { color: var(--muted); font-size: 9px; font-weight: 400; }.snapshot-list .healthy { color: var(--green); font-size: 11px; }.snapshot-list .healthy i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* 教师工作量：与工作台一致的浅色模块化界面 */
.workload-page-head { align-items: center; margin-bottom: 14px; }
.workload-title { display: flex; align-items: center; gap: 12px; }
.workload-title-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; }
.workload-title .hint { margin-top: 3px; }
.workload-month { padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.workload-month .btn { border-color: transparent; }
.workload-tabs { min-height: 48px; align-items: center; gap: 3px; margin-bottom: 18px; padding: 5px; border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.workload-tabs .btn { min-height: 36px; padding-inline: 14px; color: var(--muted); }
.workload-tabs .btn:hover { background: var(--surface-2); color: var(--text); }
.workload-tabs .btn.pri { border-color: transparent; background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.workload-report-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 4px 2px 14px; }
.workload-report-heading > div:first-child span,.workload-report-heading > div:first-child b,.workload-report-heading > div:first-child small { display: block; }
.workload-report-heading > div:first-child span { margin-bottom: 4px; color: var(--brand); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.workload-report-heading > div:first-child b { color: var(--text); font-size: 17px; }
.workload-report-heading > div:first-child small { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.bigdata-live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 7px; background: var(--green-soft); color: var(--green); }
.bigdata-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb,var(--green) 13%,transparent); }
.workload-primary-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.workload-stat-card { min-height: 142px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 21px 20px; transition: transform .2s var(--ease),box-shadow .2s var(--ease); }
.workload-stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28,32,48,.07); }
.workload-stat-card > div { min-width: 0; }
.workload-stat-card span,.workload-stat-card b,.workload-stat-card small { display: block; }
.workload-stat-card span { color: var(--muted); font-size: 12px; }
.workload-stat-card b { margin: 9px 0 7px; overflow: hidden; color: var(--text); font-size: 27px; line-height: 1; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.workload-stat-card small { overflow: hidden; color: var(--muted-2); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.workload-stat-card > i { width: 49px; height: 49px; display: grid; place-items: center; flex: 0 0 49px; border-radius: 13px; font-style: normal; font-size: 14px; font-weight: 700; }
.workload-secondary-strip { display: grid; grid-template-columns: repeat(4,minmax(100px,1fr)) minmax(260px,1.4fr); align-items: center; margin-bottom: 14px; padding: 13px 17px; }
.workload-secondary-strip > div { padding: 3px 14px; border-right: 1px solid var(--line); }
.workload-secondary-strip > div:first-child { padding-left: 2px; }
.workload-secondary-strip span,.workload-secondary-strip b { display: block; }
.workload-secondary-strip span { color: var(--muted); font-size: 9.5px; }.workload-secondary-strip b { margin-top: 3px; font-size: 16px; }
.workload-secondary-strip > small { justify-self: end; max-width: 250px; color: var(--muted); font-size: 9.5px; line-height: 1.5; text-align: right; }
.workload-page .workload-insights { grid-template-columns: 1.3fr 1fr .9fr; gap: 14px; margin-bottom: 14px; }
.workload-page .workload-insights > .card { min-width: 0; padding: 0; }
.workload-page .workload-insights .table-scroll { max-height: 310px; overflow: auto; }
.workload-page .metric-bars { padding: 16px 17px 20px; }
.workload-page .metric-bars > div { grid-template-columns: 70px minmax(70px,1fr) 84px; }
.workload-page .metric-bars em { background: linear-gradient(90deg,#6688f4,var(--brand)); }
.workload-page .rank-list { padding: 9px 10px 13px; }
.workload-page .rank-list button { min-height: 48px; }
.workload-page .rank-list i { background: var(--brand-soft); color: var(--brand); }

/* 教师任课课程表 */
.teacher-week-grid table,.teacher-period-grid table{min-width:980px;table-layout:fixed}.teacher-week-grid th:first-child{width:132px}.teacher-week-grid tbody th{padding:14px;text-align:left;vertical-align:top;background:var(--surface-2)}.teacher-week-grid tbody th small{display:block;margin-top:4px;color:var(--muted);font-size:10px;font-weight:400}.teacher-week-grid td,.teacher-period-grid td{padding:7px;vertical-align:top}.teacher-week-grid td>em,.teacher-period-grid td>em{display:block;padding:9px 4px;color:var(--muted-2);font-size:10px;font-style:normal;text-align:center}.schedule-pill{display:block;width:100%;margin:0 0 5px;padding:7px 8px;border:1px solid #cfddf0;border-radius:8px;background:#eef5ff;color:#355477;font:500 10.5px/1.45 var(--font);text-align:left}.schedule-pill b,.schedule-pill small{display:block}.schedule-pill b{margin-bottom:2px;color:var(--brand);font-size:10px}.schedule-pill small{color:var(--muted);font-size:9px}.teacher-period-grid th:first-child{width:90px}.teacher-period-grid tbody th{background:var(--surface-2);font-size:11px}

/* 考务监考拖拽编排 */
.invigilator-board{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(420px,1.7fr);gap:14px}.invigilator-pool{padding:13px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.invigilator-pool>b,.invigilator-pool>small{display:block}.invigilator-pool>small{margin:3px 0 10px;color:var(--muted);font-size:10px}.teacher-drag-list{display:flex;flex-wrap:wrap;gap:6px;max-height:230px;overflow:auto}.teacher-drag-chip{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid #cbd9eb;border-radius:8px;background:#fff;color:var(--text);font-size:11px;font-weight:650;cursor:grab}.teacher-drag-chip small{color:var(--muted);font-size:8px;font-weight:400}.pool-divider{flex-basis:100%;margin-top:5px;color:var(--muted);font-size:9px}.invigilator-trash{margin-top:12px;padding:12px;border:1px dashed #e6a8a8;border-radius:9px;background:#fff5f5;color:var(--red);font-size:10px;text-align:center}.invigilator-assignments{display:grid;gap:8px;align-content:start}.invigilator-card{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(180px,1fr) auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:9px;background:#fff;cursor:grab}.invigilator-card span b,.invigilator-card span small,.invigilator-card em,.invigilator-card em small{display:block}.invigilator-card span small,.invigilator-card em small{margin-top:2px;color:var(--muted);font-size:9px}.invigilator-card em{font-size:10px;font-style:normal}
@media(max-width:760px){.invigilator-board{grid-template-columns:1fr}.invigilator-card{grid-template-columns:1fr auto}.invigilator-card>em{grid-column:1/-1;grid-row:2}.teacher-week-grid table,.teacher-period-grid table{min-width:760px}}
.workload-ledger { overflow: hidden; }
.workload-ledger .table-scroll { overflow: auto; }
.workload-page #wlBody > .ph.sub { min-height: 68px; align-items: center; margin: 0 0 13px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.workload-page #wlBody > .card + .card { margin-top: 14px; }
.workload-page .public-settings-card { border-radius: 12px; }

body.side-collapsed { --sidebar: 72px; }
body.side-collapsed .brand-copy, body.side-collapsed .nav-group-label, body.side-collapsed .nav button .nav-text, body.side-collapsed .user-copy, body.side-collapsed .logout-btn span { opacity: 0; width: 0; pointer-events: none; }
body.side-collapsed .brand { padding-inline: 20px 12px; gap: 7px; }.side-collapsed .side-collapse { position: absolute; left: 58px; background: var(--surface); color: var(--muted); border-color: var(--line); }.side-collapsed .nav button { justify-content: center; padding-inline: 10px; }.side-collapsed .nav button.on::before { top: 8px; bottom: 8px; }.side-collapsed .side .foot { justify-content: center; padding-inline: 10px; }.side-collapsed .logout-btn { display: none; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px) scale(.99) } to { opacity: 1; transform: none } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* 紧凑内容模式：桌面端移除右侧顶部双层工具栏 */
@media (min-width: 821px) {
  .workspace > .topbar,
  .workspace > .worktabs-bar { display: none; }
  .main { padding-top: 20px; }
}

@media (max-width: 1100px) {
  body:not(.side-collapsed) { --sidebar: 216px; }
  .main { padding-inline: 24px; }.search-trigger { min-width: 180px; }.search-trigger > span:nth-child(2) { display: none; }.search-trigger { min-width: 74px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }.overview-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  body { --sidebar: 240px !important; }
  .side { width: var(--sidebar); left: 0; transform: translateX(-105%); }
  .side.open { left: 0; transform: translateX(0); }.side-collapse { display: none; }.side-mask.open { display: block; }
  .topbar { height: 58px; padding: 0 16px; }.mobile-menu { display: block; }.crumb > span, .crumb i { display: none; }.top-actions { margin-left: auto; }.search-trigger { min-width: 36px; width: 36px; padding: 0; justify-content: center; }.search-trigger kbd { display: none; }.top-avatar { display: none; }
  .worktabs-bar { display: none; }
  .main { padding: 16px 16px 56px; }.ph h2 { font-size: 21px; }.overview-welcome { align-items: flex-start; flex-direction: column; }.overview-date { white-space: normal; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }.g2 { grid-template-columns: 1fr; }.frow { grid-template-columns: 1fr; }
  .stat { min-height: 112px; padding: 18px; }.stat .n { font-size: 28px; }
  .card { overflow-x: auto; }.command-mask { padding-inline: 12px; }.toast-stack { left: 12px; right: 12px; bottom: 12px; }.toast { min-width: 0; max-width: none; }
  .archive-columns { grid-template-columns: 1fr; gap: 4px; }.description-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.filter-search { width: 100%; min-width: 0; }.enrollment-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .attendance-card { grid-template-columns: 1fr; gap: 10px; padding: 13px; }.attendance-options { grid-template-columns: repeat(5,minmax(0,1fr)); }.attendance-summary { gap: 10px; overflow-x: auto; white-space: nowrap; }
  .workload-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }.workload-tabs { margin-inline: -4px; }
  .workload-insights { grid-template-columns: 1fr; }.teacher-search { grid-template-columns: 1fr; }
  .workload-primary-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }.workload-secondary-strip { grid-template-columns: repeat(4,minmax(80px,1fr)); }.workload-secondary-strip > small { grid-column: 1/-1; justify-self: start; max-width: none; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); text-align: left; }.workload-page .workload-insights { grid-template-columns: 1fr; }
  .analysis-filter-main { grid-template-columns: 1fr 1fr; }.analysis-params { grid-template-columns: repeat(3,1fr); }.analysis-layout { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .import-grid { grid-template-columns: 1fr; }.import-card { min-height: 0; }
  .art-dashboard-row,.overview-lower { grid-template-columns: 1fr; }.overview-side-stack { grid-template-columns: 1fr 1fr; }.overview-welcome { min-height: 0; }.overview-date { min-width: 0; }
}

@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr; }.ph { align-items: flex-start; flex-direction: column; }.ph > div { width: 100%; }.toolbar { align-items: stretch; }.toolbar .btn, .toolbar input, .toolbar select { max-width: 100%; }
  .modal { max-height: calc(100dvh - 24px); }.mask { align-items: flex-end; padding: 12px; }.mbody { max-height: 62dvh; }.mini-bars { gap: 8px; }
  .description-grid { grid-template-columns: 1fr; }.description-grid .span-2 { grid-column: auto; }.archive-actions { justify-content: flex-start; overflow-x: auto; }.archive-actions .btn { white-space: nowrap; }.enrollment-kpis { grid-template-columns: 1fr; }
  .attendance-head > * { flex: 1; min-width: 0; }.attendance-options { gap: 4px; }.att-option { min-height: 40px; padding-inline: 3px; }.attendance-save { bottom: 8px; }.attendance-save .btn { width: 100%; min-height: 46px; }.ph-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.ph-actions .btn { min-width: 0; }
  .workload-month { width: 100%; }.workload-month > * { flex: 1; min-width: 0; }.workload-kpis { grid-template-columns: 1fr; }
  .workload-page-head { align-items: stretch; }.workload-title { align-items: flex-start; }.workload-primary-kpis { grid-template-columns: 1fr; }.workload-stat-card { min-height: 116px; padding: 17px; }.workload-secondary-strip { grid-template-columns: 1fr 1fr; padding: 10px; }.workload-secondary-strip > div { padding: 9px; border-right: 0; border-bottom: 1px solid var(--line); }.workload-secondary-strip > div:nth-child(3),.workload-secondary-strip > div:nth-child(4) { border-bottom: 0; }.workload-report-heading { align-items: flex-start; flex-direction: column; }.workload-tabs { margin-inline: 0; }
  .finance-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }.bigdata-head { align-items: flex-start; gap: 10px; flex-direction: column; }
  .analysis-filter-main,.analysis-params { grid-template-columns: 1fr; }.analysis-head { align-items: flex-start; flex-direction: column; }.analysis-head small { text-align: left; }.analysis-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }.student-analysis-tool,.trend-card { align-items: stretch; flex-direction: column; display: flex; }.student-analysis-tool select { width: 100%; min-width: 0; }.score-distribution { overflow-x: auto; }.score-distribution > div { min-width: 50px; }
  .choice-grid { grid-template-columns: 1fr; }.public-settings-card .toolbar { align-items: stretch; flex-direction: column; }
  .import-actions { flex-direction: column; }.import-errors > div { grid-template-columns: 1fr; gap: 3px; }
  .worktabs-bar { padding-inline: 10px; }.overview-welcome { gap: 15px; padding: 19px; }.overview-welcome::after { display: none; }.overview-date { width: 100%; }.overview-stat-grid { grid-template-columns: 1fr !important; }.art-stat { min-height: 104px; }.overview-side-stack { grid-template-columns: 1fr; }.quick-grid { grid-template-columns: 1fr 1fr; }.mini-bars { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* v21 六大业务中心 */
.center-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 156px; margin-bottom: 18px; padding: 26px 30px; border: 1px solid rgba(91,83,232,.16); border-radius: 14px; background: linear-gradient(120deg,var(--surface),rgba(91,83,232,.055)); box-shadow: var(--shadow); }
.center-hero::after { content:""; position:absolute; width:260px; height:260px; right:-75px; top:-130px; border:34px solid rgba(91,83,232,.055); border-radius:50%; pointer-events:none; }
.center-hero > div { position:relative; z-index:1; }.center-hero span { color:var(--brand); font-size:11px; font-weight:700; letter-spacing:.18em; }.center-hero h2 { margin-top:8px; font-size:25px; }.center-hero p { margin:8px 0 0; color:var(--muted); font-size:13px; }.center-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.center-kpis { margin-bottom:16px; }.center-kpis .stat { min-height:112px; }.center-kpis .n { font-family:var(--sans); font-size:31px; font-weight:700; }
.center-module-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }.center-module { display:flex; min-height:145px; padding:21px; border:1px solid var(--line); text-align:left; flex-direction:column; align-items:flex-start; transition:.16s ease; }.center-module:hover { transform:translateY(-2px); border-color:rgba(91,83,232,.3); box-shadow:0 12px 28px rgba(40,44,75,.1); }.center-module i { display:grid; place-items:center; width:38px; height:38px; margin-bottom:14px; border-radius:11px; color:var(--brand); background:var(--brand-soft); font-style:normal; font-weight:700; }.center-module b { font-size:15px; }.center-module span { margin-top:6px; color:var(--muted); font-size:11px; line-height:1.7; }
.group-chip-list { display:flex; gap:7px; flex-wrap:wrap; max-height:150px; overflow:auto; }.group-chip-list span { padding:5px 9px; border-radius:7px; background:var(--surface-3); color:var(--muted); font-size:11px; }
.archive-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:16px; }.archive-summary span { padding:11px; border-radius:9px; background:var(--surface-3); color:var(--muted); font-size:10px; }.archive-summary b { display:block; margin-top:4px; color:var(--text); font-size:17px; }.archive-block { padding:14px 0; border-top:1px solid var(--line); }.archive-block h4 { display:flex; justify-content:space-between; align-items:center; margin:0 0 9px; font-family:var(--sans); font-size:13px; }.archive-line { display:flex; justify-content:space-between; gap:14px; padding:8px 0; font-size:11px; border-bottom:1px dashed var(--line); }.archive-line:last-child { border-bottom:0; }.archive-line span { color:var(--muted); text-align:right; }
.exam-tabs,.center-tabs { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }.exam-tabs { margin-bottom:13px; }.center-tabs { margin:0 0 13px; padding:6px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }.center-tabs .btn { border:0; box-shadow:none; }
.missing-board { min-height:280px; }.missing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:16px; }.missing-grid > span { padding:12px; border:1px solid var(--line); border-radius:9px; background:var(--surface-2); }.missing-grid b,.missing-grid small { display:block; }.missing-grid small { margin-top:3px; color:var(--muted); font-size:10px; }
.decision-portraits { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:16px; }.portrait-card { display:flex; align-items:center; gap:12px; min-height:112px; padding:18px; text-align:left; border:1px solid var(--line); }.portrait-card i { display:grid; place-items:center; flex:0 0 42px; height:42px; border-radius:12px; color:var(--brand); background:var(--brand-soft); font-style:normal; font-weight:700; }.portrait-card span { flex:1; min-width:0; }.portrait-card b,.portrait-card small { display:block; }.portrait-card b { font-size:14px; }.portrait-card small { margin-top:5px; color:var(--muted); font-size:10px; line-height:1.55; }.portrait-card em { color:var(--brand); font-size:10px; font-style:normal; white-space:nowrap; }
.decision-lower { align-items:start; }.alert-list,.data-link-list { padding:9px 17px 17px; }.alert-list button,.data-link-list > div { display:grid; grid-template-columns:9px 1fr auto; align-items:center; gap:9px; width:100%; padding:12px 2px; border:0; border-bottom:1px solid var(--line); background:none; color:var(--text); text-align:left; font-size:11px; }.alert-list i { width:7px; height:7px; border-radius:50%; background:#7694ee; }.alert-list i.warn-dot { background:#f59e0b; }.alert-list i.danger-dot { background:#ef4444; }.alert-list b { font-size:16px; }.data-link-list > div { grid-template-columns:1fr auto; }.data-link-list > div:last-child,.alert-list button:last-child { border-bottom:0; }
@media (max-width:1100px){.center-module-grid,.decision-portraits,.missing-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:820px){.center-hero{align-items:flex-start; flex-direction:column; min-height:0; padding:20px;}.center-actions{justify-content:flex-start;}.archive-summary{grid-template-columns:repeat(2,1fr);}}
@media (max-width:520px){.center-module-grid,.decision-portraits,.missing-grid{grid-template-columns:1fr;}.center-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}.center-hero h2{font-size:22px;}.center-actions .btn{flex:1;}.archive-line{flex-direction:column;gap:2px}.archive-line span{text-align:left;}}
