/* =========================================================
   高二(3)班 · 班级空间  —  共享样式
   风格：薄荷青 · 卡片网格 · 柔光
   ========================================================= */

:root {
  --brand: #0ac8a4;
  --brand-2: #12e0b6;
  --brand-deep: #07997c;
  --brand-soft: #e6fbf4;
  --brand-soft-2: #d3f7ec;

  --ink: #16211f;
  --ink-2: #3d4a47;
  --muted: #798782;
  --faint: #9daba7;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7fdfb;
  --surface-3: #f2faf7;
  --line: #eaf2ef;
  --line-2: #dcebe6;

  --warn: #f59e0b;
  --warn-soft: #fff7ed;

  --shadow-sm: 0 1px 2px rgba(17, 52, 45, 0.04);
  --shadow-md: 0 10px 24px -18px rgba(6, 122, 100, 0.5);
  --shadow-lg: 0 26px 50px -34px rgba(6, 122, 100, 0.55);

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 12px;

  --grid-line: rgba(10, 200, 164, 0.085);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
}

html[data-theme="dark"] {
  --brand: #1ee0b8;
  --brand-2: #3ff0cc;
  --brand-deep: #14c9a4;
  --brand-soft: rgba(30, 224, 184, 0.12);
  --brand-soft-2: rgba(30, 224, 184, 0.2);

  --ink: #e8f4f0;
  --ink-2: #c3d6d1;
  --muted: #8fa5a0;
  --faint: #748a85;

  --bg: #0b1614;
  --surface: #101e1b;
  --surface-2: #0f1c19;
  --surface-3: #13241f;
  --line: #1d2f2b;
  --line-2: #27403a;

  --warn-soft: rgba(245, 158, 11, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 26px -18px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 30px 60px -34px rgba(0, 0, 0, 0.85);

  --grid-line: rgba(30, 224, 184, 0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(10, 200, 164, 0.1), transparent 70%),
    radial-gradient(700px 420px at 88% 6%, rgba(18, 224, 182, 0.08), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(120% 90% at 50% 26%, #000 30%, transparent 88%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 26%, #000 30%, transparent 88%);
  opacity: 0.9;
}

.bg-orb {
  position: fixed;
  border-radius: 32px;
  border: 1px solid rgba(10, 200, 164, 0.18);
  background: linear-gradient(160deg, rgba(10, 200, 164, 0.1), rgba(10, 200, 164, 0.02));
  pointer-events: none;
  z-index: 0;
}
.orb-a { width: 150px; height: 108px; left: -46px; top: 250px; }
.orb-b { width: 118px; height: 128px; right: 26px; top: 300px; opacity: 0.7; }
html[data-theme="dark"] .bg-orb { opacity: 0.26; }
html[data-theme="dark"] body::before { opacity: 0.55; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--faint) 34%, transparent);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--brand) 55%, transparent); background-clip: padding-box; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #24413a; border: 3px solid #0b1614; background-clip: padding-box; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.topbar.stuck { border-bottom-color: var(--line); }

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  box-shadow: 0 6px 14px -8px rgba(10, 200, 164, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex: none;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.brand-tag {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  line-height: 1.5;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); }
.nav-link.active {
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-weight: 600;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  margin-left: 4px;
}
.user-chip:hover { border-color: var(--brand); color: var(--brand-deep); box-shadow: 0 6px 16px -14px rgba(10,200,164,.9); }
.user-chip .avatar { width: 26px; height: 26px; font-size: 12px; }

.avatar {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  flex: none;
}
.avatar.dim { background: var(--surface-3); color: var(--faint); }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  margin-left: 2px;
}
.icon-btn:hover { color: var(--brand-deep); border-color: var(--brand); }
.icon-btn svg { width: 17px; height: 17px; }
.ico-moon { display: none; }
html[data-theme="dark"] .ico-sun { display: none; }
html[data-theme="dark"] .ico-moon { display: block; }

/* ---------------- 通用 ---------------- */

