/**
 * 微光计划 · 深蓝去泛光
 * 光是干净的小亮点，没有任何晕染；高级感来自秩序、细线与排版。
 * 夜间常设，无主题切换。
 */

:root {
  --night: #060A14;
  --panel: #090E1A;
  --panel-2: rgba(6, 10, 20, .78);
  --ink: #EDF1F7;
  --ink-2: #9AA3B5;
  --ink-3: #525A6E;
  --dead: #2A3040;
  --line: rgba(214, 224, 244, .10);
  --line-h: rgba(214, 224, 244, .28);
  --star: #CFE0FF;
  --serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --t: .45s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) var(--night);
}
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--night); }

/* 与深色星图相配的细窄滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb {
  min-height: 48px;
  background: var(--ink-3);
  border: 3px solid var(--night);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }

a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 1px solid var(--star); outline-offset: 3px; }

/* 胶片颗粒：只给材质，不给光 */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* WebGL 有机体画布（仅首页；启动后隐藏 CSS 星空兜底） */
#organism {
  position: fixed; inset: 0; z-index: 0; display: block;
  width: 100%; height: 100%;
}
body.organic .sky { display: none; }

/* 自定义光标：一颗四角星（仅 pointer:fine 且 JS 启用时） */
.cur-star, .cur-trail { display: none; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }
body.has-cursor .cur-star {
  display: block; position: fixed; z-index: 400; pointer-events: none;
  left: 0; top: 0; width: 14px; height: 14px; color: var(--ink);
  will-change: transform; transition: color .3s var(--ease);
}
body.has-cursor .cur-star.on { color: var(--star); }
body.has-cursor .cur-trail {
  display: block; position: fixed; z-index: 399; pointer-events: none;
  left: 0; top: 0; color: var(--star); opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.cur-star svg, .cur-trail svg { width: 100%; height: 100%; display: block; }
@keyframes trail-die {
  0% { opacity: .85; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(45deg); }
}
.cur-trail.die { animation: trail-die .7s ease-out forwards; }

/* ---------- 签名符号：直角引号 ---------- */
.bk::before { content: '「'; color: var(--ink-3); font-weight: 700; }
.bk::after { content: '」'; color: var(--ink-3); font-weight: 700; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--panel-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%; margin: 0; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: .14em;
}
.logo .mark { width: 15px; height: 15px; color: var(--star); flex: none; }
.nav .links { display: flex; gap: 26px; align-items: center; }
.nav .links a {
  color: var(--ink-2); text-decoration: none; font-size: 13px;
  letter-spacing: .06em; padding: 4px 0;
  transition: color var(--t) var(--ease);
}
.nav .links a:hover { color: #C6CDDB; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border: 0; background: none; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 17px; height: 1.5px;
  background: var(--ink-2); transition: all var(--t) var(--ease);
}

/* ---------- 星空兜底（无 WebGL / 减少动态时） ---------- */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sky i { position: absolute; top: 0; left: 0; display: block; border-radius: 50%; }
.sky-1 { width: 1px; height: 1px; animation: sky-tw 6s ease-in-out infinite alternate; }
.sky-2 { width: 2px; height: 2px; animation: sky-tw 8.5s ease-in-out 1.2s infinite alternate; }
.sky-b {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(222, 234, 255, .85);
  animation: sky-tw 4.5s ease-in-out var(--td, 0s) infinite alternate;
}
@keyframes sky-tw { from { opacity: .45; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-in {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  max-width: 1280px; width: 100%; margin: 0 auto; padding: 120px 32px 40px;
  position: relative; z-index: 2;
}
.hero-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  color: var(--ink-3); margin-bottom: 34px;
}
.hero-kicker b { color: var(--ink-2); font-weight: 500; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 1.14; letter-spacing: .01em;
  margin-bottom: 34px; perspective: 600px;
}
.hero h1 .l1, .hero h1 .l2 { display: block; white-space: nowrap; }
.hero h1 .l2 { padding-left: clamp(36px, 10vw, 150px); }
.hero h1 .bk { white-space: nowrap; }
.hero h1 .ch { display: inline-block; will-change: transform; }
.hero-sub {
  color: var(--ink-2); font-size: 15px; line-height: 1.9; max-width: 30em;
  margin-bottom: 42px;
}
.hero-cta { display: flex; gap: 14px; margin-bottom: 46px; flex-wrap: wrap; }
.sec-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 56px; }
.btn {
  display: inline-block; padding: 11px 24px; font-size: 12px; letter-spacing: .12em;
  text-decoration: none; border: 1px solid var(--line); color: var(--ink-2);
  background: transparent; cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  will-change: transform;
}
.btn:hover { border-color: var(--line-h); color: var(--ink); }
.btn-fill { border-color: var(--line-h); color: var(--ink); background: rgba(214, 224, 244, .05); }
.btn-fill:hover { background: rgba(214, 224, 244, .10); border-color: var(--ink); }
.hero-status {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-3);
}
.hero-status b { color: var(--star); font-weight: 500; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 36px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink-3);
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em;
  transition: color var(--t) var(--ease);
}
.hero-scroll:hover { color: var(--ink-2); }
.hero-scroll i {
  display: block; width: 8px; height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: hero-scroll-arrow 1.6s var(--ease) infinite;
}
@keyframes hero-scroll-arrow {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: .35; }
  50% { transform: translateY(6px) rotate(45deg); opacity: 1; }
}

