/* ==========================================================================
   晴空蓝 · 学生资助三项目平台
   冷白画布 / 皇家蓝主色 / 柿橙提醒 / 顶部横向导航 / 无衬线标题
   仅覆盖视觉层，不改动业务结构。
   ========================================================================== */

:root {
  --paper: #f4f7fc;
  --paper-deep: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --surface-3: #eff4fc;
  --ink: #162033;
  --ink-2: #33415c;
  --muted: #66738c;
  --faint: #8d99ae;
  --line: #e1e7f3;
  --line-soft: #edf1f8;
  --green: #2f5bd7;
  --green-2: #2348b4;
  --green-3: #5b7ce8;
  --green-wash: #eef3ff;
  --green-mist: #f5f8ff;
  --red: #d25136;
  --red-2: #b8422c;
  --red-wash: #fdf0ec;
  --amber: #ae7418;
  --amber-wash: #fdf6e8;
  --blue: #2f5bd7;
  --blue-wash: #eef3ff;
  --success: #0f8a6a;
  --success-wash: #e9f8f2;
  --violet: #6b5bd2;
  --violet-wash: #f1efff;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(22, 32, 51, 0.03), 0 12px 30px -26px rgba(22, 32, 51, 0.35);
  --shadow-lift: 0 18px 50px -28px rgba(22, 32, 51, 0.32);
  --serif: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.002em;
}

h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.01em; }
a { color: var(--green); }
a:hover { color: var(--green-2); }
::selection { background: #dbe5ff; color: var(--ink); }

/* ---------------------------------------------------------------- 顶部外壳 */

.shell { display: block; min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 1480px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-seal {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 7px 16px -9px rgba(47, 91, 215, 0.8);
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.28; }
.brand-text strong { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.brand-text small { font-size: 9.5px; color: var(--faint); letter-spacing: 0.04em; margin-top: 2px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.top-nav { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1 1 auto; }
.top-nav .nav-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.top-nav .nav-item .nav-icon { width: 15px; height: 15px; color: #93a0b7; }
.top-nav .nav-item:hover { background: var(--surface-2); color: var(--ink); }
.top-nav .nav-item.active { background: var(--green-wash); color: var(--green); font-weight: 600; }
.top-nav .nav-item.active .nav-icon { color: var(--green); }
.nav-count {
  min-width: 17px; height: 17px; padding: 0 5px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}
.nav-count--violet { background: var(--violet); }
.nav-count--amber { background: var(--amber); }
.nav-count--red { background: var(--red); }

.nav-more { position: relative; flex: 0 0 auto; }
.nav-more > summary { list-style: none; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--muted); font-size: 12.5px; font-weight: 500;
}
.nav-more-toggle:hover, .nav-more[open] .nav-more-toggle { background: var(--surface-2); color: var(--ink); }
.nav-caret { width: 12px; height: 12px; transform: rotate(90deg); transition: transform 160ms ease; }
.nav-more[open] .nav-caret { transform: rotate(-90deg); }
.nav-more-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 190px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 48px -24px rgba(22, 32, 51, 0.38);
  z-index: 45;
}
.nav-more-panel .nav-item { width: 100%; padding: 9px 10px; justify-content: flex-start; }

.header-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.term-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-family: var(--mono);
  white-space: nowrap;
}
.header-tools .user-card { border: 0; padding: 0; gap: 8px; }
.header-tools .user-meta strong { font-size: 12px; }
.header-tools .user-meta span { font-size: 9.5px; }
.header-tools .avatar { width: 32px; height: 32px; flex-basis: 32px; }
.header-tools .user-actions { margin-left: 4px; }

.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
  background: var(--green-wash);
  color: var(--green);
  border: 0;
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 700;
}
.user-card { display: flex; align-items: center; gap: 9px; }
.user-meta { min-width: 0; flex: 1; line-height: 1.32; }
.user-meta strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { display: block; font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-actions { margin-left: auto; display: flex; gap: 2px; }
.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--faint);
  border-radius: 8px;
}
.icon-btn:hover { background: var(--surface-3); color: var(--green); }
.icon-btn svg { width: 15px; height: 15px; }

.mobile-toggle {
  display: none;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 9px;
}
.mobile-toggle svg { width: 17px; height: 17px; }

/* 移动抽屉 */
.mobile-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 292px;
  height: 100vh;
  padding: 18px 16px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 60px -40px rgba(22, 32, 51, 0.45);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 200ms ease, visibility 200ms ease;
  z-index: 70;
  overflow-y: auto;
}
body.nav-open .mobile-drawer { transform: none; visibility: visible; }
body.nav-open::after {
  content: "";
  position: fixed; inset: 0;
  background: rgba(18, 29, 51, 0.42);
  backdrop-filter: blur(2px);
  z-index: 65;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-nav { display: flex; flex-direction: column; gap: 3px; padding-top: 14px; }
.drawer-nav .nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; }
.drawer-nav .nav-item .nav-icon { width: 17px; height: 17px; color: var(--faint); }
.drawer-nav .nav-item.active { background: var(--green-wash); color: var(--green); font-weight: 600; }
.drawer-nav .nav-item.active .nav-icon { color: var(--green); }
.drawer-nav .nav-count { margin-left: auto; }
.drawer-nav .nav-more-panel { position: static; padding: 2px 0 2px 8px; border: 0; box-shadow: none; min-width: 0; }
.drawer-nav .nav-more-toggle { display: flex; width: 100%; padding: 10px 11px; }
.drawer-nav .nav-caret { margin-left: auto; }
.nav-label { font-size: 9px; color: var(--faint); letter-spacing: 0.14em; padding: 14px 10px 4px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.sidebar-note { margin: 12px 4px 0; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 10px; color: var(--faint); line-height: 1.7; }

/* 面包屑 / 截止条 */
.context-bar { background: rgba(244, 247, 252, 0.8); border-bottom: 1px solid rgba(225, 231, 243, 0.75); }
.context-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 9px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.crumb { font-size: 10.5px; color: var(--faint); letter-spacing: 0.08em; }
.context-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.deadline-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--red-wash);
  color: #a9422b;
  font-size: 10.5px;
  white-space: nowrap;
}
.deadline-pill svg { width: 13px; height: 13px; }
.deadline-pill strong { font-weight: 700; color: var(--red); }
.context-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.context-link svg { width: 14px; height: 14px; }
.context-link:hover { color: var(--green); }

