/* ============================================================
   盛腾游戏 SHENGTENG GAMES · 官网视觉系统
   design: anti-slop / high variance / deep motion
   ============================================================ */

:root {
  --bg: #04060c;
  --bg-2: #070b14;
  --panel: #0a101d;
  --panel-2: #0d1524;
  --line: rgba(120, 160, 220, 0.14);
  --line-strong: rgba(120, 170, 230, 0.28);
  --txt: #e9eff8;
  --muted: #8794ab;
  --dim: #55617a;
  --cyan: #35f2ff;
  --cyan-soft: rgba(53, 242, 255, 0.12);
  --violet: #8b7cff;
  --amber: #ffb020;
  --red: #ff4d5e;
  --green: #3ddc97;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-disp: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: #04121a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1b2740; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2a3a5e; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 全局氛围层 ---------- */
.noise-layer {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-shift 0.9s steps(4) infinite;
}
@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

.scanlines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2001;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.09) 2px 4px);
  mix-blend-mode: multiply;
}

.grid-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(80, 130, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 130, 200, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
}

/* ---------- 自定义光标 ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--cyan); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(53, 242, 255, 0.5);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s;
}
body.cursor-hot .cursor-ring { width: 56px; height: 56px; border-color: var(--cyan); }
@media (hover: none), (max-width: 820px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 72px;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.92), rgba(4, 6, 12, 0.75));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-disp); font-weight: 700;
  user-select: none;
}
.nav-logo .mark {
  width: 34px; height: 34px; flex: none;
}
.nav-logo .name { font-size: 17px; letter-spacing: 0.06em; }
.nav-logo .en {
  font-size: 10px; color: var(--muted); letter-spacing: 0.34em;
  display: block; line-height: 1; margin-top: 2px;
}
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 36px); list-style: none; }
.nav-links a {
  position: relative;
  font-size: 14px; color: var(--muted);
  letter-spacing: 0.08em;
  padding: 6px 2px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--txt); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-signal {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
  letter-spacing: 0.1em;
}
.nav-signal i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink-soft 2.4s infinite;
}
@keyframes blink-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-signal { display: none; }
}
.nav-burger {
  display: none; background: none; border: 1px solid var(--line-strong);
  color: var(--txt); width: 42px; height: 42px; border-radius: 8px;
  font-size: 18px;
}
@media (max-width: 900px) { .nav-burger { display: block; } }
.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: 890;
  background: rgba(4, 6, 12, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 26px;
  display: none;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px; font-size: 16px; color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- 页面容器与排版 ---------- */
.page { padding-top: 72px; min-height: 100vh; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.32em; color: var(--cyan);
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--cyan); }

h1.display {
  font-family: var(--font-disp);
  font-size: clamp(44px, 8.4vw, 118px);
  line-height: 1.02; font-weight: 700;
  letter-spacing: -0.015em;
}
h2.section-title {
  font-family: var(--font-disp);
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.12; font-weight: 700; letter-spacing: -0.01em;
}
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 56ch; }
.outline-txt {
  color: transparent;
  -webkit-text-stroke: 1px rgba(140, 180, 240, 0.35);
}
.accent { color: var(--cyan); }
.serif { font-family: var(--font-serif); }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  color: #04121a; background: var(--cyan);
  border: none; border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 0 34px rgba(53, 242, 255, 0.4); }
.btn.ghost {
  background: transparent; color: var(--txt);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 24px rgba(53, 242, 255, 0.15); }
.btn .arr { font-family: var(--font-mono); transition: transform 0.3s; }
.btn:hover .arr { transform: translateX(5px); }

