/* 水墨 × 霓虹：墨色底、宣纸色字、青色霓虹、朱砂印章。
   不加载任何外部字体，国内访问也快：中文用系统宋体，等宽用系统 mono。 */
:root {
  color-scheme: dark;
  --ink: #0b0d10;
  --ink-2: #12161b;
  --ink-3: #1b2129;
  --paper: #ece6d9;
  --paper-dim: #a9a399;
  --paper-faint: #8f897f;
  --neon: #3ef2e0;
  --neon-soft: rgba(62, 242, 224, .16);
  --cinnabar: #ff4d6d;
  --seal: #c8323f;
  --violet: #8b7bff;
  --line: rgba(236, 230, 217, .12);

  /* 全站统一用微软雅黑；Mac 上没装时退到苹方 */
  --serif: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --sans: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.wx-thumb { position: absolute; width: 0; height: 0; overflow: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 细微的宣纸颗粒 */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; color: var(--neon); }
.mono { font-family: var(--mono); letter-spacing: .08em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--paper); color: var(--ink); padding: 8px 12px; }

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

/* ---------- 印章 ---------- */
.seal {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.05;
  writing-mode: vertical-rl;
  letter-spacing: .05em;
  color: #fff3ef;
  background: var(--seal);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 0 18px rgba(200, 50, 63, .35);
  transform: rotate(-4deg);
}
.seal--sm { width: 32px; height: 32px; font-size: 11px; border-radius: 4px; }
.logo { display: block; width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(62, 242, 224, .25)); transition: transform .5s var(--ease); }
.nav__brand:hover .logo { transform: rotate(-20deg) scale(1.08); }
.logo--lg { width: 56px; height: 56px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(11, 13, 16, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: transparent;
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__name { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 18px; letter-spacing: .04em; }
.nav__cn { letter-spacing: .12em; }
.nav__name i { font-style: normal; color: var(--neon); opacity: .7; }
.nav__en { font-size: 16px; color: var(--paper-dim); }
/* 导航下方一道很轻的分隔线，中间带一点主色 */
.nav::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(236, 230, 217, 0), rgba(236, 230, 217, .16) 18%, color-mix(in srgb, var(--neon) 45%, transparent) 50%, rgba(236, 230, 217, .16) 82%, rgba(236, 230, 217, 0));
  pointer-events: none;
}
.nav.is-solid::after { left: 0; right: 0; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav__links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--paper-dim);
  position: relative;
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--neon); box-shadow: 0 0 8px var(--neon);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__lang {
  margin-left: clamp(12px, 2vw, 24px);
  padding: 5px 11px;
  border: 1px solid rgba(236, 230, 217, .28);
  border-radius: 999px;
  font-size: 12px; letter-spacing: .08em;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color .25s, border-color .25s, box-shadow .25s;
}
.nav__lang:hover, .nav__lang:focus-visible { color: var(--paper); border-color: var(--neon); box-shadow: 0 0 14px rgba(62, 242, 224, .3); }
.nav__links { margin-left: auto; }
.nav__brand { flex-shrink: 0; }
.nav__name { white-space: nowrap; }
/* 手机上导航只留作品、关于、联系，星系和知识就在首屏下面，往下滑就到 */
@media (max-width: 640px) {
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 14px; }
  .nav__links a[href="#systems"], .nav__links a[href="#brain"], .nav__links a[href="#log"] { display: none; }
  .nav__lang { margin-left: 12px; padding: 4px 9px; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--neon {
  color: var(--ink);
  background: var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 0 24px rgba(62, 242, 224, .35);
  font-weight: 600;
}
.btn--neon:hover { box-shadow: 0 0 0 1px var(--neon), 0 0 40px rgba(62, 242, 224, .6); }
.btn--ghost {
  color: var(--paper);
  border: 1px solid rgba(236, 230, 217, .3);
  background: rgba(11, 13, 16, .25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--paper); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas, .hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.hero__video { object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 18% 52%, rgba(5, 6, 10, .62) 0%, rgba(5, 6, 10, 0) 70%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 13, 16, 0) 20%);
}
.hero__copy { max-width: 640px; position: relative; z-index: 2; pointer-events: none; will-change: opacity, transform; }
.hero__copy .btn { pointer-events: auto; }
.hero__copy a { pointer-events: auto; }
.eyebrow { margin: 0 0 18px; font-size: 12px; color: var(--neon); }
.eyebrow .mono, .eyebrow.mono { letter-spacing: .3em; }
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 8.4vw, 124px);
  line-height: 1.02;
  letter-spacing: .02em;
}
.hero__line {
  display: block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(18px);
  animation: inkIn 1.1s var(--ease) forwards;
  animation-delay: calc(.05s + var(--d) * .2s);
}
.hero__line--neon {
  /* 空心霓虹字：先描边再填深色，把黑体字内部笔画重叠处的线盖掉，只留外轮廓发光 */
  color: #07090e;
  -webkit-text-stroke: 3px var(--neon);
  paint-order: stroke fill;
  text-shadow: 0 0 22px rgba(62, 242, 224, .55);
}
@keyframes inkIn { to { opacity: 1; filter: blur(0); transform: none; } }
.hero__lede {
  margin: 28px 0 8px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--paper);
  max-width: 30em;
  /* 首屏最大的一段字：第一帧就可见（只做轻微上浮），让浏览器尽早记下「主内容已出现」 */
  animation: riseIn .8s var(--ease) both;
}
@keyframes riseIn { from { transform: translateY(10px); } }
.hero__sub {
  margin: 0;
  font-size: 12px;
  color: var(--paper-faint);
  opacity: 0; animation: fadeUp .8s var(--ease) .45s forwards;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px;
  opacity: 0; animation: fadeUp .8s var(--ease) .6s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero__poem {
  position: absolute;
  right: var(--gutter);
  top: 18vh;
  display: flex; gap: 14px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: .6em;
  color: rgba(236, 230, 217, .55);
  pointer-events: none;
}
.hero__poem span:last-child { margin-top: 3em; }
.hero__hint {
  position: absolute;
  left: 50%; bottom: 40px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 11px;
  color: var(--paper-faint);
  transition: opacity .8s;
  pointer-events: none;
  white-space: nowrap;
}
.hero__hint.is-gone { opacity: 0; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 36px;
  width: 22px; height: 36px;
  border: 1px solid rgba(236, 230, 217, .35);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.has-video .hero__hint { display: none; }

/* ---------- 小机器人 ---------- */
.bot {
  position: absolute;
  top: 0; left: 0;
  z-index: 40;
  width: 92px;
  cursor: pointer;
  transform-origin: 50% 100%;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.bot__svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.bot__bob { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }
.bot__bulb { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.bot__eye { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
.bot.is-blink .bot__eye { transform: scaleY(.12); }
.bot__arm { transform-box: fill-box; transform-origin: 0 0; }
.bot.is-wave .bot__arm--r { animation: wave .5s ease-in-out 3; transform-origin: 0% 0%; }
@keyframes wave { 50% { transform: rotate(-70deg); } }
.bot.is-jump .bot__bob { animation: jump .6s var(--ease); }
@keyframes jump { 40% { transform: translateY(-18px) rotate(-4deg); } 100% { transform: translateY(0); } }
.bot__bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 6px) scale(.92);
  width: max-content; min-width: 132px; max-width: 220px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(236, 230, 217, .96);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.bot__bubble::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  border: 6px solid transparent; border-top-color: rgba(236, 230, 217, .96);
  transform: translateX(-50%);
}
.bot__bubble.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
/* 离开首屏后停在右下角 */
.bot.is-docked {
  position: fixed;
  top: auto; left: auto;
  right: 20px; bottom: 16px;
  width: 64px;
  transform: none !important;
  animation: dockIn .5s var(--ease);
}
.bot.is-docked .bot__bubble { left: auto; right: 0; transform: translate(0, 6px) scale(.92); }
.bot.is-docked .bot__bubble.is-on { transform: none; }
.bot.is-docked .bot__bubble::after { left: auto; right: 22px; transform: none; }
@keyframes dockIn { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; } }

/* ---------- 通用分区 ---------- */
section { position: relative; }
.section-head { max-width: var(--maxw); margin: 0 auto 64px; }
.section-head h2, .contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  font-weight: 700;
}
.section-head__lede { margin: 14px 0 0; color: var(--paper-dim); font-size: 17px; }

/* ---------- 星系动态（更新日志） ---------- */
.log { padding: 40px var(--gutter) 40px; }
.log__list {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 0 0 0 30px;
  list-style: none;
}
.log__list::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 18px; width: 1px;
  background: linear-gradient(180deg, var(--neon), rgba(236, 230, 217, .08));
  opacity: .55;
}
.log__item { position: relative; padding: 0 0 28px; }
.log__item::before {
  content: ""; position: absolute; left: -29px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 12px var(--c);
}
.log__item:first-child::before { animation: pulse 1.6s infinite; }
.log__meta { display: flex; gap: 14px; align-items: baseline; margin: 0; font-size: 12px; color: var(--paper-faint); letter-spacing: .06em; }
.log__sys { color: var(--c); }
.log__text { margin: 6px 0 0; font-size: 17px; line-height: 1.6; color: var(--paper); }
.log__item:first-child .log__text { font-size: 19px; }
.log__text a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(236, 230, 217, .22); transition: border-color .25s, color .25s; }
.log__text a:hover, .log__text a:focus-visible { color: #fff; border-bottom-color: var(--c); }
.log__text a span { color: var(--c); }

/* 英文页：拉丁字母比汉字窄，标题行距和字距略调 */
html[lang="en"] .gx .hero__title { letter-spacing: 0; }
html[lang="en"] .hero__lede { max-width: 34em; }

/* ---------- 作品 ---------- */
.works { padding: 120px var(--gutter) 60px; }
.work {
  max-width: var(--maxw);
  margin: 0 auto 140px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.work--flip .work__media { order: 2; }
.work__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .55);
  aspect-ratio: 16 / 10;
}
.work__media img, .work__media video { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.work__media video { object-position: center; }
.work:hover .work__media img, .work:hover .work__media video { transform: scale(1.03); }
.work__media::after {
  /* 霓虹描边，悬停时亮起 */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(62, 242, 224, 0);
  transition: box-shadow .5s;
}
.work:hover .work__media::after { box-shadow: inset 0 0 0 1px rgba(62, 242, 224, .6), inset 0 0 40px rgba(62, 242, 224, .12); }
.work__live {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(11, 13, 16, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper);
}
.work__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse 1.6s infinite; }
.work__live--local i { background: #f5b84b; box-shadow: 0 0 10px #f5b84b; }
.work__video { object-position: center; }
.work__play {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(62, 242, 224, .45);
  border-radius: 999px;
  font: inherit; font-size: 12px;
  color: var(--paper);
  background: rgba(11, 13, 16, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
}
.work__play i {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-style: normal; font-size: 9px; padding-left: 2px;
  color: var(--ink); background: var(--neon);
}
.work__play:hover, .work__play:focus-visible { border-color: var(--neon); box-shadow: 0 0 24px rgba(62, 242, 224, .35); }
button.btn { font: inherit; font-size: 15px; cursor: pointer; }
.film {
  width: min(1100px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--paper);
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, .7);
  overflow: visible;
}
.film::backdrop { background: rgba(4, 6, 10, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
.film__cap { position: absolute; left: 0; top: calc(100% + 10px); margin: 0; font-size: 12px; color: var(--paper-faint); }
.film__close {
  position: absolute; right: -6px; top: -44px;
  width: 36px; height: 36px;
  border: 1px solid rgba(236, 230, 217, .3); border-radius: 50%;
  font-size: 22px; line-height: 1;
  color: var(--paper); background: rgba(11, 13, 16, .6);
  cursor: pointer;
}
.film__close:hover, .film__close:focus-visible { border-color: var(--paper); }
.film__sound {
  position: absolute; left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--neon); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--neon);
  box-shadow: 0 0 24px rgba(62, 242, 224, .45);
  cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s;
}
.film__sound i { font-style: normal; }
.film__sound[aria-pressed="true"] { color: var(--paper); background: rgba(11, 13, 16, .72); box-shadow: none; }
.work__num {
  margin: 0;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 230, 217, .35);
}
.work__title {
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
}
.work__title .mono { display: block; margin-top: 6px; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--neon); letter-spacing: .2em; }
.work__desc { margin: 0 0 18px; color: var(--paper); opacity: .88; }
.work__points { margin: 0 0 22px; padding: 0; list-style: none; color: var(--paper-dim); font-size: 15px; }
.work__points li { position: relative; padding-left: 20px; margin: 6px 0; }
.work__points li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--cinnabar); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.tags li { font-size: 11px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--paper-dim); }
.work__note { margin: 0; font-size: 14px; color: var(--paper-faint); }

