/*
 * 九章智学 · 学校端样式
 * 与学生端、教师端共用「九章算术 × 古典数学 × 智慧教育」视觉语言
 * 色调：纸黄（paper）+ 蓝深（blue-deep）+ 金（gold）
 */
:root {
  --paper: #f5f0e5;
  --paper-deep: #e8d1ab;
  --paper-band: #f7f3ea;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #272823;
  --ink-soft: #5d5d55;
  --line: #d9cfbd;
  --gold: #b77b29;
  --gold-bright: #d7a24f;
  --wood: #805027;
  --blue-deep: #173c61;
  --blue: #167fc0;
  --blue-bright: #38a7e8;
  --success: #2f7757;
  --danger: #b3453f;
  --warning: #a76819;
  --school-accent: #6a4f1d; /* 学校端特有的铜金 */
  --school-accent-soft: #f1e6cb;
  --shadow: 0 12px 34px rgba(50, 42, 28, 0.1);
  --header-height: 68px;
  --content-width: 1320px;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.18;
  pointer-events: none;
  background: radial-gradient(circle at 12% 8%, rgba(183, 123, 41, 0.18), transparent 38%),
              radial-gradient(circle at 90% 4%, rgba(23, 60, 97, 0.18), transparent 42%);
}
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: rgba(247, 243, 234, 0.94);
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-family: "STKaiti", "KaiTi", serif; font-size: 34px; font-weight: 700; }
h2 { font-family: "Songti SC", serif; font-size: 24px; margin-bottom: 8px; }
h3 { font-size: 18px; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }

:focus-visible {
  outline: 3px solid #0b5f99;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #ffffff;
}

.skip-link {
  position: fixed;
  display: flex;
  top: 8px; left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  min-height: 44px;
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--blue);
  border-radius: 4px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(128, 80, 39, 0.14);
  background: rgba(251, 248, 241, 0.95);
  box-shadow: 0 5px 22px rgba(37, 34, 28, 0.06);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 240px;
  align-items: center;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: var(--header-height);
  margin-inline: auto;
  gap: 24px;
}
.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--paper);
  background: var(--blue-deep);
  border: 2px solid var(--gold-bright);
  border-radius: 7px;
  box-shadow: inset 0 0 0 3px var(--blue-deep), inset 0 0 0 4px rgba(232, 209, 171, 0.7);
  transform: rotate(45deg);
}
.brand-mark span {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  transform: rotate(-45deg);
}
.brand-name {
  display: grid;
  line-height: 1.15;
  color: var(--blue-deep);
  font-family: "STKaiti", "KaiTi", serif;
}
.brand-name strong { font-size: 22px; }
.brand-name small {
  color: var(--gold);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  height: var(--header-height);
  gap: 24px;
}
.desktop-nav a {
  position: relative;
  display: grid;
  align-items: center;
  color: #47483f;
  white-space: nowrap;
}
.desktop-nav a::after {
  position: absolute;
  right: 24%; bottom: 0; left: 24%;
  height: 3px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--blue-deep); font-weight: 700; }
.desktop-nav a:hover::after,
.desktop-nav a.active::after { transform: scaleX(1); }

.profile-entry {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-self: end;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(183, 123, 41, 0.34);
  border-radius: 7px;
  background: rgba(232, 209, 171, 0.22);
}
.school-avatar {
  background: var(--school-accent);
  border-color: var(--gold-bright);
}
.profile-copy { display: grid; line-height: 1.25; }
.profile-copy strong { color: var(--blue-deep); font-size: 14px; }
.profile-copy small { margin-top: 3px; color: var(--ink-soft); font-size: 11px; }

/* 阶段进度条 */
.journey-bar {
  border-top: 1px solid rgba(128, 80, 39, 0.1);
  background: rgba(255, 253, 248, 0.72);
}
.journey-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 37px;
  margin-inline: auto;
}
.journey-label {
  margin-right: 24px;
  color: var(--ink-soft);
  font-size: 12px;
}
.journey-inner ol {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}
.journey-inner li {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 130px;
  color: #8b887f;
  font-size: 12px;
  gap: 7px;
}
.journey-inner li:not(:last-child)::after {
  width: 56px; height: 1px;
  margin-inline: 12px;
  content: "";
  background: #d8d3c9;
}
.journey-inner li span {
  display: grid;
  width: 22px; height: 22px;
  place-items: center;
  border: 1px solid #c8c2b7;
  border-radius: 50%;
  font-family: "Songti SC", serif;
}
.journey-inner li.current { color: var(--blue-deep); font-weight: 700; }
.journey-inner li.current span {
  color: white;
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}
.journey-inner li.complete { color: var(--success); }
.journey-inner li.complete span {
  border-color: var(--success);
  background: rgba(47, 119, 87, 0.12);
}