/* ---------- 首页 HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
  padding: 60px clamp(20px, 4vw, 56px) 90px;
  max-width: 1440px; margin: 0 auto;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .kicker { margin-bottom: 26px; }
.hero-copy .lead { margin: 30px 0 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-deco {
  position: absolute; right: -4vw; top: 8%;
  font-family: var(--font-disp); font-weight: 700;
  font-size: clamp(120px, 20vw, 300px);
  line-height: 0.85; text-align: right;
  color: transparent;
  -webkit-text-stroke: 1px rgba(90, 140, 210, 0.13);
  pointer-events: none; user-select: none; z-index: 0;
  letter-spacing: -0.04em;
}
.hero-panel {
  position: relative; z-index: 2;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(13, 21, 36, 0.85), rgba(7, 11, 20, 0.9));
  border-radius: 14px;
  padding: 26px;
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero-panel .hp-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
  letter-spacing: 0.14em; margin-bottom: 16px;
}
.hero-panel .hp-head b { color: var(--amber); font-weight: 500; }
.echo-card {
  border: 1px solid rgba(139, 124, 255, 0.3);
  background:
    radial-gradient(120% 160% at 20% 0%, rgba(139, 124, 255, 0.16), transparent 55%),
    var(--panel);
  border-radius: 10px; padding: 22px;
}
.echo-card .tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.2em;
  color: var(--violet); border: 1px solid rgba(139, 124, 255, 0.4);
  padding: 3px 10px; border-radius: 99px; margin-bottom: 14px;
}
.echo-card h3 { font-family: var(--font-disp); font-size: 26px; margin-bottom: 6px; }
.echo-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.echo-card .meta {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; margin-top: 22px;
}
.hero-stats div {
  background: var(--panel); padding: 16px 12px; text-align: center;
}
.hero-stats b {
  display: block; font-family: var(--font-disp);
  font-size: 26px; color: var(--cyan); font-weight: 700;
}
.hero-stats span { font-size: 11px; color: var(--dim); letter-spacing: 0.1em; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-deco { display: none; }
}

/* 闪现异象层 */
.glitch-flash {
  position: fixed; inset: 0; z-index: 5000;
  background: #020308;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.glitch-flash.on { opacity: 1; pointer-events: all; cursor: pointer; }
.glitch-flash .gf-txt {
  font-family: var(--font-disp);
  font-size: clamp(40px, 9vw, 120px); font-weight: 700;
  color: var(--red);
  animation: gf-jitter 0.08s steps(2) infinite;
  text-shadow: 3px 0 var(--cyan), -3px 0 var(--violet);
  letter-spacing: 0.06em;
}
.glitch-flash .gf-sub {
  position: absolute; bottom: 18%;
  font-family: var(--font-mono); font-size: 13px; color: var(--dim);
  letter-spacing: 0.3em;
}
@keyframes gf-jitter {
  0% { transform: translate(0, 0) skewX(0); }
  50% { transform: translate(-4px, 2px) skewX(-2deg); }
  100% { transform: translate(3px, -2px) skewX(1deg); }
}

/* ---------- 坠落余韵（表世界→里世界到达瞬间） ---------- */
.arrival-veil {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  opacity: 1; pointer-events: none;
  transition: opacity 1.4s cubic-bezier(.22,.9,.3,1);
  animation: av-flick 0.3s steps(2) 3;
}
.arrival-veil.out { opacity: 0; }
@keyframes av-flick {
  0%, 100% { filter: none; }
  50% { filter: invert(1) hue-rotate(120deg); }
}

/* ---------- 通用区块 ---------- */
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .kicker { margin-bottom: 16px; }
.section-head .lead { margin-top: 18px; }
.split-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap;
}

/* 作品卡片 */
.works-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px;
}
.work-card {
  position: relative;
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  display: block;
}
.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.work-card .wc-art { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.work-card .wc-art svg { width: 100%; height: 100%; transition: transform 0.8s var(--ease-out); }
.work-card:hover .wc-art svg { transform: scale(1.06); }
.work-card .wc-body { padding: 22px 24px 26px; }
.work-card .wc-genre { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); letter-spacing: 0.2em; }
.work-card h3 { font-family: var(--font-disp); font-size: 22px; margin: 8px 0 8px; }
.work-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.w-8 { grid-column: span 8; }
.w-6 { grid-column: span 6; }
.w-4 { grid-column: span 4; }
.w-12 { grid-column: span 12; }
@media (max-width: 980px) {
  .w-8, .w-6, .w-4 { grid-column: span 12; }
}
.work-card.secret { border-style: dashed; border-color: rgba(139, 124, 255, 0.4); }
.work-card.secret .wc-art { filter: saturate(0.6); }
.secret-veil {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 12, 0.45);
  font-family: var(--font-mono); letter-spacing: 0.4em;
  color: var(--violet); font-size: 13px;
  backdrop-filter: blur(2px);
}

