/* 高二（5）班 · 班级管理模拟器
 * 视觉：纸张 / 墨绿 / 陶土红 / 宋体标题
 */

:root {
  --paper: #f6f2e8;
  --paper-2: #fffdf7;
  --ink: #20302a;
  --ink-2: #4c5b54;
  --muted: #8a918a;
  --line: #e6dfd0;
  --line-2: #efe9dc;
  --green: #1e4d3f;
  --green-2: #2f6b57;
  --green-3: #173c32;
  --clay: #c2603f;
  --clay-2: #a94f31;
  --blue: #3d6b8e;
  --gold: #c79a3a;
  --shadow: 0 18px 40px -26px rgba(26, 45, 37, .5);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 560px at 88% -8%, rgba(199, 154, 58, .12), transparent 62%),
    radial-gradient(900px 700px at -8% 108%, rgba(47, 107, 87, .09), transparent 58%),
    radial-gradient(rgba(32, 48, 42, .06) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
}

body.modal-open { overflow: hidden; }

::selection { background: rgba(194, 96, 63, .22); }

button, input, select { font-family: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.app { display: flex; min-height: 100vh; }

/* ---------------- 侧栏 ---------------- */

.sidebar {
  flex: 0 0 264px;
  width: 264px;
  height: 100vh;
  position: sticky;
  top: 0;
  color: #efe7d6;
  background:
    radial-gradient(420px 300px at 110% -10%, rgba(199, 154, 58, .18), transparent 60%),
    radial-gradient(400px 380px at -20% 110%, rgba(0, 0, 0, .28), transparent 60%),
    linear-gradient(168deg, #1d4a3d 0%, #143a30 54%, #0f2b24 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .12) .6px, transparent .6px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

.side-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 20px 20px;
  gap: 18px;
  overflow-y: auto;
  scrollbar-width: none;
}
.side-inner::-webkit-scrollbar { display: none; }

.brand { display: flex; align-items: center; gap: 12px; }

.seal {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fdf6e8;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  background: #b4462f;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .38), 0 6px 14px -6px rgba(0, 0, 0, .55);
  transform: rotate(-3deg);
}
.seal.big { width: 62px; height: 62px; font-size: 32px; margin-bottom: 18px; }

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .08em;
  font-weight: 600;
  color: #fbf4e4;
}
.brand-text span { font-size: 10.5px; letter-spacing: .22em; color: rgba(239, 231, 214, .55); }

.teacher-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 6px 11px;
  padding: 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
}
.teacher-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--green);
  background: #f0e6cf;
}
.teacher-info { min-width: 0; }
.teacher-quote {
  grid-column: 1 / -1;
  font-size: 10px;
  line-height: 1.55;
  color: rgba(239, 231, 214, .52);
  letter-spacing: .02em;
}
.teacher-name { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.teacher-name em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .1em;
  color: rgba(239, 231, 214, .5);
  border: 1px solid rgba(239, 231, 214, .25);
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 4px;
}

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(239, 231, 214, .66);
  font-size: 13.5px;
  letter-spacing: .06em;
  text-align: left;
  transition: background .18s, color .18s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #f6efdf; }
.nav-item.active { background: rgba(255, 255, 255, .09); color: #fffaf0; }
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(239, 231, 214, .28);
  transition: background .18s, box-shadow .18s;
}
.nav-item.active .nav-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(199, 154, 58, .16); }

.side-block { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.side-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(239, 231, 214, .55);
}
.side-label b { font-size: 18px; color: #f8f0dd; font-weight: 500; font-variant-numeric: tabular-nums; }
.side-label b i { font-style: normal; font-size: 10px; color: rgba(239, 231, 214, .4); }

.pips { display: flex; gap: 4px; margin-top: 9px; }
.pips span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background .25s; }
.pips span.on { background: #e2b65c; box-shadow: 0 0 8px rgba(226, 182, 92, .35); }

.side-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: #eadfc4;
  color: #1c4035;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: transform .18s, background .18s;
}
.side-end:hover { background: #f3e8cd; transform: translateY(-1px); }

.side-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 4px;
}
.side-meta div { display: flex; flex-direction: column; gap: 2px; }
.side-meta span { font-size: 9px; letter-spacing: .1em; color: rgba(239, 231, 214, .38); }
.side-meta b { font-family: var(--serif); font-size: 15px; font-weight: 500; color: rgba(248, 240, 221, .85); }

