/* 单招学习台 · Apple 风格视觉系统 */
@property --p {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e8e8ed;
  --fill: #f2f2f4;
  --track: #e9e9ee;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --green: #34c759;
  --green-soft: rgba(52, 199, 89, 0.12);
  --red: #ff3b30;
  --red-soft: rgba(255, 59, 48, 0.1);
  --orange: #ff9f0a;
  --purple: #af52de;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.03), 0 10px 28px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.03), 0 16px 34px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #98989d;
    --line: #2c2c2e;
    --fill: #2c2c2e;
    --track: #3a3a3c;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-soft: rgba(10, 132, 255, 0.16);
    --green: #30d158;
    --green-soft: rgba(48, 209, 88, 0.15);
    --red: #ff453a;
    --red-soft: rgba(255, 69, 58, 0.15);
    --shadow-soft: none;
    --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- 布局 ---------- */
.app-shell { min-height: 100dvh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  padding: 30px 18px 26px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.main {
  margin-left: 252px;
  padding: 46px 44px 90px;
  max-width: 1160px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 26px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(145deg, #4aa8ff, #0071e3 55%, #0059b8);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.brand-text small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav-item svg { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-item:hover { background: var(--fill); color: var(--text); }
.nav-item.active {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.nav-item.active svg { color: var(--accent); }
.side-foot { margin-top: auto; padding: 20px 10px 0; }
.side-quote { color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.side-target {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  font-size: 12px;
}
.side-target b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: var(--fill);
  margin-bottom: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #4aa8ff, #0071e3);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
.side-user > div { min-width: 0; }
.side-user strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.side-user small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sync-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}
.sync-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.sync-status.saving i { background: var(--orange); animation: pulse 1s ease-in-out infinite; }
.sync-status.error i { background: var(--red); }
.account-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--fill);
}
.account-box .account-main { flex: 1; min-width: 0; }
.account-box strong { display: block; font-size: 13px; font-weight: 600; }
.account-box small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabbar { display: none; }

/* ---------- 页头 ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.page-head h1 {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.head-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}
.streak-pill b { color: var(--text); font-weight: 650; }
.streak-pill .flame { color: var(--orange); }
.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -6px 0 18px;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.65;
}
.notice-banner .notice-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}
.notice-banner strong { margin-right: 4px; font-weight: 650; }
.notice-banner a { color: var(--accent); font-weight: 550; white-space: nowrap; }
.notice-banner a:hover { text-decoration: underline; }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section { margin-top: 30px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.section-head a { color: var(--accent); font-size: 13px; }
.section-head a:hover { text-decoration: underline; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.card-head h2, .card-head h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.green { background: var(--green-soft); color: var(--green); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--fill);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--track); }
.btn:active { transform: scale(0.975); }
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.22);
}
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: var(--fill); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.danger:hover { background: rgba(255, 59, 48, 0.16); }
.btn.small { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn.link { background: transparent; color: var(--accent); padding: 0; height: auto; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 38px 42px;
  border-radius: 28px;
  background: radial-gradient(130% 170% at 88% -30%, #2f4d7d 0%, #1d1d1f 46%, #0e0e10 100%);
  color: #fff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -90px;
  top: -190px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.5), transparent 66%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-copy, .hero-side { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.hero-days {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 8px;
  line-height: 0.95;
}
.hero-num {
  font-size: 82px;
  font-weight: 650;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.hero-unit { font-size: 17px; color: rgba(255, 255, 255, 0.6); }
.hero-sub { color: rgba(255, 255, 255, 0.58); font-size: 13px; }
.hero-side { width: 224px; flex: 0 0 auto; padding-bottom: 6px; }
.hero-progress-label {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11.5px;
  margin-bottom: 9px;
}
.hero-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.hero-bar span { display: block; height: 100%; border-radius: 999px; background: rgba(255, 255, 255, 0.92); }
.hero-progress-num { margin-top: 8px; color: rgba(255, 255, 255, 0.78); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 打卡 ---------- */
.checkin-card { display: flex; flex-direction: column; gap: 20px; }
.ring {
  --p: 0;
  position: relative;
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--track) 0);
  display: grid;
  place-items: center;
  transition: --p 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--card);
}
.ring-inner { position: relative; z-index: 1; text-align: center; line-height: 1.12; }
.ring-inner strong { display: block; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring-inner span { font-size: 11px; color: var(--muted); }
.ring.big { width: 150px; height: 150px; }
.ring.big::before { inset: 11px; }
.ring.big .ring-inner strong { font-size: 38px; }
.checkin-main { display: flex; align-items: center; gap: 22px; }
.checkin-copy { min-width: 0; }
.checkin-copy h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.checkin-copy p { margin: 5px 0 14px; color: var(--muted); font-size: 13px; }
.checkin-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.checkin-note { color: var(--muted); font-size: 12px; }
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.week-day { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.week-day span { color: var(--muted); font-size: 10.5px; }
.week-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
}
.week-dot svg { width: 12px; height: 12px; }
.week-day.checked .week-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.week-day.today .week-dot { box-shadow: 0 0 0 3px var(--accent-soft); }
.week-day.today span { color: var(--text); font-weight: 600; }
.checkin-card.is-done .ring { background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--track) 0); }