/* 时间轴 */
.timeline { position: relative; padding-left: 34px; max-width: 760px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(var(--cyan), var(--violet), transparent);
}
.tl-item { position: relative; padding: 0 0 38px 20px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
}
.tl-item .tl-year {
  font-family: var(--font-mono); font-size: 13px; color: var(--cyan);
  letter-spacing: 0.16em; margin-bottom: 4px;
}
.tl-item h4 { font-size: 18px; margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--muted); max-width: 60ch; }
.tl-item.corrupt::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 12px var(--red); }
.tl-item.corrupt .tl-year { color: var(--red); }
.corrupt-txt {
  color: var(--red);
  animation: corrupt-flicker 3.7s infinite;
}
@keyframes corrupt-flicker {
  0%, 91%, 94%, 100% { opacity: 1; }
  92%, 93% { opacity: 0.15; }
}

/* 团队卡片 */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.member {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); padding: 24px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.member:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.member .avatar {
  width: 64px; height: 64px; border-radius: 12px;
  margin-bottom: 16px; overflow: hidden;
  border: 1px solid var(--line-strong);
}
.member h4 { font-size: 17px; }
.member .role { font-size: 12px; color: var(--cyan); letter-spacing: 0.12em; margin: 3px 0 10px; }
.member .bio { font-size: 13px; color: var(--muted); line-height: 1.7; }
.member .eid {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
  display: flex; justify-content: space-between;
}
.member.erased {
  border-style: dashed; border-color: rgba(255, 77, 94, 0.35);
  background: linear-gradient(160deg, rgba(255, 77, 94, 0.04), var(--panel));
  cursor: pointer; position: relative;
}
.member.erased:hover { border-color: var(--red); box-shadow: 0 0 30px rgba(255, 77, 94, 0.15); }
.member.erased .avatar { filter: grayscale(1) contrast(1.3); }
.member.erased h4 { color: var(--red); }
.member.erased .role { color: var(--dim); text-decoration: line-through; }
.erased-stamp {
  position: absolute; top: 18px; right: -10px;
  transform: rotate(8deg);
  font-size: 11px; letter-spacing: 0.3em; color: var(--red);
  border: 1px solid var(--red); padding: 3px 10px;
  background: rgba(4, 6, 12, 0.85);
}

/* 新闻 */
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: grid; grid-template-columns: 130px 1fr auto;
  gap: 26px; align-items: baseline;
  padding: 30px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s;
}
.news-row:hover { background: rgba(53, 242, 255, 0.03); padding-left: 22px; }
.news-row .nd {
  font-family: var(--font-mono); font-size: 13px; color: var(--dim);
  letter-spacing: 0.06em;
}
.news-row h3 { font-size: clamp(17px, 2vw, 22px); font-weight: 600; }
.news-row .nt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--cyan); border: 1px solid var(--line-strong);
  padding: 4px 12px; border-radius: 99px; white-space: nowrap;
}
.news-row.anomaly .nd { color: var(--amber); }
.news-row.anomaly .nt { color: var(--amber); border-color: rgba(255, 176, 32, 0.4); }
@media (max-width: 700px) {
  .news-row { grid-template-columns: 1fr; gap: 8px; }
}

/* 文章页 */
.article { max-width: 780px; margin: 0 auto; padding: 60px 24px 100px; }
.article .kicker { margin-bottom: 20px; }
.article h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.25; margin-bottom: 18px; font-family: var(--font-disp); }
.article .a-meta {
  display: flex; gap: 22px;
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
  border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 38px;
}
.article p { margin-bottom: 26px; color: #c4cede; font-size: 16.5px; }
.article > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 2.6em; line-height: 1;
  color: var(--cyan); float: left;
  margin: 6px 12px 0 0;
}
.article blockquote {
  border-left: 2px solid var(--violet);
  padding: 6px 0 6px 22px; margin: 34px 0;
  color: var(--muted); font-family: var(--font-serif); font-size: 17px;
}
.article .a-foot {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
}

/* 招聘 */
.job {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); padding: 30px 34px; margin-bottom: 20px;
  transition: border-color 0.3s;
}
.job:hover { border-color: var(--line-strong); }
.job .j-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.job h3 { font-family: var(--font-disp); font-size: 22px; }
.job .j-loc { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.job ul { margin: 16px 0 0 20px; color: var(--muted); font-size: 14.5px; }
.job li { margin-bottom: 7px; }
.job.closed { opacity: 0.62; border-style: dashed; }
.job.closed h3 { color: var(--dim); text-decoration: line-through; }
.job.closed .j-loc { color: var(--red); }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.2em; color: var(--muted); margin-bottom: 10px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; color: var(--txt);
  font-family: var(--font-sans); font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 242, 255, 0.12);
}
.info-block { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: var(--panel); margin-bottom: 20px; }
.info-block h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; color: var(--cyan); margin-bottom: 14px; }
.info-block p { color: var(--muted); font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 60px clamp(20px, 4vw, 56px) 34px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; color: var(--dim); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { font-size: 14px; color: var(--muted); transition: color 0.25s; }
.footer a:hover { color: var(--cyan); }
.footer .f-brand p { font-size: 13px; color: var(--dim); max-width: 34ch; margin-top: 12px; }
.footer-bottom {
  max-width: 1280px; margin: 44px auto 0;
  padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
}
/* 页脚状态：看起来只是一行普通的系统状态文本。它在说谎。 */
.signal-dot {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none;
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
  letter-spacing: 0.1em; padding: 4px 0;
}
.signal-dot i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); opacity: 0.55;
}
.signal-dot:hover { color: var(--muted); }

