/* ==========================================================================
   KSUMC · 喀什大学方块数构协会
   单文件样式表：设计令牌 → 基础 → 组件 → 页面 → 响应式
   没有预处理器，没有构建步骤，改完刷新即可。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg: #0a0e0b;
  --bg-soft: #0d130f;
  --surface: #111813;
  --surface-2: #151f18;
  --line: #1f2a22;
  --line-2: #2b3a2f;

  --ink: #e8ece6;
  --ink-2: #c3ccc4;
  --muted: #9ca9a0;
  --dim: #6e7c73;

  --green: #6fd35f;
  --green-2: #3f8f4a;
  --green-deep: #1d5a28;
  --gold: #e3b24e;
  --gold-2: #b8842f;

  --radius: 3px;
  --wrap: 1120px;
  --gutter: 24px;
  --header-h: 64px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 30px rgba(0, 0, 0, .38);
  --shadow-btn: 0 3px 0 var(--green-deep);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

/* 全站极淡的方块网格，营造"世界"的底子 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

img { max-width: 100%; display: block; }

a {
  color: var(--green);
  text-decoration: none;
  transition: color .18s var(--ease);
}
a:hover { color: #95e487; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

strong { color: var(--ink); font-weight: 650; }

::selection { background: var(--green); color: #06120a; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: #06120a;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top .16s var(--ease);
}
.skip:focus { top: 12px; color: #06120a; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding: 88px 0; position: relative; }
.section + .section { padding-top: 0; }

.section-head { max-width: 640px; margin-bottom: 40px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 178, 78, .14);
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: var(--ink-2);
  line-height: 1.75;
}

.hl {
  background: linear-gradient(180deg, transparent 62%, rgba(111, 211, 95, .28) 62%);
  padding: 0 .08em;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease),
    background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.btn-primary {
  background: var(--green);
  color: #06130a;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: #82dd71;
  color: #06130a;
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--green-deep);
}
.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--green-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, .045);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: #3d5142;
  color: var(--ink);
}

.btn-sm { padding: 9px 16px; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--green);
}
.link-arrow::after {
  content: "→";
  transition: transform .18s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 4. 顶栏 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .28s var(--ease), border-color .28s var(--ease);
}
.site-header.is-stuck {
  background: rgba(8, 12, 9, .86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-plate {
  width: 34px;
  height: 38px;
  padding: 3px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 14px rgba(0, 0, 0, .4);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-plate img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1rem;
  letter-spacing: .1em;
  font-weight: 700;
}
.brand-text em {
  font-style: normal;
  font-size: .68rem;
  color: var(--dim);
  letter-spacing: .04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 500;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.nav a.is-active { color: var(--green); background: rgba(111, 211, 95, .1); }
.nav a.nav-ext { color: var(--muted); }
.nav a.nav-ext::after { content: ""; }

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  padding: 0;
  margin-left: 4px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  content: "";
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

/* ---------- 5. 首屏（作品集式：满屏 + 大字 + 跑马灯） ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 36px) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: -10% 0 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 34% 48%;
  z-index: -2;
  filter: saturate(.9) brightness(.76);
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 48% at 70% 36%, rgba(227, 178, 78, .13), transparent 62%),
    linear-gradient(180deg, rgba(6, 10, 7, .74) 0%, rgba(6, 10, 7, .12) 28%, rgba(6, 10, 7, .58) 64%, rgba(6, 10, 7, .97) 100%),
    linear-gradient(90deg, rgba(6, 10, 7, .88) 0%, rgba(6, 10, 7, .35) 52%, transparent 78%);
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 11vh, 130px);
  padding-bottom: clamp(26px, 5vh, 56px);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.hero-top .eyebrow { margin: 0; }
.hero-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7.2vw, 5.9rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: .98;
}
.hero h1 .hl { color: var(--gold); }

.hero-side { padding-bottom: 10px; }
.hero-side .lede { margin-bottom: 26px; }
.hero .btn-row { gap: 10px; }

/* 跑马灯 */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .13);
  background: rgba(4, 7, 5, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  padding: 13px 0;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track > span::after {
  content: "◆";
  margin: 0 22px;
  color: var(--gold);
  font-size: .58rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 数据带 */
.stats-band {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 36px 24px 32px 0;
  border-right: 1px solid var(--line);
}
.stats-grid > div:last-child { border-right: 0; }
.stats-grid > div:not(:first-child) { padding-left: 24px; }
.stat-num {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num small {
  font-size: .82rem;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0;
  margin-left: 5px;
}
.stat-cap { font-size: .72rem; color: var(--muted); letter-spacing: .12em; }

/* 作品式横幅 */
.banner {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  isolation: isolate;
}
.banner:hover { color: var(--ink); }
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 46%;
  z-index: -2;
  filter: brightness(.6) saturate(.92);
  transform: scale(1.02);
  transition: transform .9s var(--ease), filter .9s var(--ease);
}
.banner:hover .banner-img { transform: scale(1.07); filter: brightness(.7) saturate(1); }
.banner-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 10, 7, .95) 0%, rgba(6, 10, 7, .7) 52%, rgba(6, 10, 7, .3) 100%);
}
.banner-veil--green {
  background: linear-gradient(90deg, rgba(5, 9, 6, .96) 0%, rgba(9, 26, 17, .82) 54%, rgba(12, 34, 23, .5) 100%);
}
.banner-img--alt { object-position: 15% 58%; }
.banner-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(320px, 40vw, 460px);
  padding: clamp(24px, 4vw, 46px);
  max-width: 640px;
}
.banner-body .eyebrow { margin-bottom: 14px; }
.banner h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.banner p { color: var(--ink-2); font-size: .95rem; max-width: 44ch; margin-bottom: 20px; }