/* 墨迹晕开的出现效果 */
.ink-mask {
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, #000 var(--r, 0%), transparent calc(var(--r, 0%) + 18%));
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, #000 var(--r, 0%), transparent calc(var(--r, 0%) + 18%));
}
.reveal.is-in .ink-mask { animation: inkSpread 1.6s var(--ease) forwards; }
@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes inkSpread { to { --r: 140%; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 关于 ---------- */
.about { padding: 80px var(--gutter) 120px; }
.about__grid { max-width: var(--maxw); margin: 0 auto; }
.about__intro {
  margin: 0 0 56px;
  max-width: 34em;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.7;
}
.about__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0));
  overflow: hidden;
  transition: border-color .4s, transform .4s var(--ease);
}
.pillar:hover { border-color: rgba(62, 242, 224, .45); transform: translateY(-4px); }
.pillar__glyph {
  position: absolute; right: -6px; bottom: -28px;
  font-family: var(--serif); font-size: 120px; line-height: 1;
  color: rgba(236, 230, 217, .05);
  transition: color .4s;
}
.pillar:hover .pillar__glyph { color: rgba(62, 242, 224, .1); }
.pillar h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; }
.pillar p { margin: 0; color: var(--paper-dim); font-size: 15px; position: relative; }

/* ---------- 联系 ---------- */
.contact { padding: 100px var(--gutter) 140px; text-align: center; }
.contact__inner { max-width: 720px; margin: 0 auto; }
.contact p { color: var(--paper-dim); font-size: 17px; }
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact::before {
  /* 一缕横向霓虹弦，呼应首屏 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  box-shadow: 0 0 14px var(--neon);
  opacity: .5;
}

.foot {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 36px var(--gutter) 56px;
  color: var(--paper-faint);
  font-size: 12px;
}
.foot p { margin: 0; }

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .work, .work--flip { grid-template-columns: 1fr; margin-bottom: 96px; }
  .work--flip .work__media { order: 0; }
  .about__cards { grid-template-columns: 1fr; }
  .hero { align-items: start; padding-top: 22vh; }
  .hero.gx { padding-top: 12vh; }
  .hero__poem { top: auto; bottom: 28vh; font-size: 16px; }
  .hero__veil { background: linear-gradient(180deg, rgba(11, 13, 16, .55) 0%, rgba(11, 13, 16, .25) 55%, rgba(11, 13, 16, .15) 85%, var(--ink) 100%); }
  .hero__scroll { display: none; }
  .nav__name i, .nav__en { display: none; }
  .nav__name { font-size: 16px; }
  .bot { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__line, .hero__lede, .hero__sub, .hero__cta { opacity: 1; filter: none; transform: none; }
  .ink-mask { -webkit-mask-image: none; mask-image: none; }
  html { scroll-behavior: auto; }
}

/* ================= 银河系首屏 ================= */
.gx .hero__canvas { cursor: grab; touch-action: pan-y; background: #03040a; }
.gx .hero__canvas:active { cursor: grabbing; }
.no-webgl .gx .hero__canvas {
  background:
    radial-gradient(ellipse 30% 18% at 68% 50%, rgba(255, 214, 160, .35), transparent 70%),
    radial-gradient(ellipse 55% 30% at 68% 52%, rgba(139, 123, 255, .18), transparent 70%),
    #03040a;
}
.gx .hero__copy { max-width: 640px; }
.gx .hero__title { font-size: calc(clamp(38px, 5.4vw, 84px) * var(--title-scale, 1)); white-space: nowrap; }
.gx .hero__copy { margin-top: calc(var(--lift, 7) * -1vh); margin-left: clamp(0px, 3.2vw, 60px); }
.gx .hero__lede { font-size: clamp(15px, 1.55vw, 17px); max-width: 32em; margin-top: 22px; }
.gx .hero__veil {
  background:
    radial-gradient(ellipse 55% 75% at 14% 55%, rgba(3, 4, 10, .7) 0%, rgba(3, 4, 10, 0) 72%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 13, 16, 0) 16%);
}
.gx__marks { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.gx-mark {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  margin: -9px 0 0 -9px;
  padding: 0; border: 0; background: none;
  color: var(--paper);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity .6s;
  -webkit-tap-highlight-color: transparent;
}
.gx-mark__dot {
  position: relative;
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--c);
  box-shadow: 0 0 14px var(--c), inset 0 0 6px var(--c);
}
.gx-mark__dot::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 10px var(--c);
}
.gx-mark__dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--c); opacity: 0;
  animation: ping 2.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.gx-mark__label {
  /* 星系名：用星系自己的颜色发光，三层光晕由近到远，一层暗影托住字形 */
  display: flex; flex-direction: column; line-height: 1.2;
  font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: .08em;
  text-align: left;
  color: color-mix(in srgb, var(--c) 22%, #ffffff);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .85),
    0 0 8px color-mix(in srgb, var(--c) 95%, transparent),
    0 0 22px color-mix(in srgb, var(--c) 70%, transparent),
    0 0 46px color-mix(in srgb, var(--c) 45%, transparent);
  animation: markGlow 4.2s ease-in-out infinite;
  transition: transform .3s var(--ease), filter .3s;
}
.gx-mark:nth-child(2n) .gx-mark__label { animation-delay: -1.4s; }
.gx-mark:nth-child(3n) .gx-mark__label { animation-delay: -2.8s; }
@keyframes markGlow { 50% { filter: brightness(1.25) drop-shadow(0 0 6px color-mix(in srgb, var(--c) 50%, transparent)); } }
.gx-mark__label small {
  font-size: 9px; font-weight: 500; letter-spacing: .22em; color: var(--c); margin-top: 3px;
  text-shadow: 0 0 8px color-mix(in srgb, var(--c) 80%, transparent), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent);
}
.gx-mark:hover .gx-mark__label, .gx-mark.is-hot .gx-mark__label, .gx-mark.is-active .gx-mark__label {
  transform: translateX(3px);
  filter: brightness(1.35) drop-shadow(0 0 10px color-mix(in srgb, var(--c) 70%, transparent));
  animation: none;
}
@media (prefers-reduced-motion: reduce) { .gx-mark__label { animation: none; } }
.gx-mark:hover .gx-mark__dot, .gx-mark.is-hot .gx-mark__dot, .gx-mark.is-active .gx-mark__dot { transform: scale(1.25); box-shadow: 0 0 26px var(--c), inset 0 0 8px var(--c); }
.gx-mark__dot { transition: transform .3s var(--ease), box-shadow .3s; }
.gx-mark.is-flip { flex-direction: row-reverse; }
.gx-mark.is-flip .gx-mark__label { text-align: right; align-items: flex-end; }