/* ---------- 滚动显现 ---------- */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }

/* ---------- 调查档案面板（隐藏式入口） ---------- */
/* 入口是一颗"坏死的像素"：3px 可视点 + 隐形触控热区 */
.dead-pixel-hot {
  position: fixed; left: 0; bottom: 0; z-index: 2900;
  width: 30px; height: 30px; padding: 0;
  background: none; border: none; cursor: pointer;
}
.dead-pixel-hot i {
  position: absolute; left: 3px; bottom: 3px;
  width: 3px; height: 3px;
  background: rgba(255, 176, 32, 0.3);
  display: block;
  transition: background 0.3s, box-shadow 0.3s;
}
.dead-pixel-hot:hover i {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}
.inv-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 3100;
  width: min(430px, 94vw);
  background: rgba(6, 9, 17, 0.98);
  border-left: 1px solid rgba(255, 176, 32, 0.3);
  backdrop-filter: blur(18px);
  transform: translateX(102%);
  transition: transform 0.5s var(--ease-out);
  display: flex; flex-direction: column;
}
.inv-drawer.open { transform: translateX(0); }
.inv-head {
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.inv-head h3 { font-family: var(--font-disp); font-size: 19px; letter-spacing: 0.04em; }
.inv-head .inv-count { font-family: var(--font-mono); color: var(--amber); font-size: 13px; }
.inv-close { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; }
.inv-close:hover { color: var(--txt); }
.inv-tabs { display: flex; border-bottom: 1px solid var(--line); }
.inv-tabs button {
  flex: 1; background: none; border: none;
  padding: 13px 0; color: var(--dim);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  border-bottom: 2px solid transparent;
}
.inv-tabs button.on { color: var(--amber); border-bottom-color: var(--amber); }
.inv-body { flex: 1; overflow-y: auto; padding: 20px 26px 30px; }
.clue {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 15px 17px; margin-bottom: 12px;
  background: var(--panel);
}
.clue.found { border-color: rgba(255, 176, 32, 0.4); }
.clue .c-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.clue .c-name { font-size: 14px; font-weight: 600; }
.clue.found .c-name { color: var(--amber); }
.clue .c-state { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.14em; white-space: nowrap; }
.clue.found .c-state { color: var(--green); }
.clue .c-desc { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.65; }
.clue .hint-btn {
  margin-top: 9px; background: none;
  border: 1px dashed var(--line-strong); border-radius: 6px;
  color: var(--dim); font-size: 11.5px; padding: 5px 12px;
  font-family: var(--font-mono); letter-spacing: 0.1em;
}
.clue .hint-btn:hover { color: var(--amber); border-color: var(--amber); }
.clue .c-hint { display: none; font-size: 12.5px; color: var(--amber); margin-top: 9px; line-height: 1.65; border-left: 2px solid var(--amber); padding-left: 10px; }
.clue .c-hint.show { display: block; }
.tool-box label { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.2em; display: block; margin: 18px 0 8px; }
.tool-box textarea {
  width: 100%; min-height: 76px; resize: vertical;
  background: var(--panel); color: var(--txt);
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-mono); font-size: 12.5px; padding: 10px 12px;
}
.tool-box textarea:focus { outline: none; border-color: var(--amber); }
.tool-box .t-out {
  min-height: 60px; white-space: pre-wrap; word-break: break-all;
  background: rgba(255, 176, 32, 0.06);
  border: 1px dashed rgba(255, 176, 32, 0.3); border-radius: 8px;
  padding: 10px 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--amber);
}
.tool-box .t-btn {
  margin-top: 8px; padding: 9px 18px;
  background: rgba(255, 176, 32, 0.12); color: var(--amber);
  border: 1px solid rgba(255, 176, 32, 0.4); border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
}
.inv-reset {
  margin-top: 26px; width: 100%; padding: 10px;
  background: none; border: 1px dashed rgba(255, 77, 94, 0.4);
  color: var(--red); border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
}
.inv-note { font-size: 12px; color: var(--dim); line-height: 1.7; margin-top: 16px; }

