/* ═══════════════════════════════════════════════════
   泛象边界 · Dark Web / Onion Aesthetic
   ═══════════════════════════════════════════════════ */

:root {
  --bg-base: #000000;
  --bg-surface: #050505;
  --bg-elevated: #0a0a0a;
  --bg-card: #070707;
  --bg-glass: rgba(0, 0, 0, 0.88);
  --bg-hover: #111111;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(255, 255, 255, 0.22);
  --text-primary: #e4e4e4;
  --text-secondary: #888888;
  --text-muted: #505050;
  --text-ghost: rgba(255, 255, 255, 0.22);
  --accent: #ffffff;
  --accent-bright: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(255, 255, 255, 0.12);
  --accent-ghost: rgba(255, 255, 255, 0.03);
  --terminal: #cccccc;
  --terminal-dim: rgba(180, 180, 180, 0.55);
  --link: #aaaaaa;
  --link-bright: #eeeeee;
  --glitch-r: rgba(255, 255, 255, 0.85);
  --glitch-b: rgba(120, 120, 120, 0.7);
  --danger: #888888;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --font-display: 'Fusion Pixel', 'DotGothic16', 'Press Start 2P', sans-serif;
  --font-body: 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-narrative: 'Yozai', sans-serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --blur-glass: 16px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --strip-h: 0;
  --container: min(1180px, 92vw);
  --boot-pulse: 1;
  --boot-warp: 0.5;
  --boot-spin: 0deg;
  --boot-phase: 0;
  --decay-tint: rgba(90, 82, 68, 0.14);
  --decay-mold: rgba(55, 50, 42, 0.22);

  /* legacy aliases */
  --bg-void: var(--bg-base);
  --bg-deep: var(--bg-surface);
  --border: var(--border-subtle);
  --border-hover: var(--border-medium);
  --border-signal: var(--border-accent);
  --signal: var(--text-secondary);
  --signal-bright: var(--text-primary);
  --phosphor: var(--accent-bright);
  --link-dim: var(--link);
  --shadow-soft: var(--shadow-md);
  --shadow-hover: var(--shadow-lg);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --font-pixel: var(--font-mono);
  --pixel: 3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(255, 255, 255, 0.018), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(255, 255, 255, 0.01), transparent 50%),
    radial-gradient(ellipse 40% 35% at 8% 75%, var(--decay-tint), transparent 55%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 120% 80% at 50% 0%, transparent 40%, var(--decay-mold) 100%),
    radial-gradient(circle at 0% 100%, rgba(70, 62, 50, 0.18), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(60, 55, 48, 0.12), transparent 40%);
  animation: decayDrift 18s ease-in-out infinite alternate;
}

::selection {
  background: var(--accent-dim);
  color: var(--accent-bright);
}

/* ── Atmosphere (subtle) ── */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#fog-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.38;
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.11;
  mix-blend-mode: screen;
}

#dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.pixel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 0%, transparent 75%);
}

.pixel-grid--fine { display: none; }

.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: mistDrift var(--dur, 32s) ease-in-out infinite alternate;
}

.mist--1 {
  width: 55vw; height: 45vh;
  top: -5%; left: -10%;
  background: radial-gradient(ellipse, rgba(80, 75, 65, 0.07), transparent 70%);
  --dur: 36s;
}

.mist--2 {
  width: 50vw; height: 50vh;
  bottom: -10%; right: -5%;
  background: radial-gradient(ellipse, rgba(60, 55, 48, 0.065), transparent 65%);
  animation-delay: -10s;
  --dur: 28s;
}

.mist--3 {
  width: 40vw; height: 35vh;
  top: 40%; left: 35%;
  background: radial-gradient(ellipse, rgba(120, 110, 95, 0.04), transparent 60%);
  animation-delay: -18s;
  --dur: 42s;
}

.horizon-fog {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35vh;
  background: linear-gradient(to top, var(--bg-base) 0%, transparent 100%);
}

.noise-overlay {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: noiseShift 0.08s steps(10) infinite;
  mix-blend-mode: overlay;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 4px
  );
  opacity: 0.55;
  pointer-events: none;
}

.horror-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 48%, transparent 0%, rgba(0, 0, 0, 0.62) 72%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(0, 0, 0, 0.92) 0%, transparent 55%),
    radial-gradient(circle at 15% 20%, rgba(50, 45, 38, 0.15), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(45, 40, 35, 0.12), transparent 30%);
  animation: horrorBreath 10s ease-in-out infinite;
  pointer-events: none;
}

.crt-bar {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.03);
  animation: crtRoll 10s linear infinite;
  opacity: 0.5;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 4%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(20, 18, 15, 0.35) 100%);
}

.dropout-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.04s;
}

.dropout-flash.active { opacity: 1; }

body.signal-glitch .site-header,
body.signal-glitch main {
  animation: signalCut 0.18s steps(5) both;
}

body.signal-glitch::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 2px,
    rgba(80, 80, 80, 0.04) 2px,
    rgba(80, 80, 80, 0.04) 4px
  );
  mix-blend-mode: screen;
}