/* 个人标签 */
.gx__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 22px 0 0;
  max-width: 560px;
  opacity: 0; animation: fadeUp .8s var(--ease) .5s forwards;
}
.gx-tag {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(236, 230, 217, .16);
  background: rgba(10, 12, 20, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--paper-dim);
  font: 12px/1.4 var(--sans);
  cursor: pointer;
  transition: color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.gx-tag i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--c); }
.gx-tag.is-live i { background: var(--c); box-shadow: 0 0 8px var(--c); }
.gx-tags__label { align-self: center; margin-right: 4px; font-size: 10px; letter-spacing: .22em; color: var(--paper-faint); }
.gx-tag:hover { color: var(--paper); border-color: var(--c); box-shadow: 0 0 18px -4px var(--c); transform: translateY(-2px); }

/* 星系面板 */
.gx__panel {
  position: absolute; z-index: 5;
  top: 84px; right: var(--gutter); bottom: 32px;
  width: min(540px, calc(100% - 32px));
  overflow-y: auto;
  padding: 34px 32px 26px;
  border-radius: 18px;
  border: 1px solid rgba(236, 230, 217, .12);
  background: linear-gradient(180deg, rgba(14, 16, 28, .78), rgba(8, 9, 16, .86));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: translateX(24px); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .4s, visibility 0s .5s;
}
.gx__panel.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .4s; }
.gx__panel::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  box-shadow: 0 0 12px var(--c);
}
.gx-panel__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: none; color: var(--paper-dim);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.gx-panel__close:hover { color: var(--paper); border-color: var(--paper-dim); }
.gx-panel__en { margin: 0; font-size: 13px; color: var(--c); letter-spacing: .26em; }
.gx__panel h2 { margin: 8px 0 12px; font-family: var(--serif); font-size: 44px; line-height: 1.15; }
.gx-panel__desc { margin: 0 0 10px; color: var(--paper-dim); font-size: 17px; line-height: 1.7; }
.gx-panel__count { margin: 0 0 18px; font-size: 13px; color: var(--paper-faint); }
.gx-panel__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.gx-panel__nav button {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--paper-dim); font: 15px var(--sans); cursor: pointer;
}
.gx-panel__nav button:hover { color: var(--paper); border-color: var(--c); }
.gx-panel__tip { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--paper-faint); }
/* 面板里的条目比索引卡片里的大一号 */
.gx__panel .sys-list { gap: 10px; }
.gx__panel .sys-item > a, .gx__panel .sys-item:not(:has(a)) { padding: 16px 18px; }
.gx__panel .sys-item strong { font-size: 18px; }
.gx__panel .sys-item__desc { font-size: 15px; line-height: 1.7; }
.gx__panel .sys-item__type { font-size: 12px; }
.gx__panel .badge { font-size: 12px; padding: 3px 10px; }
.gx.is-focused .hero__copy { opacity: 0 !important; pointer-events: none; transition: opacity .4s; }
.gx.is-focused .hero__hint { opacity: 0; }