/* ---------------------------------------------------------------- 页面骨架 */

.main { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 73px); }
.content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 30px 32px 60px; flex: 1; }
.foot {
  display: flex; justify-content: space-between; gap: 12px;
  max-width: 1480px; width: 100%; margin: 0 auto;
  padding: 18px 32px 26px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 24px; }
.page-head h1 {
  font-family: var(--sans);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}
.lede { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 70ch; }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  color: var(--green);
  letter-spacing: 0.16em;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.page-head-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 卡片 */

.card, .stat-card, .project-card, .module-card, .side-card, .form-paper,
.export-card, .material-card, .class-material-card, .scholarship-gate,
.review-panel, .credential-card, .import-card, .account-batch, .project-compare,
.review-summary > div, .export-line, .export-hero, .report-card, .report-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 24px 26px; }
.card-title { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: -0.005em; display: flex; align-items: center; gap: 7px; }
.card-title > .icon, .side-card h3 svg { color: var(--green); width: 16px; height: 16px; }
.card-sub, .side-card p, .project-card-top p { color: var(--muted); font-size: 11px; }
.side-card { padding: 19px 20px; }
.side-card h3 { font-family: var(--sans); font-size: 13.5px; font-weight: 700; }
.side-list dt { color: var(--faint); }
.side-list dd { color: var(--ink-2); }