/* darkweb-strip removed */

/* ── Typography ── */
h1, h2, h3, h4,
.logo-text,
.boot-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.35;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

h1 { font-size: clamp(32px, 5.5vw, 64px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 16px; }

@media (min-width: 768px) {
  h3 { font-size: 32px; }
}

.narrative {
  font-family: var(--font-narrative);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 2;
  color: var(--text-secondary);
}

.narrative strong {
  font-weight: 400;
  color: var(--text-primary);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--link-bright); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.04em;
}

.container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

main {
  position: relative;
  z-index: 1;
  perspective: 1400px;
  perspective-origin: 50% 20%;
}

section { padding: 72px 0; position: relative; }

.page-main > section:last-child,
.section-follow-hero--last {
  padding-bottom: 96px;
}

.section-follow-hero {
  padding-top: 0;
}

.page-hero + .section-follow-hero {
  padding-top: 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--text-muted);
  opacity: 0.5;
}

.hero-desc strong {
  font-weight: 500;
  color: var(--text-primary);
}

.section-header { margin-bottom: 48px; }

.section-header h2 { color: var(--text-primary); }

.section-header p {
  color: var(--text-secondary);
  max-width: 540px;
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.85;
}

.section-divider {
  width: var(--container);
  height: 1px;
  background: var(--border-subtle);
  margin: 0 auto;
  border: none;
}

.section-divider::after { display: none; }

/* Home layout */
.home-works {
  padding: 64px 0;
}

.home-works--split {
  padding-top: 0;
}

.home-works--split::before {
  content: '';
  display: block;
  width: min(var(--container), 100% - 48px);
  margin: 0 auto 56px;
  height: 1px;
  background: var(--border-subtle);
}

.featured-slot {
  margin-bottom: 48px;
}

.featured-slot:empty {
  display: none;
  margin: 0;
}

/* Glitch */
.glitch-text { position: relative; display: inline-block; }

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
}

.work-card:hover .glitch-text::before,
.featured-banner:hover .glitch-text::before {
  opacity: 0.7;
  color: var(--glitch-r);
  animation: glitchA 0.22s steps(2) both;
  clip-path: inset(0 0 55% 0);
  transform: translate(-2px, 0);
}

.work-card:hover .glitch-text::after,
.featured-banner:hover .glitch-text::after {
  opacity: 0.6;
  color: var(--glitch-b);
  animation: glitchB 0.22s steps(2) both;
  clip-path: inset(55% 0 0 0);
  transform: translate(2px, 0);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(2, 2, 2, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(120, 110, 95, 0.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.72),
    inset 0 -1px 0 rgba(80, 72, 60, 0.08);
  transition: background var(--transition);
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(70, 62, 50, 0.06), transparent 30%, transparent 70%, rgba(70, 62, 50, 0.05));
  opacity: 0.8;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
  text-decoration: none;
}

.logo:hover { color: var(--text-primary); }

.logo-icon {
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border: none;
  outline: none;
}

.site-header .logo-icon {
  width: 42px;
  height: 42px;
}

.site-footer .logo-icon {
  width: 30px;
  height: 30px;
}

.site-header .logo-text,
.site-header .logo-icon {
  transition: opacity 0.4s ease;
}

.logo-text {
  font-size: 16px;
  letter-spacing: 0.38em;
  font-weight: 400;
  padding-left: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: calc(var(--radius-sm) - 2px);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-ghost);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.04);
}

.nav-links a.active::before { display: none; }

.nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px 9px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  margin: 4px 0;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero.depth-scene {
  perspective: 1200px;
  perspective-origin: 50% 45%;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
}

.hero-content {
  max-width: 100%;
  width: 100%;
  transform-style: preserve-3d;
  position: relative;
  z-index: 2;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.void-portal {
  position: relative;
  width: min(75vw, 560px);
  height: min(75vw, 560px);
  transform-style: preserve-3d;
}

.void-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: voidPulse 12s ease-in-out infinite;
}

.void-ring--1 { animation-delay: 0s; }
.void-ring--2 {
  inset: 14%;
  border-color: rgba(255, 255, 255, 0.06);
  animation-delay: -4s;
  animation-duration: 15s;
}
.void-ring--3 {
  inset: 28%;
  border-color: rgba(255, 255, 255, 0.08);
  animation-delay: -8s;
  animation-duration: 9s;
}

.void-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, #000 0%, #000 55%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 1),
    0 0 80px rgba(0, 0, 0, 0.9),
    0 0 120px rgba(255, 255, 255, 0.02);
  animation: voidCoreBreath 8s ease-in-out infinite;
}

.glitch-heading {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  animation: fadeUp 0.9s 0.1s ease both, heroTextFlicker 8s steps(1) infinite;
  color: var(--text-primary);
  text-shadow:
    0 0 40px rgba(255, 255, 255, 0.05),
    0 2px 24px rgba(0, 0, 0, 0.8);
  filter: contrast(1.05);
}