/* 星系条目（面板和索引共用） */
.sys-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sys-item > a, .sys-item:not(:has(a)) {
  position: relative;
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(236, 230, 217, .08);
  background: rgba(255, 255, 255, .02);
  text-decoration: none;
  transition: border-color .25s, background .25s;
}
.sys-item > a:hover { border-color: var(--c); background: rgba(255, 255, 255, .04); }
.sys-item__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sys-item__type { font-size: 10px; color: var(--paper-faint); letter-spacing: .14em; }
.sys-item strong { display: block; font-weight: 600; font-size: 15px; color: var(--paper); }
.sys-item__desc { display: block; margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--paper-dim); }
.sys-item__go { position: absolute; right: 14px; bottom: 12px; color: var(--c); font-size: 13px; }
.badge { font-size: 10px; padding: 2px 8px; border-radius: 999px; letter-spacing: .08em; }
.badge--live { color: var(--ink); background: var(--neon); }
.badge--ready { color: var(--paper-faint); border: 1px solid rgba(236, 230, 217, .18); background: rgba(236, 230, 217, .05); }
.badge--forming { color: #d9a6ff; border: 1px dashed rgba(217, 166, 255, .6); }
.badge--closed { color: var(--paper-faint); border: 1px solid rgba(236, 230, 217, .18); background: rgba(236, 230, 217, .05); }

/* 星系索引 */
.systems { padding: 110px var(--gutter) 40px; }
.sys-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.sys-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 22px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%),
    rgba(255, 255, 255, .015);
  transition: border-color .4s, transform .4s var(--ease);
}
.sys-card:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-3px); }
.sys-card header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sys-card__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); align-self: center; }
.sys-card h3 { margin: 0; font-family: var(--serif); font-size: 24px; }
.sys-card__en { font-size: 10px; color: var(--c); letter-spacing: .2em; }
.sys-card__desc { margin: 12px 0 6px; color: var(--paper-dim); font-size: 14px; }
.sys-card__count { margin: 0 0 14px; font-size: 11px; color: var(--paper-faint); }
.sys-card .sys-list { flex: 1; align-content: start; }
.sys-card__fly {
  align-self: flex-start; margin-top: 14px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: none;
  color: var(--paper-dim); font-size: 11px; cursor: pointer;
}
.sys-card__fly:hover { color: var(--paper); border-color: var(--c); }

