/* ==========================================================================
   锚点社区 · maodian
   设计系统：参考 modeldiplomat.com 的现代学术 SaaS 风格
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: 0 0% 100%;
  --fg: 228.8 44.4% 7.1%;
  --card: 0 0% 100%;
  --muted: 216 38.5% 97.5%;
  --muted-fg: 223.8 12.5% 40.8%;
  --border: 226.7 22% 92%;
  --primary: 231.7 100% 59%;
  --primary-hover: 232.5 74.7% 48%;
  --primary-fg: 0 0% 100%;
  --primary-tint: 229.4 100% 96.7%;
  --primary-tint-border: 230 100% 89.4%;
  --accent: 12 90% 55%;          /* 锚点橙：行动 / 报名 */
  --accent-tint: 24 100% 96%;
  --teal: 174 100% 32%;
  --teal-tint: 174 70% 95%;
  --amber: 38 92% 42%;
  --amber-tint: 42 100% 95%;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px hsl(var(--fg) / 0.05);
  --shadow: 0 2px 6px -1px hsl(var(--fg) / 0.06), 0 8px 24px -8px hsl(var(--fg) / 0.10);
  --shadow-lg: 0 12px 40px -12px hsl(var(--fg) / 0.18);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1200px;
  --header-h: 64px;
}

html[data-theme="dark"] {
  --bg: 228.8 44.4% 7.1%;
  --fg: 210 40% 98%;
  --card: 230.4 42.4% 11.6%;
  --muted: 230.4 42.4% 11.6%;
  --muted-fg: 226.4 14.3% 69.8%;
  --border: 227 23.2% 19.4%;
  --primary: 230.9 100% 78%;
  --primary-hover: 230 100% 86%;
  --primary-fg: 228.8 44.4% 7.1%;
  --primary-tint: 229.3 33.3% 16.5%;
  --primary-tint-border: 227 23.2% 19.4%;
  --accent: 14 100% 68%;
  --accent-tint: 12 40% 16%;
  --teal: 174 70% 60%;
  --teal-tint: 176 40% 15%;
  --amber: 42 96% 62%;
  --amber-tint: 40 40% 15%;
  --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.4);
  --shadow: 0 2px 6px -1px hsl(0 0% 0% / 0.4), 0 8px 24px -8px hsl(0 0% 0% / 0.5);
  --shadow-lg: 0 12px 40px -12px hsl(0 0% 0% / 0.6);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.mono { font-family: var(--mono); }

::selection { background: hsl(var(--primary) / 0.18); }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: hsl(var(--muted)); border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.stack { display: flex; flex-direction: column; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grow { flex: 1; }
.hide { display: none !important; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px }
.mt-3 { margin-top: 24px } .mt-4 { margin-top: 32px } .mt-5 { margin-top: 48px }
.mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 4. Type scale ---------- */
.display { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 600; }
.h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; }
.h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; }
.h3 { font-size: 20px; }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); color: hsl(var(--muted-fg)); line-height: 1.7; }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.muted { color: hsl(var(--muted-fg)); }
.strong { font-weight: 600; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: hsl(var(--muted-fg));
}
.grad-text {
  background: linear-gradient(100deg, hsl(var(--primary)), hsl(var(--teal)) 55%, hsl(var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head .h2 { margin: 10px 0 12px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; transition: all .16s ease; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-fg)); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: hsl(var(--primary-hover)); }
.btn-accent { background: hsl(var(--accent)); color: #fff; }
.btn-accent:hover { filter: brightness(1.07); }
.btn-outline { border-color: hsl(var(--border)); background: hsl(var(--card)); }
.btn-outline:hover { background: hsl(var(--muted)); border-color: hsl(var(--primary-tint-border)); }
.btn-ghost { color: hsl(var(--muted-fg)); }
.btn-ghost:hover { background: hsl(var(--muted)); color: hsl(var(--fg)); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-danger { color: hsl(var(--accent)); border-color: hsl(var(--accent) / .35); }
.btn-danger:hover { background: hsl(var(--accent) / .08); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: hsl(var(--bg) / .82); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, hsl(var(--primary)), hsl(var(--primary-hover)));
  color: #fff; box-shadow: var(--shadow-sm); flex: none;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-sub { font-size: 10.5px; letter-spacing: .12em; color: hsl(var(--muted-fg)); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 7px 11px; border-radius: 8px; font-size: 14.5px; color: hsl(var(--muted-fg));
  transition: all .15s ease;
}
.nav a:hover { color: hsl(var(--fg)); background: hsl(var(--muted)); }
.nav a.active { color: hsl(var(--fg)); font-weight: 500; background: hsl(var(--muted)); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  color: hsl(var(--muted-fg)); border: 1px solid transparent;
}
.icon-btn:hover { background: hsl(var(--muted)); color: hsl(var(--fg)); }
.icon-btn svg { width: 17px; height: 17px; }
.nav-toggle { display: none; }

/* 用户菜单 */
.usermenu { position: relative; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: hsl(var(--primary-tint)); color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary-tint-border));
}
.usermenu-trigger { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: var(--radius-pill); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.usermenu-trigger:hover { background: hsl(var(--muted)); }
.usermenu-trigger .who { font-size: 13.5px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 232px; z-index: 70;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none;
}
.dropdown.open { display: block; animation: pop .14s ease; }
.dropdown-head { padding: 10px 10px 12px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 6px; }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 8px; font-size: 14px; color: hsl(var(--fg));
}
.dropdown a:hover, .dropdown button:hover { background: hsl(var(--muted)); }
.dropdown .sep { height: 1px; background: hsl(var(--border)); margin: 6px 0; }
.dropdown svg { width: 15px; height: 15px; color: hsl(var(--muted-fg)); }