/* 大号背景序号 */
.watermark {
  position: absolute;
  top: -.24em;
  right: 2%;
  font-size: clamp(7rem, 17vw, 15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.07em;
  color: rgba(255, 255, 255, .026);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.stats dd small {
  font-size: .72rem;
  font-weight: 500;
  color: var(--dim);
  margin-left: 3px;
  letter-spacing: 0;
}

/* ---------- 5.5 宽幅项目条 ---------- */
.subhead {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 48px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.subhead h3 { font-size: 1.02rem; margin: 0; letter-spacing: .02em; }
.subhead span { font-size: .8rem; color: var(--dim); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(111, 211, 95, .09), transparent 58%),
    var(--surface);
  transition: border-color .2s var(--ease);
}
.feature:hover { border-color: var(--line-2); }
.feature h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.feature p { color: var(--muted); font-size: .95rem; max-width: 52ch; margin-bottom: 18px; }
.feature-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 128px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.feature-meta span {
  font-size: .82rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
}

/* 小标签组 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.chip-gold { color: var(--gold); border-color: rgba(227, 178, 78, .3); }
.chip-green { color: var(--green); border-color: rgba(111, 211, 95, .28); }

/* ---------- 6. 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.about-body p { color: var(--ink-2); }
.about-body p + p { margin-top: 1em; }

.pullquote {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(227, 178, 78, .07), transparent 70%);
  color: var(--ink);
  font-size: 1.02rem;
}
.pullquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: .8rem;
  color: var(--dim);
  letter-spacing: .04em;
}

/* ---------- 7. 卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 40px;
  height: 2px;
  background: var(--green);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.card:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }

.card-num {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--dim);
  letter-spacing: .12em;
  margin-bottom: 14px;
  display: block;
}
.card h3 { font-size: 1.13rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card .card-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 9px;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--gold);
  border: 1px solid rgba(227, 178, 78, .28);
  border-radius: 2px;
}

/* ---------- 8. 服务器状态 ---------- */
.status-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.status-main { padding: 32px 32px 28px; }
.status-side {
  padding: 32px;
  border-left: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(111, 211, 95, .05), transparent 60%);
}

.status-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.status-led {
  width: 9px;
  height: 9px;
  background: var(--dim);
  box-shadow: 0 0 0 4px rgba(110, 124, 115, .12);
  animation: pulse 2.4s var(--ease) infinite;
}
.status-led[data-state="on"] { background: var(--green); box-shadow: 0 0 0 4px rgba(111, 211, 95, .16); }
.status-led[data-state="off"] { background: #d96a5a; box-shadow: 0 0 0 4px rgba(217, 106, 90, .14); animation: none; }
.status-led[data-state="unknown"] { background: var(--gold); box-shadow: 0 0 0 4px rgba(227, 178, 78, .14); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.status-title { font-size: .95rem; font-weight: 650; margin: 0; }
.status-sub { font-size: .8rem; color: var(--dim); margin: 0 0 0 auto; }

.status-nums {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.status-nums strong {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.status-nums span { color: var(--muted); font-size: .9rem; }

.status-label {
  font-size: .76rem;
  color: var(--dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 14px;
  background: #0a100c;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--ink);
  word-break: break-all;
}
.address code { flex: 1 1 auto; }
.copy-btn {
  flex: 0 0 auto;
  padding: 5px 10px;
  font: inherit;
  font-family: var(--font);
  font-size: .76rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.copy-btn:hover { background: rgba(255, 255, 255, .12); color: var(--ink); }
.copy-btn[data-copied="1"] { color: var(--green); border-color: rgba(111, 211, 95, .4); }

.status-side h3 { font-size: .95rem; margin-bottom: 14px; }
.status-side ol {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: .9rem;
}
.status-side li { margin-bottom: .55em; }
.status-side .link-arrow { margin-top: 18px; }

/* ---------- 9. 动态时间线 ---------- */
.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .18s var(--ease);
}
.timeline-item:hover { background: rgba(255, 255, 255, .018); }
.timeline-date {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--dim);
  letter-spacing: .02em;
}
.timeline-item h3 { font-size: 1.02rem; margin: 0 0 4px; font-weight: 600; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .89rem; }
.tag {
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: .04em;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.tag-gold { color: var(--gold); border-color: rgba(227, 178, 78, .26); }
.tag-green { color: var(--green); border-color: rgba(111, 211, 95, .26); }

/* ---------- 9.5 公告 ---------- */
.posts { border-top: 1px solid var(--line); }
.post {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 4px 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .18s var(--ease);
}
.post:hover { background: rgba(255, 255, 255, .018); }
.post-meta {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--dim);
  padding-top: 3px;
}
.post-cat { color: var(--gold); letter-spacing: .1em; }
.post h3 { margin: 0; font-size: 1.03rem; font-weight: 600; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--green); }
.post p { margin: 0; color: var(--muted); font-size: .9rem; }
.posts-empty { color: var(--dim); font-size: .9rem; padding: 20px 4px; }

/* ---------- 10. 加入 / CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 140% at 12% 10%, rgba(111, 211, 95, .12), transparent 58%),
    radial-gradient(70% 120% at 88% 90%, rgba(227, 178, 78, .1), transparent 60%),
    var(--surface);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 46ch; margin: 0; }

.qr-slot {
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
  color: var(--dim);
  font-size: .72rem;
  line-height: 1.4;
  padding: 10px;
}
.qr-slot strong { color: var(--ink-2); font-size: .8rem; display: block; }

/* ---------- 11. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  transition: color .16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.faq summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::before { content: "−"; }
.faq .faq-body {
  padding: 0 4px 20px 34px;
  color: var(--muted);
  font-size: .94rem;
  max-width: 72ch;
}

/* ---------- 12. 内页头部 ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(111, 211, 95, .08), transparent 60%),
    radial-gradient(70% 100% at 100% 0%, rgba(227, 178, 78, .06), transparent 55%);
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.page-hero .lede { max-width: 56ch; }
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .8rem;
  color: var(--dim);
  margin-bottom: 20px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }

/* ---------- 13. 步骤 / 规则 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--green);
  margin-bottom: 12px;
}
.step h3 { font-size: .98rem; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.rules li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  color: var(--ink-2);
}
.rules li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: .62em;
  background: var(--gold);
}

/* ---------- 14. 校区 / 进度 ---------- */
.campus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.campus-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.campus-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.campus-card .meta {
  font-size: .78rem;
  color: var(--dim);
  font-family: var(--mono);
  margin-bottom: 16px;
}
.phase {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.phase i {
  flex: 1;
  height: 4px;
  background: var(--line-2);
  border-radius: 1px;
}
.phase i.on { background: var(--green); }
.phase i.now { background: var(--gold); }
.phase-label {
  font-size: .74rem;
  color: var(--muted);
  margin-top: 10px;
  display: block;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  margin-top: 96px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: #080b08;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.footer-brand { display: flex; gap: 12px; margin-bottom: 14px; align-items: center; }
.footer-brand .brand-plate { width: 30px; height: 34px; }
.footer-brand strong { display: block; letter-spacing: .1em; }
.footer-brand span { font-size: .74rem; color: var(--dim); }
.site-footer p { color: var(--muted); font-size: .88rem; max-width: 34ch; }

.footer-col h3 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ink-2); font-size: .9rem; }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--dim);
}
.footer-bottom .legal { max-width: 62ch; line-height: 1.6; }

/* ---------- 15.5 辅助类 ---------- */
[hidden] { display: none !important; }

.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 16. 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-led { animation: none; }
  .marquee-track { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .hero h1 { font-size: clamp(2.4rem, 8.6vw, 4rem); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid > div:nth-child(2n) { border-right: 0; }
  .stats-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats-grid > div:nth-child(2n + 1) { padding-left: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature-meta {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    gap: 8px 22px;
  }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campus { grid-template-columns: 1fr; }
  .status-panel { grid-template-columns: 1fr; }
  .status-side { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .section { padding: 64px 0; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(10, 14, 11, .98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .header-cta { padding: 9px 14px; }

  .hero { min-height: 88svh; padding: calc(var(--header-h) + 26px) 0 0; }
  .hero-art { object-position: 42% 44%; }
  .hero-content { gap: 46px; padding-bottom: 26px; }
  .hero-meta { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 10.4vw, 3.2rem); }
  .marquee-track > span { font-size: .64rem; letter-spacing: .2em; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(6, 10, 7, .8) 0%, rgba(6, 10, 7, .35) 34%, rgba(6, 10, 7, .9) 76%, var(--bg) 100%);
  }
  .banner-body { min-height: 300px; }
  .watermark { display: none; }

  .cards,
  .cards-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 30px 24px; gap: 24px; }
  .qr-slot { width: 100%; max-width: 180px; }

  .timeline-item { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .timeline-date { grid-column: 1 / -1; }

  .post { grid-template-columns: 1fr; gap: 6px; }
  .post-meta { flex-direction: row; grid-row: auto; gap: 12px; padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .brand-text em { display: none; }
  .status-main, .status-side { padding: 22px; }
}
