/* 中文点阵字：缝合像素字体 Fusion Pixel（12px 网格，SIL Open Font License，授权文件在 assets/fonts/fusion-pixel/） */
@font-face {
  font-family: "Fusion Pixel";
  src: url("assets/fonts/fusion-pixel/fusion-pixel-12px-proportional-zh_hans.otf.woff2") format("woff2");
  font-display: swap;
}

/* Parallax Atelier — 官网样式（深色 · 电子管）
   橙色是辉光管的光，青色是真空荧光屏的光，正好对应 logo 里的两个世界 */

:root {
  --bg: #08090B;
  --bg-2: #0D0F13;
  --bg-3: #14171C;
  --text: #D9D4C8;
  --text-bright: #EDE7DA;
  --dim: #8E8B84;
  --faint: #55544F;
  --line: rgba(217, 212, 200, .12);
  --line-strong: rgba(217, 212, 200, .24);

  --orange: #FF6A3D;          /* 辉光管 */
  --orange-core: #FFA27A;
  --cyan: #3FD0E0;            /* 荧光屏 */
  --cyan-core: #9BEBF3;

  --glow-orange: 0 0 2px rgba(255, 150, 100, .9), 0 0 10px rgba(255, 106, 61, .55), 0 0 30px rgba(255, 80, 40, .28);
  --glow-cyan: 0 0 2px rgba(155, 235, 243, .9), 0 0 10px rgba(63, 208, 224, .5), 0 0 28px rgba(63, 208, 224, .22);
  --glow-white: 0 0 10px rgba(237, 231, 218, .18), 0 0 28px rgba(237, 231, 218, .08);

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Doto", "IBM Plex Mono", "PingFang SC", "Noto Sans SC", monospace;
  --mono: "IBM Plex Mono", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", ui-monospace, Menlo, monospace;
  --pixel: "Fusion Pixel", "PingFang SC", "Noto Sans SC", monospace;   /* 点阵字按 12 的倍数（12/24/36/48）显示最清楚 */
  --zh: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "IBM Plex Mono", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="zh"] body { font-family: var(--zh); font-size: 17px; line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(255, 106, 61, .35); color: #fff; }

/* 屏幕扫描线 + 暗角，盖在整页上，很淡 */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45) 100%);
  opacity: .55;
}

/* 中英文切换：只显示当前语言 */
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 9, 11, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 0 6px rgba(63, 208, 224, .25)); }
.brand-name { font: 500 13px/1 var(--mono); letter-spacing: .24em; color: var(--text-bright); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); transition: color .15s, text-shadow .15s; }
html[data-lang="zh"] .nav a { font-size: 14px; letter-spacing: .08em; }
.nav a:hover { color: var(--cyan-core); text-shadow: var(--glow-cyan); }
.lang-toggle {
  font: 500 12px/1 var(--mono); letter-spacing: .1em;
  color: var(--text); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 8px 12px; cursor: pointer; transition: color .15s, border-color .15s, box-shadow .15s;
}
.lang-toggle:hover { color: var(--cyan-core); border-color: var(--cyan); box-shadow: 0 0 12px rgba(63, 208, 224, .25); }