/* ---------- 7. Utility bar / notice ---------- */
.notice {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: hsl(var(--primary-tint)); color: hsl(var(--primary));
  border-bottom: 1px solid hsl(var(--primary-tint-border));
  font-size: 13.5px; padding: 8px 24px; text-align: center;
}
.notice a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* ---------- 8. Cards ---------- */
.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg); padding: 22px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card-pad-sm { padding: 16px; }
.card-hover:hover { border-color: hsl(var(--primary-tint-border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-flat { border-radius: var(--radius); }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.card-link { display: block; }

/* 徽章 / 标签 */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 500;
  background: hsl(var(--muted)); color: hsl(var(--muted-fg)); border: 1px solid hsl(var(--border));
  white-space: nowrap;
}
.badge-primary { background: hsl(var(--primary-tint)); color: hsl(var(--primary)); border-color: hsl(var(--primary-tint-border)); }
.badge-accent { background: hsl(var(--accent-tint)); color: hsl(var(--accent)); border-color: hsl(var(--accent) / .22); }
.badge-teal { background: hsl(var(--teal-tint)); color: hsl(var(--teal)); border-color: hsl(var(--teal) / .22); }
.badge-amber { background: hsl(var(--amber-tint)); color: hsl(var(--amber)); border-color: hsl(var(--amber) / .25); }
.badge-solid { background: hsl(var(--fg)); color: hsl(var(--bg)); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill); border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); font-size: 13px; color: hsl(var(--muted-fg));
  transition: all .15s ease; cursor: pointer;
}
.chip:hover { border-color: hsl(var(--primary-tint-border)); color: hsl(var(--fg)); }
.chip.active { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--primary-fg)); }
.chip-sm { height: 26px; padding: 0 10px; font-size: 12px; cursor: default; }

/* 头像堆叠 */
.avatars { display: flex; }
.avatars .avatar { width: 26px; height: 26px; font-size: 11px; margin-left: -8px; border: 2px solid hsl(var(--card)); }
.avatars .avatar:first-child { margin-left: 0; }

/* ---------- 9. Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label { font-size: 13.5px; font-weight: 500; }
.field .hint { font-size: 12.5px; color: hsl(var(--muted-fg)); }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px; background: hsl(var(--bg));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  font-size: 14.5px; transition: border-color .15s ease, box-shadow .15s ease;
}
html[data-theme="dark"] .input, html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea { background: hsl(var(--bg) / .6); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .14);
}
.input::placeholder, .textarea::placeholder { color: hsl(var(--muted-fg) / .8); }
.textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: hsl(var(--primary)); flex: none; }
.searchbar { position: relative; display: flex; align-items: center; }
.searchbar svg { position: absolute; left: 13px; width: 17px; height: 17px; color: hsl(var(--muted-fg)); pointer-events: none; }
.searchbar .input { height: 44px; padding-left: 40px; }
.searchbar-lg .input { height: 54px; font-size: 16px; border-radius: 14px; padding-left: 48px; }
.searchbar-lg svg { left: 17px; width: 19px; height: 19px; }

/* 分段控件 */
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: 10px; }
.segmented button { padding: 6px 13px; border-radius: 7px; font-size: 13.5px; color: hsl(var(--muted-fg)); }
.segmented button.active { background: hsl(var(--card)); color: hsl(var(--fg)); font-weight: 500; box-shadow: var(--shadow-sm); }