.glitch-heading::before,
.glitch-heading::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.glitch-heading::before {
  color: rgba(200, 195, 180, 0.9);
  animation: heroGlitchA 4.5s steps(1) infinite;
  clip-path: inset(0 0 58% 0);
  opacity: 0;
  mix-blend-mode: screen;
}

.glitch-heading::after {
  color: rgba(100, 95, 85, 0.95);
  animation: heroGlitchB 4.5s steps(1) infinite;
  clip-path: inset(58% 0 0 0);
  opacity: 0;
  mix-blend-mode: multiply;
}

.hero h1 .highlight,
.hero h1 .word-signal {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 24px var(--accent-glow);
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin: 0 auto 36px;
  max-width: 520px;
  line-height: 1.9;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeUp 0.9s 0.3s ease both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.btn::before { display: none; }

.btn-primary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-dim), inset 0 0 20px var(--accent-ghost);
}

.btn-primary:hover {
  background: var(--accent-dim);
  color: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 32px var(--accent-glow), inset 0 0 24px rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-ghost);
  transform: translateY(-1px);
}

.btn-lg { padding: 14px 28px; font-size: 0.82rem; }

.btn-play {
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  padding: 16px 36px;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

.btn-play:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 40px var(--accent-glow);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.btn-play svg { width: 14px; height: 14px; }

/* ── Work cards ── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), border-color var(--transition), box-shadow 0.45s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 16px 32px rgba(0, 0, 0, 0.55),
    0 32px 64px rgba(0, 0, 0, 0.35);
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -24px 48px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 3;
  opacity: 0.85;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(80, 72, 58, 0.22), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(65, 58, 48, 0.18), transparent 45%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: auto, auto, 128px 128px;
}

.work-card:hover {
  border-color: var(--border-medium);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 48px rgba(0, 0, 0, 0.7),
    0 48px 96px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.work-card-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.work-card-cover::after { display: none; }

.work-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.75) brightness(0.9);
}

.work-card:hover .work-card-cover img {
  transform: scale(1.03);
  filter: saturate(0.9) brightness(1);
}

.work-card-cover .cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: 0.15em;
}

.work-card-cover .cover-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 6, 0.6) 100%);
}

.card-static { display: none; }

.work-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  z-index: 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.badge-own {
  background: rgba(5, 5, 6, 0.75);
  color: var(--accent);
  border-color: var(--border-accent);
}

.badge-curated {
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.12);
}

.badge-status {
  left: auto;
  right: 12px;
  color: var(--text-muted);
  background: rgba(5, 5, 6, 0.75);
}

.status-live { color: var(--terminal); }
.status-upcoming { color: var(--accent); }
.status-ended { color: var(--text-muted); }

.work-card-body {
  padding: 20px 22px 16px;
  flex: 1;
}

.work-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  transition: color var(--transition);
}

.work-card:hover .work-card-body h3 { color: var(--accent-bright); }

.work-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.work-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.75;
}

.work-card-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.work-card-footer .arrow {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition);
}

.work-card:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Featured */
.featured-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
  position: relative;
  transition: border-color var(--transition), box-shadow 0.45s ease, transform 0.45s ease;
  transform-style: preserve-3d;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 40px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.featured-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(120,110,95,0.04) 0%, transparent 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 2;
}

.featured-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(75, 68, 55, 0.2), transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: auto, 128px 128px;
}

.featured-banner:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.75),
    0 48px 100px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .featured-banner { grid-template-columns: 1.2fr 1fr; }
}

.featured-cover {
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.featured-cover .cover-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  font-size: 5rem;
}

.featured-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, var(--bg-card) 100%);
  z-index: 1;
  pointer-events: none;
}

.featured-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-subtle);
}

@media (max-width: 767px) {
  .featured-info { border-left: none; border-top: 1px solid var(--border-subtle); }
}

.featured-info h3 {
  font-size: 32px;
  margin-bottom: 14px;
}

.featured-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.85;
}

/* News */
.news-section { padding: 64px 0 72px; }

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transform: translateZ(0);
}

.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 24px 28px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.news-item:last-child { border-bottom: none; }

.news-item:hover { background: var(--bg-hover); }

.news-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-top: 3px;
}

.news-content h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.news-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 28px;
  position: relative;
  background: var(--bg-surface);
}

.site-footer::before { display: none; }

.footer-slim {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-slim-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.footer-nav a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--accent); }

.footer-slim .footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Work detail */
.page-hero {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 40px;
}

.page-hero--extended {
  padding-bottom: 56px;
}

.page-hero-prose {
  margin-top: 40px;
  max-width: 720px;
  text-align: left;
}

.page-hero-prose h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.page-hero-prose p + p {
  margin-top: 14px;
}

.work-loading {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 120px;
  text-align: center;
  color: var(--text-muted);
}

.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.page-hero .breadcrumb a { color: var(--text-secondary); }

.page-lead {
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.work-detail-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .work-detail-header { grid-template-columns: 1.35fr 1fr; }
}

.work-detail-cover {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  position: relative;
}