.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 28px 40px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 18px;
}
.group-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--brand-deep);
  background: var(--brand-soft);
}
.group-icon svg { width: 15px; height: 15px; }
.group-head h2 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.group-count { margin-left: auto; font-size: 12.5px; color: var(--faint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn.primary {
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 12px 24px -16px rgba(10, 200, 164, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
html[data-theme="dark"] .btn.primary { color: #04241d; }
.btn.ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink-2);
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn.done {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 32%, transparent);
  color: var(--brand-deep);
  box-shadow: none;
  transform: none;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: stretch;
  padding: 34px 36px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 220px at 4% -10%, rgba(10, 200, 164, 0.16), transparent 70%),
    radial-gradient(480px 240px at 98% 110%, rgba(10, 200, 164, 0.1), transparent 72%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

html[data-theme="dark"] .hero {
  background:
    radial-gradient(520px 220px at 4% -10%, rgba(30, 224, 184, 0.1), transparent 70%),
    radial-gradient(480px 240px at 98% 110%, rgba(30, 224, 184, 0.06), transparent 72%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
}

.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 12.5px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.hero-date .dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 26%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 8%, transparent); }
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 0 0 24px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 100%;
  line-height: 1.75;
}
.hero-sub b { color: var(--ink); font-weight: 650; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 今日签到墙 */
.wall {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(6px);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.wall-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}
.wall-head b {
  margin-left: auto;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.wall-head b span { font-size: 12.5px; color: var(--faint); font-weight: 500; }

.wall-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  border: 1px solid var(--line);
}
.wall-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.6s var(--ease);
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 4px;
}
.wall-student {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 2px 6px;
  border-radius: 11px;
  transition: background 0.18s var(--ease);
}
.wall-student:hover { background: var(--brand-soft); }
.wall-student em {
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wall-student.on em { color: var(--ink-2); }
.wall-student.on .avatar { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent); }

.week-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
}
.week-label { font-size: 11.5px; color: var(--faint); flex: none; }
.week-days {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.wd {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 20px;
}
.wd i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  transition: all 0.2s var(--ease);
}
.wd.on i { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.wd.today i { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.wd em { font-style: normal; font-size: 10px; color: var(--faint); line-height: 1; }
.wd.today em { color: var(--brand-deep); font-weight: 600; }

.wall-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--faint);
}
.wall-foot b { color: var(--brand-deep); font-weight: 600; }

/* ---------------- 数据卡 ---------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.stat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 38%, var(--line)); box-shadow: var(--shadow-md); }
.stat-ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--brand-deep);
  background: linear-gradient(155deg, var(--brand-soft), var(--brand-soft-2));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  flex: none;
}
.stat-ico svg { width: 19px; height: 19px; }
.stat-body { display: grid; min-width: 0; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-value small { font-size: 12.5px; font-weight: 500; color: var(--faint); margin-left: 2px; }
.stat-note { font-size: 11.5px; color: var(--faint); font-style: normal; }
.stat-note.up { color: var(--brand-deep); }

/* ---------------- 主入口面板（积分 / 签到） ---------------- */

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--brand-deep);
  background: linear-gradient(155deg, var(--brand-soft), var(--brand-soft-2));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  flex: none;
}
.panel-ico svg { width: 18px; height: 18px; }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.panel-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
  white-space: nowrap;
}
.panel-link svg { width: 13px; height: 13px; }
.panel-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel-note { margin-left: auto; font-size: 12px; color: var(--faint); white-space: nowrap; }

.big-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: -2px;
}
.big-num small { font-size: 14px; font-weight: 500; color: var(--faint); }

.panel-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.panel-meta div { display: grid; gap: 3px; min-width: 0; }
.panel-meta span { font-size: 11.5px; color: var(--faint); }
.panel-meta b {
  font-size: 13.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-meta b em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--faint); }
.panel-meta .up { color: var(--brand-deep); }
.panel-meta .down { color: #de6b32; }
html[data-theme="dark"] .panel-meta .down { color: #f0a070; }

.meter-wrap { display: grid; gap: 7px; }
.meter-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.meter-label b { color: var(--ink-2); font-weight: 600; }
.meter {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.7s var(--ease);
}

.ck-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ck-state .ck-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #de6b32;
  box-shadow: 0 0 0 4px rgba(222, 107, 50, 0.13);
  flex: none;
}
.ck-state.done .ck-dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.ck-state strong { display: block; font-size: 14px; font-weight: 650; }
.ck-state em { font-style: normal; font-size: 12px; color: var(--muted); }

.btn.block { width: 100%; }
.panel .week-strip { border-top: 0; padding-top: 0; }

/* ---------------- 次要区 ---------------- */

.lower {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.log-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 9px;
  font-size: 13px;
  transition: background 0.18s var(--ease);
}
.log-list li:hover { background: var(--surface-3); }
.log-delta { width: 40px; flex: none; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.log-delta.up { color: var(--brand-deep); }
.log-delta.down { color: #de6b32; }
html[data-theme="dark"] .log-delta.down { color: #f0a070; }
.log-reason { color: var(--ink-2); }
.log-date { margin-left: auto; font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.log-empty { color: var(--faint); font-size: 12.5px; }

.side-links { display: grid; gap: 10px; align-content: start; }
.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a.mini:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow-md);
}
.mini-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--brand-deep);
  background: var(--brand-soft);
  flex: none;
}
.mini-ico svg { width: 17px; height: 17px; }
.mini strong { display: block; font-size: 13.5px; font-weight: 650; }
.mini em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.mini-go { width: 15px; height: 15px; margin-left: auto; color: var(--faint); flex: none; transition: color 0.18s var(--ease); }
a.mini:hover .mini-go { color: var(--brand-deep); }
.mini.soon { border-style: dashed; background: color-mix(in srgb, var(--surface) 60%, transparent); box-shadow: none; }
.mini.soon .mini-ico { background: var(--surface-3); color: var(--faint); }
.mini-tag {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  flex: none;
  white-space: nowrap;
}

/* 入场 */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: riseIn 0.55s var(--ease) both; }