/* ---------- 按钮 ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 15px 22px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--text);
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
html[data-lang="zh"] .btn { font-family: var(--zh); font-size: 15px; letter-spacing: .1em; }
.btn-ink {
  color: var(--orange-core); border-color: rgba(255, 106, 61, .7);
  background: rgba(255, 106, 61, .07); text-shadow: var(--glow-orange);
}
.btn-ink:hover { background: rgba(255, 106, 61, .15); box-shadow: 0 0 18px rgba(255, 106, 61, .3), inset 0 0 12px rgba(255, 106, 61, .12); }
.btn-line:hover, .btn-line-light:hover { color: var(--cyan-core); border-color: var(--cyan); box-shadow: 0 0 16px rgba(63, 208, 224, .22); }
.btn-paper { color: var(--text-bright); }
.btn.is-disabled { opacity: .45; cursor: default; pointer-events: none; }

/* ---------- 首屏 ---------- */
.hero {
  padding: clamp(56px, 10vh, 120px) 0 clamp(64px, 11vh, 130px);
  background:
    radial-gradient(520px 380px at 76% 48%, rgba(255, 90, 60, .09), transparent 70%),
    radial-gradient(520px 380px at 66% 52%, rgba(63, 208, 224, .07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.eyebrow { margin: 0 0 26px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(63, 208, 224, .35); }
html[data-lang="zh"] .eyebrow { font-size: 13px; letter-spacing: .12em; }
h1 {
  margin: 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 5.6vw, 74px); line-height: 1.06; letter-spacing: -.01em;
  color: var(--orange-core); text-shadow: var(--glow-orange);
  animation: warm-up 1.6s ease-out both;
}
html[data-lang="zh"] h1 { font-family: var(--pixel); font-weight: 400; font-size: 48px; line-height: 1.4; letter-spacing: .04em; }
.lead { margin: 28px 0 0; font-size: clamp(15px, 1.4vw, 17px); color: var(--dim); max-width: 36em; }
html[data-lang="zh"] .lead { font-size: clamp(16px, 1.5vw, 19px); }

.hero-mark { margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero-mark svg {
  width: 100%; max-width: 460px; height: auto; overflow: visible;
  filter: drop-shadow(0 0 8px rgba(63, 208, 224, .3)) drop-shadow(0 0 22px rgba(255, 90, 60, .22));
}
.ring { fill: none; stroke-width: 3.6; mix-blend-mode: screen; }
.ring-l { stroke: #22B8CC; }
.ring-r { stroke: #FF5A3C; }
.eye { fill: var(--text-bright); }
.hint { margin-top: 22px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
html[data-lang="zh"] .hint { font-size: 13px; letter-spacing: .1em; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint .hint-hover { display: none; }
  .hint .hint-touch { display: inline; }
  html[data-lang="en"] .hint .zh, html[data-lang="zh"] .hint .en { display: none !important; }
}

/* ---------- 通用版块 ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(63, 208, 224, .35); }
html[data-lang="zh"] .kicker { font-size: 13px; letter-spacing: .14em; }
.kicker.light { color: var(--cyan); }
h2 {
  margin: 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 3.8vw, 50px); line-height: 1.12;
  color: var(--text-bright); text-shadow: var(--glow-white);
}
html[data-lang="zh"] h2 { font-family: var(--pixel); font-weight: 400; font-size: 36px; line-height: 1.5; letter-spacing: .04em; }

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose p { margin: 0 0 1.2em; color: #C9C4B9; font-size: clamp(15px, 1.35vw, 17px); }
html[data-lang="zh"] .prose p { font-size: clamp(16px, 1.45vw, 18px); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--orange-core); text-shadow: var(--glow-orange); }

/* 三个层次：编号像三支亮着的管子 */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); margin-top: clamp(64px, 9vw, 112px); }
.pillar {
  position: relative; padding: 26px 24px 28px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 4px;
}
.pillar::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: var(--c); box-shadow: 0 0 14px var(--c); border-radius: 4px 4px 0 0;
}
.pillar.p1 { --c: var(--cyan); }
.pillar.p2 { --c: var(--text-bright); }
.pillar.p3 { --c: var(--orange); }
.pillar .num {
  margin: 0 0 20px; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1;
  color: var(--c); text-shadow: 0 0 2px var(--c), 0 0 14px var(--c);
}
.pillar.p2 .num { text-shadow: var(--glow-white); }
.pillar h3 { margin: 0; font: 600 19px/1.3 var(--mono); letter-spacing: .04em; color: var(--text-bright); }
.pillar .pillar-zh { margin: 10px 0 0; font-family: var(--pixel); font-size: 24px; line-height: 1.2; letter-spacing: .06em; color: var(--c); text-shadow: 0 0 10px var(--c); -webkit-font-smoothing: none; }
.pillar.p2 .pillar-zh { text-shadow: var(--glow-white); }
.pillar p:last-child { margin: 18px 0 0; color: #B9B4A9; font-size: 15px; }
html[data-lang="zh"] .pillar p:last-child { font-size: 16px; }

/* 引言 */
.quote-band { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(80px, 10vw, 128px) 0; }
blockquote { margin: 0 auto; max-width: 920px; text-align: center; }
blockquote p {
  margin: 0; font: 500 clamp(22px, 2.6vw, 34px)/1.45 var(--mono);
  color: var(--text-bright); text-shadow: var(--glow-white);
}
html[data-lang="zh"] blockquote p { font-family: var(--pixel); font-weight: 400; font-size: 36px; line-height: 1.6; letter-spacing: .04em; }
blockquote em { font-style: normal; color: var(--orange-core); text-shadow: var(--glow-orange); }

/* ---------- 作品 ---------- */
.games {
  background:
    radial-gradient(700px 420px at 85% 0%, rgba(63, 208, 224, .06), transparent 70%),
    var(--bg);
  color: var(--text);
}
.game-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.game-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(46px, 8vw, 104px); letter-spacing: .04em; line-height: 1;
  color: var(--text-bright); text-shadow: var(--glow-white), 0 0 2px rgba(237, 231, 218, .6);
}
html[data-lang="zh"] .game-title { font-family: var(--display); font-weight: 900; font-size: clamp(46px, 8vw, 104px); letter-spacing: .04em; line-height: 1; }
.game-title-zh { margin: 16px 0 0; font-family: var(--pixel); font-size: 24px; line-height: 1; letter-spacing: .4em; color: var(--dim); -webkit-font-smoothing: none; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 8px 14px;
}
html[data-lang="zh"] .status { font-size: 14px; letter-spacing: .1em; }
.status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 6px var(--orange), 0 0 14px rgba(255, 106, 61, .6);
  animation: pulse 2.6s ease-in-out infinite;
}

.game-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(44px, 6vw, 76px); align-items: start; }
.game-text p { margin: 0 0 1.2em; color: #C9C4B9; font-size: clamp(15px, 1.3vw, 16px); }
html[data-lang="zh"] .game-text p { font-size: clamp(16px, 1.4vw, 17px); }
.game-text .tagline { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; color: var(--orange-core); text-shadow: var(--glow-orange); }
.facts { margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--dim); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
html[data-lang="zh"] .facts dt { font-size: 14px; letter-spacing: .08em; }
.facts dd { margin: 0; font-size: 14px; color: var(--text-bright); }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--line); background: var(--bg-3);
  transition: border-color .2s, box-shadow .2s, filter .2s;
  filter: saturate(.92) brightness(.96);
}
.shot:hover { border-color: rgba(63, 208, 224, .5); box-shadow: 0 0 20px rgba(63, 208, 224, .14); filter: none; }
.shot-main { grid-column: 1 / -1; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.contact .lead { color: var(--dim); }
.contact-card { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.contact-card .label { margin: 0 0 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.email { font: 500 clamp(16px, 1.65vw, 21px)/1.4 var(--mono); text-decoration: none; overflow-wrap: anywhere; color: var(--orange-core); text-shadow: var(--glow-orange); border-bottom: 1px solid rgba(255, 106, 61, .35); transition: border-color .15s, text-shadow .15s; }
.email:hover { border-color: var(--orange); text-shadow: var(--glow-orange), 0 0 18px rgba(255, 106, 61, .35); }
.email.todo { color: var(--faint); text-shadow: none; border-bottom: 1px dashed var(--line-strong); }
html[data-lang="zh"] .email.todo { font-family: var(--zh); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.footer-row p { margin: 0; }
.footer-row .muted { margin-left: auto; color: var(--faint); }

/* ---------- 中文点阵字 ---------- */
html[data-lang="zh"] .game-text .tagline { font-family: var(--pixel); font-size: 24px; line-height: 1.6; letter-spacing: .04em; text-shadow: 0 0 10px rgba(255, 106, 61, .45); }
html[data-lang="zh"] :is(.eyebrow, .kicker, .nav a, .btn, .status, .facts dt, .hint, .shot, .contact-card .label, .email.todo) {
  font-family: var(--pixel); font-size: 12px; letter-spacing: .14em;
}
html[data-lang="zh"] .email.todo { font-size: 24px; letter-spacing: .06em; }
html[data-lang="zh"] :is(h1, h2, blockquote p, .tagline, .eyebrow, .kicker, .nav a, .btn, .status, .facts dt, .hint, .shot, .contact-card .label, .email.todo) {
  -webkit-font-smoothing: none;
}

/* ---------- 动画（很轻，只有开机预热和状态灯） ---------- */
@keyframes warm-up {
  from { opacity: 0; text-shadow: none; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col, .game-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark svg { max-width: 340px; }
  .pillars { grid-template-columns: 1fr; }
  .contact-grid { align-items: start; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .brand-name { font-size: 12px; letter-spacing: .18em; }
  .header-row { height: 58px; }
  .hero-mark svg { max-width: 260px; }
  .footer-row .muted { margin-left: 0; width: 100%; }
  html[data-lang="zh"] h1 { font-size: 36px; }
  html[data-lang="zh"] h2, html[data-lang="zh"] blockquote p { font-size: 24px; }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1, .status .dot { animation: none; }
  .hint { display: none; }
}