.work-detail-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(5, 5, 6, 0.5) 100%);
  pointer-events: none;
}

.work-detail-cover .cover-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  font-size: 4.5rem;
}

.work-detail-info h1 { margin-bottom: 18px; }

.work-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.work-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.meta-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.meta-item .meta-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.meta-item .meta-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.work-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.work-detail-body { padding: 48px 0; }

.detail-section { margin-bottom: 48px; }

.detail-section h2 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.04em;
}

.detail-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.9;
}

.detail-section ul {
  color: var(--text-secondary);
  padding-left: 0;
  list-style: none;
  margin-bottom: 14px;
}

.detail-section li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
  line-height: 1.85;
}

.detail-section li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.screenshot-item {
  aspect-ratio: 16/9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  filter: saturate(0.7) brightness(0.92);
  transition: filter var(--transition), transform var(--transition);
}

.screenshot-item:hover {
  filter: saturate(0.9) brightness(1);
  transform: scale(1.01);
}

.screenshot-item .cover-placeholder {
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.related-works { padding: 48px 0 100px; }

.curated-notice {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.85;
}

.external-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

/* About */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-intro { grid-template-columns: 1.1fr 0.9fr; }
}

.about-visual,
.brand-visual {
  aspect-ratio: 1;
  max-width: min(400px, 44vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-visual-logo {
  width: 100%;
  height: 100%;
  max-width: min(360px, 40vw);
  object-fit: contain;
  opacity: 0.95;
  border: none;
  filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.1));
}

.prose p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.9;
}

.prose strong { color: var(--text-primary); font-weight: 500; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.value-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  transform-style: preserve-3d;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    inset 0 -16px 32px rgba(0, 0, 0, 0.35);
}

.value-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.value-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-ghost);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.value-card h3 { margin-bottom: 10px; font-size: 1.05rem; }

.value-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.85;
}

.timeline { position: relative; padding-left: 24px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border-medium);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 12px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-item h3 { margin-bottom: 6px; }

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.85;
}

/* Guide */
.guide-steps { display: flex; flex-direction: column; gap: 12px; }

.guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.guide-step:hover {
  border-color: var(--border-medium);
  background: var(--bg-hover);
}

.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-ghost);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.guide-step h3 { margin-bottom: 6px; }

.guide-step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.85;
}

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--border-medium); }

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 450;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent); }

.faq-question .icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.85;
}

.faq-item.open .faq-answer { max-height: 320px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: minmax(240px, 1fr) 1.2fr; gap: 48px; }
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.contact-social-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-social a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-form-title {
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}

.contact-form-submit {
  width: 100%;
}

.contact-info-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--transition);
}

.contact-info-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-hover);
}

.contact-form {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.contact-info-card h3 {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.contact-info-card a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input[type="file"] {
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.form-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  cursor: pointer;
}

.form-checkbox input { margin-top: 4px; accent-color: var(--accent); }

.input-prefix-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.input-prefix-wrap input { flex: 1; min-width: 140px; }

.input-suffix {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Platform */
.platform-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.flow-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.flow-step:last-child { border-bottom: none; }

.flow-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1;
  padding-top: 4px;
}

.flow-body h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.flow-body p { margin-bottom: 12px; max-width: 560px; }

.flow-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.flow-link:hover { color: var(--accent); }

.platform-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.platform-cta h2 { margin-bottom: 10px; }

.platform-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .download-grid { grid-template-columns: repeat(3, 1fr); }
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.download-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.download-os {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
}

.download-arch {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.download-size {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.download-note {
  margin-top: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.agent-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.agent-feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.agent-feature:last-child { border-bottom: none; }

.agent-feature-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  padding-top: 2px;
}

.agent-feature h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.agent-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.publish-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .publish-layout { grid-template-columns: minmax(240px, 1fr) 1.4fr; gap: 40px; }
}

.publish-checklist {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.publish-checklist li {
  position: relative;
  padding-left: 16px;
}

.publish-checklist li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.review-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 72px;
}

.pipeline-step--active { color: var(--text-primary); }

.pipeline-step--active .pipeline-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.pipeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
  border: 1px solid var(--border-accent);
}

.pipeline-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 8px;
  margin-bottom: 22px;
}

.home-platform {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.platform-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .platform-teaser { grid-template-columns: 1.2fr auto; }
}

.platform-teaser h2 { margin-bottom: 12px; }

.platform-teaser p { max-width: 520px; margin-bottom: 0; }

.platform-teaser-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
}