.mobile-nav { display: none; }

/* ============ 通用元素 ============ */
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.button.primary { background: var(--blue-deep); color: white; }
.button.primary:hover { background: #0f2a45; }
.button.subtle {
  background: rgba(255, 253, 248, 0.7);
  border-color: rgba(23, 60, 97, 0.25);
  color: var(--blue-deep);
}
.button.subtle:hover { background: var(--surface); border-color: var(--blue-deep); }
.button.danger { background: var(--danger); color: white; }
.button.ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: rgba(23, 60, 97, 0.18);
}
.button:disabled { opacity: 0.5; cursor: not-allowed; }

.text-link {
  color: var(--blue-deep);
  font-weight: 700;
  border-bottom: 1px solid rgba(23, 60, 97, 0.4);
  padding-bottom: 2px;
}
.text-link:hover { border-color: var(--blue-deep); }

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.panel-kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(50, 42, 28, 0.05);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.section-heading h2 { margin: 0; color: var(--blue-deep); }
.section-heading p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; max-width: 60ch; }

.band {
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-band);
}
.band.tone-paper { background: var(--paper); }
.band.tone-blue { background: rgba(23, 60, 97, 0.06); }
.band.tone-gold { background: rgba(183, 123, 41, 0.08); }

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-bright);
  border-radius: 10px;
  padding: 18px 20px;
}
.metric-card .label {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.metric-card .value {
  color: var(--blue-deep);
  font-family: "Songti SC", serif;
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
}
.metric-card .delta { color: var(--success); font-size: 12px; }
.metric-card .delta.warn { color: var(--warning); }
.metric-card .delta.bad { color: var(--danger); }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.table thead {
  background: rgba(23, 60, 97, 0.05);
  color: var(--blue-deep);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(23, 60, 97, 0.03); }
.table .num { font-variant-numeric: tabular-nums; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--ink);
}
.tag.ok { border-color: rgba(47, 119, 87, 0.4); background: rgba(47, 119, 87, 0.08); color: var(--success); }
.tag.warn { border-color: rgba(167, 104, 25, 0.4); background: rgba(167, 104, 25, 0.08); color: var(--warning); }
.tag.bad { border-color: rgba(179, 69, 63, 0.4); background: rgba(179, 69, 63, 0.08); color: var(--danger); }
.tag.gold { border-color: rgba(183, 123, 41, 0.5); background: rgba(215, 162, 79, 0.12); color: var(--gold); }

.progress {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(23, 60, 97, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  border-radius: 999px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
}
.split-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .split-grid, .split-grid.equal, .split-grid.three { grid-template-columns: 1fr; }
}

/* ============ 工作台 ============ */
.hero-band {
  background: linear-gradient(135deg, rgba(23, 60, 97, 0.92), rgba(128, 80, 39, 0.78)),
              radial-gradient(circle at 80% 30%, rgba(215, 162, 79, 0.5), transparent 60%);
  color: white;
  padding-block: 56px;
  position: relative;
  overflow: hidden;
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0, transparent 30%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0, transparent 30%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: center;
}
.hero-band h1 {
  color: white;
  font-size: 38px;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.hero-band p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  max-width: 64ch;
}
.hero-band .eyebrow {
  color: var(--gold-bright);
}
.hero-band .quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 253, 248, 0.3);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(6px);
}
.hero-band .quick-stats > div { display: grid; gap: 4px; }
.hero-band .quick-stats span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.hero-band .quick-stats strong {
  color: white;
  font-family: "Songti SC", serif;
  font-size: 22px;
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ============ 模块通用：分类卡 ============ */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  display: grid;
  gap: 10px;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.module-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: 0 18px 36px rgba(50, 42, 28, 0.08);
}
.module-card .module-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 22px;
  color: white;
  background: var(--blue-deep);
  border: 2px solid var(--gold-bright);
}
.module-card.school .module-mark { background: var(--school-accent); }
.module-card.gold .module-mark { background: var(--gold); border-color: var(--gold-bright); }
.module-card h3 { margin: 0; color: var(--blue-deep); }
.module-card p { color: var(--ink-soft); font-size: 13px; }
.module-card .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ============ 课程建议 ============ */
.course-package {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  gap: 14px;
  position: relative;
}
.course-package .tier {
  display: inline-block;
  background: var(--school-accent);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.course-package .tier.basic { background: var(--blue); }
.course-package .tier.standard { background: var(--school-accent); }
.course-package .tier.premium { background: var(--gold); }
.course-package h3 { color: var(--blue-deep); margin: 0; }
.course-package ul { margin: 6px 0; padding-left: 18px; color: var(--ink); }
.course-package ul li { margin-bottom: 4px; }
.course-package .package-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.course-package .price {
  font-family: "Songti SC", serif;
  font-size: 22px;
  color: var(--blue-deep);
  font-weight: 700;
}

.grade-table { display: grid; gap: 12px; }
.grade-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.grade-row .grade-label {
  font-family: "Songti SC", serif;
  font-size: 18px;
  color: var(--blue-deep);
  font-weight: 700;
}
.grade-row .progress-wrap { display: grid; gap: 6px; }
.grade-row .progress-wrap small { color: var(--ink-soft); font-size: 12px; }

/* ============ 校本定制 ============ */
.school-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
}
.school-meta .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.school-meta dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 0;
}
.school-meta dl > div {
  border-left: 2px solid var(--gold-bright);
  padding-left: 12px;
}
.school-meta dt {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.school-meta dd {
  margin: 4px 0 0;
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 14px;
  min-height: 38px;
}
.form-grid textarea {
  min-height: 80px;
  font-family: inherit;
  resize: vertical;
}
.form-grid .full-row { grid-column: 1 / -1; }
.form-grid .actions-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.resource-list {
  display: grid;
  gap: 12px;
}
.resource-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
}
.resource-item .icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(23, 60, 97, 0.08);
  color: var(--blue-deep);
  font-family: "STKaiti", serif;
  font-size: 20px;
}
.resource-item .meta { display: grid; gap: 4px; }
.resource-item .meta strong { color: var(--blue-deep); }
.resource-item .meta small { color: var(--ink-soft); font-size: 12px; }
.resource-item .controls { display: flex; gap: 8px; }