/* ---------- 今日清单 ---------- */
.task-list { display: flex; flex-direction: column; }
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.task-row:first-child { padding-top: 0; }
.task-row:last-child { border-bottom: 0; padding-bottom: 0; }
.task-check {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.task-check svg { width: 12px; height: 12px; }
.task-check:active { transform: scale(0.92); }
.task-row.done .task-check { background: var(--green); border-color: var(--green); color: #fff; }
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.task-main strong { font-size: 13.5px; font-weight: 550; }
.task-main small { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.task-row.done .task-main strong { color: var(--muted); }
.task-go { color: var(--accent); font-size: 12px; flex: 0 0 auto; }
.task-go:hover { text-decoration: underline; }

/* ---------- 科目卡 ---------- */
.subject-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.subject-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.subject-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.subject-tile:active { transform: translateY(0) scale(0.99); }
.subject-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--sc-soft, var(--fill));
  color: var(--sc, var(--text));
  font-size: 17px;
  font-weight: 650;
}
.subject-ico.lg { width: 54px; height: 54px; border-radius: 16px; font-size: 21px; }
.subject-tile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.subject-tile-main strong { font-size: 14.5px; font-weight: 600; }
.subject-tile-main small { color: var(--muted); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); opacity: 0.6; flex: 0 0 auto; }
.chev svg { width: 16px; height: 16px; }