.side-foot { display: flex; gap: 6px; }
.ghost {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: transparent;
  color: rgba(239, 231, 214, .6);
  font-size: 10.5px;
  letter-spacing: .06em;
  transition: background .18s, color .18s;
}
.ghost:hover { background: rgba(255, 255, 255, .08); color: #f8f0dd; }
.ghost.danger:hover { color: #f0b6a3; border-color: rgba(240, 182, 163, .35); }

/* ---------------- 主区 ---------------- */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 62px;
  padding: 0 32px;
  background: rgba(246, 242, 232, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.tb-school { font-size: 11px; letter-spacing: .14em; color: #6e7a72; white-space: nowrap; }
.tb-sep { color: #cfc6b4; }
.tb-week { white-space: nowrap; }
.tb-week b { font-family: var(--serif); font-size: 16px; color: var(--ink); font-weight: 600; margin: 0 1px; }
.tb-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(194, 96, 63, .1);
  color: var(--clay-2);
  font-size: 10.5px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.tb-right { display: flex; align-items: center; gap: 18px; }
.help-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  transition: color .16s, border-color .16s, background .16s;
}
.help-btn:hover { color: var(--green); border-color: #b9c7be; background: #fbf7ec; }
.tb-energy { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
.tb-energy .pips { width: 64px; margin: 0; }
.tb-energy .pips span { background: #ddd5c4; }
.tb-energy .pips span.on { background: var(--green-2); box-shadow: none; }
.tb-energy b { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.btn {
  border: 0;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 13px;
  letter-spacing: .04em;
  transition: transform .16s, background .16s, box-shadow .16s;
}
.btn-primary {
  background: var(--green);
  color: #f9f2e2;
  box-shadow: 0 8px 18px -12px rgba(30, 77, 63, .9);
}
.btn-primary:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-soft {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.btn-soft:hover { border-color: #b9c7be; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: #f5efe1; }
.btn.wide { width: 100%; margin-top: 18px; padding: 11px; }

.view { width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 32px 56px; }

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--clay);
  text-transform: uppercase;
}
.eyebrow.light { color: rgba(226, 182, 92, .9); }

.muted { color: var(--muted); font-size: 12px; }

/* ---------------- 首屏 ---------------- */

.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 34px;
  border-radius: 22px;
  color: #f7f0df;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 20% -30%, rgba(255, 255, 255, .1), transparent 60%),
    radial-gradient(400px 300px at 105% 120%, rgba(194, 96, 63, .22), transparent 65%),
    linear-gradient(140deg, #225445 0%, #173c32 60%, #12322a 100%);
  box-shadow: 0 24px 50px -34px rgba(15, 43, 36, .9);
}
.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: 280px;
  top: -150px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}
.hero-main { min-width: 0; }
.hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.15;
  margin: 9px 0 6px;
}
.hero-sub { font-size: 12px; letter-spacing: .06em; color: rgba(247, 240, 223, .62); }
.hero-stats { display: flex; gap: 30px; margin-top: 24px; }
.hero-stats div { display: flex; flex-direction: column; gap: 1px; }
.hero-stats div + div { padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .13); }
.hero-stats b { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.2; color: #fdf6e4; }
.hero-stats b small { font-size: 12px; color: rgba(247, 240, 223, .45); margin-left: 2px; }
.hero-stats span { font-size: 10px; letter-spacing: .18em; color: rgba(247, 240, 223, .5); }

.board {
  position: relative;
  flex: none;
  width: 292px;
  padding: 18px 20px 16px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    radial-gradient(240px 160px at 30% 20%, rgba(255, 255, 255, .05), transparent 70%),
    #16382f;
  box-shadow: inset 0 0 46px rgba(0, 0, 0, .38), 0 10px 24px -18px #000;
}
.board::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -7px;
  height: 7px;
  border-radius: 0 0 4px 4px;
  background: #c8b48b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.board-chalk { font-size: 10px; letter-spacing: .2em; color: rgba(244, 236, 216, .5); }
.board-days {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.1;
  color: #f8f1dd;
  margin: 2px 0 4px;
  text-shadow: 0 0 14px rgba(255, 255, 255, .16);
}
.board-days em { font-size: 13px; font-style: normal; margin-left: 6px; letter-spacing: .1em; color: rgba(248, 241, 221, .65); }
.board-motto {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--serif);
  font-size: 14px;
  letter-spacing: .08em;
  color: rgba(248, 241, 221, .82);
}
.board-foot {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, .16);
  font-size: 9px;
  letter-spacing: .2em;
  color: rgba(244, 236, 216, .38);
}

/* ---------------- KPI ---------------- */

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 18px -20px rgba(30, 48, 40, .5);
}
.kpi-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f3ecdc;
  font-size: 17px;
}
.kpi-label { display: block; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.kpi-value { display: block; font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); }
.kpi em.up, .kpi.up .kpi-value { color: var(--green-2); }
.kpi em.down, .kpi.down .kpi-value { color: var(--clay); }
.kpi.warn .kpi-value { color: var(--clay); }

/* ---------------- 面板 ---------------- */

.cols { display: grid; grid-template-columns: 1.3fr .92fr; gap: 14px; margin-top: 14px; }

.panel {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  box-shadow: 0 12px 30px -30px rgba(30, 48, 40, .55);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head h2 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .07em; }
.panel-head p { margin-top: 3px; font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.panel-tag {
  flex: none;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #faf6ec;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--green-2);
  font-size: 10.5px;
  letter-spacing: .06em;
  padding: 4px 0;
}
.link-btn:hover { color: var(--clay); }

/* 科目 */
.subject-list { display: flex; flex-direction: column; }
.subject-row {
  display: grid;
  grid-template-columns: 62px 1fr 46px 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-2);
}
.subject-row:last-child { border-bottom: 0; }
.subj-name { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.subj-name i { width: 6px; height: 6px; border-radius: 2px; }
.subj-track { position: relative; height: 7px; border-radius: 4px; background: #eee8da; }
.subj-fill { display: block; height: 100%; border-radius: 4px; }
.subj-mark {
  position: absolute;
  top: -3px;
  width: 1.5px;
  height: 13px;
  background: #33453d;
  opacity: .4;
}
.subj-val { font-family: var(--serif); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.subj-delta { font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.subj-delta.up { color: var(--green-2); }
.subj-delta.down { color: var(--clay); }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 9.5px; color: var(--muted); letter-spacing: .06em; }
.legend span { display: flex; align-items: center; gap: 5px; }
.lg-fill { width: 14px; height: 6px; border-radius: 3px; background: var(--green-2); }
.lg-mark { width: 1.5px; height: 10px; background: #33453d; opacity: .45; }

/* 状态 */
.meters { display: flex; flex-direction: column; gap: 14px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.meter-top b { font-family: var(--serif); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-bar { height: 7px; margin-top: 5px; border-radius: 4px; background: #eee8da; overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 4px; transition: width .5s ease; }
.meter-hint { margin-top: 4px; font-size: 9.5px; color: var(--muted); letter-spacing: .05em; }

.honors { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.honors h3 { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; color: var(--muted); margin-bottom: 8px; }
.honor-list { display: flex; flex-wrap: wrap; gap: 6px; }
.honor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #e9d9b4;
  border-radius: 7px;
  background: #f8efd9;
  color: #8a6420;
  font-size: 11px;
}
.honor b { font-weight: 500; }

/* 行动 */
.actions-panel { margin-top: 14px; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.action-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbf7ed;
  text-align: left;
  transition: border-color .18s, transform .18s, background .18s;
}
.action-card:hover:not(.disabled) { border-color: #b7c8be; transform: translateY(-1px); background: #fdfaf2; }
.action-card.disabled { opacity: .45; cursor: not-allowed; }
.ac-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fffdf7;
  border: 1px solid var(--line-2);
  font-size: 14px;
}
.ac-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ac-body b { font-size: 12.5px; font-weight: 600; }
.ac-body em { font-style: normal; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-cost {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(194, 96, 63, .08);
  color: var(--clay);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

/* 动态 / 关注 */
.mini-logs { display: flex; flex-direction: column; }
.mini-log {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-2);
}
.mini-log:last-child { border-bottom: 0; }
.ml-week { font-size: 9.5px; letter-spacing: .05em; color: #b3ab9b; padding-top: 2px; }
.mini-log p { font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.mini-log.event p { color: var(--clay-2); }
.mini-log.honor p { color: #8a6420; }

.focus-list { display: flex; flex-direction: column; gap: 3px; }
.focus-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  transition: background .18s;
}
.focus-row:hover { background: #f8f3e6; }
.focus-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.focus-info b { font-size: 12.5px; font-weight: 500; }
.focus-info em { font-style: normal; font-size: 9.5px; color: var(--muted); }
.focus-bar { flex: none; width: 52px; height: 4px; border-radius: 2px; background: #eee7d9; overflow: hidden; }
.focus-bar i { display: block; height: 100%; background: var(--clay); border-radius: 2px; }

.page-foot {
  margin-top: 22px;
  font-size: 10.5px;
  line-height: 1.7;
  color: #a39b8c;
  letter-spacing: .02em;
}

/* ---------------- 名册 ---------------- */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 4px 2px 18px;
}
.page-head h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .08em; margin-top: 4px; }
.page-head p { margin-top: 5px; font-size: 12px; color: var(--muted); }

.toolbar { display: flex; align-items: center; gap: 9px; }
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
}
.search span { color: #b1a999; font-size: 15px; }
.search input {
  width: 168px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.search input::placeholder { color: #b3ab9b; }
.toolbar select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 12px;
  outline: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 11.5px;
  letter-spacing: .04em;
  transition: background .16s, color .16s, border-color .16s;
}
.chip:hover { border-color: #b9c7be; }
.chip.active { background: var(--green); border-color: var(--green); color: #f8f1e0; }

.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 11px;
}
.student-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 16px 15px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-2);
  text-align: left;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.student-card:hover {
  transform: translateY(-3px);
  border-color: #b3c6bb;
  box-shadow: 0 18px 28px -24px rgba(30, 48, 40, .65);
}
.student-card.tier-gold { background: linear-gradient(180deg, #fffaee, #fffdf7 60%); }
.student-card .rank {
  position: absolute;
  top: 13px;
  right: 14px;
  font-family: var(--serif);
  font-size: 12px;
  color: #bdb4a3;
  letter-spacing: .05em;
}
.student-card.tier-gold .rank { color: #b58a2e; }
.avatar {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efe8d8;
  border: 1px solid #e3d9c6;
  color: var(--green);
  font-family: var(--serif);
  font-size: 18px;
}
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.xl { width: 72px; height: 72px; font-size: 30px; border-width: 1px; }
.avatar.gold { background: #f6e6bd; border-color: #e9d4a0; color: #8a6420; }
.avatar.green { background: #dceade; border-color: #c9dccd; color: #235a47; }
.avatar.clay { background: #f4ddd3; border-color: #e8c8ba; color: #a04e33; }
.avatar.absent { background: #eceae4; border-color: #e0ddd4; color: #9a978e; }

.stu-name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .05em; line-height: 1.2; }
.stu-sub { font-size: 9.5px; color: var(--muted); letter-spacing: .01em; }

.mini-scores {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  width: 100%;
  margin-top: 2px;
}
.ms {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 3px;
  border-radius: 5px;
  background: #f8f4e9;
}
.ms b { font-size: 11.5px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ms em { font-style: normal; font-size: 8px; color: #a9a294; line-height: 1.2; }
.mini-scores.absent { display: block; padding: 8px 0; font-size: 10.5px; color: var(--muted); }

.stu-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1px; }
.tag {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.tag.gold { background: #f6e8c4; color: #8a6420; }
.tag.green { background: #dcebe1; color: #2c5c49; }
.tag.clay { background: #f4dfd6; color: #a04e33; }
.tag.red { background: #f6dcd8; color: #a33a2a; }
.tag.plain { background: #eee9dd; color: #6f746b; }

.empty { padding: 40px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* ---------------- 成绩表 ---------------- */

.table-wrap {
  max-height: calc(100vh - 190px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  scrollbar-width: thin;
}
.score-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.score-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 12px;
  background: #f8f3e6;
  border-bottom: 1px solid var(--line);
  color: #7d857e;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.score-table thead th:nth-child(1),
.score-table thead th:nth-child(2) { text-align: left; }
.score-table thead th:hover { color: var(--clay); }
.score-table thead th i { font-style: normal; margin-left: 3px; color: var(--clay); font-size: 9px; }
.score-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f2eddf;
  font-size: 12.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.score-table tbody tr { cursor: pointer; transition: background .14s; }
.score-table tbody tr:hover { background: #f8f4e9; }
.score-table tbody tr:last-child td { border-bottom: 0; }
.score-table td.name { text-align: left; font-weight: 500; letter-spacing: .03em; }
.score-table td.total { font-weight: 600; color: var(--green); }
.score-table td.low { color: var(--clay); }
.score-table tr.top3 { background: rgba(199, 154, 58, .05); }
.score-table tr.top3 td.name { color: #8a6420; }
.score-table tr.absent { opacity: .55; }
.score-table td.muted { color: var(--muted); }

/* ---------------- 座位 ---------------- */

.seat-panel { padding: 24px 26px 18px; }
.podium {
  width: 46%;
  margin: 0 auto 22px;
  padding: 8px;
  border: 1px dashed #cfc6b2;
  border-radius: 7px;
  background: #f4eddd;
  color: #9c9484;
  font-size: 10px;
  letter-spacing: .5em;
  text-align: center;
}
.seat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.seat {
  min-height: 52px;
  padding: 5px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: border-color .16s, transform .16s, background .16s;
}
.seat.filled:hover { border-color: #adc2b6; transform: translateY(-2px); background: #fdfaf1; }
.seat b { font-size: 11.5px; font-weight: 500; letter-spacing: .02em; }
.seat em { font-style: normal; font-size: 8.5px; color: #a8a093; }
.seat.empty { background: transparent; border-style: dashed; border-color: #e7e0d1; cursor: default; }
.seat.tier-gold { background: #fbf1d6; border-color: #ecdcb3; }
.seat.tier-gold em { color: #a8873f; }
.seat.tier-green { background: #eef5ef; border-color: #d9e6dc; }
.seat.tier-clay { background: #fdf1eb; }
.seat-note {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  font-size: 10px;
  color: var(--muted);
}
.seat-note span { display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green-2); }
.dot.gold { background: var(--gold); }
.dot.clay { background: var(--clay); }

/* ---------------- 日志 ---------------- */

.timeline { padding: 22px 28px; }
.week-group { margin-bottom: 6px; }
.week-head { display: flex; align-items: center; gap: 12px; padding: 12px 0 6px; }
.week-head span { font-family: var(--serif); font-size: 13px; letter-spacing: .12em; color: #8a6420; white-space: nowrap; }
.week-head i { flex: 1; height: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 10px 1fr; gap: 12px; padding: 8px 0 8px 3px; }
.tl-dot { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: #c9c0ae; }
.tl-item.action .tl-dot { background: var(--green-2); }
.tl-item.event .tl-dot { background: var(--clay); }
.tl-item.exam .tl-dot { background: var(--gold); }
.tl-item.honor .tl-dot { background: #8a6420; box-shadow: 0 0 0 3px rgba(199, 154, 58, .16); }
.tl-item p { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

/* ---------------- 弹窗 ---------------- */

#modal-root { position: relative; z-index: 100; }
.backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 33, 27, .52);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .18s ease;
}
.backdrop.in { opacity: 1; }
.modal {
  position: relative;
  width: min(880px, 100%);
  max-height: 89vh;
  overflow-y: auto;
  padding: 28px 30px;
  border: 1px solid #e8e0cf;
  border-radius: 20px;
  background: #fbf8ef;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
  transform: translateY(12px) scale(.985);
  transition: transform .2s ease;
  scrollbar-width: thin;
}
.backdrop.in .modal { transform: none; }
.modal-x {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9a9384;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
  z-index: 3;
}
.modal-x:hover { background: #eee7d7; color: var(--ink); }

.student-modal { width: min(920px, 100%); }
.exam-modal { width: min(640px, 100%); }
.event-modal { width: min(580px, 100%); }
.confirm-modal { width: min(460px, 100%); }
.intro-modal { width: min(520px, 100%); }

/* 学生详情 */
.sm-head { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.sm-id { flex: 1; min-width: 0; }
.sm-id h2 { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .06em; margin: 3px 0 5px; }
.sm-id p { font-size: 10.5px; color: var(--muted); margin-top: 5px; letter-spacing: .02em; }
.sm-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sm-total { flex: none; text-align: right; padding-left: 8px; }
.sm-total b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.sm-total b.na { font-size: 19px; letter-spacing: .18em; color: #9a978e; line-height: 1.6; }
.sm-total span { font-size: 10px; color: var(--muted); }
.sm-total em { display: block; margin-top: 5px; font-style: normal; font-size: 10.5px; color: var(--clay); }

.sm-grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; margin-top: 20px; }
.sm-left { min-width: 0; }
.radar { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.radar-label { font-family: var(--sans); font-size: 11px; fill: #5b665e; }
.radar-score { font-size: 9.5px; fill: var(--clay); }
.radar-empty {
  height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: #a39b8c;
  font-family: var(--serif);
  font-size: 20px;
}
.radar-empty span { font-family: var(--sans); font-size: 10.5px; }

.sm-meters { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.sm-meter { display: grid; grid-template-columns: 32px 1fr 26px; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); }
.sm-meter > div { height: 5px; border-radius: 3px; background: #eee7d8; overflow: hidden; }
.sm-meter i { display: block; height: 100%; border-radius: 3px; }
.sm-meter b { font-size: 10.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

.sm-comment {
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 2px solid var(--clay);
  border-radius: 0 8px 8px 0;
  background: #f6f0e2;
  font-size: 11.5px;
  line-height: 1.75;
  color: #5c635b;
}

.sm-score-head { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: .14em; color: var(--muted); padding-bottom: 5px; }
.score-row {
  display: grid;
  grid-template-columns: 47px 1fr 36px 44px;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-2);
}
.sr-name { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.sr-name i { width: 6px; height: 6px; border-radius: 2px; }
.sr-track { height: 6px; border-radius: 3px; background: #eee8da; overflow: hidden; }
.sr-track i { display: block; height: 100%; border-radius: 3px; }
.score-row b { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.sr-diff { font-size: 9.5px; text-align: right; font-variant-numeric: tabular-nums; }
.sr-diff.up { color: var(--green-2); }
.sr-diff.down { color: var(--clay); }

.sm-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.act-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 2px 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf7;
  transition: border-color .16s, transform .16s, background .16s;
}
.act-btn:hover:not(:disabled) { border-color: #b3c6bb; transform: translateY(-1px); background: #fbf7ec; }
.act-btn:disabled { opacity: .38; cursor: not-allowed; }
.act-icon { font-size: 15px; line-height: 1; }
.act-btn b { font-size: 10.5px; font-weight: 500; }
.act-btn em { font-style: normal; font-size: 8.5px; color: var(--muted); }
.sm-hint { margin-top: 7px; text-align: center; font-size: 9px; color: #aaa294; }

.sm-notes { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sm-notes h3 { font-size: 9.5px; letter-spacing: .2em; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.sm-notes li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 6px 0; font-size: 11.5px; }
.sm-notes li span { color: var(--clay); font-size: 9.5px; padding-top: 2px; }
.sm-notes li p { color: var(--ink-2); line-height: 1.65; }
.sm-notes li.muted { display: block; color: var(--muted); }

/* 考试 */
.exam-wrap h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .06em; margin: 5px 0 16px; }
.exam-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.exam-summary > div { padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 11px; background: #f6f0e2; }
.exam-summary b { display: block; font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.exam-summary b small { font-size: 10px; color: var(--muted); }
.exam-summary span { display: block; font-size: 9.5px; letter-spacing: .1em; color: var(--muted); }
.exam-summary em { font-style: normal; font-size: 10.5px; }
.exam-summary em.up { color: var(--green-2); }
.exam-summary em.down { color: var(--clay); }
.exam-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.exam-cols h3 { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; color: var(--muted); margin-bottom: 6px; }
.rank-list li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.rank-list .rk { font-family: var(--serif); font-size: 11px; color: var(--clay); }
.rank-list b { font-weight: 500; font-variant-numeric: tabular-nums; }
.gain-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.gain-list b { font-weight: 500; font-variant-numeric: tabular-nums; }
.gain-list .up { color: var(--green-2); }
.gain-list .down { color: var(--clay); }
.exam-tip {
  margin-top: 18px;
  padding: 11px 13px;
  border-left: 2px solid var(--clay);
  background: #f6f0e2;
  font-size: 11.5px;
  line-height: 1.75;
  color: #5c635b;
}

/* 事件 */
.event-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #f5e6d8;
  font-size: 22px;
}
.event-wrap h2 { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .06em; margin: 4px 0 10px; }
.event-text { font-size: 13px; line-height: 1.9; color: var(--ink-2); margin-bottom: 20px; }
.event-options { display: flex; flex-direction: column; gap: 7px; }
.event-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdf7;
  text-align: left;
  transition: border-color .16s, background .16s, transform .16s;
}
.event-opt:hover { border-color: #b3c6bb; background: #f9f4e7; transform: translateX(2px); }
.opt-idx { font-size: 9.5px; letter-spacing: .1em; color: #b1a999; }
.opt-label { flex: 1; font-size: 12.5px; color: var(--ink); }
.opt-arrow { color: #b1a999; font-size: 13px; }
.event-result h2 { font-family: var(--serif); font-size: 26px; margin: 4px 0 10px; }
.event-result p { font-size: 13px; line-height: 1.95; color: var(--ink-2); }

/* 介绍 */
.intro-wrap { text-align: left; }
.intro-wrap h2 { font-family: var(--serif); font-size: 27px; margin: 4px 0 12px; letter-spacing: .04em; }
.intro-wrap > p { font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.intro-list { margin: 16px 0 4px; display: flex; flex-direction: column; gap: 9px; }
.intro-list li { position: relative; padding-left: 16px; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.intro-list li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }
.intro-list b { color: var(--ink); font-weight: 600; }

/* 确认 */
.confirm-wrap h2 { font-family: var(--serif); font-size: 25px; margin: 4px 0 10px; }
.confirm-wrap p { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

/* 提示 */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 9px;
  background: #1f3d33;
  color: #f6efdf;
  font-size: 11.5px;
  letter-spacing: .03em;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s, transform .22s;
}
.toast.show { opacity: 1; transform: none; }
.toast.warn { background: #7e432b; }
.toast.gold { background: #7c5c1e; }
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: #e2b65c; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1180px) {
  .sidebar { flex-basis: 236px; width: 236px; }
  .view { padding: 22px 24px 50px; }
  .hero h1 { font-size: 38px; }
  .board { width: 258px; }
  .action-grid { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1.15fr .95fr; }
  .student-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 1020px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .hero { padding: 26px; }
  .hero h1 { font-size: 34px; }
  .sm-grid { grid-template-columns: 260px 1fr; gap: 20px; }
}

@media (max-width: 960px) {
  .hero { flex-direction: column; gap: 18px; }
  .board { width: 100%; }
  .hero-stats div { min-width: 88px; }
}

@media (max-width: 860px) {
  .app { display: block; }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-basis: auto;
  }
  .sidebar::after { display: none; }
  .side-inner {
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 16px;
    overflow: visible;
  }
  .brand { flex: 1; min-width: 180px; }
  .seal { width: 36px; height: 36px; font-size: 19px; }
  .brand-text strong { font-size: 16px; }
  .brand-text span { font-size: 9px; letter-spacing: .14em; }
  .teacher-card, .side-meta, .side-foot, .side-end { display: none; }
  .nav {
    order: 5;
    width: 100%;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    padding-top: 4px;
  }
  .nav-item { width: auto; white-space: nowrap; padding: 7px 11px; font-size: 12px; }
  .side-block {
    order: 4;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .side-label { display: none; }
  .side-block .pips { width: 72px; margin: 0; }
  .nav-dot { display: none; }

  .topbar { height: 56px; padding: 0 16px; top: 0; }
  .tb-school, .tb-sep { display: none; }
  .view { padding: 18px 16px 44px; }
  .hero { flex-direction: column; gap: 18px; padding: 22px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 20px; margin-top: 18px; }
  .hero-stats div + div { padding-left: 20px; }
  .hero-stats b { font-size: 23px; }
  .board { width: 100%; padding: 14px 18px; }
  .board-days { font-size: 40px; }
  .board-foot { margin-top: 10px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-head h2 { font-size: 25px; }
  .toolbar { flex-wrap: wrap; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .student-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px; }
  .student-card { padding: 13px 12px 11px; }
  .stu-name { font-size: 17px; }
  .mini-scores { gap: 2px; }
  .ms b { font-size: 10.5px; }
  .seat-grid { gap: 5px; }
  .seat { min-height: 44px; }
  .seat b { font-size: 10px; }
  .seat em { font-size: 7.5px; }
  .modal { padding: 24px 20px; max-height: 92vh; }
  .sm-head { flex-wrap: wrap; gap: 12px 14px; }
  .avatar.xl { width: 56px; height: 56px; font-size: 24px; }
  .sm-id { flex: 1 1 160px; min-width: 0; }
  .sm-id h2 { font-size: 23px; margin: 2px 0 4px; }
  .sm-total {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-align: left;
  }
  .sm-total b { font-size: 28px; }
  .sm-total em { margin: 0 0 0 auto; }
  .sm-grid { grid-template-columns: 1fr; }
  .radar { max-width: 260px; }
  .sm-notes li { grid-template-columns: 56px 1fr; }
  .exam-cols { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 560px) {
  .help-btn { display: none; }
  .tb-energy span:first-child { display: none; }
  .tb-right { gap: 10px; }
  .tb-energy .pips { width: 50px; }
  .btn { padding: 8px 13px; font-size: 12px; }
  .hero-stats { gap: 14px; }
  .hero-stats div + div { padding-left: 14px; }
  .hero-stats b { font-size: 20px; }
  .hero-stats span { font-size: 8.5px; letter-spacing: .1em; }
  .kpi-row { gap: 8px; }
  .kpi { padding: 12px; gap: 9px; }
  .kpi-icon { width: 32px; height: 32px; font-size: 14px; }
  .kpi-value { font-size: 19px; }
  .panel { padding: 16px; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { padding: 10px; }
  .subject-row { grid-template-columns: 52px 1fr 40px 38px; gap: 7px; }
  .seat-grid { grid-template-columns: repeat(5, 1fr); }
  .seat { min-height: 40px; }
  .score-table td, .score-table thead th { padding: 7px 8px; font-size: 11px; }
  .student-grid { grid-template-columns: repeat(2, 1fr); }
  .student-card .rank { top: 10px; right: 10px; font-size: 10px; }
  .sm-actions { grid-template-columns: repeat(3, 1fr); }
  .exam-summary { gap: 6px; }
  .exam-summary > div { padding: 10px; }
  .exam-summary b { font-size: 22px; }
}

/* ---------------- 班费 / 周考 / 抽卡 ---------------- */

.side-funds {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, .13);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: rgba(239, 231, 214, .55);
}
.side-funds b { font-family: var(--serif); font-size: 19px; font-weight: 500; color: #e2b65c; letter-spacing: .02em; }

.tb-funds {
  font-size: 11px;
  color: var(--ink-2);
  background: rgba(199, 154, 58, .12);
  border: 1px solid rgba(199, 154, 58, .22);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.tb-funds b { font-weight: 600; color: #8a6420; }

.funds-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid rgba(199, 154, 58, .3);
  border-radius: 999px;
  background: #fbf3df;
  color: #7c5c1e;
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.funds-pill b { font-size: 13px; }

.weekly-panel {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 26px;
  margin-top: 14px;
  background:
    radial-gradient(420px 200px at 92% -20%, rgba(199, 154, 58, .12), transparent 70%),
    var(--paper-2);
}
.weekly-panel-main { min-width: 0; }
.weekly-top5 { display: flex; flex-direction: column; }
.weekly-top5 li {
  display: grid;
  grid-template-columns: 28px 1fr 46px 42px;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 12.5px;
}
.weekly-top5 li:last-child { border-bottom: 0; }
.wt-rank { font-family: var(--serif); font-size: 12px; color: #b58a2e; text-align: center; }
.wt-name { letter-spacing: .03em; }
.weekly-top5 b { font-family: var(--serif); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.weekly-top5 em { font-style: normal; font-size: 10px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.weekly-top5 em.up { color: var(--green-2); }
.weekly-top5 em.down { color: var(--clay); }

.weekly-gacha {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 14px;
  border: 1px dashed #d8c9a8;
  border-radius: 14px;
  background: linear-gradient(165deg, #fbf4e2, #f6edda);
  text-align: center;
}
.wg-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fffaf0;
  border: 1px solid #ead9b6;
  font-size: 19px;
  margin-bottom: 2px;
}
.weekly-gacha h3 { font-family: var(--serif); font-size: 16px; letter-spacing: .08em; }
.weekly-gacha p { font-size: 10.5px; line-height: 1.65; color: #8b7f69; }
.weekly-gacha p b { color: #8a6420; }
.weekly-gacha .btn { margin-top: 5px; padding: 8px 14px; font-size: 12px; }
.wg-funds { font-size: 9.5px; color: #a2947a; }

/* 周考页 */
.weekly-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 18px;
  color: #f6efdf;
  background:
    radial-gradient(500px 240px at 90% -20%, rgba(199, 154, 58, .2), transparent 65%),
    linear-gradient(140deg, #225445, #173c32 65%, #12322a);
  box-shadow: var(--shadow);
}
.wh-stat { display: flex; flex-direction: column; gap: 1px; padding-right: 16px; border-right: 1px solid rgba(255, 255, 255, .12); }
.wh-stat span { font-size: 9.5px; letter-spacing: .16em; color: rgba(246, 239, 223, .55); }
.wh-stat b { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.25; color: #fdf6e4; font-variant-numeric: tabular-nums; }
.wh-stat b small { font-size: 12px; color: rgba(246, 239, 223, .4); }
.wh-stat em { font-style: normal; font-size: 10px; color: rgba(246, 239, 223, .55); }
.wh-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.wh-cta p { font-size: 11px; line-height: 1.7; color: rgba(246, 239, 223, .62); }
.wh-cta .btn-soft { background: #eadfc4; border-color: #eadfc4; color: #1c4035; }
.wh-cta .btn-soft:hover { background: #f3e8cd; }

.weekly-cols { display: grid; grid-template-columns: 1fr 330px; gap: 14px; margin-top: 14px; align-items: start; }
.weekly-table-wrap { max-height: 66vh; }
.weekly-table { min-width: 520px; }
.weekly-table td.up { color: var(--green-2); }
.weekly-table td.down { color: var(--clay); }
.weekly-table td.math-cell { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--green); }

.gacha-history { display: flex; flex-direction: column; gap: 4px; max-height: 66vh; overflow-y: auto; }
.gacha-log-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--line-2);
}
.gacha-log-item:last-child { border-bottom: 0; }
.gl-week { font-size: 9px; color: #b3ab9b; padding-top: 2px; }
.gacha-log-item b { display: block; font-size: 12px; font-weight: 600; }
.gacha-log-item em { display: block; font-style: normal; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.gacha-log-item p { font-size: 9.5px; color: #a2947a; margin-top: 2px; }
.gacha-log-item.rarity-SSR b { color: #9a6b18; }
.gacha-log-item.rarity-SR b { color: #3d6b8e; }

/* 抽卡弹窗 */
.gacha-modal { width: min(720px, 100%); }
.gacha-wrap h2 { font-family: var(--serif); font-size: 27px; letter-spacing: .05em; margin: 4px 0 8px; }
.gacha-lead { font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.gacha-lead b { color: var(--clay); }
.gacha-odds { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; font-size: 10px; flex-wrap: wrap; }
.gacha-odds > span { padding: 3px 8px; border-radius: 999px; background: #f4eee1; letter-spacing: .06em; }
.gacha-odds .rarity-SSR { color: #9a6b18; background: #fbf1d8; }
.gacha-odds .rarity-SR { color: #3d6b8e; background: #eef3f8; }
.gacha-odds .rarity-R { color: #7d8b82; background: #f1f3ef; }
.gacha-odds .gacha-funds { margin-left: auto; background: transparent; color: #8a6420; }
.pool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; max-height: 230px; overflow-y: auto; padding-right: 2px; }
.pool-card {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbf8ef;
}
.pool-card .pc-icon { font-size: 14px; display: block; }
.pool-card b { display: block; font-size: 11px; font-weight: 500; margin-top: 3px; letter-spacing: .02em; }
.pool-card em { display: block; font-style: normal; font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.pool-card.rarity-SR { background: #f1f5f9; border-color: #cfdde9; }
.pool-card.rarity-SSR { background: #fcf3dd; border-color: #e9d4a2; }

.gacha-result { display: flex; flex-direction: column; gap: 14px; }
.pull-card {
  position: relative;
  padding: 20px 22px 18px;
  border: 1px solid #ded5c2;
  border-radius: 15px;
  background: linear-gradient(160deg, #fdfaf1, #f7f0e0);
  text-align: center;
  overflow: hidden;
  animation: cardIn .35s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.pull-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen .9s .18s ease;
  pointer-events: none;
}
@keyframes sheen { to { transform: translateX(120%); } }
.pull-top { display: flex; justify-content: space-between; align-items: center; }
.pull-rarity { font-family: var(--serif); font-size: 13px; letter-spacing: .16em; font-weight: 600; }
.pull-subject { font-size: 9.5px; letter-spacing: .18em; color: var(--muted); }
.pull-icon { font-size: 34px; line-height: 1; margin: 10px 0 6px; }
.pull-card h2 { font-family: var(--serif); font-size: 25px; letter-spacing: .1em; margin: 0 0 5px; }
.pull-card > p { font-size: 11.5px; color: var(--ink-2); }
.pull-flavor { margin-top: 8px; font-size: 10.5px; color: #9a8b70; font-family: "Kaiti SC", "STKaiti", var(--serif); }
.pull-card.rarity-R { border-color: #d8d2c4; }
.pull-card.rarity-R .pull-rarity { color: #6f7d73; }
.pull-card.rarity-SR { border-color: #bed2e2; background: linear-gradient(160deg, #f8fbfe, #eef5fa); }
.pull-card.rarity-SR .pull-rarity { color: #3d6b8e; }
.pull-card.rarity-SSR {
  border-color: #e2c27b;
  background:
    radial-gradient(280px 140px at 50% 0%, rgba(255, 236, 180, .65), transparent 70%),
    linear-gradient(160deg, #fffaeb, #f8ecc9);
  box-shadow: 0 18px 40px -24px rgba(154, 107, 24, .55), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.pull-card.rarity-SSR .pull-rarity { color: #9a6b18; }
.pull-card.rarity-SSR::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg, transparent, rgba(226, 182, 92, .18), transparent 30%);
  animation: rotateGlow 6s linear infinite;
  pointer-events: none;
}
@keyframes rotateGlow { to { transform: rotate(360deg); } }
.pull-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pull-summary > div { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #f7f1e4; }
.pull-summary b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pull-summary span { display: block; font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.pull-summary em { font-style: normal; font-size: 10px; }
.pull-summary em.up { color: var(--green-2); }
.pull-summary em.down { color: var(--clay); }
.pull-gains h3 { font-size: 9.5px; letter-spacing: .18em; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.pull-gains .gain-list li { padding: 6px 0; font-size: 12px; }
.pull-actions { display: flex; gap: 8px; justify-content: flex-end; }
.pull-actions .btn { padding: 9px 16px; font-size: 12px; }

@media (max-width: 1100px) {
  .weekly-panel { grid-template-columns: 1fr 240px; gap: 18px; }
  .weekly-cols { grid-template-columns: 1fr 290px; }
  .weekly-hero { grid-template-columns: repeat(3, 1fr); }
  .wh-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 900px) {
  .weekly-panel { grid-template-columns: 1fr; }
  .weekly-cols { grid-template-columns: 1fr; }
  .weekly-hero { grid-template-columns: repeat(3, 1fr); padding: 18px; gap: 12px; }
  .wh-stat b { font-size: 26px; }
  .wh-cta { grid-column: 1 / -1; }
  .pool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .tb-funds { font-size: 10px; padding: 3px 7px; }
  .weekly-hero { grid-template-columns: repeat(2, 1fr); }
  .wh-stat:nth-child(2) { border-right: 0; }
  .wh-cta { flex-direction: column; align-items: flex-start; }
  .weekly-top5 li { grid-template-columns: 24px 1fr 40px 36px; }
  .pull-summary { grid-template-columns: 1fr 1fr; }
  .pull-summary > div:last-child { grid-column: 1 / -1; }
  .pool-grid { grid-template-columns: 1fr 1fr; max-height: 200px; }
  .gacha-modal { padding: 20px 16px; }
  .pull-card h2 { font-size: 21px; }
  .pull-actions { flex-direction: column-reverse; }
  .pull-actions .btn { width: 100%; }
}

.pull-card > * { position: relative; z-index: 1; }
.pull-card::before { z-index: 0; }
.pull-card::after { z-index: 2; }

@media (max-width: 860px) {
  .side-funds { display: none; }
}
@media (max-width: 560px) {
  .tb-energy { display: none; }
  .topbar { padding: 0 12px; }
  .nav-item { padding: 6px 9px; font-size: 11.5px; letter-spacing: .01em; }
  .weekly-hero { grid-template-columns: repeat(3, 1fr); }
  .wh-stat { padding-right: 8px; }
  .wh-stat:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, .12); }
  .wh-stat b { font-size: 23px; }
  .weekly-table { min-width: 0; }
  .weekly-table th, .weekly-table td { padding: 7px 6px; font-size: 11px; }
  .weekly-table td.math-cell { font-size: 12.5px; }
  .weekly-table-wrap { max-height: none; }
}

@media (max-width: 560px) {
  .nav { flex-wrap: wrap; overflow: visible; row-gap: 2px; }
}

.pull-top { padding-right: 30px; }
@media (max-width: 600px) {
  .nav-item { padding: 6px 8px; font-size: 11px; }
  .gacha-wrap h2 { font-size: 22px; }
  .pool-grid { max-height: 280px; }
}

@media (max-width: 960px) {
  .tb-school, .tb-sep { display: none; }
  .tb-energy > span:first-child { display: none; }
  .tb-right { gap: 12px; }
}

@media (max-width: 560px) {
  .tb-badge { display: none; }
}

.pull-subject { margin-right: 44px; }
@media (max-width: 600px) {
  .pull-subject { margin-right: 34px; font-size: 9px; }
}

/* ---------------- 难度 / 倒计时 / 方略 / 小练 / 高考 ---------------- */

.board-live {
  margin-top: 8px;
  font-size: 9.5px;
  letter-spacing: .14em;
  color: rgba(244, 236, 216, .48);
}
.board-live span { color: rgba(244, 236, 216, .78); font-variant-numeric: tabular-nums; }
.board-actions { display: flex; gap: 5px; margin-top: 10px; }
.board-actions button {
  flex: 1;
  padding: 6px 3px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 5px;
  background: rgba(255, 255, 255, .05);
  color: rgba(244, 236, 216, .72);
  font-size: 9px;
  letter-spacing: .04em;
  transition: background .16s, color .16s;
}
.board-actions button:hover { background: rgba(255, 255, 255, .13); color: #fdf6e4; }

/* 难度选择 */
.difficulty-modal { width: min(880px, 100%); }
.difficulty-wrap h2 { font-family: var(--serif); font-size: 28px; letter-spacing: .05em; margin: 5px 0 8px; }
.difficulty-lead { font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.difficulty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.difficulty-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf7;
  text-align: left;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  border-top: 3px solid #c9c0ae;
}
.difficulty-card:hover { transform: translateY(-3px); border-color: #b3c6bb; box-shadow: 0 18px 30px -26px rgba(30, 48, 40, .7); }
.difficulty-card.easy { border-top-color: #4b8a6c; }
.difficulty-card.normal { border-top-color: #c79a3a; }
.difficulty-card.hard { border-top-color: #b4543c; }
.diff-icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.difficulty-card b { font-family: var(--serif); font-size: 23px; letter-spacing: .08em; }
.difficulty-card em { font-style: normal; font-size: 9.5px; letter-spacing: .12em; color: var(--muted); }
.difficulty-card p { font-size: 10.5px; line-height: 1.65; color: var(--ink-2); margin-top: 5px; min-height: 35px; }
.difficulty-card ul { margin-top: 6px; padding-top: 7px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 3px; }
.difficulty-card li { font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; }
.difficulty-card li b { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0; color: var(--ink); }

/* 方略树 */
.strategy-points {
  padding: 7px 13px;
  border: 1px solid #e5cb8e;
  border-radius: 999px;
  background: #fbf1d8;
  color: #8a6420;
  font-size: 10.5px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.strategy-points b { font-family: var(--serif); font-size: 17px; margin-left: 3px; }

.strategy-board {
  position: relative;
  padding: 22px 22px 16px;
  border-radius: 20px;
  color: #f1e8d2;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(199, 154, 58, .16), transparent 65%),
    radial-gradient(rgba(255, 255, 255, .05) .6px, transparent .6px),
    linear-gradient(150deg, #1e4a3d, #143a30 62%, #102f27);
  background-size: auto, 14px 14px, auto;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .25), var(--shadow);
  overflow: hidden;
}
.strategy-board-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(241, 232, 210, .4);
  margin-bottom: 18px;
}
.focus-root-row { position: relative; display: flex; justify-content: center; padding-bottom: 26px; }
.focus-root-row .focus-node { max-width: 340px; }
.focus-root-row::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 26px;
  background: rgba(226, 182, 92, .3);
}
.focus-tree-lines {
  height: 1px;
  margin: 0 10%;
  background: linear-gradient(90deg, transparent, rgba(226, 182, 92, .3), transparent);
}
.focus-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.focus-branch { min-width: 0; }
.branch-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-left: 4px; }
.branch-head > span { font-size: 18px; }
.branch-head b { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: .08em; }
.branch-head em { display: block; font-style: normal; font-size: 8.5px; color: rgba(241, 232, 210, .4); margin-top: 1px; }
.branch-nodes { position: relative; display: flex; flex-direction: column; gap: 9px; }
.branch-nodes::before {
  content: "";
  position: absolute;
  left: 21px;
  top: -10px;
  bottom: 30px;
  width: 1px;
  background: rgba(226, 182, 92, .22);
}
.focus-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: rgba(255, 255, 255, .055);
  color: #f1e8d2;
  text-align: left;
  transition: border-color .16s, background .16s, transform .16s;
}
.focus-node:hover { border-color: rgba(226, 182, 92, .5); transform: translateX(2px); }
.focus-node .fn-icon {
  flex: none;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  font-size: 14px;
}
.fn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fn-body b { font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.fn-body em { font-style: normal; font-size: 8.5px; color: rgba(241, 232, 210, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-state { flex: none; font-size: 8.5px; color: rgba(241, 232, 210, .4); letter-spacing: .04em; }
.focus-node.available { border-color: rgba(226, 182, 92, .5); background: rgba(226, 182, 92, .09); }
.focus-node.available .fn-state { color: #e2b65c; }
.focus-node.owned { border-color: rgba(124, 185, 150, .38); background: rgba(47, 107, 87, .35); }
.focus-node.owned .fn-state { color: #9ed3b5; }
.focus-node.locked { opacity: .42; filter: saturate(.4); cursor: not-allowed; }
.strategy-foot {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, .12);
  font-size: 9px;
  letter-spacing: .06em;
  color: rgba(241, 232, 210, .4);
  text-align: center;
}

.focus-modal { width: min(460px, 100%); }
.focus-modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f6edda;
  border: 1px solid #e8d8b6;
  font-size: 27px;
  margin-bottom: 12px;
}
.focus-modal h2 { font-family: var(--serif); font-size: 27px; letter-spacing: .06em; margin: 4px 0 8px; }
.focus-desc { font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.focus-effect-box { margin-top: 14px; padding: 11px 13px; border-radius: 9px; background: #f6f0e2; border-left: 2px solid var(--gold); }
.focus-effect-box span { display: block; font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.focus-effect-box b { display: block; margin-top: 3px; font-size: 12px; color: #7c5c1e; font-weight: 500; }
.focus-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 10px; color: var(--muted); }
.focus-meta b { color: var(--ink); }
.focus-meta .ok { color: var(--green-2); }
.focus-meta .ok::after { content: " ✓"; }

/* 各科小练 */
.practice-panel { margin-top: 14px; }
.practice-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.practice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 11px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf7ed;
  text-align: center;
}
.practice-name { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); }
.practice-name i { width: 6px; height: 6px; border-radius: 2px; }
.practice-card > b { font-family: var(--serif); font-size: 21px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.practice-card > em { font-style: normal; font-size: 8px; color: var(--muted); }
.practice-card .btn { width: 100%; margin-top: 6px; padding: 5px 4px; font-size: 9.5px; }
.practice-note { margin-top: 9px; font-size: 9.5px; color: var(--muted); }
.practice-modal { width: min(430px, 100%); text-align: center; }
.practice-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  margin: 0 auto 12px;
  border-radius: 15px;
  background: #f6edda;
  border: 1px solid #e7d6b2;
  font-family: var(--serif);
  font-size: 22px;
}
.practice-modal h2 { font-family: var(--serif); font-size: 25px; margin: 4px 0 10px; }
.practice-modal p { font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.practice-current { margin: 14px 0; font-size: 11px; color: var(--muted); }
.practice-current b { font-family: var(--serif); font-size: 20px; color: var(--green); }

/* 快速推进总结 */
.fast-modal { width: min(480px, 100%); }
.fast-wrap h2 { font-family: var(--serif); font-size: 26px; margin: 4px 0 10px; }
.fast-wrap > p { font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.fast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.fast-grid > div { padding: 10px; border: 1px solid var(--line-2); border-radius: 9px; background: #f7f1e4; }
.fast-grid b { display: block; font-family: var(--serif); font-size: 21px; font-variant-numeric: tabular-nums; }
.fast-grid span { display: block; font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.fast-grid em { font-style: normal; font-size: 10px; color: var(--green-2); }

/* 高考 */
.gaokao-modal { width: min(920px, 100%); padding: 0; overflow: hidden; }
.gaokao-wrap { max-height: 89vh; overflow-y: auto; padding-bottom: 4px; }
.gaokao-banner {
  padding: 30px 64px 24px 30px;
  color: #f8f1e1;
  background:
    radial-gradient(500px 260px at 85% -30%, rgba(199, 154, 58, .35), transparent 65%),
    linear-gradient(145deg, #225445, #143a30 70%, #102d25);
}
.gaokao-banner h2 { font-family: var(--serif); font-size: 36px; letter-spacing: .12em; margin: 6px 0 8px; }
.gaokao-banner p { font-size: 10.5px; letter-spacing: .04em; color: rgba(248, 241, 225, .55); }
.gaokao-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 24px 4px; }
.gaokao-summary > div { padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: #f7f1e4; }
.gaokao-summary b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.gaokao-summary b small { font-size: 10px; color: var(--muted); }
.gaokao-summary span { display: block; font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.gaokao-cols { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; padding: 16px 24px 0; }
.gaokao-cols h3 { font-size: 9.5px; letter-spacing: .18em; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.gaokao-letter p { font-size: 11.5px; line-height: 1.85; color: var(--ink-2); }
.gaokao-table-wrap { margin: 16px 24px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.gaokao-table { min-width: 600px; }
.gaokao-table th { position: sticky; top: 0; }
.gaokao-table td.uni { text-align: left; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.gaokao-table td.gaokao-score { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--green); }
.tier { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 9px; }
.tier.benke { background: #dcebe1; color: #2c5c49; }
.tier.zhuanke { background: #e3edf5; color: #3d6b8e; }
.tier.fail { background: #f6dcd8; color: #a33a2a; }
.gaokao-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 24px 22px; }

@media (max-width: 1100px) {
  .practice-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .focus-branches { grid-template-columns: 1fr; gap: 18px; }
  .branch-nodes { flex-direction: column; }
  .difficulty-grid { grid-template-columns: 1fr; }
  .difficulty-card p { min-height: 0; }
  .gaokao-summary { grid-template-columns: repeat(2, 1fr); }
  .gaokao-cols { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .board-actions button { font-size: 8px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .gaokao-banner { padding: 24px 50px 18px 20px; }
  .gaokao-banner h2 { font-size: 28px; }
  .gaokao-summary, .gaokao-cols { padding-left: 16px; padding-right: 16px; }
  .gaokao-table-wrap { margin: 14px 16px; }
  .gaokao-actions { padding: 0 16px 18px; }
  .gaokao-actions .btn { flex: 1; }
  .fast-grid { grid-template-columns: 1fr 1fr; }
}

.focus-node.locked { opacity: .56; }

.btn:disabled, .side-end:disabled, .act-btn:disabled, .action-card:disabled {
  opacity: .42;
  cursor: not-allowed;
  pointer-events: none;
}

.practice-odds { margin: 6px 0 10px; font-size: 9px; letter-spacing: .06em; color: var(--muted); }