/* ============ 质量监控 ============ */
.alert-list {
  display: grid;
  gap: 10px;
}
.alert-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.alert-item .alert-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--paper-deep);
  font-family: "Songti SC", serif;
  font-size: 16px;
}
.alert-item.warn { border-color: rgba(167, 104, 25, 0.4); background: rgba(167, 104, 25, 0.06); }
.alert-item.warn .alert-mark { background: var(--warning); color: white; }
.alert-item.bad { border-color: rgba(179, 69, 63, 0.4); background: rgba(179, 69, 63, 0.06); }
.alert-item.bad .alert-mark { background: var(--danger); color: white; }
.alert-item.ok { border-color: rgba(47, 119, 87, 0.4); background: rgba(47, 119, 87, 0.06); }
.alert-item.ok .alert-mark { background: var(--success); color: white; }
.alert-item .alert-body strong { color: var(--blue-deep); }
.alert-item .alert-body small { color: var(--ink-soft); font-size: 12px; display: block; }

.bar-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 60px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}
.bar-row .label { color: var(--ink); }
.bar-row .value { color: var(--blue-deep); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar-row .bar {
  height: 8px;
  background: rgba(23, 60, 97, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.bar-row .bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  border-radius: 999px;
}

/* ============ 评价管理 ============ */
.eval-summary {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.eval-score {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(183, 123, 41, 0.12), rgba(23, 60, 97, 0.08));
  border-radius: 12px;
  padding: 20px;
}
.eval-score .score-value {
  font-family: "Songti SC", serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--blue-deep);
}
.eval-score .score-grade {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.eval-radar {
  display: grid;
  gap: 12px;
}

.feedback-list {
  display: grid;
  gap: 10px;
}
.feedback-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-bright);
  border-radius: 10px;
}
.feedback-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.feedback-item header strong { color: var(--blue-deep); }
.feedback-item p { margin: 6px 0 0; color: var(--ink); }

/* ============ 浮窗提示 ============ */
.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: grid;
  gap: 10px;
}
.toast {
  background: var(--surface-strong);
  border: 1px solid var(--gold-bright);
  border-left: 4px solid var(--blue-deep);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--ink);
  box-shadow: var(--shadow);
  min-width: 240px;
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 12px;
  }
  .desktop-nav, .journey-bar { display: none; }
  .mobile-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(251, 248, 241, 0.96);
    border-top: 1px solid rgba(128, 80, 39, 0.14);
    backdrop-filter: blur(12px);
  }
  .mobile-nav a {
    display: grid;
    place-items: center;
    padding: 8px 4px;
    min-height: 56px;
    color: var(--ink-soft);
    font-size: 12px;
    gap: 2px;
  }
  .mobile-nav a span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-family: "Songti SC", serif;
    font-size: 12px;
  }
  .mobile-nav a.active { color: var(--blue-deep); font-weight: 700; }
  .mobile-nav a.active span {
    color: white;
    background: var(--blue-deep);
    border-color: var(--blue-deep);
  }
  main { padding-bottom: 76px; }
  .profile-entry { justify-self: start; }
  .school-meta { grid-template-columns: 1fr; }
  .grade-row { grid-template-columns: 1fr; gap: 10px; }
  .eval-summary { grid-template-columns: 1fr; }
}