/* ---------- 10. Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 560px; z-index: -1;
  background: radial-gradient(46% 60% at 22% 34%, hsl(var(--primary) / .20), transparent 70%),
              radial-gradient(38% 52% at 82% 12%, hsl(var(--teal) / .16), transparent 72%),
              radial-gradient(34% 46% at 62% 78%, hsl(var(--accent) / .10), transparent 70%);
  filter: blur(6px);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 13.5px; color: hsl(var(--muted-fg)); }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--teal)); flex: none; }

/* 首页右侧演示卡 */
.demo-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.demo-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--muted)); }
.demo-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.demo-line { display: flex; gap: 10px; font-size: 13.5px; }
.demo-line .k { color: hsl(var(--muted-fg)); width: 74px; flex: none; }
.demo-note { border-left: 2px solid hsl(var(--primary)); padding: 2px 0 2px 12px; font-size: 13.5px; color: hsl(var(--muted-fg)); }
.skeleton { height: 9px; border-radius: 5px; background: linear-gradient(90deg, hsl(var(--muted)), hsl(var(--border)), hsl(var(--muted))); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }

/* ---------- 11. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: hsl(var(--border)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: hsl(var(--card)); padding: 24px 22px; }
.stat-num { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; font-family: var(--serif); }
.stat-label { font-size: 13px; color: hsl(var(--muted-fg)); margin-top: 2px; }

/* ---------- 12. Feature / step ---------- */
.feature-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: hsl(var(--primary-tint)); color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary-tint-border)); margin-bottom: 16px;
}
.feature-icon svg { width: 20px; height: 20px; }
.step-num { font-family: var(--serif); font-size: 34px; color: hsl(var(--primary)); line-height: 1; }

/* ---------- 13. Event card ---------- */
.event-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.event-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.event-date {
  width: 54px; flex: none; text-align: center; border: 1px solid hsl(var(--border));
  border-radius: var(--radius); overflow: hidden; background: hsl(var(--card));
}
.event-date .m { display: block; font-size: 10.5px; letter-spacing: .1em; background: hsl(var(--primary-tint)); color: hsl(var(--primary)); padding: 2px 0; font-weight: 600; }
.event-date .d { display: block; font-size: 19px; font-weight: 600; padding: 2px 0 4px; letter-spacing: -0.02em; }
.event-title { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; }
.event-summary { font-size: 13.5px; color: hsl(var(--muted-fg)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid hsl(var(--border)); margin-top: auto; font-size: 12.5px; color: hsl(var(--muted-fg)); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: hsl(var(--muted-fg)); }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 14px; height: 14px; }

/* 进度条 */
.progress { height: 5px; border-radius: 3px; background: hsl(var(--muted)); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--teal))); border-radius: 3px; transition: width .4s ease; }