/* ---------------- 功能导航 ---------------- */

.nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.feature::after {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 200, 164, 0.16), transparent 68%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); box-shadow: var(--shadow-md); }
.feature:hover::after { opacity: 1; transform: scale(1); }
.feature:hover .feature-go { transform: translateX(3px); opacity: 1; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  color: var(--brand-deep);
  background: linear-gradient(155deg, var(--brand-soft), var(--brand-soft-2));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.feature-icon svg { width: 21px; height: 21px; }

.feature h3 { margin: 0; font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.feature p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }

.feature-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-deep);
}
.feature-go {
  width: 15px; height: 15px;
  opacity: 0.5;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.feature.soon {
  border-style: dashed;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: none;
  cursor: default;
}
.feature.soon:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.feature.soon::after { display: none; }
.feature.soon .feature-icon {
  background: var(--surface-3);
  color: var(--faint);
  border-color: var(--line);
}
.feature.soon .feature-foot { color: var(--faint); }

.badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  line-height: 1.6;
}
.badge.plain { background: var(--surface-3); color: var(--faint); border-color: var(--line); }

/* ---------------- 公告 ---------------- */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.notice-ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--brand-deep);
  background: var(--brand-soft);
  flex: none;
}
.notice-ico svg { width: 16px; height: 16px; }
.notice h4 { margin: 0 0 2px; font-size: 13px; font-weight: 650; }
.notice p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }

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

.footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.footer .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.footer button {
  border: 0; background: none; font: inherit; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0;
}
.footer button:hover { color: var(--brand-deep); }

/* ---------------- 弹层 ---------------- */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: color-mix(in srgb, #04241d 30%, transparent);
  backdrop-filter: blur(3px);
  animation: fade 0.18s var(--ease);
}
@keyframes fade { from { opacity: 0; } }

.modal {
  width: min(360px, 100%);
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: rise 0.22s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.modal p.sub { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }
.field {
  width: 100%;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 120;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 占位页 ---------------- */

.soon-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 28px;
  text-align: center;
}
.soon-card {
  padding: 44px 34px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-lg);
}
.soon-card .feature-icon { margin: 0 auto 18px; width: 54px; height: 54px; border-radius: 16px; }
.soon-card .feature-icon svg { width: 26px; height: 26px; }
.soon-card h1 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.soon-card p { margin: 0 auto 24px; max-width: 42ch; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.soon-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}
.soon-list span {
  font-size: 12px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  padding: 4px 11px;
  border-radius: 999px;
}

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

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .duo { grid-template-columns: 1fr; }
  .lower { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .page { padding: 20px 16px 32px; }
  .topbar-inner { padding: 12px 16px; gap: 10px; }
  .brand-tag { display: none; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 26px; }
  .footer { padding: 0 16px 28px; }
  .nav-link { padding: 6px 9px; font-size: 13px; }
}

@media (max-width: 640px) {
  .nav .nav-link.hide-sm { display: none; }
  .user-chip span.name { display: none; }
  .user-chip { padding: 3px; border-color: transparent; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 13px 14px; gap: 10px; }
  .stat-value { font-size: 19px; }
  .nav-grid { grid-template-columns: 1fr; }
  .wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel { padding: 18px; gap: 14px; }
  .big-num { font-size: 36px; }
  .panel-meta { gap: 8px; padding: 12px 0; }
  .orb-a, .orb-b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