@media (max-width: 860px) {
  .gx .hero__copy { padding-top: 0; margin-top: 0; margin-left: 0; }
  .gx__tags { gap: 6px; }
  .gx-tag { font-size: 12px; padding: 5px 10px 5px 8px; }
  .gx-mark__label { font-size: 13px; }
  .gx-mark__label small { display: none; }
  .gx .hero__hint { display: none; }
  .gx__panel {
    top: auto; left: 12px; right: 12px; bottom: 12px; width: auto;
    max-height: 58%;
    transform: translateY(24px);
  }
}

/* ================= 过客：卫星、飞船、流星 ================= */
.gx__fly { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fly__meteors { position: absolute; inset: 0; width: 100%; height: 100%; }
.fly {
  position: absolute; left: 0; top: 0;
  padding: 0; border: 0; background: none;
  pointer-events: auto; cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(62, 242, 224, .25));
  -webkit-tap-highlight-color: transparent;
}
.fly svg { display: block; width: 100%; height: auto; overflow: visible; }
.fly--satellite { width: 64px; margin: -16px 0 0 -32px; opacity: .85; }
.fly--rocket { width: 92px; margin: -20px 0 0 -46px; }
.fly--ufo { width: 76px; margin: -26px 0 0 -38px; }
.fly__blink { animation: pulse 1.1s steps(2) infinite; }
.fly__flame { transform-box: fill-box; transform-origin: 100% 50%; animation: flame .12s ease-in-out infinite alternate; }
@keyframes flame { to { transform: scaleX(.7) scaleY(.9); } }
.fly__beam { animation: pulse 1.4s ease-in-out infinite; }
.fly.is-caught { filter: drop-shadow(0 0 18px rgba(255, 209, 102, .9)); }