/* ---------- 14. Tracks (跨学科) ---------- */
.track-card { position: relative; overflow: hidden; }
.track-swatch { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- 15. Idea card ---------- */
.idea-card { display: flex; flex-direction: column; gap: 12px; }
.idea-quote { font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.vote-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 10px; border-radius: 9px; border: 1px solid hsl(var(--border)); font-size: 12px; color: hsl(var(--muted-fg)); min-width: 52px; }
.vote-btn:hover { border-color: hsl(var(--primary-tint-border)); color: hsl(var(--primary)); }
.vote-btn.on { background: hsl(var(--primary-tint)); border-color: hsl(var(--primary-tint-border)); color: hsl(var(--primary)); font-weight: 600; }
.vote-btn svg { width: 15px; height: 15px; }

/* ---------- 16. Timeline ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: hsl(var(--border)); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: hsl(var(--bg)); border: 2px solid hsl(var(--primary)); }
.timeline li:last-child { padding-bottom: 0; }

/* ---------- 17. Steps list ---------- */
.numlist { counter-reset: n; display: flex; flex-direction: column; gap: 14px; }
.numlist li { counter-increment: n; display: flex; gap: 14px; font-size: 14.5px; }
.numlist li::before {
  content: counter(n); flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
  background: hsl(var(--primary-tint)); color: hsl(var(--primary)); border: 1px solid hsl(var(--primary-tint-border));
}

/* ---------- 18. Table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid hsl(var(--border)); }
.table th { font-size: 12.5px; font-weight: 500; color: hsl(var(--muted-fg)); background: hsl(var(--muted)); }
.table tbody tr:last-child td { border-bottom: none; }
.table-wrap { border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); overflow: hidden; background: hsl(var(--card)); }

/* ---------- 19. Empty state ---------- */
.empty { text-align: center; padding: 56px 24px; border: 1px dashed hsl(var(--border)); border-radius: var(--radius-lg); background: hsl(var(--card)); }
.empty-icon { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 13px; display: grid; place-items: center; background: hsl(var(--muted)); color: hsl(var(--muted-fg)); }
.empty-icon svg { width: 22px; height: 22px; }

/* ---------- 20. Toast / Modal ---------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 380px; background: hsl(var(--card)); color: hsl(var(--fg));
  border: 1px solid hsl(var(--border)); border-left: 3px solid hsl(var(--primary));
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; animation: slidein .22s ease;
}
.toast.ok { border-left-color: hsl(var(--teal)); }
.toast.err { border-left-color: hsl(var(--accent)); }
.toast .t-title { font-weight: 600; margin-bottom: 2px; }
@keyframes slidein { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.modal-mask { position: fixed; inset: 0; z-index: 150; background: hsl(228 44% 7% / .5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .16s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal { width: 100%; max-width: 460px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; animation: pop .18s ease; max-height: 88vh; overflow: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.code-input { letter-spacing: .5em; text-align: center; font-family: var(--mono); font-size: 20px; height: 52px; }

/* ---------- 21. Auth page ---------- */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-aside { background: hsl(var(--muted)); border-right: 1px solid hsl(var(--border)); padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-main { display: grid; place-items: center; padding: 56px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.otp-boxes { display: flex; gap: 10px; }
.otp-boxes input { width: 100%; height: 54px; text-align: center; font-family: var(--mono); font-size: 20px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--bg)); }
.otp-boxes input:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .14); }

/* ---------- 22. Footer ---------- */
.site-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--muted)); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.footer-col h4 { font-size: 13px; letter-spacing: .04em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: hsl(var(--muted-fg)); padding: 5px 0; }
.footer-col a:hover { color: hsl(var(--primary)); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid hsl(var(--border)); margin-top: 40px; padding-top: 22px; font-size: 12.5px; color: hsl(var(--muted-fg)); }

/* ---------- 23. Misc ---------- */
.kbd { font-family: var(--mono); font-size: 11.5px; border: 1px solid hsl(var(--border)); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: hsl(var(--muted)); }
.hr { height: 1px; background: hsl(var(--border)); border: none; margin: 24px 0; }
.link { color: hsl(var(--primary)); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: hsl(var(--muted-fg)); margin-bottom: 18px; }
.breadcrumb a:hover { color: hsl(var(--primary)); }
.split { display: grid; grid-template-columns: minmax(0,1fr) 348px; gap: 40px; align-items: start; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 20px); }
.list-divide > * + * { border-top: 1px solid hsl(var(--border)); padding-top: 18px; margin-top: 18px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 26px; overflow-x: auto; }
.tabs button { padding: 11px 16px; font-size: 14.5px; color: hsl(var(--muted-fg)); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: hsl(var(--fg)); border-bottom-color: hsl(var(--primary)); font-weight: 500; }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: hsl(var(--muted)); font-size: 11.5px; color: hsl(var(--muted-fg)); font-weight: 500; }
.point-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: hsl(var(--amber)); font-weight: 600; }

/* 报名成功票券 */
.ticket { border: 1px dashed hsl(var(--primary) / .5); background: hsl(var(--primary-tint)); border-radius: var(--radius); padding: 16px; }
.ticket-code { font-family: var(--mono); font-size: 20px; letter-spacing: .16em; font-weight: 600; color: hsl(var(--primary)); }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 860px) {
  .nav, .header-actions .hide-sm { display: none; }
  .nav-toggle { display: grid; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 16px; right: 16px; top: calc(var(--header-h) - 4px);
    background: hsl(var(--card)); border: 1px solid hsl(var(--border));
    border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); z-index: 80;
  }
  .nav.open a { padding: 11px 12px; font-size: 15px; }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .display { font-size: clamp(32px, 9vw, 40px); }
  .btn-lg { height: 46px; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; max-width: none; }
}

@media print {
  .site-header, .site-footer, .toast-wrap, .no-print { display: none !important; }
}