/* ---------- 弹层（线索提示） ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(2, 3, 8, 0.82);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  max-width: 560px; width: 100%;
  background: var(--panel);
  border: 1px solid rgba(255, 176, 32, 0.4);
  border-radius: 14px; padding: 34px 36px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.45s var(--ease-spring);
}
@keyframes modal-in { from { transform: translateY(26px) scale(0.96); opacity: 0; } }
.modal .m-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--amber); margin-bottom: 14px; }
.modal h3 { font-family: var(--font-disp); font-size: 24px; margin-bottom: 14px; }
.modal p { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-bottom: 12px; }
.modal .m-code {
  font-family: var(--font-mono); font-size: 13px; color: var(--cyan);
  background: rgba(53, 242, 255, 0.07);
  border: 1px dashed rgba(53, 242, 255, 0.3);
  border-radius: 8px; padding: 12px 16px; margin: 14px 0;
  word-break: break-all;
}
.modal .m-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 4500;
  transform: translateX(-50%) translateY(20px);
  background: rgba(7, 11, 20, 0.95);
  border: 1px solid rgba(255, 176, 32, 0.45);
  color: var(--amber);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em;
  padding: 12px 22px; border-radius: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 日志页（伪装纯文本） ---------- */
.raw-page {
  background: #050505; color: #b8c4b8;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85;
  min-height: 100vh; padding: 40px clamp(16px, 5vw, 80px);
  white-space: pre-wrap; word-break: break-all;
}
.raw-page .hl { color: var(--amber); background: rgba(255, 176, 32, 0.08); }
.raw-page .sus { color: var(--red); }