/* ================= HUD ================= */
.gx__hud {
  position: absolute; left: var(--gutter); right: calc(var(--gutter) + 72px); bottom: 22px; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 10px; letter-spacing: .18em; color: rgba(236, 230, 217, .42);
  pointer-events: none;
  opacity: 0; animation: fadeUp 1s var(--ease) 2.4s forwards;
}
.gx__hud b { font-weight: 500; color: var(--neon); }
.gx__hud-l i {
  display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 8px var(--neon); animation: pulse 1.6s infinite; vertical-align: 1px;
}
.gx .hero__hint { bottom: 46px; }
.gx .hero__scroll { display: none; }
.gx.is-focused .gx__hud { opacity: 0 !important; }

/* ================= 光标：小流星 ================= */
.cursor-comet { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; }
.cursor-comet__head {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px;
  background: radial-gradient(circle, #fffbe8 0 18%, #ffd36b 34%, rgba(255, 190, 80, .35) 55%, transparent 72%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px rgba(255, 210, 110, .9));
  animation: twinkle 1.6s ease-in-out infinite;
  transition: transform .25s var(--ease);
}
.cursor-comet__tail {
  position: absolute; left: 0; top: -1.5px; height: 3px; width: 0;
  transform-origin: 0 50%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 220, 140, .85), rgba(255, 180, 90, .35) 40%, rgba(62, 242, 224, 0));
  filter: blur(.4px);
}
.cursor-comet.is-hover .cursor-comet__head { transform: scale(1.7) rotate(45deg); }
@keyframes twinkle { 50% { filter: drop-shadow(0 0 10px rgba(255, 220, 130, 1)); } }
.cursor-spark {
  position: fixed; z-index: 299; width: 5px; height: 5px; pointer-events: none;
  background: #ffd36b; border-radius: 50%;
  box-shadow: 0 0 8px #ffcf6b;
}