/* 业务模块 */
.module-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.module-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 19px;
  border-left: 0;
  border-top: 3px solid var(--green);
  color: var(--ink);
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.module-card--scholar { border-top-color: var(--violet); }
.module-card--grant { border-top-color: var(--amber); }
.module-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); color: var(--ink); }
.module-icon {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--green-wash);
}
.module-card--scholar .module-icon { background: var(--violet-wash); }
.module-card--grant .module-icon { background: var(--amber-wash); }
.module-icon svg { width: 19px; height: 19px; color: var(--green); }
.module-card--scholar .module-icon svg { color: var(--violet); }
.module-card--grant .module-icon svg { color: var(--amber); }
.module-card strong { font-family: var(--sans); font-size: 14px; font-weight: 700; }
.module-card p { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.module-arrow { margin-left: auto; color: var(--faint); }
.module-arrow svg { width: 15px; height: 15px; }
.project-kicker { color: var(--faint); letter-spacing: 0.1em; font-size: 8.5px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { position: relative; padding: 18px 19px 16px; overflow: hidden; }
.stat-card::after { display: none; }
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 3px; height: 28px;
  border-radius: 0 3px 3px 0; background: var(--green);
}
.stat-card.stat--amber::before { background: var(--amber); }
.stat-card.stat--faint::before { background: #aab6cc; }
.stat-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 500; }
.stat-label svg { width: 14px; height: 14px; color: var(--faint); }
.stat-value { font-family: var(--sans); font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; margin-top: 4px; color: var(--ink); }
.stat-value small { font-size: 11px; font-weight: 500; color: var(--faint); margin-left: 3px; }
.stat-note { color: var(--faint); font-size: 10px; margin-top: 1px; }
.stat-note .up { color: var(--green); font-weight: 600; }

/* 学生项目卡 */
.project-card { border-top: 3px solid var(--green); padding: 23px 23px 0; }
.project-card--scholarship { border-top-color: var(--violet); }
.project-card--grant { border-top-color: var(--amber); }
.project-card:hover, .material-card:hover, .class-material-card:hover { border-color: #cbd7ee; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.project-card h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.project-no { font-family: var(--mono); font-weight: 600; color: var(--faint); font-size: 12px; }
.project-card--scholarship .project-no { color: var(--violet); }
.project-card--grant .project-no { color: var(--amber); }
.project-card.is-locked, .material-card.is-locked { background: #fbfcff; }
.project-kicker { color: var(--faint); letter-spacing: 0.1em; }
.project-meta { border-color: var(--line-soft); }
.project-lock { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm); }
.project-lock--wait { background: var(--surface-2); }
.project-card-foot { border-top: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------- 表格 */

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: auto; box-shadow: var(--shadow); }
.data thead th {
  background: var(--surface-2);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 10.5px;
}
.data tbody td { border-bottom: 1px solid var(--line-soft); padding: 12px 13px; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: #f8faff; }
.data tbody tr.is-selected { background: var(--green-mist); }
.cell-sub { color: var(--faint); font-size: 10px; }
.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-person .avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; }
.cell-person strong { font-size: 12.5px; font-weight: 600; }
.cell-person span { font-size: 10px; color: var(--faint); }

/* ---------------------------------------------------------------- 按钮 */

.btn {
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.btn--sm { min-height: 32px; padding: 0 10px; font-size: 11px; border-radius: 7px; }
.btn--lg { min-height: 46px; padding: 0 20px; font-size: 13px; border-radius: 9px; }
.btn--primary { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 18px -12px rgba(47, 91, 215, 0.9); }
.btn--primary:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; box-shadow: 0 10px 22px -12px rgba(47, 91, 215, 0.9); transform: none; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: #c7d3e9; color: var(--green); transform: none; }
.btn--danger { background: var(--surface); border-color: #f0c9bf; color: var(--red); }
.btn--danger:hover { background: var(--red-wash); border-color: var(--red); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:active { transform: none; }
.btn:focus-visible, .nav-item:focus-visible, .icon-btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(47, 91, 215, 0.4);
  outline-offset: 2px;
}
.btn-count { background: rgba(255, 255, 255, 0.22); color: inherit; border-radius: 999px; padding: 1px 6px; font-size: 9.5px; margin-left: 4px; }

/* ---------------------------------------------------------------- 表单 */

input, select, textarea, .field input, .field select, .field textarea {
  border-radius: 8px;
  border: 1px solid #dfe6f2;
  background: var(--surface);
  color: var(--ink);
  min-height: 40px;
}

/* 认定原因：常用原因下拉，保留原生 select 的下拉箭头提示 */
.field select.reason-preset {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 91, 215, 0.11);
  outline: none;
}
.field label { color: var(--ink-2); font-weight: 600; font-size: 11.5px; }
.help { color: var(--faint); font-size: 10px; }
.form-paper { padding: 0; overflow: hidden; }
.form-paper::before { height: 4px; background: var(--green); border-radius: 0; }
.step-panel { padding: 30px 32px 8px; }
.step-head { border-bottom: 1px solid var(--line-soft); }
.step-head .big-no { color: var(--green-3); font-family: var(--mono); font-weight: 600; }
.step-head h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.step-note { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.step-panel.is-active { animation: none; }
.form-nav { background: rgba(248, 250, 255, 0.96); box-shadow: 0 -1px 0 var(--line); }
.choice-card, .amount-readout, .letter-chip, .mat-pill, .consent, .file-item, .att-card { background: var(--surface-2); }
.preview-body { background: #e9effa; }
.step-rail, .form-aside, .scholarship-side, .invite-form-card, .dash-rail,
.detail-side, .settings-side, .admin-edit-side { top: 128px; }
.review-panel { border-top: 3px solid var(--green); }
.review-panel-head { border-bottom: 1px solid var(--line-soft); }
.review-panel-head h2 { font-family: var(--sans); font-weight: 700; }
.review-summary > div { background: var(--surface-2); border-color: var(--line-soft); border-radius: var(--radius-sm); }

.toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.toolbar .search { background: var(--surface-2); border-radius: 8px; }
.toolbar .search input { background: transparent; border: 0; box-shadow: none; }
.result { color: var(--faint); font-size: 10.5px; }
.bulkbar { background: var(--green-wash); border: 1px solid #d9e4ff; border-radius: var(--radius-sm); color: var(--green-2); }

/* ---------------------------------------------------------------- 标签 / 提示 */

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-2);
  font-weight: 600;
  font-size: 10px;
  box-shadow: none;
}
.pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill--muted { color: var(--muted); background: #f2f5fa; border-color: #e8edf6; }
.pill--green { color: #0c7a5d; background: var(--success-wash); border-color: #c9ecdf; }
.pill--amber { color: #99620e; background: var(--amber-wash); border-color: #f2e2bf; }
.pill--red { color: var(--red); background: var(--red-wash); border-color: #f6d9d1; }
.pill--blue { color: var(--green); background: var(--green-wash); border-color: #d9e4ff; }
.tag { border-radius: 6px; border-color: var(--line); background: var(--surface-2); color: var(--muted); font-size: 10px; }
.tag--filled { background: var(--green-wash); border-color: #d9e4ff; color: var(--green); }
.banner { border-radius: var(--radius-sm); border-width: 1px; }
.banner--green { background: var(--success-wash); border-color: #c9ecdf; }
.banner--red { background: var(--red-wash); border-color: #f3d3ca; }
.banner--amber { background: var(--amber-wash); border-color: #f0dfba; }
.banner--blue { background: var(--green-wash); border-color: #d9e4ff; }
.banner-title { font-weight: 700; font-size: 12px; }
.banner-body { color: var(--muted); font-size: 11px; }
.issue-box, .scholarship-errors, .import-errors { border-radius: var(--radius-sm); background: var(--surface-2); border-color: var(--line); }

/* ---------------------------------------------------------------- 材料 / 导出 */

.material-card, .class-material-card { border-top: 3px solid var(--green); padding: 20px 21px; }
.material-card.is-locked { border-top-color: var(--line); }
.material-no, .cm-no { font-family: var(--mono); color: var(--faint); font-weight: 600; }
.material-head h2, .class-material-card h2 { font-family: var(--sans); font-weight: 700; }
.credential-card { border: 1px solid var(--line); }
.credential-password, .invite-code { border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--green); }
.account-pick, .account-mode, .class-material-card, .credential-item { border-radius: var(--radius-sm); }
.upload-zone { border-radius: var(--radius-sm); background: var(--surface-2); }
.upload-zone:hover { background: var(--surface-3); border-color: var(--green-3); }
.export-card { padding: 19px; }
.export-card h3 { font-family: var(--sans); font-weight: 700; }
.export-hero { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.export-hero h2 { color: var(--ink); }
.export-hero p { color: var(--muted); }
.export-hero .eh-seal { border: 1px solid #d9e4ff; background: var(--green-wash); color: var(--green); border-radius: var(--radius-sm); }
.export-hero .btn { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.export-hero .btn:hover { background: var(--surface-2); border-color: var(--green-3); color: var(--green); }
.export-line { border-top: 3px solid var(--green); }
.export-line--scholarship { border-top-color: var(--violet); }
.export-line--grant { border-top-color: var(--amber); }
.export-line-no { font-family: var(--mono); color: var(--faint); }

/* ---------------------------------------------------------------- 仪表盘 */

.dashboard, .dash-grid, .dash-main, .dash-rail { min-width: 0; }
.help-card { background: var(--green); color: #fff; border: 0; border-radius: var(--radius); }
.help-card h3 { color: #fff; }
.help-card h3 svg, .help-card p { color: #dce7ff; }
.quick-item { border-radius: var(--radius-sm); }
.quick-item:hover { background: var(--surface-2); }
.qi-icon { background: var(--green-wash); color: var(--green); border-radius: 9px; }
.bar-track { background: #edf1f9; border-radius: 999px; }
.bar-fill { border-radius: 999px; }
.donut::after { background: var(--surface); }

/* ---------------------------------------------------------------- 登录 / 注册 */

.auth { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(440px, 0.94fr); min-height: 100vh; background: var(--paper); }
.auth-visual {
  position: relative; overflow: hidden; min-height: 100vh;
  background: #1e40b2;
  background-image: none;
  border-right: 0;
}
.auth-visual::before {
  content: "";
  position: absolute; right: -150px; top: -180px;
  width: 560px; height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}
.auth-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(140deg, rgba(0, 0, 0, 0.9), transparent 68%);
  pointer-events: none;
}
.auth-visual-inner { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; padding: 42px 56px 34px; color: #fff; }
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand .brand-seal { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: none; color: #fff; }
.auth-brand .brand-text strong { color: #fff; }
.auth-brand .brand-text small { color: #c5d5ff; }
.auth-copy { margin: auto 0; max-width: 560px; padding: 46px 0; }
.auth-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 0.2em; color: #c8d7ff; }
.auth-eyebrow::before { content: ""; width: 26px; height: 1px; background: #93b0ff; }
.auth-copy h1 {
  font-family: var(--sans);
  font-size: clamp(38px, 3.7vw, 54px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 20px 0 18px;
  color: #fff;
}
.auth-copy h1 em { font-style: normal; color: #bcd0ff; }
.auth-copy p { font-size: 13px; line-height: 1.85; color: #d3def8; max-width: 430px; }
.auth-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.auth-step { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #e0e8fb; }
.auth-step .n { font-family: var(--mono); font-size: 11px; color: #a9c2ff; width: 24px; }
.auth-step .line { width: 34px; height: 1px; background: rgba(255, 255, 255, 0.24); }
.auth-visual-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 9.5px; letter-spacing: 0.08em; color: #b8c9ee; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 16px; }
.auth-seal { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 9px; font-family: var(--sans); font-size: 16px; color: #e7eeff; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 42px 48px; background: var(--paper); }
.auth-card {
  width: 100%; max-width: 410px;
  padding: 38px 38px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 80px -50px rgba(22, 32, 51, 0.5);
}
.auth-card-head { margin-bottom: 24px; }
.auth-card-head .eyebrow { margin-bottom: 10px; }
.auth-card-head h2 { font-family: var(--sans); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.auth-card-head p { font-size: 11.5px; color: var(--muted); margin-top: 7px; line-height: 1.7; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form .field label { font-size: 11px; }
.auth-form .field input { min-height: 46px; background: var(--surface-2); border-radius: 9px; }
.auth-form .field input:focus { background: var(--surface); }
.auth-submit { margin-top: 4px; min-height: 47px; border-radius: 9px; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 11.5px; }
.auth-links a { color: var(--green); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--faint); font-size: 9.5px; letter-spacing: 0.12em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-box { border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px; }
.demo-box summary { padding: 10px 12px; font-size: 10.5px; color: var(--muted); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px; }
.demo-box summary::-webkit-details-marker { display: none; }
.demo-box summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--faint); }
.demo-box[open] summary::after { content: "−"; }
.demo-body { padding: 10px 12px 12px; font-size: 10px; color: var(--muted); line-height: 1.9; border-top: 1px solid var(--line-soft); }
.demo-body code { font-family: var(--mono); color: var(--ink); background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.auth-note { margin-top: 20px; font-size: 9.5px; color: var(--faint); line-height: 1.75; }
.auth-note strong { color: var(--muted); font-weight: 600; }
.register-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.register-grid .span-2 { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- 上报中心 */

.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.report-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--green); }
.report-card--scholarship { border-top-color: var(--violet); }
.report-card--grant { border-top-color: var(--amber); }
.report-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.report-card h3 { font-size: 15px; font-weight: 700; margin: 0; }
.report-card .report-meta { font-size: 10px; color: var(--muted); line-height: 1.7; }
.report-count { font-family: var(--sans); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.report-count small { font-size: 10px; color: var(--faint); font-weight: 500; margin-left: 3px; }
.report-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.report-deadline { font-size: 9.5px; color: var(--faint); line-height: 1.6; }
.report-deadline strong { color: var(--red); font-weight: 600; }
.report-deadline-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.report-deadline-list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 10.5px; }
.report-deadline-list > div:last-child { border-bottom: 0; }
.report-deadline-list span { color: var(--muted); }
.report-deadline-list strong { color: var(--ink-2); font-weight: 600; font-size: 10px; font-variant-numeric: tabular-nums; }
.report-summary { padding: 0; overflow: hidden; }
.report-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.report-summary-head h2 { font-size: 15px; font-weight: 700; }
.report-table { min-width: 680px; }
.report-table td, .report-table th { white-space: nowrap; }
.report-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.report-tab { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 500; }
.report-tab:hover { color: var(--ink); }
.report-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.report-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 16px; align-items: start; }
.report-person { display: flex; align-items: center; gap: 8px; }
.report-person strong { display: block; font-size: 12px; line-height: 1.35; }
.report-person span { display: block; font-size: 10px; color: var(--faint); line-height: 1.35; }
.toolbar .report-tabs { flex-wrap: wrap; }
.toolbar .report-tab { padding: 6px 10px; font-size: 10.5px; }

/* ---------------------------------------------------------------- 说明 / 弹层 / 其他 */

.guide-hero { border-left: 3px solid var(--green); padding-left: 20px; }
.guide-hero h1 { font-family: var(--sans); font-weight: 700; }
.guide-section h2 { font-family: var(--sans); font-weight: 700; }
.guide-section h2 span { font-family: var(--mono); color: var(--faint); }
.guide-table th { background: var(--surface-2); }
.guide-callout { border-radius: var(--radius-sm); background: var(--surface-2); border-color: var(--line); }
dialog.modal, dialog.aid-dialog, dialog.preview-modal { border-radius: 14px; border-color: var(--line); box-shadow: var(--shadow-lift); }
.modal-head h3, .dialog-head h3 { font-family: var(--sans); font-weight: 700; }
.reference-text { border-radius: var(--radius-sm); border-left: 3px solid var(--green-3); background: var(--surface-2); }
.empty { color: var(--muted); }
.empty svg { color: #b7c2d6; }

/* 导入表格 */
.import-layout { gap: 18px; }
.import-layout table.data { min-width: 0; table-layout: fixed; }
.import-layout .data th, .import-layout .data td { white-space: normal; word-break: break-word; padding: 9px 10px; }
.import-layout .data th:first-child { width: 26%; }
.invite-layout table.data { min-width: 0; table-layout: fixed; }
.invite-layout .data th, .invite-layout .data td { padding: 9px 8px; font-size: 11px; }
.invite-layout .data th:nth-child(1) { width: 76px; }
.invite-layout .data th:nth-child(3) { width: 58px; }
.invite-layout .data th:nth-child(4) { width: 96px; }
.invite-layout .data th:nth-child(5) { width: 172px; }
.invite-layout .data .actions { white-space: normal; flex-wrap: wrap; justify-content: flex-end; }
.invite-layout .data .actions .btn { padding: 4px 5px; font-size: 10.5px; }
.invite-layout .data .cell-sub { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; line-height: 1.5; }
.invite-form-card .form-grid .span-2 { grid-column: 1 / -1; }
.invite-form-card .form-grid .field.span-2 input { width: 100%; }

/* 班级归类 */
.class-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 16px; }
.class-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.class-chip:hover { border-color: #c7d3e9; color: var(--ink); }
.class-chip.is-active { border-color: var(--green); background: var(--green-mist); }
.class-chip .cc-main { min-width: 0; flex: 1; }
.class-chip strong { display: block; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.class-chip span { display: block; font-size: 9.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.class-chip .cc-count { font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--green); line-height: 1; }
.class-chip .cc-count small { font-size: 9px; color: var(--faint); font-weight: 500; }
.class-group-note { font-size: 10.5px; color: var(--muted); margin: -4px 0 10px; }

input:disabled, select:disabled, textarea:disabled,
input[readonly], textarea[readonly] {
  background: #f3f6fb;
  color: #7a879d;
  opacity: 1;
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1560px) {
  .header-inner { gap: 14px; padding: 0 22px; }
  .top-nav .nav-item { padding: 8px 8px; font-size: 12px; }
  .top-nav .nav-item .nav-icon { width: 14px; height: 14px; }
  .term-chip { display: none; }
  .content { padding-left: 24px; padding-right: 24px; }
  .context-inner, .foot { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 1420px) {
  .top-nav, .header-tools { display: none; }
  .mobile-toggle { display: grid; margin-left: auto; }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand-seal { width: 36px; height: 36px; flex-basis: 36px; font-size: 19px; border-radius: 9px; }
  .brand-text strong { font-size: 15px; }
  .content { padding: 22px 20px 48px; }
  .context-inner { padding: 8px 20px; }
  .foot { padding: 14px 20px 22px; flex-direction: column; gap: 4px; }
  .module-strip, .report-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .step-rail, .form-aside, .scholarship-side, .invite-form-card, .dash-rail,
  .detail-side, .settings-side, .admin-edit-side { position: static; top: auto; }
}

@media (max-width: 900px) {
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-head-meta { justify-content: flex-start; }
  .context-bar { display: none; }
  .content { padding-top: 18px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 30px 20px; align-items: flex-start; padding-top: 42px; }
  .auth-card { padding: 28px 22px 24px; border-radius: 15px; }
  .register-grid { grid-template-columns: minmax(0, 1fr); }
  .register-grid .span-2 { grid-column: auto; }
  .topbar-inner { padding: 12px 20px; gap: 12px; }
  .sidebar { box-shadow: none; }
}

@media (max-width: 767px) {
  .project-card-top { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
  .project-card-top > div { flex: 1 1 auto; min-width: 0; }
  .project-card-top .pill { margin-left: 0; flex: 0 0 auto; }
  .project-card h2 { font-size: 18px; line-height: 1.3; }
  .project-kicker { font-size: 8px; letter-spacing: 0.08em; }
  .project-no { flex-basis: 30px; font-size: 11px; }
  .project-card { padding: 19px 17px 0; }
  .project-compare .table-wrap { display: none; }
  .project-compare-mobile { display: grid; gap: 10px; padding: 0 16px 16px; }
  .project-compare-mobile article { padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
  .project-compare-mobile h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
  .project-compare-mobile dl { margin-top: 7px; }
  .project-compare-mobile dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); font-size: 10.5px; }
  .project-compare-mobile dl > div:last-child { border-bottom: 0; }
  .project-compare-mobile dt { color: var(--faint); }
  .project-compare-mobile dd { color: var(--ink-2); }
}
.project-compare-mobile { display: none; }

@media (max-width: 620px) {
  .page-head h1 { font-size: 26px; }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-card-head h2 { font-size: 25px; }
  .auth-copy h1 { font-size: 36px; }
  .module-card { padding: 15px; }
  .report-card { padding: 17px; }
  .report-table { min-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .context-bar, .mobile-drawer, .foot { display: none !important; }
  .content { max-width: none; padding: 0; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------- 成绩排名导入 */
.ranking-upload-list { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.ranking-upload-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line-soft);
}
.ranking-upload-item:last-child { border-bottom: 0; }
.ranking-upload-item > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ranking-upload-item strong {
  font-size: 10.5px; font-weight: 600; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ranking-upload-item span { font-size: 9.5px; color: var(--faint); line-height: 1.5; }
.ranking-upload-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ranking-upload-actions form { display: inline; }
.ranking-upload-actions .btn-link { font-size: 10.5px; }
.ranking-upload-actions .btn-link.danger { color: var(--red); }
.ranking-upload-actions .btn-link.danger:hover { color: #8f2f1c; }

/* 只读的成绩排名展示（学生端 / 审核页） */
.ranking-readonly {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  padding: 14px 15px; border: 1px solid #dbe5fb; border-radius: var(--radius-sm);
  background: #f7faff;
}
.ranking-readonly > div { display: flex; flex-direction: column; gap: 3px; }
.ranking-readonly span { font-size: 9.5px; color: var(--faint); letter-spacing: 0.03em; }
.ranking-readonly strong { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--ink); }
.ranking-readonly strong small { font-size: 10px; font-weight: 500; color: var(--faint); margin-left: 3px; }
.ranking-source {
  display: flex; align-items: flex-start; gap: 7px; margin-top: 10px;
  font-size: 10px; color: var(--faint); line-height: 1.6;
}
.ranking-source svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--green); margin-top: 1px; }
.ranking-source.is-missing svg { color: var(--amber); }
@media (max-width: 720px) {
  .ranking-readonly { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- 励志奖学金参考名单 */
.reference-panel { margin: 18px 0; border-top: 3px solid var(--violet); }
.reference-panel .sch-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reference-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.reference-head h2 { font-family: var(--sans); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin-top: 4px; }
.reference-head p { color: var(--muted); font-size: 11px; line-height: 1.75; max-width: 80ch; margin-top: 5px; }
.reference-head p strong { color: var(--ink-2); }
.reference-rule { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.reference-rule .btn-link { font-size: 10.5px; }
.reference-excluded { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.reference-excluded summary { cursor: pointer; color: var(--muted); font-size: 10.5px; }
.reference-excluded summary:hover { color: var(--ink); }
@media (max-width: 1180px) {
  .reference-panel .sch-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .reference-head { flex-direction: column; }
  .reference-rule { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   2026-10-24 可读性增强：整体字号上调、文字与导航对比度加深
   ========================================================================== */
:root {
  --ink-2: #24324b;
  --muted: #4b5872;
  --faint: #66738c;
}

body { font-size: 15px; line-height: 1.75; }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; }

/* 顶部导航 */
.brand-text strong { font-size: 17px; }
.brand-text small { font-size: 11px; color: var(--muted); }
.top-nav .nav-item,
.nav-more-toggle {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 11px;
}
.top-nav .nav-item .nav-icon,
.nav-more-toggle .nav-icon { color: #586783; width: 16px; height: 16px; }
.top-nav .nav-item:hover,
.nav-more-toggle:hover { color: var(--ink); }
.nav-count { font-size: 10.5px; }
.header-tools .user-meta strong { font-size: 13px; }
.header-tools .user-meta span { font-size: 11px; }
.user-meta span { color: var(--muted); }
.term-chip { font-size: 11.5px; color: var(--ink-2); }
.crumb { font-size: 12px; color: var(--muted); }
.deadline-pill { font-size: 12px; }
.context-link { font-size: 12.5px; color: var(--ink-2); }
.foot { font-size: 11px; color: var(--faint); }

/* 页面标题与卡片 */
.page-head h1 { font-size: clamp(30px, 2.6vw, 38px); }
.lede { font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.eyebrow { font-size: 11px; }
.card-title { font-size: 16.5px; }
.card-sub,
.side-card p,
.project-card-top p { font-size: 12.5px; }
.side-card h3 { font-size: 15px; }
.module-card strong { font-size: 15.5px; }
.module-card p { font-size: 12px; }
.project-card h2 { font-size: 21px; }
.project-kicker { font-size: 10px; }
.project-meta span { font-size: 12px; }
.project-mat { font-size: 11px; }
.stat-label { font-size: 12.5px; }
.stat-note { font-size: 11.5px; }
.stat-value small { font-size: 12px; }

/* 表格 */
.data thead th { font-size: 12px; }
.data tbody td { font-size: 13.5px; }
.cell-person strong { font-size: 13.5px; }
.cell-person span,
.cell-sub { font-size: 11.5px; color: var(--muted); }

/* 按钮与表单 */
.btn { font-size: 13.5px; }
.btn--sm { font-size: 12.5px; }
.btn--lg { font-size: 14.5px; }
.btn-link { font-size: 13px; }
.field label,
.field-label { font-size: 13px; }
.field label.check-row { font-size: 13px; }
.field input[type="text"], .field input[type="password"], .field input[type="tel"],
.field input[type="date"], .field input[type="month"], .field input[type="number"],
.field input[type="email"], .field select, .field textarea { font-size: 14.5px; }
.field .help,
.help { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; }
.counter { font-size: 11.5px; }
.input-suffix { font-size: 12px; }
.toolbar .search input { font-size: 13.5px; }
.toolbar select { font-size: 13px; }
.result { font-size: 12px; }

/* 标签、提示与状态 */
.pill { font-size: 11px; }
.tag { font-size: 11px; }
.banner-title { font-size: 13.5px; }
.banner-body { font-size: 12.5px; }
.mat-pill { font-size: 11.5px; }
.mat-count { font-size: 12px; }
.readiness strong { font-size: 12.5px; }
.readiness span { font-size: 11px; }
.review-code-tag { font-size: 11.5px; }

/* 学生端分步表单 */
.step-rail-head { font-size: 11px; }
.step-label { font-size: 13.5px; }
.step-item .step-desc { font-size: 11.5px; }
.step-head p { font-size: 13px; }
.sub-head h3 { font-size: 14px; }
.sub-head p { font-size: 12.5px; }
.step-note { font-size: 12.5px; }
.choice-title { font-size: 14px; }
.choice-card .choice-note { font-size: 12px; }
.choice-card .choice-amount small { font-size: 12px; }
.amount-readout span { font-size: 10.5px; }
.reason-chip .code { font-size: 11.5px; }
.reason-chip .txt { font-size: 13px; }
.reason-chip .txt small { font-size: 11px; }
.check-row { font-size: 13px; }
.form-nav .save-state { font-size: 12px; }
.aside-card .aside-sub { font-size: 11.5px; }
.progress-meta span { font-size: 11.5px; }
.mini-step { font-size: 12px; }
.deadline-date span { font-size: 12px; }
.deadline-note { font-size: 11.5px; }
.material-item { font-size: 12.5px; }
.help-card p { font-size: 12.5px; }
.upload-head h4 { font-size: 15px; }
.upload-head p { font-size: 12px; }
.paper-forms-head p { font-size: 12px; }
.pf-body strong { font-size: 13px; }
.pf-body p { font-size: 11.5px; }
.pf-links .btn { font-size: 11.5px; }
.paper-forms > .help { font-size: 11.5px; }
.dropzone { font-size: 12.5px; }
.file-meta strong { font-size: 12.5px; }
.file-meta span { font-size: 11px; }
.review-row { font-size: 12.5px; }
.consent .check-row { font-size: 13px; }
.issue-item { font-size: 12.5px; }
.issue-panel h4 { font-size: 13px; }

/* 励志 / 助学金 / 参考名单 */
.scholarship-doc-box p { font-size: 13px; }
.scholarship-tips { font-size: 11.5px; }
.sch-stat span,
.sch-stat small { font-size: 10.5px; }
.side-list > div { font-size: 11.5px; }
.reference-head p { font-size: 12.5px; }
.ranking-source { font-size: 11.5px; }
.reference-excluded summary { font-size: 11.5px; }
.reason-reference summary,
.reason-reference p { font-size: 11.5px; }

/* 管理员详情与设置 */
.dl-row { font-size: 13px; }
.dl-row dt { font-size: 12px; color: var(--muted); }
.att-card .att-meta strong { font-size: 12.5px; }
.settings-section .ss-sub { font-size: 11.5px; }
.export-card .ec-sub { font-size: 11px; }
.export-card .ec-desc { font-size: 12px; }
.import-card-head p { font-size: 12px; }
.import-note { font-size: 11.5px; }
.import-steps b { font-size: 12px; }
.import-steps span { font-size: 11.5px; }
.guide-table th { font-size: 11px; }
.guide-table td { font-size: 13px; }
.issue-box .issue-item { font-size: 11.5px; }
.tl-body strong { font-size: 12.5px; }
.tl-body span { font-size: 11px; }
.review-panel .field label { font-size: 12px; }
.form-preview-head p,
.form-preview-foot { font-size: 13px; }

@media (max-width: 1560px) {
  .top-nav .nav-item,
  .nav-more-toggle { font-size: 13.5px; padding: 8px 9px; }
}

/* ==========================================================================
   手机端 / 平板端排版精修（与桌面端共用同一套页面）
   ========================================================================== */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .content { padding: 18px 14px 48px; }
  .page-head { gap: 10px; margin-bottom: 18px; }
  .page-head h1 { font-size: 27px; }
  .lede { font-size: 14px; }
  .card-pad { padding: 18px 16px; }
  .toolbar { padding: 10px; gap: 8px; }
  .toolbar .search { flex: 1 1 100%; max-width: none; }
  .toolbar select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .toolbar .btn { flex: 0 0 auto; }
  .table-wrap { border-radius: 8px; -webkit-overflow-scrolling: touch; }
  .file-meta strong { overflow-wrap: anywhere; }
  .scholarship-bulkbar { flex-wrap: wrap; gap: 8px; }
  .scholarship-bulkbar .spacer { display: none; }
  .scholarship-bulkbar .btn { width: 100%; justify-content: center; }
  .reference-panel { padding: 18px 16px; }
  .reference-head p { font-size: 12.5px; }
  .reference-rule { width: 100%; justify-content: space-between; }
  .ranking-readonly { grid-template-columns: minmax(0, 1fr); }
  .mobile-drawer { width: min(292px, 88vw); }
  .site-header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .content { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

  /* 手机输入框 16px，避免 iOS 聚焦时自动放大页面 */
  .field input[type="text"], .field input[type="password"], .field input[type="tel"],
  .field input[type="date"], .field input[type="month"], .field input[type="number"],
  .field input[type="email"], .field select, .field textarea,
  .toolbar input, .toolbar select { font-size: 16px; }
}

@media (max-width: 420px) {
  .content { padding: 16px 12px 44px; }
  .page-head h1 { font-size: 25px; }
  .brand-text small { display: none; }
  .auth-card { padding: 22px 16px; }
  .sch-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sch-stat-grid .sch-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .student-card-body { grid-template-columns: minmax(0, 1fr); }
  .form-nav .btn { flex: 1 1 100%; }
  .sub-head .btn-link { margin-left: 0; }
  .modal { width: calc(100vw - 24px); }
  .preview-modal { width: calc(100vw - 24px); }
}

/* ---------------------------------------------------------------- 登录页：学校品牌化 */

.auth-visual--campus {
  background: #182b45 url("/static/img/school-login.jpg?v=20261025f") center / cover no-repeat;
}
.auth-visual--campus::before {
  inset: 0;
  width: auto; height: auto;
  border: 0; border-radius: 0;
  background:
    radial-gradient(92% 82% at 0% 10%, rgba(4, 14, 28, 0.55) 0%, rgba(4, 14, 28, 0) 64%),
    linear-gradient(96deg, rgba(7, 20, 38, 0.72) 0%, rgba(7, 20, 38, 0.66) 30%, rgba(7, 20, 38, 0.50) 55%, rgba(7, 20, 38, 0.28) 78%, rgba(7, 20, 38, 0.08) 100%);
}
.auth-visual--campus::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 14, 26, 0) 0%, rgba(5, 14, 26, 0) 58%, rgba(5, 14, 26, 0.5) 100%);
  mask-image: none;
  opacity: 1;
}
.auth-brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.auth-brand-wordmark {
  display: block;
  height: 48px; width: auto; max-width: 230px;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.42));
}
.auth-brand-fallback { font-size: 16px; font-weight: 700; letter-spacing: 0.12em; color: #fff; }
.auth-brand-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 9px; letter-spacing: 0.26em; color: rgba(226, 236, 250, 0.66);
}
.auth-brand-tag::before {
  content: ""; width: 18px; height: 1px;
  background: rgba(216, 195, 154, 0.65);
}
.auth-copy--school {
  margin: auto 0;
  max-width: 440px;
  padding: 42px 0 54px;
}
.auth-copy--school .auth-eyebrow {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: #d8c39a;
}
.auth-copy--school .auth-eyebrow::before { width: 24px; background: #d8c39a; }
.auth-copy--school h1 {
  margin: 22px 0 10px;
  font-size: clamp(42px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 3px 28px rgba(3, 10, 20, 0.45);
}
.auth-copy--school .auth-school-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(240, 245, 255, 0.9);
  text-shadow: 0 2px 16px rgba(3, 10, 20, 0.35);
}
.auth-copy--school .auth-school-lede {
  margin: 24px 0 0;
  max-width: 350px;
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: rgba(218, 229, 244, 0.82);
  text-shadow: 0 1px 12px rgba(3, 10, 20, 0.3);
}
.auth-copy--school .auth-school-lede::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 28px;
  background: linear-gradient(90deg, rgba(216, 195, 154, 0.95), rgba(216, 195, 154, 0));
}
.auth-visual-foot {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(214, 226, 242, 0.72);
  border-top-color: rgba(255, 255, 255, 0.18);
}
.auth-visual-mark {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: grid; place-items: center;
  border: 1px solid rgba(216, 195, 154, 0.45);
  border-radius: 6px;
  color: #e2d0aa;
  font-size: 13px;
  letter-spacing: 0;
}

/* 移动端展开三条业务线对比：显示卡片版，隐藏表格版 */
@media (max-width: 767px) {
  .project-compare[open] .project-compare-mobile { display: grid; }
}

/* 学生管理：新增三列后压缩单元格内边距，保证操作列在常见宽度下可见 */
.table-wrap--students .data th,
.table-wrap--students .data td { padding-left: 9px; padding-right: 9px; }
.table-wrap--students .data .actions { padding-right: 6px; }
.table-wrap--students .data .row-actions { gap: 4px; }
.table-wrap--students .data .actions .btn--sm { padding-left: 9px; padding-right: 9px; }
.table-wrap--students .data .actions .btn--icon { padding: 0; }

/* ---------------------------------------------------------------- 工作台：右栏上报卡 / 空状态 / 快捷操作 */

.rail-card { overflow: hidden; }
.rail-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.rail-head-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rail-head-title svg { width: 16px; height: 16px; color: var(--green); }
.rail-head-link { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--green); white-space: nowrap; }
.rail-head-link svg { width: 12px; height: 12px; }
.rail-body { padding: 3px 18px 16px; }

.deadline-list { display: flex; flex-direction: column; }
.deadline-row {
  display: flex; align-items: center; gap: 8px;
  min-height: 34px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11.5px;
}
.deadline-row:last-child { border-bottom: 0; }
.deadline-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); }
.deadline-row--scholar .deadline-dot { background: var(--violet); }
.deadline-row--grant .deadline-dot { background: var(--amber); }
.deadline-name { color: var(--ink-2); }
.deadline-date {
  margin-left: auto;
  color: var(--muted); font-size: 11px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.report-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 0 2px;
  border-top: 1px solid var(--line-soft);
}
.report-metric { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.report-metric:first-child { padding-left: 0; border-left: 0; }
.report-metric strong {
  display: block;
  font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.report-metric span { display: block; margin-top: 2px; font-size: 10px; color: var(--faint); letter-spacing: 0.04em; }
.report-metric .is-alert { color: var(--red); }
.report-metric .is-caution { color: var(--amber); }
.report-metric .is-zero { color: #b9c3d6; }

.rail-banner {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 12px; padding: 9px 10px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 11px; line-height: 1.55;
}
.rail-banner span { flex: 1; min-width: 0; }
.rail-banner svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; }
.rail-banner--red { background: var(--red-wash); border-color: #f3d3ca; color: #a4432f; }
.rail-banner--red svg { color: var(--red); }
.rail-banner--red:hover { border-color: var(--red); color: var(--red-2); }
.rail-banner--green { background: var(--success-wash); border-color: #c9ecdf; color: #0c7a5d; }
.rail-banner--green svg { color: var(--success); }

.recent-table-wrap { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.recent-empty {
  display: flex; align-items: center; gap: 15px; flex-wrap: wrap;
  padding: 20px 24px 22px;
  border-top: 1px solid var(--line-soft);
}
.recent-empty-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-wash); color: var(--green);
}
.recent-empty-icon svg { width: 19px; height: 19px; }
.recent-empty-copy { flex: 1 1 240px; min-width: 0; }
.recent-empty-copy strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.recent-empty-copy p { margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: var(--faint); }
.recent-empty-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.quick-band {
  margin-top: 18px; padding: 16px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quick-band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.quick-band-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
.quick-band-title svg { width: 16px; height: 16px; color: var(--green); }
.quick-band-note { font-size: 10.5px; color: var(--faint); }
.quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.quick-tile {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.quick-tile:hover { background: #fff; border-color: #cad7f2; color: var(--ink); transform: translateY(-1px); }
.quick-tile-icon {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--green-wash); color: var(--green);
}
.quick-tile-icon svg { width: 15px; height: 15px; }
.quick-tile-icon--violet { background: var(--violet-wash); color: var(--violet); }
.quick-tile-icon--amber { background: var(--amber-wash); color: var(--amber); }
.quick-tile-icon--muted { background: #eef2f9; color: #7183a5; }
.quick-tile-copy { flex: 1; min-width: 0; }
.quick-tile-copy strong { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.45; }
.quick-tile-copy small {
  display: block; margin-top: 1px;
  font-size: 10px; line-height: 1.45; color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.quick-tile-arrow { width: 13px; height: 13px; flex: 0 0 13px; color: #b3bed2; }

@media (max-width: 1180px) {
  .dash-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-rail .countdown { display: flex; flex-direction: column; }
  .dash-rail .countdown .cd-note { margin-top: auto; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .dash-rail { grid-template-columns: minmax(0, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .recent-empty { align-items: flex-start; }
  .recent-empty-actions { margin-left: 0; width: 100%; }
}

.report-metric .is-ok { color: var(--ink); }

/* ---------------------------------------------------------------- 注册规范库与批量建号 */
.auth-form .field select {
  min-height: 46px;
  border-radius: 9px;
  background: var(--surface-2);
}
.auth-form .field select:focus { background: var(--surface); }
.register-affiliation-hint {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.import-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 13px;
}
.import-mode {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.import-mode:has(input:checked) {
  border-color: rgba(47, 91, 215, .45);
  background: var(--blue-wash, #eef3ff);
}
.import-mode input { margin-top: 2px; accent-color: var(--blue); }
.import-mode strong { display: block; font-size: 12px; font-weight: 650; }
.import-mode small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.55; color: var(--faint); }
.password-formula {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(47, 91, 215, .2);
  border-radius: 10px;
  background: var(--blue-wash, #eef3ff);
  color: var(--muted);
}
.password-formula svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--blue); margin-top: 1px; }
.password-formula strong { display: block; color: var(--ink); font-size: 12px; }
.password-formula p { margin: 4px 0 0; font-size: 10.5px; line-height: 1.65; }
.password-formula code { padding: 1px 4px; border-radius: 4px; background: #fff; color: var(--ink); }
.rank-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rank-student-table { min-width: 860px; }

@media (max-width: 900px) {
  .student-card { padding: 10px 12px; }
  .student-card-body { gap: 5px 10px; margin-top: 8px; padding-top: 8px; }
  .sc-row span { font-size: 9.5px; }
  .sc-row strong { font-size: 10.5px; }
  .student-card-foot { margin-top: 8px; padding-top: 8px; }
}

@media (max-width: 620px) {
  .import-mode-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-form .field input, .auth-form .field select { min-height: 44px; }
  .rank-table-wrap { margin-right: -8px; }
}
.rank-mobile-hint { display: none; margin: 10px 0 0; }
@media (max-width: 900px) { .rank-mobile-hint { display: block; } }

/* 未上传必交证件照时，生成按钮保留可点击提示，而不是静默无反应 */
.btn[data-photo-required].is-disabled { pointer-events: auto; cursor: not-allowed; }


/* 桌面端导航空间不足：统一收紧导航项并隐藏学期胶囊，避免与右侧账号区重叠 */
@media (min-width: 1421px) {
  .top-nav .nav-item,
  .nav-more-toggle { font-size: 13.5px; padding: 8px 9px; }
  .top-nav .nav-item .nav-icon,
  .nav-more-toggle .nav-icon { width: 14px; height: 14px; }
  .term-chip { display: none; }
}

/* 学生名单列较多：中等屏幕先隐藏“最近更新”，保证审核、停用、编辑、删除按钮可见 */
@media (max-width: 1500px) {
  .table-wrap--students .col-updated { display: none; }
}