/* ---------- 终端 ---------- */
.term-wrap {
  min-height: 100vh;
  background:
    radial-gradient(100% 90% at 50% 0%, rgba(20, 40, 30, 0.25), transparent 60%),
    #020604;
  display: flex; align-items: center; justify-content: center;
  padding: 90px 18px 40px;
}
.term {
  width: min(920px, 100%);
  border: 1px solid rgba(61, 220, 151, 0.3);
  border-radius: 12px;
  background: rgba(2, 8, 5, 0.92);
  box-shadow: 0 0 80px rgba(61, 220, 151, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(61, 220, 151, 0.06);
  border-bottom: 1px solid rgba(61, 220, 151, 0.2);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span {
  margin-left: 10px;
  font-family: var(--font-mono); font-size: 11.5px; color: rgba(61, 220, 151, 0.6);
  letter-spacing: 0.14em;
}
.term-screen {
  height: min(560px, 62vh);
  overflow-y: auto;
  padding: 22px 24px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.8;
  color: #7ee2ae;
  text-shadow: 0 0 6px rgba(61, 220, 151, 0.35);
}
.term-screen .t-dim { color: rgba(126, 226, 174, 0.45); }
.term-screen .t-warn { color: var(--amber); text-shadow: 0 0 6px rgba(255, 176, 32, 0.4); }
.term-screen .t-err { color: var(--red); text-shadow: 0 0 6px rgba(255, 77, 94, 0.4); }
.term-screen .t-cyan { color: var(--cyan); text-shadow: 0 0 6px rgba(53, 242, 255, 0.4); }
.term-line { white-space: pre-wrap; word-break: break-all; }
.term-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px 20px;
  font-family: var(--font-mono); font-size: 13.5px;
}
.term-input-row .prompt { color: #7ee2ae; white-space: nowrap; text-shadow: 0 0 6px rgba(61, 220, 151, 0.35); }
.term-input-row input {
  flex: 1; background: none; border: none; outline: none;
  color: #d8ffe9; font-family: var(--font-mono); font-size: 13.5px;
  caret-color: var(--green);
  text-shadow: 0 0 6px rgba(61, 220, 151, 0.4);
}
.term-input-row input:disabled { opacity: 0.4; }
.term-fakecaret { display: none; }

/* ---------- 真相页 ---------- */
.truth-hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 110px 24px 70px;
  position: relative; overflow: hidden;
}
.truth-hero .big {
  font-family: var(--font-disp); font-weight: 700;
  font-size: clamp(38px, 7vw, 92px); line-height: 1.1;
}
.truth-letter {
  max-width: 680px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); padding: clamp(30px, 5vw, 56px);
  text-align: left; position: relative;
}
.truth-letter::before {
  content: "机密 · CLASSIFIED";
  position: absolute; top: -13px; left: 34px;
  background: var(--bg); padding: 0 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.34em; color: var(--red);
}
.truth-letter p { margin-bottom: 20px; color: #c9d3e4; font-size: 16px; }
.choice-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 46px; }
.choice-btn {
  padding: 18px 38px; border-radius: 6px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.14em;
  transition: all 0.35s var(--ease-out);
}
.choice-btn.expose { background: var(--red); color: #1a0508; border: none; }
.choice-btn.expose:hover { box-shadow: 0 0 40px rgba(255, 77, 94, 0.45); transform: translateY(-3px); }
.choice-btn.keep { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.choice-btn.keep:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }
.ending-box { display: none; max-width: 680px; margin: 50px auto 0; text-align: center; }
.ending-box.show { display: block; animation: modal-in 0.6s var(--ease-out); }
.cert {
  border: 1px solid rgba(255, 176, 32, 0.45);
  background: linear-gradient(160deg, rgba(255, 176, 32, 0.06), var(--panel));
  border-radius: 16px; padding: 40px 36px; margin-top: 30px;
  position: relative;
}
.cert .c-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4em; color: var(--amber); margin-bottom: 18px; }
.cert .c-name { font-family: var(--font-serif); font-size: 30px; color: var(--txt); margin-bottom: 6px; }
.cert .c-id { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); }
.cert .c-stats {
  display: flex; justify-content: center; gap: 34px; margin-top: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.cert .c-stats b { display: block; font-size: 20px; color: var(--amber); margin-bottom: 2px; }

/* ---------- 404 ---------- */
.p404 {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.p404 .code {
  font-family: var(--font-disp); font-size: clamp(90px, 20vw, 220px); font-weight: 700;
  line-height: 1; position: relative; color: var(--txt);
}
.morse {
  margin: 30px 0 10px;
  font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.5em; color: var(--red);
  animation: morse-blink 4s infinite;
}
@keyframes morse-blink {
  0%, 100% { opacity: 0.15; }
  8%, 16%, 24%, 40%, 48%, 56%, 72%, 80%, 88% { opacity: 1; }
}

/* ---------- 游戏详情 ---------- */
.gd-hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.gd-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
@media (max-width: 960px) { .gd-grid { grid-template-columns: 1fr; } }
.gd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.gd-facts div {
  border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
  background: var(--panel);
}
.gd-facts b { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.2em; margin-bottom: 6px; font-weight: 500; }
.gd-facts span { font-size: 15px; }
.devlog { border-left: 2px solid var(--violet); padding: 4px 0 4px 22px; margin-bottom: 30px; }
.devlog .dl-date { font-family: var(--font-mono); font-size: 12px; color: var(--violet); letter-spacing: 0.12em; }
.devlog h4 { margin: 6px 0; font-size: 17px; }
.devlog p { font-size: 14px; color: var(--muted); }
.devlog.corrupt { border-left-color: var(--red); }
.devlog.corrupt .dl-date { color: var(--red); }

/* ---------- 档案涂黑与腐蚀 ---------- */
/* 硬涂黑（█ 字符）：不可恢复的机密 */
.redact-hard {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: #454f66;
  user-select: none;
}
/* 软涂黑：悬停可窥视（奖励通关后的好奇心） */
.redact-peek {
  background: #12151d;
  color: transparent;
  text-shadow: none;
  padding: 0 7px;
  border-radius: 2px;
  cursor: help;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}
.redact-peek:hover {
  background: rgba(255, 176, 32, 0.14);
  color: var(--amber);
}
/* 错码残片（编码事故的遗物） */
.mojibake {
  font-family: var(--font-mono);
  color: var(--dim);
  word-break: break-all;
  letter-spacing: 0.02em;
}
.zalgo { color: var(--red); }

/* ---------- misc ---------- */
.divider-glow { height: 1px; background: linear-gradient(90deg, transparent, rgba(53, 242, 255, 0.4), transparent); }
.mono { font-family: var(--font-mono); }
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; white-space: nowrap;
  background: var(--bg-2);
}
.marquee .mq-in {
  display: inline-block;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.3em; color: var(--dim);
  animation: mq 26s linear infinite;
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

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