@media (max-width: 860px) {
  .gx__hud { display: none; }
  .fly--rocket { width: 70px; }
  .fly--satellite { width: 50px; }
}

/* ================= 设计舱 ================= */
.dz-toggle {
  position: fixed; z-index: 120;
  left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(236, 230, 217, .22); background: rgba(10, 12, 20, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--paper); font: 600 13px var(--sans); cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.dz-toggle span { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.dz-toggle:hover { border-color: var(--neon); }
.dz {
  position: fixed; z-index: 130;
  left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(340px, calc(100vw - 32px)); max-height: min(78vh, 760px);
  display: flex; flex-direction: column;
  border-radius: 18px; border: 1px solid rgba(236, 230, 217, .14);
  background: rgba(9, 11, 19, .92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  color: var(--paper); font: 13px/1.5 var(--sans);
}
.dz__head { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.dz__head strong { font-family: var(--serif); font-size: 18px; }
.dz__head .mono { font-size: 9px; letter-spacing: .24em; color: var(--neon); }
.dz__close { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--paper-dim); font-size: 16px; cursor: pointer; }
.dz__body { overflow-y: auto; padding: 4px 18px 12px; display: grid; gap: 10px; }
.dz__group { margin: 10px 0 0; font-size: 10px; letter-spacing: .22em; color: var(--paper-faint); font-weight: 500; }
.dz__row { display: grid; gap: 6px; }
.dz__row > span { display: flex; justify-content: space-between; color: var(--paper-dim); }
.dz__row output { color: var(--neon); font-family: var(--mono); font-size: 11px; }
.dz__row--inline { grid-template-columns: 1fr auto; align-items: center; }
.dz input[type="text"], .dz textarea {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(236, 230, 217, .16); background: rgba(255, 255, 255, .04);
  color: var(--paper); font: 13px/1.5 var(--sans); resize: vertical;
}
.dz input[type="text"]:focus, .dz textarea:focus { outline: none; border-color: var(--neon); }
.dz input[type="range"] { width: 100%; accent-color: var(--neon); }
.dz input[type="color"] { width: 44px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.dz input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--neon); }
.dz__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.dz__btn { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(236, 230, 217, .2); background: none; color: var(--paper); font: 12px var(--sans); cursor: pointer; }
.dz__btn:hover { border-color: var(--neon); }
.dz__btn--main { background: var(--neon); color: var(--ink); border-color: var(--neon); font-weight: 600; }
.dz__status { flex-basis: 100%; margin: 2px 0 0; min-height: 1.4em; color: var(--paper-dim); font-size: 12px; white-space: pre-wrap; word-break: break-all; }

/* ================= 折叠卡片 ================= */
.work__media.stack {
  overflow: visible; background: none; box-shadow: none;
  cursor: pointer; margin-top: 36px;
  -webkit-tap-highlight-color: transparent;
}
.work__media.stack::after { display: none; }
.stack__card {
  position: absolute; inset: 0; margin: 0;
  border-radius: 14px; overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .55);
  transform-origin: 50% 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease), filter .6s;
}
.stack__card img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.stack__card figcaption {
  position: absolute; right: 12px; top: 12px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; letter-spacing: .14em;
  background: rgba(11, 13, 16, .78); color: var(--paper);
  opacity: 0; transition: opacity .4s;
}
.stack__card[data-pos="0"] { z-index: 3; transform: none; }
.stack__card[data-pos="0"] figcaption { opacity: 1; }
.stack__card[data-pos="1"] { z-index: 2; transform: translateY(-18px) scale(.95); filter: brightness(.55); }
.stack__card[data-pos="2"] { z-index: 1; transform: translateY(-34px) scale(.9); filter: brightness(.35); }
.stack:hover .stack__card[data-pos="1"] { transform: translateY(-26px) scale(.95) rotate(-1.2deg); }
.stack:hover .stack__card[data-pos="2"] { transform: translateY(-48px) scale(.9) rotate(1.4deg); }
.stack__card.is-leaving { transform: translateY(40px) scale(1.02) rotate(3deg) !important; opacity: 0; }
.stack .work__live { z-index: 4; }
.stack__hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  padding: 6px 10px; border-radius: 999px; font-size: 11px;
  background: rgba(11, 13, 16, .78); color: var(--paper-dim);
}
.stack__hint b { color: var(--neon); font-weight: 500; }