/* Cover gradients */
.cover-gradient-1 { background: linear-gradient(145deg, #0c1018 0%, #141c28 50%, #1a2430 100%); }
.cover-gradient-2 { background: linear-gradient(145deg, #0a0c12 0%, #121820 50%, #182028 100%); }
.cover-gradient-3 { background: linear-gradient(145deg, #100c14 0%, #1a1420 50%, #221c2a 100%); }
.cover-gradient-4 { background: linear-gradient(145deg, #0a0e14 0%, #121a22 50%, #1a222a 100%); }
.cover-gradient-5 { background: linear-gradient(145deg, #120e0a 0%, #1c1610 50%, #241e18 100%); }
.cover-gradient-6 { background: linear-gradient(145deg, #0a1012 0%, #121c20 50%, #162428 100%); }

.cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.05);
}

/* Error */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
}

.error-page h1 {
  font-family: var(--font-mono);
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.15em;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mistDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, 1.5%) scale(1.03); }
}

@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3%, -3%); }
}

@keyframes signalPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent-glow); }
  50% { opacity: 0.3; box-shadow: none; }
}

@keyframes stripBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes voidPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.03) rotate(2deg); opacity: 0.12; }
}

@keyframes voidCoreBreath {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes horrorBreath {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes heroGlitchA {
  0%, 88%, 100% { opacity: 0; transform: translate(0); }
  89% { opacity: 0.85; transform: translate(-4px, 1px); clip-path: inset(0 0 55% 0); }
  90% { opacity: 0; }
  92% { opacity: 0.7; transform: translate(3px, -1px); clip-path: inset(10% 0 40% 0); }
  93% { opacity: 0; }
  95% { opacity: 0.55; transform: translate(-2px, 0); }
  96% { opacity: 0; }
}

@keyframes heroGlitchB {
  0%, 87%, 100% { opacity: 0; transform: translate(0); }
  88% { opacity: 0.75; transform: translate(4px, 0); clip-path: inset(55% 0 0 0); }
  89% { opacity: 0; }
  91% { opacity: 0.65; transform: translate(-3px, 1px); clip-path: inset(45% 0 10% 0); }
  92% { opacity: 0; }
  94% { opacity: 0.5; transform: translate(2px, -1px); }
  95% { opacity: 0; }
}

@keyframes heroTextFlicker {
  0%, 96%, 100% { opacity: 1; filter: contrast(1.05) brightness(1); }
  96.5% { opacity: 0.72; filter: contrast(1.2) brightness(1.15); }
  97% { opacity: 0.95; }
  97.8% { opacity: 0.55; filter: contrast(0.9) brightness(0.85); }
  98.2% { opacity: 1; }
}

@keyframes decayDrift {
  0% { opacity: 0.38; transform: translate(0, 0); }
  100% { opacity: 0.48; transform: translate(-0.5%, 0.3%); }
}

@keyframes textFlicker {
  0%, 97%, 100% { opacity: 1; }
  97.5% { opacity: 0.4; }
  98% { opacity: 1; }
  98.5% { opacity: 0.6; }
}

@keyframes crtRoll {
  0% { top: -2px; }
  100% { top: 100%; }
}

@keyframes barFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes signalCut {
  0% { transform: translate(0); }
  50% { transform: translate(-2px, 0); opacity: 0.95; }
  100% { transform: translate(0); }
}

@keyframes glitchA {
  0% { transform: translate(0); }
  100% { transform: translate(-2px, 0); }
}

@keyframes glitchB {
  0% { transform: translate(0); }
  100% { transform: translate(2px, 0); }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 12px; right: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 8px;
    gap: 2px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  section { padding: 56px 0; }

  .work-detail-meta { grid-template-columns: 1fr; }

  .guide-step { grid-template-columns: 1fr; }

  .news-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ═══════════════════════════════════════════════════
   首页开屏 Boot Splash
   ═══════════════════════════════════════════════════ */

body.boot-active {
  overflow: hidden;
}

body.boot-active .site-shell {
  opacity: 0;
  pointer-events: none;
}

body.boot-active .site-header .logo-text,
body.boot-active .site-header .logo-icon {
  opacity: 0;
}

.site-shell {
  transition: opacity 0.9s ease 0.15s;
}

.site-shell.boot-reveal {
  opacity: 1;
  pointer-events: auto;
}

.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #030302;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.boot-splash.boot-phase-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

#boot-dimension {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: contents;
}

#boot-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  image-rendering: pixelated;
}

.boot-grime {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='x'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23x)' opacity='0.7'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 15%, rgba(70, 62, 50, 0.35), transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(55, 48, 40, 0.4), transparent 50%);
  background-size: 400px 400px, auto, auto;
  animation: bootGrimeShift 12s ease-in-out infinite alternate;
}

.boot-decay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      93deg,
      transparent,
      transparent 80px,
      rgba(60, 55, 48, 0.03) 80px,
      rgba(60, 55, 48, 0.03) 81px
    ),
    radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.5) 100%);
  opacity: calc(0.35 + var(--boot-phase, 0) * 0.25);
}

.boot-terminal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 38vh;
  padding: 0 24px 32px;
  overflow: hidden;
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(130, 120, 100, 0.35);
  line-height: 1.9;
}

.boot-terminal-line {
  animation: bootTerminalScroll 14s linear infinite;
  animation-delay: calc(var(--ti, 0) * -1.1s);
  white-space: nowrap;
  opacity: 0;
  animation-fill-mode: both;
}

.boot-blackout {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.02s;
}

.boot-blackout.active {
  opacity: 0.92;
}