/* ---------- Sections ---------- */
.sec { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.sec-in { max-width: 1120px; margin: 0 auto; padding: 110px 32px; }
.panel-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 44px;
}
.panel-head b { color: var(--ink-2); font-weight: 500; margin-right: 14px; }
.panel-head .cnt { color: var(--star); font-variant-numeric: tabular-nums; }
.panel-head .cnt.dark { color: var(--ink-3); }
.sec-in > h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1.25; letter-spacing: .01em;
  margin-bottom: 16px;
}
.sec-in > h2.center { text-align: center; }
.sec-sub { color: var(--ink-2); max-width: 34em; margin-bottom: 60px; }
.sec-sub.center { text-align: center; margin-left: auto; margin-right: auto; }

/* 区块进场（JS 加 .anim 后才藏初始态，防裸奔） */
.anim [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--out) var(--delay, 0s), transform .9s var(--out) var(--delay, 0s);
}
.anim [data-reveal].revealed { opacity: 1; transform: none; }
/* hero 由 GSAP 编排入场，先藏住防闪烁 */
.anim .hero-kicker, .anim .hero h1, .anim .hero-sub,
.anim .hero-cta, .anim .hero-status, .anim .hero-scroll { opacity: 0; }

/* ---------- 活动（名单：编号在左，大名居中，状态在右） ---------- */
.ev-list { list-style: none; counter-reset: ev; }
.ev { border-top: 1px solid var(--line); }
.ev:last-child { border-bottom: 1px solid var(--line); }
.ev-main {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: baseline;
  width: 100%; text-align: left; padding: 34px 6px;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.ev-addr {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3);
  transition: color .5s var(--ease);
}
.ev-name {
  display: block; font-family: var(--serif); font-weight: 700; text-align: center;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .02em; color: var(--ink-3);
  transition: color .5s var(--ease);
}
.ev-desc { display: block; text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.ev-state {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--ink-3); white-space: nowrap;
}
.ev-main:hover .ev-name { color: var(--ink); }
.ev-main:hover .ev-addr { color: var(--ink-2); }
/* 开放 = 亮起：名字转白，编号转星光色（无泛光） */
.ev.is-open .ev-name { color: var(--ink); }
.ev.is-open .ev-addr, .ev.is-open .ev-state { color: var(--star); }

/* ---------- 合作商（名字墙：编号+身份在左，大名在中，站点在右） ---------- */
.wall { list-style: none; }
.wall-item { border-top: 1px solid var(--line); }
.wall-item:last-child { border-bottom: 1px solid var(--line); }
.wi {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 26px; align-items: center;
  text-decoration: none; color: inherit; padding: 30px 6px;
}
.wi-addr {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-3);
}
.wi-addr em {
  display: block; font-style: normal; margin-top: 6px;
  font-size: 10px; letter-spacing: .12em; color: var(--ink-3);
}
.wi-name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 3.2vw, 40px); letter-spacing: .02em; line-height: 1.3;
  color: var(--ink);
  transition: color .5s var(--ease), transform .5s var(--ease);
}
a.wi:hover .wi-name { color: #FFFFFF; transform: translateX(8px); }
.wi-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ink-3); text-align: right; white-space: nowrap;
}
.wall-item.is-host .wi-addr { color: var(--star); }
.wall-item.is-host .wi-addr em { color: var(--star); }
.wall-item.is-vacant .wi-name {
  color: transparent;
  -webkit-text-stroke: 1px var(--dead);
}
.wall-item.is-vacant .wi-meta { color: var(--dead); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.about-col .mono {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--ink-3); margin-bottom: 18px;
}
.about-col h3 {
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  letter-spacing: .04em; margin-bottom: 16px;
}
.about-col ul { list-style: none; }
.about-col li {
  color: var(--ink-2); font-size: 14px; line-height: 1.8;
  padding: 12px 0 12px 22px; border-top: 1px solid var(--line); position: relative;
}
.about-col li::before {
  content: ''; position: absolute; left: 0; top: 22px;
  width: 3px; height: 3px; background: var(--ink-3);
}