/* ================= 知识星图 ================= */
.brain { padding: 110px var(--gutter) 60px; }
.brain__stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; font-size: 11px; letter-spacing: .12em; color: var(--paper-faint); }
.brain__stats b { color: var(--neon); font-weight: 500; font-size: 14px; margin-right: 4px; }
.brain__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.brain__left h3 { margin: 0 0 18px; font-family: var(--serif); font-size: 22px; }
.brain__left h3 small, .brain__layer h4 small { margin-left: 10px; font-size: 10px; letter-spacing: .22em; color: var(--paper-faint); font-weight: 400; }
.brain__frame { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.brain__frame::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--neon), transparent); opacity: .35; }
.brain__layer { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 10px 0; }
.brain__step { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(62, 242, 224, .5); background: var(--ink); font-size: 11px; color: var(--neon); }
.brain__layer h4 { margin: 4px 0 4px; font-size: 16px; }
.brain__layer p { margin: 0 0 8px; color: var(--paper-dim); font-size: 13px; }
.brain__zones, .brain__legend { display: flex; flex-wrap: wrap; gap: 6px; }
.brain__zone {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 8%, transparent);
  color: var(--paper); font: 12px var(--sans); cursor: pointer;
  transition: background .25s, border-color .25s;
}
.brain__zone em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--c); }
.brain__zone:hover, .brain__zone.is-on { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); }
.brain__zone.is-private { --c: #6f6b64; cursor: default; color: var(--paper-faint); border-style: dashed; }
.brain__rules { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); display: grid; gap: 10px; }
.brain__rules p { margin: 0; color: var(--paper-dim); font-size: 13px; }
.brain__rules b { display: block; color: var(--paper); font-size: 13px; margin-bottom: 2px; }
.brain__plugins { display: flex; flex-wrap: wrap; gap: 6px; }
.brain__plugins span { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 10px; color: var(--paper-dim); }
.brain__private { font-size: 12px !important; color: var(--paper-faint) !important; }
.brain__map { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #05060c; }
.brain__canvas { width: 100%; height: 100%; display: block; }
.brain__tip {
  position: absolute; left: 0; top: 0; max-width: 220px; pointer-events: none;
  padding: 8px 10px; border-radius: 10px; background: rgba(11, 13, 16, .92); border: 1px solid var(--line);
  font-size: 12px; line-height: 1.45;
}
.brain__tip b { display: block; font-weight: 600; color: var(--paper); }
.brain__tip span { color: var(--c); font-size: 11px; }
.brain__search {
  position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px; background: rgba(11, 13, 16, .8); border: 1px solid var(--line);
}
.brain__search span { font-size: 11px; color: var(--neon); }
.brain__search input { width: 220px; max-width: 46vw; border: 0; background: none; color: var(--paper); font: 13px var(--sans); outline: none; }
.brain__legend { margin: 12px 0 0; }
.brain__sc { margin-top: 14px; padding: 18px 18px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.brain__sc-k { margin: 0 0 6px; font-size: 10px; letter-spacing: .24em; color: var(--neon); }
.brain__sc h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.brain__sc h4 i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.brain__sc-z { margin: 4px 0 12px; font-size: 12px; color: var(--paper-faint); }
.brain__sc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.brain__sc li button {
  position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline;
  padding: 8px 12px 10px; border-radius: 10px; border: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--paper);
}
.brain__sc li button:hover { border-color: var(--c); }
.brain__sc-t { font-size: 13px; }
.brain__sc-m { font-size: 10px; color: var(--paper-faint); }
.brain__bar { grid-column: 1 / -1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c) var(--w), rgba(236, 230, 217, .08) var(--w)); }
.brain__sc-empty { margin: 0; color: var(--paper-dim); font-size: 13px; }
@media (max-width: 860px) {
  .brain__grid { grid-template-columns: 1fr; }
  .brain__map { aspect-ratio: 1 / 1; }
}