.boot-chroma {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 50%, transparent 25%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(circle at 30% 70%, rgba(60, 52, 42, 0.15), transparent 40%);
  mix-blend-mode: multiply;
  opacity: calc(0.45 + var(--boot-warp, 0.5) * 0.2);
}

.boot-pixel-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  image-rendering: pixelated;
  opacity: 0.2;
  animation: bootGridDrift 24s linear infinite;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, black 15%, transparent 72%);
}

@keyframes bootGridDrift {
  from { transform: perspective(800px) rotateX(58deg) translateY(0); }
  to { transform: perspective(800px) rotateX(58deg) translateY(48px); }
}

.boot-scanlines {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.28) 2px,
    rgba(0, 0, 0, 0.28) 4px
  );
  opacity: 0.55;
  pointer-events: none;
  animation: bootScanDrift 8s linear infinite;
}

.boot-vignette {
  position: absolute;
  inset: 0;
  z-index: 10;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.96) 100%),
    radial-gradient(circle at 10% 90%, rgba(50, 45, 38, 0.25), transparent 35%);
  pointer-events: none;
}

/* ── 标题舞台：全程居中，与 Canvas 奇点对齐 ── */
.boot-title-stage {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 8;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  perspective: 900px;
  transition: transform 1.15s cubic-bezier(0.42, 0, 0.12, 1);
  animation:
    bootStageEnter 1.4s ease both,
    bootStageFloat 5.5s ease-in-out 1.4s infinite;
}

@keyframes bootStageEnter {
  from { filter: blur(6px); }
  to { filter: blur(0); }
}

@keyframes bootStageFloat {
  0%, 100% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
  25% { transform: translate(-50%, calc(-50% - 4px)) rotateX(2deg) rotateY(-1.5deg); }
  50% { transform: translate(-50%, -50%) rotateX(-1deg) rotateY(2deg); }
  75% { transform: translate(-50%, calc(-50% + 3px)) rotateX(1.5deg) rotateY(-1deg); }
}

.boot-splash.boot-phase-fly .boot-title-stage {
  animation: none;
}

.boot-brand {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 32px);
  position: relative;
  z-index: 2;
}

.boot-logo {
  width: clamp(104px, 26vw, 172px);
  height: clamp(104px, 26vw, 172px);
  flex-shrink: 0;
  object-fit: contain;
  border: none;
  opacity: 0;
  transform: scale(0.35);
  filter: blur(10px) brightness(2);
  will-change: transform, opacity, filter;
}

.boot-logo.boot-logo-revealed {
  animation:
    bootLogoReveal 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    bootLogoPulse 3.2s ease-in-out 1.35s infinite;
}

.boot-logo.boot-logo-glitch {
  animation: bootLogoGlitch 0.12s steps(2) forwards;
}

@keyframes bootLogoReveal {
  0% { opacity: 0; transform: scale(0.35) rotate(-8deg); filter: blur(12px) brightness(2); }
  45% { opacity: 0.85; transform: scale(1.12) rotate(2deg); filter: blur(2px) brightness(1.4); }
  70% { opacity: 1; transform: scale(0.96); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); }
}

@keyframes bootLogoPulse {
  0%, 100% { filter: brightness(calc(0.92 + var(--boot-pulse, 1) * 0.12)); }
  50% { filter: brightness(calc(1 + var(--boot-pulse, 1) * 0.15)); }
}

@keyframes bootLogoGlitch {
  0% { transform: translate(0) scale(1); }
  50% { transform: translate(-3px, 1px) scale(1.02) skewX(-3deg); filter: brightness(1.6); }
  100% { transform: translate(0) scale(1); }
}

.boot-title-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 520px);
  height: min(92vw, 520px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(200, 190, 170, calc(0.16 * var(--boot-pulse, 1))) 0%, rgba(80, 75, 65, 0.06) 28%, transparent 62%);
  filter: blur(28px);
  animation: bootAuraPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.boot-title-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78vw, 440px);
  height: min(36vw, 180px);
  transform: translate(-50%, -50%) rotateX(72deg);
  border: 1px solid rgba(160, 150, 130, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 40px rgba(180, 170, 150, calc(0.1 * var(--boot-pulse, 1))),
    inset 0 0 30px rgba(80, 75, 65, 0.08);
  animation: bootRingSpin 10s linear infinite;
  pointer-events: none;
  opacity: calc(0.5 + var(--boot-warp, 0.5) * 0.35);
}

.boot-title-ring--2 {
  width: min(92vw, 520px);
  height: min(44vw, 220px);
  border-style: dashed;
  border-color: rgba(120, 110, 95, 0.15);
  animation-duration: 16s;
  animation-direction: reverse;
  opacity: calc(0.25 + var(--boot-phase, 0) * 0.3);
}

.boot-phosphor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88vw, 480px);
  height: min(40vw, 120px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(200, 190, 170, 0.12), transparent 70%);
  filter: blur(20px);
  animation: bootPhosphor 2.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.boot-title-scan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(90vw, 500px);
  height: 3px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(220, 210, 190, 0.5), transparent);
  opacity: 0;
  animation: bootTitleScan 3.2s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  box-shadow: 0 0 20px rgba(200, 190, 170, 0.3);
}