/* ---------- 页脚 ---------- */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--panel); }
.foot-in {
  max-width: 1120px; margin: 0 auto; padding: 64px 32px 44px;
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.foot-brand .logo { font-size: 18px; }
.foot-brand p { color: var(--ink-3); font-size: 12px; margin-top: 16px; letter-spacing: .1em; }
.foot-nav { display: flex; gap: 28px; align-items: flex-start; }
.foot-nav a { color: var(--ink-2); text-decoration: none; font-size: 13px; transition: color var(--t) var(--ease); }
.foot-nav a:hover { color: var(--ink); }
.foot-meta {
  border-top: 1px solid var(--line);
  max-width: 1120px; margin: 0 auto; padding: 18px 32px 26px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3);
}

/* ---------- 子页面 ---------- */
.page-head { max-width: 1120px; margin: 0 auto; padding: 150px 32px 46px; }
.page-head .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--ink-3);
}
.page-head h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.2; letter-spacing: .01em;
  margin: 18px 0 14px;
}
.page-head .sub { color: var(--ink-2); max-width: 34em; }
.st {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  padding: 6px 10px; border: 1px solid var(--line); color: var(--ink-3);
}
.st-lit { color: var(--star); border-color: var(--line-h); }
.partner-detail dl { border-top: 1px solid var(--line); }
.partner-detail dl > div {
  display: grid; grid-template-columns: 120px 1fr; gap: 26px;
  padding: 26px 6px; border-bottom: 1px solid var(--line);
}
.partner-detail dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-3);
  padding-top: 4px;
}
.partner-detail dd { color: var(--ink-2); font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.partner-detail dd.empty { color: var(--ink-3); }
.detail-nav { display: flex; gap: 26px; margin-top: 34px; }
.detail-nav a { color: var(--ink-2); font-size: 13px; text-decoration: none; transition: color var(--t) var(--ease); }
.detail-nav a:hover { color: var(--ink); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(3, 5, 10, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal {
  width: min(420px, 92vw); background: var(--panel);
  border: 1px solid var(--line); padding: 40px 36px 32px;
  transform: translateY(14px); transition: transform .35s var(--ease);
}
.modal-mask.show .modal { transform: none; }
.m-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-3);
  margin-bottom: 16px;
}
.modal h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.modal p { color: var(--ink-2); font-size: 14px; margin-bottom: 26px; }
.modal .btn { width: 100%; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ev-main { grid-template-columns: 56px 1fr auto; gap: 16px; }
  .wi { grid-template-columns: 88px 1fr; }
  .wi-meta { display: none; }
}
@media (max-width: 680px) {
  .nav-inner { padding: 12px 18px; }
  .nav .links {
    position: fixed; top: 0; right: -100%; width: 240px; height: 100vh;
    background: var(--panel); flex-direction: column; align-items: flex-start;
    padding: 84px 28px; gap: 18px; transition: right .4s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav .links.open { right: 0; }
  .nav .links a { font-size: 14px; padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-hamburger { display: flex; }
  .hero-in { padding: 120px 20px 36px; }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero h1 .l2 { padding-left: clamp(24px, 8vw, 48px); }

  .sec-in { padding: 64px 20px; }
  .panel-head { flex-direction: column; gap: 6px; }

  .ev-main { grid-template-columns: 1fr auto; gap: 12px; padding: 24px 4px; }
  .ev-addr { display: none; }
  .ev-name { text-align: left; }
  .ev-desc { text-align: left; }

  .wi { padding: 22px 4px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }

  .page-head { padding: 110px 20px 32px; }
  .partner-detail dl > div { grid-template-columns: 1fr; gap: 8px; }
  .foot-in { flex-direction: column; gap: 24px; padding: 44px 20px 26px; }
  .foot-meta { padding: 14px 20px 22px; }
}

/* ---------- 减少动态：一切静止，内容直接可见 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim [data-reveal] { opacity: 1; transform: none; }
}
