/* 青阶 · 设计系统
   方向：清爽、有劲、带点顽皮。世界：四月清晨的草坡与石阶。
   一个高光时刻（主视觉），一条苔绿强调色，其余全部安静。 */

:root {
  --bg: #f7f6f0;
  --bg-2: #f1f0e7;
  --card: #ffffff;
  --raised: #efeee4;
  --ink: #1a1e19;
  --ink-2: #4b5449;
  --ink-3: #788276;
  --line: rgba(26, 30, 25, 0.10);
  --line-strong: rgba(26, 30, 25, 0.20);
  --accent: #2c6a4c;
  --accent-deep: #1f5039;
  --accent-soft: #e3ede4;
  --accent-wash: #f2f7f1;
  --danger: #a93b32;
  --positive: #1f7a4d;
  --warn: #8f5d1d;
  --ink-green: #091c13;
  --ink-green-2: #102a1c;
  --cream: #f4f0e2;
  --lime: #cdff5e;
  --lime-soft: rgba(205, 255, 94, 0.16);

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --mid: 320ms;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.68;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- 字体角色 ---------- */

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.meta {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--ink-3); }
.secondary { color: var(--ink-2); }
.ink-accent { color: var(--accent-deep); }

/* ---------- 布局 ---------- */

.section { padding: clamp(48px, 5.5vw, 76px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section.band { background: var(--bg-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.section-title {
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.section-title-sm {
  font-size: clamp(25px, 2.5vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-note {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 48ch;
  margin-top: 8px;
}
.section-link {
  font-size: 16px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
  white-space: nowrap;
}
.section-link:hover { color: var(--accent-deep); border-color: var(--accent); }

.grid { display: grid; gap: 24px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- 头部 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ink-green) 94%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 240, 226, 0.14);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; color: var(--lime); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--cream); }
.brand-sub { font-size: 12px; color: #9fb09a; letter-spacing: 0.04em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 17px;
  color: #c7d2c2;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav a:hover { color: var(--cream); background: rgba(244, 240, 226, 0.08); }
.nav a[aria-current="page"] { color: var(--lime); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.session {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 226, 0.18);
  background: rgba(244, 240, 226, 0.06);
  color: var(--cream);
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.session:hover { border-color: rgba(205, 255, 94, 0.75); background: rgba(244, 240, 226, 0.1); }
.session-name { font-size: 16px; }
.session-streak { font-family: var(--font-mono); font-size: 13px; color: var(--lime); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(244, 240, 226, 0.2);
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.nav-sheet {
  display: none;
  border-top: 1px solid rgba(244, 240, 226, 0.14);
  background: var(--ink-green);
  padding: 12px var(--gutter) 20px;
}
.nav-sheet.open { display: block; }
.nav-sheet a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  font-size: 18px;
  color: #c7d2c2;
  border-bottom: 1px solid rgba(244, 240, 226, 0.12);
}
.nav-sheet a[aria-current="page"] { color: var(--lime); }

/* ---------- 通用组件 ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.card.lg { padding: 32px; }
.card.flush { padding: 0; overflow: hidden; }
.card.tint { background: var(--accent-wash); border-color: rgba(44, 106, 76, 0.14); }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-title { font-size: 20px; font-weight: 500; line-height: 1.4; }
.card-note { font-size: 16px; color: var(--ink-3); margin-top: 6px; line-height: 1.55; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 17px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease), transform 220ms var(--ease);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--raised); }
.btn-quiet { color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { background: var(--raised); color: var(--ink); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 15px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--accent); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  background: var(--raised);
  color: var(--ink-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.chip.accent { background: var(--accent-soft); color: var(--accent-deep); }
.chip.line { background: transparent; border: 1px solid var(--line); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-3);
  border: 1px solid var(--line);
  flex: none;
  white-space: nowrap;
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 15px; color: var(--ink-3); }
.stat-figure { font-family: var(--font-mono); font-size: clamp(32px, 3.4vw, 44px); line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-change { font-size: 14px; color: var(--ink-3); }
.stat-change.up { color: var(--positive); }

.divider { height: 1px; background: var(--line); margin: 24px 0; }

.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  border: 1px solid rgba(44, 106, 76, 0.16);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.notice svg { flex: none; color: var(--accent); margin-top: 2px; }
.notice strong { color: var(--ink); font-weight: 500; }
.notice.warn { background: #fbf4e8; border-color: rgba(143, 93, 29, 0.20); }
.notice.warn svg { color: var(--warn); }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
}
.empty svg { color: var(--line-strong); }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  flex: none;
  line-height: 1;
}
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.avatar.lg { width: 48px; height: 48px; font-size: 17px; }
.avatar.me { background: var(--accent); color: #fff; }

/* 表单 */

.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 15px; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 16px;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.input:hover, .select:hover { border-color: rgba(26, 30, 25, 0.32); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.hint { font-size: 15px; color: var(--ink-3); }

.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--raised); border-radius: var(--r-sm); padding: 3px; }
.stepper button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper button:hover { background: var(--card); color: var(--ink); }
.stepper .val { min-width: 52px; text-align: center; font-family: var(--font-mono); font-size: 20px; font-variant-numeric: tabular-nums; }

/* 表格 */

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; }
.table .t-strong { font-weight: 500; }
.table-wrap { overflow-x: auto; }

/* ---------- 签名细节：石阶进度 ---------- */

.steps { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.step {
  flex: 1;
  min-width: 14px;
  border-radius: 3px;
  background: var(--raised);
  transition: background-color var(--mid) var(--ease), height var(--mid) var(--ease);
}
.step.on { background: var(--accent); }
.step.today { background: var(--accent-soft); border: 1px solid var(--accent); }
.step.today.on { background: var(--accent-deep); }

/* 草叶（日历与空状态） */
.blades { display: block; width: 100%; height: 22px; overflow: visible; }

/* ---------- 柱状图 ---------- */

.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 16px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.bar-val { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar {
  width: 100%;
  max-width: 44px;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--raised);
  transition: background-color var(--mid) var(--ease);
}
.bar.today { background: var(--accent); }
.bar-labels { display: flex; gap: 8px; margin-top: 10px; }
.bar-label { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.bar-label.today { color: var(--accent-deep); }
.chart-axis { height: 1px; background: var(--line-strong); }

/* ---------- 日历 ---------- */

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month { font-size: 17px; font-weight: 500; }
.cal-legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--raised); display: inline-block; }
.dot.on { background: var(--accent); }
.dot.today { border: 1px solid var(--accent); background: transparent; }
.dot.off { background: #e7e2d6; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wday { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: center; padding: 4px 0 8px; }
.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 6px 3px;
  background: var(--card);
  overflow: hidden;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.cal-cell.out { opacity: 0.35; border-color: transparent; background: transparent; }
.cal-cell.future { background: transparent; border-color: var(--line); color: var(--ink-3); }
.cal-cell.checked { background: var(--accent-wash); border-color: rgba(44, 106, 76, 0.22); }
.cal-cell.today { border-color: var(--accent); }
.cal-cell .day { font-family: var(--font-mono); font-size: 12px; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal-cell.checked .day { color: var(--accent-deep); }
.cal-cell.today .day { color: var(--accent-deep); font-weight: 500; }
.cal-cell .blades { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; }
.cal-cell .cnt { position: absolute; right: 5px; bottom: 3px; font-family: var(--font-mono); font-size: 11px; color: var(--accent-deep); }
.cal-cell.out .cnt, .cal-cell.future .cnt { display: none; }

/* ---------- 徽章 ---------- */

.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.badge-tile {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  background: var(--card);
}
.badge-tile svg { color: var(--ink-3); }
.badge-tile .b-name { font-size: 16px; font-weight: 500; white-space: nowrap; }
.badge-tile .b-desc { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.badge-tile.on { background: var(--accent-wash); border-color: rgba(44, 106, 76, 0.2); }
.badge-tile.on svg { color: var(--accent); }
.badge-tile.locked { opacity: 0.55; }

/* ---------- 列表 / 排行 ---------- */

.list { display: flex; flex-direction: column; }
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .name { font-size: 17px; font-weight: 500; }
.list-row .sub { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.list-row .right { text-align: right; font-family: var(--font-mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.list-row .right small { display: block; font-family: var(--font-sans); font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.rank-row {
  display: grid;
  grid-template-columns: 44px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: 0; }
.rank-no { font-family: var(--font-mono); font-size: 17px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rank-row.top .rank-no { color: var(--accent-deep); font-weight: 500; }
.rank-row.top .name { font-size: 18px; }
.rank-points { font-family: var(--font-mono); font-size: 20px; font-variant-numeric: tabular-nums; min-width: 76px; text-align: right; }
.rank-bar { height: 4px; border-radius: 2px; background: var(--raised); margin-top: 8px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; background: var(--line-strong); border-radius: 2px; }
.rank-row.top .rank-bar span { background: var(--accent); }
.rank-row .sub span { white-space: nowrap; }
.rank-row .sub { display: flex; flex-wrap: wrap; gap: 0 7px; }
.rank-row .sub span + span::before { content: "·"; margin-right: 7px; color: var(--ink-3); }
@media (max-width: 680px) {
  .rank-row .sub { display: block; gap: 0; font-size: 13px; }
  .rank-row .sub span { display: inline; }
  .rank-row .sub span:first-child { display: block; margin-bottom: 2px; }
  .rank-row .sub span + span { margin-left: 8px; }
  .rank-row .sub span + span::before { content: none; margin: 0; }
}

/* ---------- 时间线 ---------- */

.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 28px; padding: 0 0 32px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-when { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); padding-top: 2px; }
.tl-body { position: relative; padding-left: 28px; border-left: 1px solid var(--line-strong); }
.tl-dot {
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.tl-item.done .tl-dot { background: var(--raised); border-color: var(--line-strong); }
.tl-item.now .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-title { font-size: 19px; font-weight: 500; }
.tl-desc { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }

/* ---------- 卡片链接（题库中转） ---------- */

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.link-card:hover { border-color: var(--accent); background: var(--accent-wash); transform: translateY(-2px); }
.link-card .lc-top { display: flex; align-items: center; justify-content: space-between; }
.link-card .lc-name { font-size: 18px; font-weight: 500; }
.link-card .lc-desc { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.link-card .lc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); }
.link-card svg { color: var(--accent); }

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 72px) 0 28px;
  background: var(--ink-green);
  color: var(--cream);
  border-top: 2px solid var(--lime);
}
.footer-poster {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.footer-mark span {
  display: block;
  font-size: clamp(84px, 13vw, 176px);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.07em;
  color: var(--cream);
}
.footer-mark em {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--lime);
}
.footer-side { min-width: 0; padding-bottom: 6px; }
.footer-line { font-size: 16px; line-height: 1.7; color: #c9d5c6; }
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 26px;
  font-size: 16px;
  color: var(--cream);
}
.footer-links a { border-bottom: 1px solid rgba(244, 240, 226, 0.28); padding-bottom: 2px; }
.footer-links a:hover { color: var(--lime); border-color: var(--lime); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 240, 226, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9fb09a;
}

/* ---------- 提示条 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #f6f5ef;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(26, 30, 25, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
  z-index: 200;
  max-width: min(520px, calc(100vw - 32px));
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 动效 ---------- */

.rise { animation: rise 480ms var(--ease) both; }
.rise.d1 { animation-delay: 60ms; }
.rise.d2 { animation-delay: 120ms; }
.rise.d3 { animation-delay: 180ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.grow { transform-origin: bottom center; animation: grow 520ms var(--ease) both; }
@keyframes grow {
  from { transform: scaleY(0.15); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

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

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

@media (max-width: 1100px) {
  .header-inner { gap: 24px; }
  .nav { gap: 0; }
  .nav a { padding: 0 10px; font-size: 16px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-right { gap: 8px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-poster { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-poster { grid-template-columns: 1fr; gap: 18px; }
  .footer-mark span { font-size: clamp(92px, 30vw, 130px); }
  .footer-bottom { flex-direction: row; align-items: flex-start; gap: 8px 14px; }
  .card { padding: 20px; }
  .card.lg { padding: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-body { padding-left: 20px; }
  .rank-row { grid-template-columns: 32px 32px minmax(0, 1fr) auto; gap: 10px; }
  .rank-bar { display: none; }
  .stat-figure { font-size: 36px; }
  .session { padding: 0 10px 0 4px; }
  .session-name { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-sheet a { font-size: 17px; }
}

/* ---------- 通用动效 ---------- */

#qj-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 100;
  pointer-events: none;
  transition: transform 80ms linear;
}

.has-fx .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.has-fx .reveal.in { opacity: 1; transform: none; }
.has-fx .reveal.d1 { transition-delay: 90ms; }
.has-fx .reveal.d2 { transition-delay: 180ms; }

[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 480ms var(--ease), box-shadow 480ms var(--ease);
  will-change: transform;
}
[data-tilt].tilting { transition: transform 120ms linear, box-shadow 300ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .has-fx .reveal { opacity: 1; transform: none; transition: none; }
  [data-tilt] { transform: none !important; }
  #qj-progress { display: none; }
}