@keyframes bootAuraPulse {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(calc(1 + var(--boot-pulse, 1) * 0.08 - 0.88)); }
}

@keyframes bootRingSpin {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
}

.boot-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(48px, 11vw, 88px);
  font-weight: 400;
  letter-spacing: 0.28em;
  padding-left: 0.14em;
  color: #e8e4dc;
  white-space: nowrap;
  margin: 0;
  opacity: 1;
  image-rendering: pixelated;
  text-shadow:
    0 0 calc(28px * var(--boot-pulse, 1)) rgba(200, 190, 170, 0.35),
    0 0 calc(80px * var(--boot-pulse, 1)) rgba(120, 110, 95, 0.18),
    2px 2px 0 rgba(0, 0, 0, 0.8);
  animation:
    bootTitleShimmer 5s ease-in-out infinite,
    bootTitleGlitch 5.5s steps(1) infinite;
  filter: brightness(calc(0.88 + var(--boot-pulse, 1) * 0.12)) contrast(1.08);
  transition: transform 1.15s cubic-bezier(0.42, 0, 0.12, 1), filter 0.35s ease;
}

.boot-char {
  display: inline-block;
  opacity: 0;
  filter: blur(10px) brightness(2);
  transform: translateY(18px) scale(0.85);
  transform-origin: center bottom;
}

.boot-char-revealed {
  animation:
    bootCharDecrypt 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    bootCharDrift 4.5s ease-in-out 0.55s infinite;
  animation-delay: 0s, calc(var(--ci, 0) * 0.12s + 0.55s);
}

.boot-char-glitch {
  animation: bootCharSnap 0.12s steps(2) !important;
}

.boot-char-corrupt {
  color: rgba(140, 130, 110, 0.7) !important;
  text-shadow: 2px 0 rgba(80, 75, 65, 0.8), -2px 0 rgba(200, 190, 170, 0.5) !important;
  filter: blur(0.5px) !important;
}

@keyframes bootCharDecrypt {
  0% { opacity: 0; filter: blur(10px) brightness(2.5); transform: translateY(18px) scale(0.85); }
  40% { opacity: 1; filter: blur(2px) brightness(1.8); transform: translateY(-4px) scale(1.04); }
  70% { filter: blur(0) brightness(1.3); transform: translateY(2px) scale(0.98); }
  100% { opacity: 1; filter: blur(0) brightness(1); transform: translateY(0) scale(1); }
}

@keyframes bootCharSnap {
  0%, 100% { transform: translate(0); }
  50% { transform: translate(-3px, 1px) scale(1.05); }
}

@keyframes bootCharDrift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  35% { transform: translateY(-3px) scale(1.02); opacity: 0.92; }
  70% { transform: translateY(1px) scale(0.99); opacity: 1; }
}

.boot-title::before,
.boot-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.boot-title::before {
  color: rgba(200, 190, 170, 0.8);
  animation: bootGlitchA 3.5s steps(2) infinite;
  clip-path: inset(0 0 55% 0);
  transform: translate(-4px, 0);
  opacity: 0;
  mix-blend-mode: screen;
}

.boot-title::after {
  color: rgba(90, 85, 75, 0.9);
  animation: bootGlitchB 3.5s steps(2) infinite;
  clip-path: inset(55% 0 0 0);
  transform: translate(4px, 0);
  opacity: 0;
  mix-blend-mode: multiply;
}

@keyframes bootTitleShimmer {
  0%, 100% { letter-spacing: 0.28em; }
  50% { letter-spacing: 0.32em; }
}

.boot-splash.boot-phase-fly .boot-title {
  animation: none;
  filter: brightness(1.1);
}

.boot-splash.boot-phase-fly .boot-logo {
  animation: none;
  opacity: 1;
  filter: brightness(1.1);
  transform: none;
}

.boot-splash.boot-phase-fly .boot-title::before,
.boot-splash.boot-phase-fly .boot-title::after {
  animation: none;
  opacity: 0;
}

.boot-splash.boot-phase-fly .boot-title-aura,
.boot-splash.boot-phase-fly .boot-title-ring,
.boot-splash.boot-phase-fly .boot-title-ring--2,
.boot-splash.boot-phase-fly .boot-phosphor,
.boot-splash.boot-phase-fly .boot-title-scan,
.boot-splash.boot-phase-fly .boot-terminal,
.boot-splash.boot-phase-fly .boot-grime,
.boot-splash.boot-phase-fly #boot-noise {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.boot-splash.boot-phase-fly .boot-static-burst {
  opacity: 0;
  animation: none;
  transition: opacity 0.3s ease;
}