/* ---------- 刷题设置 ---------- */
.setup-card { display: flex; flex-direction: column; gap: 26px; }
.setup-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.setup-row h2 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.setup-row .muted { font-size: 12.5px; margin-top: 3px; }
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: var(--fill);
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.segmented button:hover { color: var(--text); }
.segmented button.active {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.setup-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.setup-subject { display: flex; align-items: center; gap: 14px; min-width: 0; }
.setup-subject h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.setup-subject p { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.setup-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.setup-actions .muted { font-size: 12px; }

.practice-aside { display: flex; flex-direction: column; gap: 20px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border-radius: 14px; background: var(--line); border: 1px solid var(--line); }
.mini-stat { background: var(--card); padding: 16px; }
.mini-stat span { display: block; color: var(--muted); font-size: 11.5px; }
.mini-stat strong { display: block; margin-top: 3px; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tip-list { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 12.5px; }
.tip-list li { display: flex; gap: 9px; align-items: flex-start; }
.tip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: 0 0 auto; }

/* ---------- 答题 ---------- */
.quiz-wrap { max-width: 860px; margin: 0 auto; }
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.quiz-top .quiz-meta { color: var(--muted); font-size: 12.5px; }
.quiz-top .quiz-score { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.quiz-progress { height: 5px; background: var(--track); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.quiz-progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.28s ease; }
.question-card { padding: 32px; }
.q-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--fill);
  color: var(--muted);
  font-size: 11px;
}
.tag.subject { background: var(--sc-soft, var(--fill)); color: var(--sc, var(--muted)); font-weight: 550; }
.tag.source {
  height: auto;
  padding: 4px 9px;
  line-height: 1.4;
  white-space: normal;
  max-width: 100%;
  background: var(--fill);
  color: var(--text);
}
.tag.source.exam { background: var(--green-soft); color: var(--green); }
.q-title { font-size: 21px; line-height: 1.6; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 24px; word-break: break-word; }
.options { display: flex; flex-direction: column; gap: 11px; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 15px 17px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-align: left;
  font-size: 14.5px;
  line-height: 1.55;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.option:hover:not(:disabled) { border-color: #c7c7cc; background: var(--fill); }
.option:active:not(:disabled) { transform: scale(0.995); }
.option:disabled { cursor: default; opacity: 1; }
.option .letter {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 1px;
}
.option .opt-text { flex: 1; word-break: break-word; }
.option.correct { border-color: var(--green); background: var(--green-soft); }
.option.correct .letter { background: var(--green); color: #fff; }
.option.wrong { border-color: var(--red); background: var(--red-soft); }
.option.wrong .letter { background: var(--red); color: #fff; }
.option.dimmed { opacity: 0.62; }
.feedback {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--fill);
  border-left: 3px solid var(--accent);
}
.feedback.ok { background: var(--green-soft); border-left-color: var(--green); }
.feedback.bad { background: var(--red-soft); border-left-color: var(--red); }
.feedback h4 { font-size: 14px; font-weight: 650; margin-bottom: 7px; }
.feedback p { font-size: 13.5px; line-height: 1.7; }
.feedback .explain { color: var(--muted); margin-top: 7px; }
.feedback .answer-ref { font-weight: 550; }
.quiz-foot { display: flex; justify-content: flex-end; margin-top: 20px; }

/* ---------- 结果 ---------- */
.result-card { text-align: center; padding: 38px 24px; }
.result-card .ring { margin: 0 auto 20px; }
.result-card h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.025em; }
.result-card p { margin-top: 7px; color: var(--muted); font-size: 13.5px; }
.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.result-list { display: flex; flex-direction: column; gap: 14px; }
.result-item { padding: 16px 18px; border-radius: 14px; background: var(--fill); }
.result-item h4 { font-size: 14px; font-weight: 550; line-height: 1.55; }
.result-item p { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- 错题本 ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 12.5px;
}
.filter-chip:hover { background: var(--fill); color: var(--text); }
.filter-chip.active { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 550; }
.wrong-list { display: flex; flex-direction: column; gap: 16px; }
.wrong-card { padding: 22px; }
.wrong-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wrong-top .meta { color: var(--muted); font-size: 11.5px; }
.wrong-card h3 { font-size: 16px; font-weight: 600; line-height: 1.65; letter-spacing: -0.01em; word-break: break-word; }
.answer-line { display: flex; gap: 9px; flex-wrap: wrap; margin: 14px 0 10px; }
.answer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.answer-chip.bad { background: var(--red-soft); color: var(--red); }
.answer-chip.good { background: var(--green-soft); color: var(--green); }
.explain-text { color: var(--muted); font-size: 13px; line-height: 1.7; padding: 12px 14px; background: var(--fill); border-radius: 11px; }
.card-actions { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.empty-card { text-align: center; padding: 54px 24px; }
.empty-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.empty-mark svg { width: 26px; height: 26px; }
.empty-card h3 { font-size: 17px; font-weight: 650; }
.empty-card p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.empty-card .btn { margin-top: 20px; }

/* ---------- 统计 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { padding: 20px; }
.kpi span { display: block; color: var(--muted); font-size: 11.5px; }
.kpi strong { display: inline-block; margin-top: 4px; font-size: 30px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.bar-val { color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.bar-track { height: 108px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar {
  width: 100%;
  max-width: 30px;
  min-height: 4px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent), rgba(0, 113, 227, 0.55));
  transition: height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bar-col.today .bar { background: linear-gradient(180deg, #0a84ff, #0071e3); box-shadow: 0 0 0 3px var(--accent-soft); }
.bar-label { color: var(--muted); font-size: 10.5px; }
.accuracy-list { display: flex; flex-direction: column; gap: 17px; }
.acc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.acc-top span { font-size: 13px; font-weight: 550; }
.acc-top small { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.meter { height: 7px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.heat-card { margin-top: 20px; }
.heatmap { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 8px; }
.heat-col { display: flex; flex-direction: column; gap: 4px; }
.heat-cell { width: 13px; height: 13px; border-radius: 4px; background: var(--track); }
.heat-cell.l1 { background: rgba(0, 113, 227, 0.22); }
.heat-cell.l2 { background: rgba(0, 113, 227, 0.42); }
.heat-cell.l3 { background: rgba(0, 113, 227, 0.68); }
.heat-cell.l4 { background: var(--accent); }
.heat-cell.future { opacity: 0.3; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.heat-legend .heat-cell { width: 11px; height: 11px; border-radius: 3px; }

/* ---------- 计划 ---------- */
.plan-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.plan-hero h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.025em; }
.plan-hero p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.plan-hero-days { text-align: right; }
.plan-hero-days strong { font-size: 44px; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan-hero-days span { margin-left: 6px; color: var(--muted); font-size: 13px; }
.exam-card { margin-top: 20px; }
.exam-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.exam-score { padding: 18px; border-radius: 14px; background: var(--fill); }
.exam-score.key { background: var(--accent-soft); }
.exam-score span { display: block; color: var(--muted); font-size: 11.5px; }
.exam-score strong {
  display: inline-block;
  margin-top: 3px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.exam-score small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.module-title { margin: 2px 0 9px; color: var(--muted); font-size: 11.5px; }
.module-stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--track); }
.module-stack span { display: block; height: 100%; }
.module-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.module-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.module-legend i { width: 8px; height: 8px; border-radius: 3px; }
.exam-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}
.timeline { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.phase { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.phase-dot {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.phase.active .phase-dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-soft); }
.phase.done .phase-dot { background: var(--green-soft); color: var(--green); }
.phase-body { flex: 1; min-width: 0; }
.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.phase-top h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.phase-range { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.phase-focus { margin: 10px 0 10px; font-size: 13px; color: var(--text); }
.phase-list { display: flex; flex-direction: column; gap: 6px; }
.phase-list li { position: relative; padding-left: 15px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.phase-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.schedule { width: 100%; border-collapse: collapse; min-width: 520px; }
table.schedule th, table.schedule td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); font-size: 12.5px; }
table.schedule th { color: var(--muted); font-weight: 500; font-size: 11.5px; }
table.schedule tr:last-child td { border-bottom: 0; }
table.schedule td:first-child { color: var(--text); font-weight: 550; white-space: nowrap; }
table.schedule td:last-child { color: var(--muted); }
.allocation { display: flex; flex-direction: column; gap: 14px; }
.alloc-row { display: flex; align-items: center; gap: 12px; }
.alloc-name { width: 86px; flex: 0 0 auto; font-size: 12.5px; }
.alloc-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.alloc-bar span { display: block; height: 100%; border-radius: 999px; }
.alloc-time { width: 48px; flex: 0 0 auto; text-align: right; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.settings-card { margin-top: 20px; }
.settings-form { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 180px; }
.field span { color: var(--muted); font-size: 11.5px; }
.field input {
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.data-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.data-note { margin-top: 12px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }

/* ---------- 登录 / 注册 ---------- */
.auth-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 100dvh;
}
.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 48px;
  background: radial-gradient(120% 120% at 18% 8%, #173352 0%, #0d0d10 52%, #050506 100%);
  color: #fff;
}
.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  pointer-events: none;
}
.auth-visual::before {
  width: 520px;
  height: 520px;
  left: -180px;
  top: -190px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.46), transparent 66%);
  animation: orbFloat 15s ease-in-out infinite alternate;
}
.auth-visual::after {
  width: 430px;
  height: 430px;
  right: -140px;
  bottom: -170px;
  background: radial-gradient(circle, rgba(175, 82, 222, 0.3), transparent 66%);
  animation: orbFloat 19s ease-in-out infinite alternate-reverse;
}
.auth-brandline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-brandline strong { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.auth-brandline small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.auth-orbit {
  position: relative;
  z-index: 1;
  width: min(420px, 82%);
  aspect-ratio: 1;
  margin: 0 auto;
  flex: 0 0 auto;
}
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.11); }
.ring-a { inset: 0; animation: spin 38s linear infinite; }
.ring-b { inset: 13%; border-style: dashed; border-color: rgba(255, 255, 255, 0.17); animation: spin 29s linear infinite reverse; }
.ring-c { inset: 27%; border-color: rgba(10, 132, 255, 0.38); animation: spin 21s linear infinite; }
.orbit-core {
  position: absolute;
  inset: 37%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.orbit-core span { font-size: clamp(26px, 3vw, 40px); font-weight: 650; letter-spacing: -0.045em; line-height: 1; }
.orbit-core small { margin-top: 5px; color: rgba(255, 255, 255, 0.5); font-size: 10px; letter-spacing: 0.24em; }
.orbit-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
  white-space: nowrap;
  animation: floatChip 6.5s ease-in-out infinite;
}
.chip-a { top: 7%; left: 0; }
.chip-b { right: -3%; top: 38%; animation-delay: -2.2s; }
.chip-c { bottom: 5%; left: 7%; animation-delay: -4.4s; }
.orbit-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #0a84ff; box-shadow: 0 0 18px rgba(10, 132, 255, 0.95); }
.dot-a { top: 21%; right: 17%; }
.dot-b { bottom: 23%; right: 11%; background: #af52de; box-shadow: 0 0 18px rgba(175, 82, 222, 0.95); }
.auth-quote { position: relative; z-index: 2; }
.auth-quote p { font-size: 20px; line-height: 1.5; font-weight: 550; letter-spacing: -0.015em; }
.auth-quote span { display: block; margin-top: 10px; color: rgba(255, 255, 255, 0.42); font-size: 11.5px; letter-spacing: 0.06em; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 34px; background: var(--bg); }
.auth-card {
  width: min(432px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.09);
  animation: authCardIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.auth-head h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.035em; }
.auth-head p { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.auth-tabs {
  position: relative;
  display: flex;
  margin: 22px 0 20px;
  padding: 4px;
  border-radius: 12px;
  background: var(--fill);
}
.auth-tabs button {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  transition: color 0.2s ease;
}
.auth-tabs button.active { color: var(--text); }
.auth-tab-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: 36px;
  border-radius: 9px;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.auth-tab-indicator.right { transform: translateX(100%); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span { color: var(--muted); font-size: 11.5px; }
.auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-field input:focus {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-field small { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.field-status { transition: color 0.2s ease; }
.field-status.ok { color: var(--green); }
.field-status.bad { color: var(--red); }
.caps-hint { color: var(--orange); font-size: 10.5px; margin-top: 2px; }
.auth-card.mode-register { animation-name: authCardInRight; }
@keyframes authCardInRight {
  from { opacity: 0; transform: translateX(18px) scale(0.995); }
  to { opacity: 1; transform: none; }
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 62px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
}
.pw-toggle:hover { background: var(--fill); color: var(--text); }
.pw-meter { display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.pw-meter i { flex: 1; height: 4px; border-radius: 999px; background: var(--track); transition: background 0.25s ease; }
.pw-meter span { margin-left: 6px; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.pw-meter.s1 i:nth-child(-n + 1) { background: #ff453a; }
.pw-meter.s2 i:nth-child(-n + 2) { background: #ff9f0a; }
.pw-meter.s3 i:nth-child(-n + 3) { background: #ffd60a; }
.pw-meter.s4 i { background: #30d158; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 2px; }
.pw-rules span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; }
.pw-rules i { width: 5px; height: 5px; border-radius: 50%; background: var(--track); transition: background 0.2s ease; }
.pw-rules span.ok { color: var(--green); }
.pw-rules span.ok i { background: var(--green); transform: scale(1.25); }
.pw-rules i { transition: background 0.2s ease, transform 0.2s ease; }
.auth-error {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  line-height: 1.55;
}
.auth-error.show { display: block; animation: shake 0.3s ease; }
.auth-submit { position: relative; width: 100%; height: 46px; margin-top: 2px; }
.auth-submit.loading { color: transparent; pointer-events: none; }
.auth-submit.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.auth-legal { margin-top: 16px; color: var(--muted); font-size: 10.5px; line-height: 1.6; text-align: center; }
.auth-boot {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--bg);
}
.auth-boot .brand-mark { width: 52px; height: 52px; border-radius: 16px; font-size: 24px; }
.boot-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--track);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.auth-boot p { color: var(--muted); font-size: 12.5px; }
.auth-root.leaving { opacity: 0; transform: scale(1.008); transition: opacity 0.26s ease, transform 0.26s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(28px, 20px) scale(1.08); } }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes authCardIn { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes pulse { 50% { opacity: 0.35; } }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 188px; padding: 24px 22px; justify-content: flex-start; gap: 16px; }
  .auth-orbit { display: none; }
  .auth-quote p { font-size: 16px; }
  .auth-quote span { display: none; }
  .auth-panel { align-items: flex-start; padding: 18px 16px 40px; }
  .auth-card { padding: 24px; border-radius: 22px; }
  .auth-tabs { margin: 18px 0 17px; }
}
@media (max-width: 420px) {
  .auth-visual { min-height: 164px; }
  .auth-head h1 { font-size: 23px; }
  .auth-card { padding: 21px 18px; }
}

/* ---------- 管理后台 ---------- */
.admin-card { margin-top: 20px; }
.admin-content-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-content-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--fill);
}
.admin-content-item strong { display: block; font-size: 12.5px; }
.admin-content-item small { display: block; color: var(--muted); font-size: 10.5px; }
.admin-toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-search {
  flex: 1;
  min-width: 180px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.admin-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin-user-list { display: flex; flex-direction: column; }
.admin-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}
.admin-user:hover { background: var(--fill); }
.admin-user:last-child { border-bottom: 0; }
.admin-user-main { min-width: 0; }
.admin-user-main strong { display: block; font-size: 13.5px; }
.admin-user-main small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 5px; font-size: 10.5px; }
.admin-user-stats { display: flex; gap: 12px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.admin-user-stats b { color: var(--text); font-weight: 600; }
.admin-user-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-protected { color: var(--muted); font-size: 11px; }
.admin-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 11.5px; }
.audit-list { display: flex; flex-direction: column; }
.audit-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.audit-row:last-child { border-bottom: 0; }
.audit-time { color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.audit-main small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.audit-target { color: var(--accent); }
.admin-pw-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.admin-pw-form .field { flex: 1 1 180px; min-width: 0; }
.admin-pw-form .btn { flex: 0 0 auto; }
.pill.danger { background: var(--red-soft); color: var(--red); }
.skeleton {
  background: linear-gradient(90deg, var(--fill) 25%, var(--track) 37%, var(--fill) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}
.sk-line { height: 14px; width: 70%; margin-bottom: 12px; }
.sk-line.short { width: 40%; }
.sk-num { height: 32px; width: 50%; }
.sk-block { height: 120px; }
.sk-block.tall { height: 260px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- 全站动效 ---------- */
@keyframes cardRise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
.view:not(.no-anim) .hero,
.view:not(.no-anim) > .grid > .card,
.view:not(.no-anim) > .section > .card,
.view:not(.no-anim) > .card,
.view:not(.no-anim) > .timeline > .phase {
  animation: cardRise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.view:not(.no-anim) > .grid > .card:nth-child(2) { animation-delay: 0.06s; }
.view:not(.no-anim) > .section:nth-of-type(2) { animation-delay: 0.06s; }
.view.no-anim .card,
.view.no-anim .phase,
.view.no-anim .hero { animation: none !important; }
@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.feedback { animation: feedbackIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.checkin-card.celebrate { animation: celebrateCard 0.8s ease; }
.checkin-card.celebrate .ring { animation: ringPop 0.8s ease; }
@keyframes celebrateCard {
  0%, 100% { transform: none; }
  35% { transform: translateY(-3px) scale(1.005); }
}
@keyframes ringPop {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.045); }
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 14px);
  max-width: min(90vw, 460px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 13.5px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 动效 ---------- */
@keyframes viewIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.view { animation: viewIn 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.view.no-anim { animation: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .main { padding: 40px 30px 80px; }
  .grid.two { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 26px 20px 108px; }
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.88);
    border-top: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px 4px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
  }
  .tab-item svg { width: 22px; height: 22px; }
  .tab-item.active { color: var(--accent); }
  .page-head h1 { font-size: 29px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 24px; padding: 30px 26px; }
  .hero-side { width: 100%; padding-bottom: 0; }
  .hero-progress-num { text-align: left; }
  .hero-num { font-size: 66px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) {
  .tabbar { background: rgba(22, 22, 24, 0.88); }
}
@media (max-width: 1120px) {
  .kpi-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .admin-user { grid-template-columns: auto minmax(0, 1fr); }
  .admin-user-stats,
  .admin-user-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .kpi-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-content-grid { grid-template-columns: 1fr; }
  .admin-user-actions .btn { flex: 1 1 auto; }
  .admin-pager { flex-wrap: wrap; justify-content: center; }
  .audit-row { grid-template-columns: 1fr; gap: 3px; }
  .admin-pw-form .field { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .main { padding: 20px 14px 104px; }
  .page-head { margin-bottom: 20px; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .page-head h1 { font-size: 26px; }
  .head-side { width: 100%; }
  .streak-pill { height: 30px; padding: 0 11px; font-size: 11.5px; }
  .eyebrow { font-size: 12px; }
  .grid { gap: 14px; }
  .card { padding: 19px; border-radius: 18px; }
  .hero { padding: 26px 22px; border-radius: 22px; }
  .hero-num { font-size: 56px; }
  .hero-days { margin: 14px 0 6px; }
  .hero-sub { font-size: 12px; }
  .hero-tag { font-size: 11px; }
  .notice-banner { margin: -2px 0 14px; padding: 10px 12px; font-size: 11.5px; }
  .exam-scores { grid-template-columns: 1fr; gap: 10px; }
  .exam-score { padding: 15px; }
  .exam-score strong { font-size: 26px; }
  .module-legend { gap: 6px 12px; }
  .checkin-main { gap: 16px; }
  .ring { width: 96px; height: 96px; }
  .ring::before { inset: 8px; }
  .ring-inner strong { font-size: 22px; }
  .ring.big { width: 132px; height: 132px; }
  .ring.big .ring-inner strong { font-size: 33px; }
  .checkin-copy h3 { font-size: 15.5px; }
  .checkin-copy p { font-size: 12px; }
  .week-dot { width: 22px; height: 22px; }
  .subject-grid { grid-template-columns: 1fr; gap: 10px; }
  .subject-tile { padding: 14px 15px; }
  .kpi-grid { gap: 10px; }
  .kpi { padding: 16px; }
  .kpi strong { font-size: 25px; }
  .question-card { padding: 21px 18px; }
  .q-title { font-size: 18px; margin-bottom: 20px; }
  .option { padding: 13px 14px; font-size: 14px; gap: 11px; }
  .setup-row { gap: 12px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 0 8px; }
  .setup-summary { align-items: flex-start; }
  .setup-actions { width: 100%; justify-content: space-between; }
  .setup-actions .btn { flex: 1; }
  .phase { padding: 18px 16px; gap: 13px; }
  .phase-dot { width: 32px; height: 32px; font-size: 11px; }
  .plan-hero-days strong { font-size: 37px; }
  .settings-form { align-items: stretch; }
  .field { min-width: 0; flex: 1 1 100%; }
  .settings-form .btn { width: 100%; }
  .data-actions .btn { flex: 1 1 auto; }
  .result-actions .btn { flex: 1 1 auto; }
  .bar-chart { gap: 4px; }
  .bar-track { height: 88px; }
  .heat-cell { width: 12px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