.boot-splash.boot-phase-fly .boot-chroma,
.boot-splash.boot-phase-fly .boot-pixel-grid {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.boot-splash.boot-phase-out .boot-title-stage {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.boot-static-burst {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  animation: bootBurst 6s step-end infinite;
  pointer-events: none;
  z-index: 6;
  mix-blend-mode: overlay;
}

@keyframes bootTitleGlitch {
  0%, 82%, 100% { transform: none; filter: brightness(calc(0.88 + var(--boot-pulse, 1) * 0.12)) contrast(1.08); }
  83% { transform: translate(-4px, 2px) skewX(-2deg); filter: brightness(1.5) contrast(1.3); }
  84% { transform: translate(3px, -2px) skewX(1deg); }
  85% { transform: translate(-2px, 0); }
  86% { transform: translate(3px, 1px); filter: brightness(1.25); }
  87% { transform: none; }
  90% { transform: translate(-1px, 0) scaleX(1.02); filter: brightness(0.75); }
  91% { transform: none; filter: brightness(calc(0.88 + var(--boot-pulse, 1) * 0.12)); }
}

@keyframes bootGlitchA {
  0%, 86%, 100% { opacity: 0; }
  87%, 89% { opacity: 0.9; transform: translate(-5px, 1px); }
  88% { opacity: 0.4; transform: translate(-2px, -1px); }
}

@keyframes bootGlitchB {
  0%, 85%, 100% { opacity: 0; }
  86%, 88% { opacity: 0.85; transform: translate(5px, -1px); }
  87% { opacity: 0.35; transform: translate(2px, 1px); }
}

@keyframes bootGrimeShift {
  0% { background-position: 0 0, 0 0, 0 0; opacity: 0.5; }
  100% { background-position: 80px 60px, 0 0, 0 0; opacity: 0.62; }
}

@keyframes bootTerminalScroll {
  0% { transform: translateY(100%); opacity: 0; }
  8% { opacity: 0.6; }
  92% { opacity: 0.4; }
  100% { transform: translateY(-320%); opacity: 0; }
}

@keyframes bootScanDrift {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

@keyframes bootPhosphor {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes bootTitleScan {
  0%, 100% { opacity: 0; transform: translate(-50%, calc(-50% - 40px)); }
  45% { opacity: 0; }
  50% { opacity: 0.7; transform: translate(-50%, -50%); }
  55% { opacity: 0; transform: translate(-50%, calc(-50% + 40px)); }
}

@keyframes bootSignalBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

@keyframes bootGridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.75; }
}

@keyframes bootBurst {
  0%, 100% { opacity: 0; }
  12% { opacity: 0.12; }
  13% { opacity: 0; }
  47% { opacity: 0.08; }
  48% { opacity: 0; }
  78% { opacity: 0.15; }
  79% { opacity: 0; }
}

/* 跳过开屏时 Hero 入场 */
body.boot-skipped .site-shell {
  opacity: 1;
}

body.boot-skipped .hero-content > * {
  animation: fadeUp 0.75s ease both;
}

body.boot-skipped .hero h1 { animation-delay: 0.08s; }
body.boot-skipped .hero-desc { animation-delay: 0.16s; }
body.boot-skipped .hero-actions { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  #fog-canvas, #matrix-canvas, #boot-dimension, #boot-noise, #dust-canvas { display: none; }
  .boot-splash { display: none !important; }
  body.boot-active .site-shell { opacity: 1; pointer-events: auto; }
  body.boot-skipped .hero-content > * { animation: none; opacity: 1; }
}

/* ── 封面图 ── */
.work-card-cover.has-cover-img,
.featured-cover.has-cover-img,
.work-detail-cover.has-cover-img {
  background: #111;
}
.work-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-detail-cover {
  position: relative;
  overflow: hidden;
}
.work-detail-cover .work-cover-img {
  position: absolute;
}
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.82em;
  color: var(--accent, #c4a35a);
}
.rating-chip--pending {
  color: var(--text-secondary);
  opacity: 0.85;
}
.works-empty {
  color: var(--text-secondary);
  padding: 1rem 0;
}

/* ── 评分面板 ── */
.rating-section .rating-panel {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .rating-section .rating-panel {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    align-items: center;
  }
}
.rating-public {
  text-align: center;
  padding: 1rem 0.5rem;
}
.rating-score {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.rating-public--pending .rating-pending-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.rating-count,
.rating-hint {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0.35rem 0 0;
}
.rating-stars {
  display: inline-flex;
  gap: 0.15rem;
  margin-top: 0.4rem;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255,255,255,0.25);
}
.rating-stars .is-on,
.star-static.is-on,
.star-btn.is-on {
  color: var(--accent, #c4a35a);
}
.rating-stars--interactive .star-btn {
  background: none;
  border: 0;
  padding: 0.1rem 0.15rem;
  cursor: pointer;
  color: rgba(255,255,255,0.28);
  font-size: 1.55rem;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}
.rating-stars--interactive .star-btn:hover,
.rating-stars--interactive .star-btn:focus-visible {
  color: var(--accent, #c4a35a);
  transform: translateY(-1px);
  outline: none;
}
.rating-stars.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.rating-feedback {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.rating-action .btn {
  margin-top: 0.6rem;
}
