/* =========================================================
   Cinematic 3D Portfolio
   ========================================================= */
:root {
  --bg: #07090a;
  --bg-soft: #0d1012;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #f3f5f1;
  --muted: #9aa29d;
  --dim: #6d7671;
  --acid: var(--site-accent, #c9f831);
  --acid-dark: #9ecb18;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1280px;
  --r: 18px;
}

/* Portfolio editions */
@font-face {
  font-family: "Bangers";
  src: url("./bangers-latin.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./space-grotesk-latin-500.woff2") format("woff2");
  font-style: normal; font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./space-grotesk-latin-700.woff2") format("woff2");
  font-style: normal; font-weight: 700; font-display: swap;
}
:root[data-theme="lime"] { --acid: #c9f831; }
:root[data-theme="blue"] { --acid: #80d9ff; }
:root[data-theme="violet"] { --acid: #c8a9ff; }
:root[data-theme="rose"] { --acid: #ff9ccb; }
.theme-picker { position: relative; display: inline-flex; align-items: center; }
.theme-toggle {
  min-height: 34px; width: 100px; padding: 0 5px 0 24px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft);
  color: var(--ink); color-scheme: dark; cursor: pointer; font: 600 11px var(--sans);
}
.theme-toggle:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.theme-picker .theme-swatch {
  position: absolute; left: 8px; width: 10px; height: 10px; pointer-events: none;
  border: 1px solid var(--line); border-radius: 50%; background: var(--acid);
}
@media (max-width: 520px) {
  .topbar .top-actions { gap: 5px; min-width: 0; }
  header.topbar { padding-inline: 12px; }
  .theme-toggle { width: 88px; padding-left: 20px; }
  .theme-picker .theme-swatch { left: 6px; }
  .topbar .sfx-toggle { display: none; }
}
.hero-media-credit { display: none; }
[data-theme="comic"] .hero-character-art { z-index: 2; }
[data-theme="comic"] .hero-character-media { -webkit-mask-image: none; mask-image: none; }
[data-theme="comic"] .hero-character-video { display: none; }
[data-theme="comic"] .hero-character-fallback {
  inset: 0; width: 100%; height: 100%; transform: none;
  object-fit: contain; mix-blend-mode: normal;
  -webkit-mask-image: radial-gradient(ellipse 63% 70% at 50% 49%, #000 56%, transparent 100%);
  mask-image: radial-gradient(ellipse 63% 70% at 50% 49%, #000 56%, transparent 100%);
}
[data-theme="comic"] .hero-media-credit { display: none; }
/* Comic lettering */
:root {
  --comic-lettering: "Bangers", Impact, "Arial Black", "Kaiti SC", KaiTi, sans-serif;
}
:root[data-theme="comic"] {
  color-scheme: light;
  --comic-yellow: #f5df53;
  --comic-black: #111;
  --comic-paper: #fff;
  --bg: #fff;
  --bg-soft: #f7f7f4;
  --panel: #fff;
  --panel-strong: #f0f0ec;
  --ink: #111;
  --muted: #4b4b48;
  --dim: #777772;
  --line: #111;
  --line-soft: #11111135;
  --acid: #f5df53 !important;
  --acid-dark: #d1b62d;
  --serif: var(--comic-lettering);
  --r: 6px;
}
.theme-swatch { background: #c9f831; }
[data-theme="comic"] body { background: #fff; color: #111; }
[data-theme="comic"] :is(.topbar, .topbar.scrolled, .topnav.open) { background: #fff; color: #111; border-bottom: 2px solid #111; }
[data-theme="comic"] :is(.brand, .topnav a, .brand-sub small, .topnav small, .hero-tagline, .bio-text, .skills-track span, .tag, .modal-text) { color: #222; }
[data-theme="comic"] :is(.topnav a:hover, .topnav a.active) { background: #1111110c; }
[data-theme="comic"] .hero { background: #fff; color: #111; }
[data-theme="comic"] .hero-vignette { background: linear-gradient(90deg, #fff 0%, #ffffffed 18%, #ffffff55 44%, transparent 70%); }
[data-theme="comic"] .hero::after { background: linear-gradient(transparent, #fff); }
[data-theme="comic"] .hero-grid-lines {
  opacity: .18; background-image: radial-gradient(circle, #111 1px, transparent 1.35px);
  background-size: 8px 8px; mask-image: radial-gradient(ellipse at 5% 85%, #000, transparent 58%);
}
[data-theme="comic"] .hero-character-art { right: 0; width: min(66vw, 850px); }
[data-theme="comic"] .hero-character-fallback { filter: none; mix-blend-mode: normal; }
[data-theme="comic"] .hero-edition-mark {
  background: repeating-conic-gradient(from 8deg at 66% 47%, transparent 0deg 8deg, #1112 8deg 8.8deg, transparent 8.8deg 13deg, #1111 13deg 15deg);
  mask-image: radial-gradient(ellipse at 66% 47%, transparent 26%, #000 78%);
}
[data-theme="comic"] .hero-edition-mark {
  display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-conic-gradient(from 8deg at 66% 47%, transparent 0deg 8deg, #fff2 8deg 8.8deg, transparent 8.8deg 13deg, #fff1 13deg 15deg);
  mask-image: radial-gradient(ellipse at 66% 47%, transparent 26%, #000 78%);
}
[data-theme="comic"] .hero-character-fallback { filter: none; }
[data-theme="comic"] .hero-media-credit { color: #111; border-color: #111; }
@media (max-width: 640px) {
  [data-theme="comic"] .hero-character-art {
    top: 37%; right: -5%; width: min(104vw, 560px);
    transform: translate3d(0, -50%, 0);
  }
  [data-theme="comic"] .hero.hero-ready .hero-character-art {
    transform: translate3d(var(--hero-follow-x, 0px), calc(-50% + var(--hero-follow-y, 0px)), 0);
  }
  [data-theme="comic"] .hero-media-credit { right: 12px; bottom: 24px; font-size: 9px; }
}
[data-theme="comic"] .hero-character-caption { color: #fffdf2; text-shadow: 0 2px 5px #191522; }
[data-theme="comic"] .hero-character-caption-kicker { color: var(--acid); }
[data-theme="comic"] .hero-title {
  font-size: 92px; font-weight: 400; font-style: normal; line-height: .96;
  letter-spacing: 0; overflow-wrap: anywhere; text-transform: uppercase;
}
[data-theme="comic"] .hero-title span { transform: rotate(-4deg); transform-origin: left center; }
[data-theme="comic"] .hero-title em {
  color: #fff; font-style: normal; letter-spacing: 0; paint-order: stroke fill;
  -webkit-text-stroke: 5px #141414; text-shadow: 5px 5px #aaa, 9px 9px #070707;
  transform: rotate(-6deg) skewX(-7deg); transform-origin: left center;
}
[data-theme="comic"] :is(.display, .card-title, .about-lead, .modal-title) {
  font-weight: 700; letter-spacing: 0; overflow-wrap: anywhere;
}
[data-theme="comic"] :is(.hero-eyebrow, .section-head .eyebrow, .btn, .theme-toggle, .topnav a > span, .filter-btn, .card-action, .card-badge) {
  font-family: var(--comic-lettering); letter-spacing: 0; font-weight: 700;
}
[data-theme="comic"] :is(.hero-eyebrow, .section-head .eyebrow) {
  color: var(--comic-black); background: var(--comic-paper); padding: 6px 10px;
  border: 2px solid var(--comic-black); border-radius: 2px 5px 3px 4px;
  box-shadow: 2px 2px #111; transform: rotate(-2deg);
}
[data-theme="comic"] .hero-eyebrow { outline: 1px dashed #111; outline-offset: 3px; }
[data-theme="comic"] .hero-title em {
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  text-shadow: 2px 1px #111, 4px 3px #111, 5px 4px #fff;
}
[data-theme="comic"] .hero-title span { text-shadow: 2px 1px #111, -1px -1px #111; }
[data-theme="comic"] :is(.btn, .theme-toggle, .filter-btn, .view-tab) {
  border-color: #111;
  border-radius: 3px 6px 4px 2px;
  box-shadow: 2px 2px #fff, 4px 4px #111;
}
[data-theme="comic"] :is(.section-head, .contact, .toolbar) {
  outline: 1px dashed #111;
  outline-offset: 3px;
}
[data-theme="comic"] :is(.card, .embed-card, .stat-box) { border-style: solid dashed solid solid; }
[data-theme="comic"] :is(.hero-content, .section-head) {
  text-shadow: .25px 0 #111, -.25px 0 #111;
}
[data-theme="comic"] :is(.hero-float, .meta-chip, .btn-ghost) { background: #fff; color: #111; }
[data-theme="comic"] :is(.section-about, .section-vr, .section-embed, .section-games, .section-market) { background: #fff; color: #111; }
[data-theme="comic"] :is(.card, .embed-card, .stat-box, .modal-panel, .gate-card, .toast) {
  background: #fff; color: #111; border: 2px solid #111; border-radius: 6px;
  box-shadow: 4px 4px #111;
  border-style: solid dashed solid dashed;
}
[data-theme="comic"] :is(.card:hover, .card:focus-within) { border-color: var(--ink); box-shadow: 5px 5px var(--acid); }
[data-theme="comic"] .card-placeholder {
  background: #fff radial-gradient(circle, #111 1px, transparent 1.4px) 0 0 / 7px 7px;
}
[data-theme="comic"] :is(.card-badge, .game-grid .card-badge, .card-price, .cat-pill) { background: var(--comic-paper); border-color: #111; color: #111; }
[data-theme="comic"] .card::before { display: none; }
[data-theme="comic"] :is(.fold-more, .list-toggle, .sfx-toggle, .sfx-toggle:hover, .gate-option.selected) { background: #ffffff16; }
[data-theme="comic"] :is(.contact, .fold-card.is-open .fold-cue i) { background: #ffffff0d; }
[data-theme="comic"] .btn-acid:hover { box-shadow: 4px 5px var(--ink); }
[data-theme="comic"] :is(.btn, .theme-toggle) { border: 2px solid var(--ink); border-radius: 5px; box-shadow: 3px 3px var(--ink); }
[data-theme="comic"] :is(.btn-acid, .filter-btn.active, .view-tab.active, .gate-enter, .letter-envelope span) { background: var(--comic-yellow); color: #111; }
[data-theme="comic"] .theme-toggle { background: #fff; color: #111; border-color: #111; }
[data-theme="comic"] .card-sold .card-price { background: #b8b8b8; color: #111; }
[data-theme="comic"] .gate-bg { background: #101010 radial-gradient(circle, #ffffff28 1px, transparent 1.4px) 0 0 / 8px 8px; }
[data-theme="comic"] .gate-error { color: var(--acid); }
[data-theme="comic"] .lightbox { color: #fffdf2; --muted: #e5dde9; }
@media (max-width: 900px) {
  [data-theme="comic"] .hero-title { font-size: 64px; }
}
@media (max-width: 640px) {
  [data-theme="comic"] .hero-title { font-size: 48px; }
  [data-theme="comic"] .hero-title em { -webkit-text-stroke-width: 3px; text-shadow: 3px 3px #aaa, 5px 5px #070707; }
  [data-theme="comic"] .hero-vignette { background: linear-gradient(90deg, #fff 5%, #ffffffd9 46%, #ffffff55); }
}
@media (max-width: 360px) {
  [data-theme="comic"] .hero-title { font-size: 40px; }
}

/* 访客进入门槛 */
.visitor-gate {
  position: fixed; inset: 0; z-index: 3000;
  display: none; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.visitor-gate.open { display: flex; }
.gate-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 620px at 50% 26%, rgba(201,248,49,.10), transparent 62%),
    radial-gradient(760px 520px at 88% 90%, rgba(80,120,255,.08), transparent 60%),
    #06080a;
}
.gate-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
}
.gate-card {
  position: relative; width: min(560px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  animation: gateIn .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes gateIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.gate-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; color: var(--acid); }
.gate-title { font-family: var(--serif); font-size: clamp(40px, 8vw, 64px); line-height: 1; margin: 16px 0 14px; letter-spacing: -.03em; }
.gate-title span { color: var(--acid); }
.gate-desc { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 30px; }
.gate-choices { display: grid; gap: 12px; }
.gate-option {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 18px 20px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.025); color: var(--ink);
  font: inherit; transition: border-color .22s, background .22s, transform .22s;
}
.gate-option:hover { border-color: rgba(201,248,49,.45); background: rgba(255,255,255,.05); transform: translateX(4px); }
.gate-option.selected { border-color: var(--acid); background: rgba(201,248,49,.09); }
.gate-option-icon { font-size: 24px; line-height: 1; color: var(--acid); width: 28px; text-align: center; }
.gate-option-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gate-option-body strong { font-size: 16px; font-weight: 600; }
.gate-option-body small { color: var(--muted); font-size: 12px; }
.gate-option-check { color: var(--acid); opacity: 0; font-size: 15px; transition: opacity .2s; }
.gate-option.selected .gate-option-check { opacity: 1; }
.gate-form { display: grid; gap: 14px; margin-top: 22px; animation: gateIn .35s ease both; }
.gate-form[hidden] { display: none; }
.gate-form label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.gate-form input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font: inherit; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.gate-form input:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(201,248,49,.1); }
.gate-req { color: var(--acid); }
.gate-optional { color: var(--dim); font-size: 10px; }
.gate-error { margin: -4px 0 0; color: #ff8a8a; font-size: 12px; }
.gate-error[hidden] { display: none; }
.gate-enter {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; margin-top: 26px; padding: 16px 20px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--acid); color: #0a0e06; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.gate-enter span { font-size: 18px; line-height: 0; }
.gate-enter:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(201,248,49,.28); }
.gate-enter:disabled { opacity: .35; cursor: not-allowed; }
.gate-foot { margin: 16px 0 0; text-align: center; color: var(--dim); font-size: 11px; line-height: 1.6; }
@media (max-width: 640px) {
  .visitor-gate { padding: 16px; align-items: flex-start; }
  .gate-card { margin: auto 0; padding: 26px 20px; }
  .gate-title { font-size: 42px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--acid); color: #0a0d09; }

.container { width: min(100% - 72px, var(--wrap)); margin: 0 auto; }

/* ambient overlays */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  left: 0; top: 0; z-index: 1; opacity: .32; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,248,49,.16), rgba(201,248,49,0) 65%);
  transition: opacity .4s ease;
}
.scroll-progress { position: fixed; left: 0; top: 0; height: 2px; width: 0; z-index: 10001; background: var(--acid); box-shadow: 0 0 14px var(--acid); }

/* click and route transition */
.click-transition { position: fixed; inset: 0; z-index: 1200; overflow: hidden; pointer-events: none; opacity: 0; }
.click-transition span {
  position: absolute; inset: 0; transform: translateX(-105%);
  background: linear-gradient(105deg, transparent 20%, rgba(201,248,49,.08) 44%, rgba(242,247,232,.2) 50%, rgba(201,248,49,.08) 56%, transparent 80%);
  filter: blur(8px);
}
.click-transition.play { opacity: 1; }
.click-transition.play span { animation: clickSweep .72s cubic-bezier(.65,0,.25,1) both; }
@keyframes clickSweep { 0% { transform: translateX(-105%); } 38% { transform: translateX(0); } 100% { transform: translateX(105%); } }
body.transitioning main { animation: routeSettle .52s ease-out both; }
@keyframes routeSettle { from { filter: brightness(.78); } to { filter: brightness(1); } }
.modal.open { animation: modalBackdropIn .28s ease both; }
.modal.open .modal-panel { animation: modalContentIn .42s cubic-bezier(.16,1,.3,1) both; }
@keyframes modalBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalContentIn { from { opacity: 0; transform: translateY(28px) scale(.975); filter: blur(6px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
.lightbox.open { animation: modalBackdropIn .22s ease both; }
.lightbox.open img { animation: modalContentIn .34s cubic-bezier(.16,1,.3,1) both; }
.button-press { animation: buttonPress .24s ease-out; }
@keyframes buttonPress { 0% { transform: scale(1); } 45% { transform: scale(.94); } 100% { transform: scale(1); } }

/* section entrance FX */
.section-fx { position: fixed; inset: 0; z-index: 850; pointer-events: none; opacity: 0; }
.section-fx.play { animation: fxFlash 1s ease-out; }
@keyframes fxFlash { 0% { opacity: 0; } 12% { opacity: .7; } 100% { opacity: 0; } }
.fx-sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 32vw; transform: translateX(-40vw) skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(201,248,49,.16), rgba(255,255,255,.1), transparent);
  filter: blur(6px);
}
.section-fx.play .fx-sweep { animation: fxSweep 1s cubic-bezier(.4,0,.2,1); }
@keyframes fxSweep { 0% { transform: translateX(-40vw) skewX(-16deg); } 100% { transform: translateX(120vw) skewX(-16deg); } }
.fx-particles { position: absolute; inset: 0; overflow: hidden; }
.fx-particles i {
  position: absolute; width: var(--size, 4px); height: var(--size, 4px); border-radius: 50%;
  background: hsl(var(--hue, 75deg) 92% 62%); box-shadow: 0 0 10px currentColor; opacity: 0;
}
.section-fx.play .fx-particles i { animation: fxParticle 1.2s ease-out var(--pd, 0s) forwards; }
@keyframes fxParticle {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--px, 0), var(--py, -80px)) scale(1.2); }
}
.fx-label {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: clamp(40px, 9vw, 130px); font-weight: 700;
  letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(201,248,49,.5);
  white-space: nowrap; opacity: 0;
}
.section-fx.play .fx-label { animation: fxLabel 1.1s ease-out; }
@keyframes fxLabel {
  0% { opacity: 0; transform: translate(30px, -50%); letter-spacing: .1em; }
  20% { opacity: .8; }
  100% { opacity: 0; transform: translate(0, -50%); letter-spacing: -.03em; }
}

/* topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 74px; display: grid; grid-template-columns: minmax(145px, 1fr) minmax(0, 900px) auto; align-items: center; gap: 20px;
  padding: 0 clamp(20px, 3vw, 48px); border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7,9,10,.88), rgba(7,9,10,.48));
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.topbar.scrolled { background: rgba(7,9,10,.78); backdrop-filter: blur(18px); border-bottom-color: var(--line-soft); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1;
  letter-spacing: -2px; color: var(--ink);
}
.brand-sub { display: grid; gap: 3px; white-space: nowrap; }
.brand-sub strong { font-size: 13px; font-weight: 600; line-height: 1.2; }
.brand-sub small, .topnav small { font: 10px/1.25 var(--mono); color: #a6afa9; }
.topnav { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.topnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 52px; padding: 5px 3px; color: var(--ink); white-space: nowrap;
  font-size: 13px; line-height: 1.25; font-weight: 600; position: relative;
  transition: color .25s ease, background-color .25s ease; border-radius: 6px;
}
.topnav a::after {
  content: ""; position: absolute; inset: auto 20% 2px; height: 2px;
  background: var(--acid); transform: scaleX(0); transition: transform .25s ease;
}
.topnav a:hover, .topnav a.active { color: var(--acid); background-color: rgba(255,255,255,.05); }
.topnav a.active small { color: inherit; }
.topnav a:hover::after, .topnav a.active::after { transform: scaleX(1); }
.topnav a:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.top-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.top-admin {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: all .3s ease;
}
.top-admin span { color: var(--acid); }
.top-admin:hover { border-color: var(--acid); background: rgba(201,248,49,.08); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--ink); margin: 5px 0; }
/* On-demand visitor AI */
.assistant-launch {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--acid) 40%, var(--line)); border-radius: 999px;
  background: rgba(255,255,255,.045); color: var(--ink); cursor: pointer; font: 600 11px var(--sans);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.assistant-launch:hover, .assistant-launch[aria-expanded="true"] { border-color: var(--acid); background: color-mix(in srgb, var(--acid) 12%, transparent); transform: translateY(-1px); }
.assistant-launch > span:first-child { color: var(--acid); font-size: 16px; }
.assistant-launch[hidden] { display: none !important; }
.assistant-launch-short { display: none; }
.assistant-panel {
  position: fixed; z-index: 1300; right: 22px; bottom: 22px; display: flex; flex-direction: column;
  width: min(390px, calc(100vw - 28px)); height: min(610px, calc(100dvh - 100px));
  min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px;
  background: #0b0f0e; color: var(--ink); box-shadow: 0 22px 75px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.985); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.assistant-panel.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.assistant-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.025); }
.assistant-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.assistant-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--acid) 50%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--acid) 12%, transparent); color: var(--acid); }
.assistant-identity div { display: grid; gap: 4px; min-width: 0; }
.assistant-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.assistant-identity small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.assistant-tools { display: flex; gap: 6px; }
.assistant-tools button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.assistant-tools button:hover { border-color: var(--line); color: var(--ink); }
.assistant-messages { display: flex; flex: 1; flex-direction: column; gap: 16px; overflow: auto; padding: 18px 15px; overscroll-behavior: contain; }
.assistant-message { display: grid; gap: 6px; max-width: 92%; }
.assistant-message.is-user { align-self: flex-end; justify-items: end; }
.assistant-message-label { color: var(--muted); font-size: 10px; }
.assistant-message-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: 13px; }
.assistant-message.is-assistant .assistant-message-body { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 3px 10px 10px; background: rgba(255,255,255,.045); }
.assistant-message.is-user .assistant-message-body { padding: 9px 12px; border-radius: 10px 3px 10px 10px; background: color-mix(in srgb, var(--acid) 18%, #151a17); }
.assistant-message-body[data-status="thinking"] { color: var(--muted); }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 12px; }
.assistant-suggestions:empty { display: none; }
.assistant-facts { display: grid; gap: 5px; padding: 7px 10px; border-inline-start: 2px solid var(--acid); font-size: 11px; line-height: 1.5; color: var(--muted); }
.assistant-facts strong { color: var(--ink); }
.assistant-facts a { color: var(--accent, var(--acid)); text-decoration: underline; text-underline-offset: 2px; }
.assistant-suggestions button { max-width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: 10px; line-height: 1.35; }
.assistant-suggestions button:hover { border-color: var(--acid); color: var(--acid); }
.assistant-composer { display: grid; grid-template-columns: minmax(0,1fr) 36px; gap: 8px; padding: 11px 12px 9px; border-top: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.assistant-composer textarea { min-height: 38px; max-height: 108px; resize: vertical; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: rgba(0,0,0,.2); color: var(--ink); font: 12px/1.45 var(--sans); }
.assistant-composer textarea:focus { border-color: var(--acid); }
.assistant-composer textarea::placeholder { color: var(--dim); }
.assistant-composer > button { width: 36px; height: 36px; align-self: end; border: 0; border-radius: 8px; background: var(--acid); color: #10140c; cursor: pointer; font-size: 20px; font-weight: 700; }
.assistant-composer > button[hidden] { display: none; }
.assistant-composer > button:disabled { opacity: .45; cursor: not-allowed; }
.assistant-retry { justify-self: start; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.assistant-composer > small { grid-column: 1 / -1; color: var(--dim); font-size: 9px; }
@media (max-width: 640px) {
  .assistant-launch { width: 34px; justify-content: center; padding: 0; }
  .assistant-launch-label, .assistant-launch > span:first-child { display: none; }
  .assistant-launch-short { display: inline; color: var(--acid); }
  .assistant-panel { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); height: min(72dvh, 620px); min-height: min(360px, calc(100dvh - 20px)); }
}
@media (prefers-reduced-motion: reduce) { .assistant-launch, .assistant-panel { transition: none; } }

/* 背景音乐开关：旋转唱片表示播放中 */
.bgm-toggle {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04);
  cursor: pointer; transition: all .3s ease;
}
.bgm-disc {
  position: relative; display: block; width: 16px; height: 16px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, var(--acid) 0 1px, rgba(255,255,255,.12) 1px 3px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.bgm-disc::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: #07090a; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--acid);
}
.bgm-toggle.playing { border-color: var(--acid); }
.bgm-toggle.playing .bgm-disc { animation: bgmSpin 3.2s linear infinite; }
.bgm-toggle.muted:not(.blocked) { opacity: .58; }
.bgm-toggle.muted:not(.blocked) .bgm-disc { filter: grayscale(1); }
.bgm-toggle.blocked { opacity: .4; cursor: not-allowed; }
.bgm-toggle.waiting { animation: bgmPulse 1.8s ease-in-out infinite; }
.bgm-toggle.blocked-pulse { animation: bgmPulse .5s ease-in-out 2; }
.bgm-toggle:hover { border-color: var(--acid); transform: scale(1.08); }
@keyframes bgmSpin { to { transform: rotate(360deg); } }
@keyframes bgmPulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--acid) 22%, transparent); } }

/* 交互音效开关 */
.sfx-toggle {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(201,248,49,.05);
  color: var(--acid); cursor: pointer; transition: all .3s ease;
}
.sfx-toggle .sfx-icon { font-size: 16px; line-height: 1; transform: translateY(-1px); }
.sfx-toggle:hover { border-color: var(--acid); background: rgba(201,248,49,.16); transform: rotate(-12deg) scale(1.08); }
.sfx-toggle.muted { color: var(--muted); border-color: var(--line); background: transparent; }
.sfx-toggle.muted .sfx-icon { opacity: .55; }
.sfx-toggle.muted:hover { transform: none; opacity: .8; }

/* side rail */
.side-rail {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 600;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--muted);
}
.rail-line { width: 1px; height: 54px; background: linear-gradient(var(--acid), transparent); }
.rail-index { color: var(--acid); font-size: 11px; }
.rail-name { writing-mode: vertical-rl; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; --hero-pointer-x: 72%; --hero-pointer-y: 46%; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px; z-index: 4;
  pointer-events: none; background: linear-gradient(transparent, var(--bg));
}
.hero-character-art {
  position: absolute; z-index: 1; top: 50%; right: 0;
  width: min(72vw, 1152px); aspect-ratio: 3 / 2;
  pointer-events: none; will-change: transform;
  opacity: 0; transform: translate3d(24%, -50%, 0);
  transition: opacity .4s ease, transform 1.8s cubic-bezier(.16,1,.3,1);
}
.hero-character-media {
  position: absolute; inset: 0; overflow: hidden;
  /* 单层径向遮罩在 Chromium、Safari 和 Firefox 中都比多层 composite 更稳定。 */
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 68% 50%, #000 42%, rgba(0,0,0,.96) 64%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 78% at 68% 50%, #000 42%, rgba(0,0,0,.96) 64%, transparent 100%);
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.hero-character-video, .hero-character-fallback {
  position: absolute; inset: -6%; width: 112%; height: 112%;
  object-fit: cover; object-position: center;
  mix-blend-mode: screen;
  transform: scale(1.04);
}
.hero-character-art[data-theme-image] .hero-character-media {
  inset: 0; overflow: visible; -webkit-mask-image: none; mask-image: none;
}
.hero-character-art[data-theme-image] .hero-character-fallback {
  inset: 0; width: 100%; height: 100%; transform: none;
  object-fit: contain; mix-blend-mode: normal;
}
.hero-character-video.is-unavailable, .hero-character-fallback[hidden], .hero-play[hidden] { display: none; }
.hero-character-caption {
  position: absolute; z-index: 4; left: 7%; bottom: 17%;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(14px);
  color: rgba(226,234,228,.9); pointer-events: none;
}
.hero-character-caption-kicker {
  font: 9px/1.2 var(--mono); letter-spacing: .22em; color: var(--acid);
}
.hero-character-caption strong {
  font: italic 400 clamp(22px, 2.4vw, 36px)/1.05 var(--serif); letter-spacing: -.03em;
}
.hero.hero-caption-ready .hero-character-caption {
  animation: characterCaptionIn .8s 1.95s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes characterCaptionIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero.hero-ready .hero-character-art {
  opacity: 1; transform: translate3d(var(--hero-follow-x, 0px), calc(-50% + var(--hero-follow-y, 0px)), 0);
}
.hero.hero-ready .hero-spotlight { opacity: .28; }
.hero.hero-ready .hero-copy > * { animation: heroCopyReveal .8s cubic-bezier(.16,1,.3,1) both; }
.hero.hero-ready .hero-copy > :nth-child(1) { animation-delay: .14s; }
.hero.hero-ready .hero-copy > :nth-child(2) { animation-delay: .28s; }
.hero.hero-ready .hero-copy > :nth-child(3) { animation-delay: .44s; }
.hero.hero-ready .hero-copy > :nth-child(4) { animation-delay: .58s; }
.hero.hero-ready .hero-copy > :nth-child(5) { animation-delay: .7s; }
.hero.hero-ready .hero-float-top { animation: heroFloatIn .8s .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes heroCopyReveal {
  from { opacity: 0; transform: translateY(24px); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroFloatIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 74% at 76% 44%, rgba(74,141,123,.13), transparent 68%),
    linear-gradient(90deg, rgba(7,9,10,.98) 0%, rgba(7,9,10,.82) 35%, rgba(7,9,10,.26) 65%, rgba(7,9,10,.1) 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.hero-spotlight {
  position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 30% 42% at var(--hero-pointer-x) var(--hero-pointer-y), color-mix(in srgb, var(--acid) 13%, transparent), transparent 78%);
  transition: opacity .6s ease;
}
.hero-crosshair {
  position: absolute; z-index: 3; left: var(--hero-pointer-x); top: var(--hero-pointer-y);
  width: 34px; height: 34px; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(.6); transition: opacity .18s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.hero-crosshair::before, .hero-crosshair::after, .hero-crosshair i::before, .hero-crosshair i::after {
  content: ""; position: absolute; background: color-mix(in srgb, var(--acid) 76%, white);
}
.hero-crosshair::before, .hero-crosshair::after { left: 16px; width: 1px; height: 7px; }
.hero-crosshair::before { top: 0; } .hero-crosshair::after { bottom: 0; }
.hero-crosshair i::before, .hero-crosshair i::after { top: 16px; width: 7px; height: 1px; }
.hero-crosshair i::before { left: 0; } .hero-crosshair i::after { right: 0; }
.hero-content { position: relative; z-index: 5; width: min(100% - 72px, var(--wrap)); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-copy { max-width: 620px; padding: 120px 0 90px; }
.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--acid); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.hero-eyebrow { color: #cfd6d0; }
.hero-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(62px, 8.4vw, 130px);
  line-height: .88; letter-spacing: -.05em; margin: 26px 0 26px;
  text-wrap: balance;
}
.hero-title span { display: block; }
.hero-title em { display: block; color: var(--acid); font-style: italic; letter-spacing: -.055em; }
.hero-tagline { max-width: 430px; color: #b7bfb9; font-size: 15px; line-height: 1.8; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 15px 24px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.btn span { font-family: var(--mono); font-size: 14px; }
/* Button motion inspired by Codrops ButtonHoverStyles. */
.hero-actions a.btn:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-actions a.btn span { display: inline-block; transition: transform .24s ease; }
  .hero-actions a.btn-acid:focus-visible span { transform: translate(3px, -3px); }
  .hero-actions a.btn-ghost:focus-visible span { transform: translateY(4px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-actions a.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.24), transparent 72%);
    transform: translateX(-110%);
  }
  .hero-actions a.btn:hover::after { transform: translateX(110%); transition: transform .55s ease; }
  .hero-actions a.btn-acid:hover span { transform: translate(3px, -3px); }
  .hero-actions a.btn-ghost:hover span { transform: translateY(4px); }
}
.btn-acid { background: var(--acid); color: #0a0e06; box-shadow: 0 8px 34px color-mix(in srgb, var(--acid) 18%, transparent); }
.btn-acid:hover { transform: translateY(-3px); box-shadow: 0 14px 40px color-mix(in srgb, var(--acid) 30%, transparent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--acid); transform: translateY(-3px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.meta-chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.02);
}
.hero-side-note {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--dim);
  writing-mode: vertical-rl;
}
.side-note-line { width: 1px; height: 60px; background: linear-gradient(var(--dim), transparent); }

.hero-float {
  position: absolute; z-index: 6; right: 40px; backdrop-filter: blur(16px);
  border: 1px solid var(--line); background: rgba(12,16,16,.6); border-radius: 12px;
  padding: 14px 18px; display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.hero-float-top { top: 112px; }
.hero-float-bottom { bottom: 78px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--muted); gap: 4px; }
.hero-arrival { position: absolute; z-index: 6; left: 4.5%; right: 4.5%; bottom: 34px; display: flex; align-items: center; gap: 12px; color: var(--dim); font: 8px var(--mono); letter-spacing: .18em; pointer-events: none; }
.hero-arrival i { display: block; height: 1px; flex: 1; background: linear-gradient(90deg, var(--line), transparent); }
.float-kicker { font-family: var(--mono); font-size: 8px; letter-spacing: .22em; color: var(--acid); }
.float-pulse { position: absolute; right: 14px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,248,49,.5); } 50% { box-shadow: 0 0 0 8px rgba(201,248,49,0); } }

/* sections */
.section { padding: 130px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { margin-bottom: 56px; max-width: 900px; }
.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(42px, 6.2vw, 92px); margin: 20px 0 0; text-wrap: balance;
}
.display em { font-style: italic; color: var(--acid); }
.section-desc { max-width: 570px; color: var(--muted); line-height: 1.8; font-size: 14px; margin: 24px 0 0; }
.section-desc code { font-family: var(--mono); font-size: 12px; color: var(--acid); background: rgba(201,248,49,.08); padding: 2px 6px; border-radius: 4px; }

/* about */
.section-about { background: linear-gradient(180deg, #07090a, #0a0d0e 55%, #07090a); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
.about-lead { font-family: var(--serif); font-size: 30px; line-height: 1.3; margin: 0 0 26px; }
.bio-text { color: #aeb6b0; font-size: 15px; line-height: 2; white-space: pre-line; }
.about-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.about-contact a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--acid);
  border-bottom: 1px solid rgba(201,248,49,.35); padding-bottom: 4px;
}
.about-contact a:hover { color: var(--ink); border-color: var(--ink); }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-box {
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  min-height: 150px; display: flex; flex-direction: column; justify-content: space-between;
}
.stat-box:last-child { grid-column: span 2; }
.stat-value { font-family: var(--serif); font-size: 58px; line-height: 1; color: var(--acid); }
.stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.skills-strip { margin-top: 70px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; padding: 20px 0; }
.skills-track { display: flex; gap: 34px; width: max-content; animation: marquee 28s linear infinite; }
.skills-track span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #9fa8a1; white-space: nowrap; }
.skills-track span::before { content: "✳"; color: var(--acid); margin-right: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card {
  position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  overflow: hidden; cursor: pointer; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(130deg, rgba(201,248,49,.5), transparent 40%, transparent 65%, rgba(201,248,49,.2));
  opacity: 0; transition: opacity .35s ease; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-8px); border-color: rgba(201,248,49,.4); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.card:hover::before { opacity: 1; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111614; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(7,9,10,.65)); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:not(.is-open) .card-media.cover-motion img {
    transform: perspective(650px) rotateX(var(--cover-rx, 0deg)) rotateY(var(--cover-ry, 0deg)) scale(1.09);
    transition-duration: .18s;
  }
  .card-media.cover-motion::after {
    pointer-events: none;
    background:
      radial-gradient(ellipse at var(--cover-x, 50%) var(--cover-y, 50%), color-mix(in srgb, var(--acid) 32%, transparent), transparent 58%),
      linear-gradient(transparent 45%, rgba(7,9,10,.65));
  }
}
.card-badge {
  position: absolute; z-index: 2; left: 14px; top: 14px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; padding: 6px 10px; border-radius: 999px; background: rgba(7,9,10,.75);
  border: 1px solid var(--line); backdrop-filter: blur(8px); color: var(--acid);
}
.card-price {
  position: absolute; z-index: 2; right: 14px; top: 14px; font-family: var(--mono); font-size: 13px;
  padding: 7px 12px; border-radius: 999px; background: var(--acid); color: #0a0e06; font-weight: 700;
}
.card-sold .card-price { background: #3a403c; color: #b9c0ba; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.card-summary { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: #aab3ac; border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 9px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.card-action { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acid); }
.card-index { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 60% 30%, #24352d, #0d1211 70%); }

/* 光影放映室 */
.film-card .card-media { aspect-ratio: 16 / 9; }
.film-card .fold-cue i::before { content: "▶"; font-size: 8px; }
.film-grid > .empty { grid-column: 1 / -1; line-height: 2; }
.film-grid > .empty small { font-family: var(--mono); letter-spacing: .16em; }
.film-player { display: block; width: 100%; max-height: 65vh; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border: 1px solid var(--line); border-radius: 12px; }
.film-status { color: var(--muted); font-size: 13px; line-height: 1.7; }
.film-status:empty { display: none; }

/* foldable cards + category */
.cat-pill { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 5px 11px; border-radius: 999px; color: #0a0e06; background: var(--acid); white-space: nowrap; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fold-head { width: 100%; display: block; text-align: left; padding: 0; margin: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.fold-head:focus-visible { outline: 2px solid var(--acid); outline-offset: -3px; }
.fold-cue { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acid); }
.fold-cue i { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform .35s ease, background .35s ease; }
.fold-cue i::before { content: "+"; font-style: normal; line-height: 1; }
.fold-card.is-open .fold-cue i { transform: rotate(45deg); background: rgba(201,248,49,.12); border-color: var(--acid); }
.fold-more {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 2px; padding: 6px 10px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(201,248,49,.12), rgba(201,248,49,0));
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--acid);
}
.fold-more i { font-style: normal; animation: foldBob 1.8s ease-in-out infinite; }
@keyframes foldBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.fold-card.is-open .fold-more, .embed-card.is-open .embed-more { display: none; }
.fold-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1); }
.fold-card.is-open .fold-detail, .embed-card.is-open .fold-detail { grid-template-rows: 1fr; }
.fold-detail-inner { overflow: hidden; min-height: 0; }
.card .fold-detail-inner { padding: 0 24px; }
.fold-card.is-open .fold-detail-inner { padding-bottom: 24px; }
.fold-card.is-open:hover .card-media img { transform: none; }
.fold-card .modal-section-title { margin-top: 20px; }
.fold-card .modal-actions, .fold-card .modal-gallery { margin-top: 18px; }
.card-placeholder span { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: rgba(201,248,49,.65); }

/* list-level fold (show two rows, hide the rest) */
[data-list-item].list-hidden { display: none !important; }
.list-toggle {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; margin-top: 6px; padding: 16px 20px; cursor: pointer;
  background: linear-gradient(90deg, rgba(201,248,49,.04), rgba(201,248,49,.1), rgba(201,248,49,.04));
  border: 1px dashed rgba(201,248,49,.45); border-radius: var(--r);
  color: var(--acid); font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  transition: background .25s ease, border-color .25s ease;
}
.list-toggle:hover { background: rgba(201,248,49,.14); border-color: var(--acid); }
.list-toggle i { font-style: normal; font-size: 15px; animation: foldBob 1.8s ease-in-out infinite; }
.list-toggle[aria-expanded="true"] i { animation: none; }

/* games */
.section-games { background: radial-gradient(ellipse at 18% 12%, rgba(139,92,246,.16), transparent 52%), #09080d; }
.game-grid .card-badge { background: var(--acid); color: #0a0e06; border-color: var(--acid); font-weight: 800; }
.modal-body .embed-host .iframe-shell { background: #0b0e0d; }

/* vr */
.section-vr { background: radial-gradient(ellipse at 80% 20%, rgba(51,90,74,.14), transparent 50%), #080b0c; }

/* photography */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.photo-card { cursor: pointer; }
.photo-card .fold-cue i::before { content: "↗"; }
.photo-card.is-open .fold-cue i { transform: none; background: transparent; border-color: var(--line); }
.photo-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; border: 1px solid var(--line-soft); }
.photo-item:nth-child(6n+1) { grid-column: span 2; aspect-ratio: 16/9; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .5s ease; }
.photo-item:hover img { transform: scale(1.06); filter: saturate(1.15); }
.photo-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 20px 18px; z-index: 2;
  background: linear-gradient(transparent, rgba(5,7,7,.88));
  display: flex; justify-content: space-between; align-items: end; gap: 10px;
}
.photo-item strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.photo-item small { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .08em; }

/* market */
.section-market { background: #090c0b; }

/* projects toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; transition: all .25s ease;
}
.filter-btn:hover { border-color: var(--acid); color: var(--ink); }
.filter-btn.active { background: var(--acid); border-color: var(--acid); color: #0a0e06; font-weight: 700; }
.toolbar-right { display: flex; align-items: center; gap: 16px; }
.result-count { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acid); white-space: nowrap; }
.search { position: relative; }
.search::before { content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 18px; pointer-events: none; }
.search input {
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px 11px 38px; font-size: 12px; width: 220px; outline: none; transition: border-color .25s ease;
}
.search input:focus { border-color: var(--acid); }

/* embeds */
.embed-list { display: grid; gap: 22px; }
.embed-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,.025); }
.embed-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.embed-card .embed-bar { width: 100%; text-align: left; background: none; border-top: 0; border-left: 0; border-right: 0; color: inherit; font: inherit; cursor: pointer; }
.embed-card .embed-bar:focus-visible { outline: 2px solid var(--acid); outline-offset: -3px; }
.embed-card .fold-detail-inner.embed-host:empty { min-height: 0; border: 0; }
.embed-card.is-open .fold-detail-inner.embed-host { min-height: 200px; }
.embed-dots { display: flex; gap: 5px; }
.embed-dots i { width: 7px; height: 7px; border-radius: 50%; background: #4b534e; }
.embed-dots i:first-child { background: var(--acid); }
.embed-url { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 320px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.embed-teaser { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.embed-more { font-size: 9px; letter-spacing: .06em; color: var(--acid); }
.embed-name { font-family: var(--serif); font-size: 20px; margin-right: auto; }
.embed-card iframe { width: 100%; border: 0; display: block; background: #0c0f0e; }
.embed-empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 50px; text-align: center; color: var(--muted); font-size: 13px; }

/* contact */
.contact { padding-top: 130px; border-top: 1px solid var(--line-soft); background: radial-gradient(ellipse at 50% 100%, rgba(201,248,49,.08), transparent 60%); }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-bottom: 120px; }
.contact-inner .display { max-width: 900px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.letter-dialog { width: min(540px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #60746a; border-radius: 8px; background: #243b32; color: #1b2822; box-shadow: 0 24px 80px #0009; overflow: auto; overscroll-behavior: contain; }
.letter-dialog::backdrop { background: #050909d9; }
body:has(.letter-dialog[open]) { overflow: hidden; }
.letter-envelope { height: 72px; position: relative; display: grid; place-items: center; perspective: 450px; background: #263f35; }
.letter-envelope::before { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: #496558; transform-origin: top; }
.letter-envelope span { z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--acid); color: #131c13; font: italic bold 20px var(--serif); }
.letter-paper { position: relative; margin: 0 12px 12px; padding: 22px 22px 16px; background: #f0f0e6; border-radius: 4px; }
.letter-dialog[open] .letter-envelope::before { animation: letter-flap .42s ease-out both; }
.letter-dialog[open] .letter-paper { animation: letter-unfold .36s .08s ease-out both; }
@keyframes letter-flap { from { transform: rotateX(-75deg); } to { transform: rotateX(0); } }
@keyframes letter-unfold { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.letter-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; padding: 0; background: transparent; border: 1px solid #85978a; color: inherit; border-radius: 4px; font-size: 23px; cursor: pointer; }
.letter-kicker { margin: 0 42px 8px 0; font: 11px var(--mono); color: #385647; }
.letter-paper h2 { margin: 0 42px 8px 0; font-size: 24px; }
.letter-note { margin: 0 0 16px; color: #395549; font-size: 13px; }
.letter-form, .letter-form label { display: grid; gap: 8px; }
.letter-form { gap: 12px; }
.letter-form label { font-size: 13px; min-width: 0; }
.letter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.letter-form input, .letter-form textarea { width: 100%; padding: 9px 10px; border: 1px solid #8b9b8e; border-radius: 4px; background: #fffefa; color: #1b2822; font: inherit; font-size: 16px; }
.letter-form textarea { resize: vertical; }
.letter-form :focus-visible, .letter-close:focus-visible { outline: 2px solid #25644d; outline-offset: 2px; }
.letter-form .btn { justify-self: start; }
.letter-form .btn:disabled { opacity: .6; cursor: wait; }
.letter-status { min-height: 1.4em; margin: 10px 0 0; color: #773522; font-size: 13px; }
.letter-sent .letter-status { color: #285440; }
@media (max-width: 460px) { .letter-paper { padding: 16px; } .letter-fields { grid-template-columns: minmax(0, 1fr); } .letter-envelope { height: 52px; } }
@media (prefers-reduced-motion: reduce) { .letter-dialog[open] .letter-envelope::before, .letter-dialog[open] .letter-paper { animation: none; } }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 36px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 28px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,5,5,.82); backdrop-filter: blur(10px); animation: fadeIn .25s ease; }
.modal-panel {
  position: relative; width: min(100%, 900px); max-height: min(88vh, 900px); overflow: auto;
  background: #0d1110; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: modalIn .35s cubic-bezier(.2,.9,.25,1);
}
.modal-close, .lightbox-close {
  position: absolute; right: 18px; top: 16px; z-index: 10; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(10,13,12,.7);
  color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; transition: transform .3s ease, border-color .3s ease;
}
.modal-close:hover, .lightbox-close:hover { transform: rotate(90deg); border-color: var(--acid); color: var(--acid); }
.modal-body { padding: 38px; }
.modal-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--acid); }
.modal-title { font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); font-weight: 400; letter-spacing: -.03em; margin: 14px 0 18px; }
.modal-text { color: #aeb6b0; line-height: 1.9; font-size: 14px; white-space: pre-line; }
.modal-section-title { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--muted); margin: 30px 0 12px; }
.modal-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.modal-highlights li { position: relative; padding-left: 20px; font-size: 13px; color: #c6cdc7; }
.modal-highlights li::before { content: "↳"; position: absolute; left: 0; color: var(--acid); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.viewer-shell { position: relative; height: 420px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #1d2b25, #0a0e0d 70%); }
.viewer-shell canvas { display: block; width: 100%; height: 100%; }
.viewer-hint { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--muted); background: rgba(0,0,0,.4); padding: 7px 10px; border-radius: 6px; }
.iframe-shell { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.view-tabs { display: flex; gap: 8px; margin: 4px 0 14px; }
.view-tab { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; transition: .2s ease; }
.view-tab:hover { color: var(--ink); border-color: var(--acid); }
.view-tab.active { background: var(--acid); color: #0a0e0d; border-color: var(--acid); font-weight: 800; }
.view-pane[hidden] { display: none !important; }
.embed-host:empty { min-height: 460px; border: 1px dashed var(--line); border-radius: 14px; }
.modal-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.modal-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; cursor: pointer; border: 1px solid var(--line-soft); }
.photo-detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; padding: 0; overflow: hidden; background: #151a18; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 10px; cursor: pointer; }
.photo-preview:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.photo-preview img { position: absolute; inset: 0; height: 100%; border: 0; border-radius: 0; }
.photo-preview span { display: none; }
.photo-preview-error span { display: block; padding: 8px; font-size: 12px; }
.photo-preview-error img { display: none; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.info-cell { border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; }
.info-cell small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--dim); margin-bottom: 6px; }
.info-cell strong { font-size: 13px; font-weight: 500; }
@keyframes fadeIn { from { opacity: 0 } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97) } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: rgba(3,5,5,.96); overflow: hidden; }
.lightbox.open { display: flex; }
.lightbox:fullscreen { width: 100%; height: 100%; }
.lightbox > .modal-backdrop { background: #070909; backdrop-filter: none; animation: none; }
.lightbox figure { position: relative; z-index: 2; display: grid; grid-template-rows: minmax(0, 1fr) 26px; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.lightbox-stage { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; }
.lightbox img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; pointer-events: auto; }
.lightbox img:not([src]), .lightbox img[hidden] { visibility: hidden; }
.lightbox.is-full:not(.pixel-view) img { cursor: zoom-in; }
.lightbox.pixel-view .lightbox-stage { display: block; overflow: auto; pointer-events: auto; }
.lightbox.pixel-view img { width: auto; height: auto; max-width: none; margin: auto; cursor: zoom-out; }
.lightbox figcaption { align-self: end; margin: 0; text-align: center; color: #dce4df; font: 12px var(--mono); }
.lightbox .lightbox-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.lightbox-nav:disabled { display: none; }
.lightbox-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,13,12,.7); color: var(--ink); cursor: pointer; font-size: 20px; }
.lightbox-nav:hover { border-color: var(--acid); color: var(--acid); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); z-index: 1200; opacity: 0; pointer-events: none; background: #141a17; border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; transition: all .3s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
/* 内容成功初始化后再启用出场动画；初始化异常时保持页面可见。 */
.app-hydrated .reveal { opacity: 0; transform: translateY(28px); }
.app-hydrated .reveal.in { opacity: 1; transform: none; }
.card.reveal { transition-delay: var(--delay, 0ms); }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 46px; color: var(--muted); text-align: center; font-size: 13px; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: minmax(150px, 1fr) minmax(0, 760px) auto; gap: 10px; padding-inline: 18px; }
  .topnav { gap: 1px; }
  .topnav a { font-size: 12px; }
  .topnav small { font-size: 8px; }
  .top-actions { gap: 8px; }
  .side-rail { display: none; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 14px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(7,9,10,.97); border-bottom: 1px solid var(--line); }
  .topnav.open { display: grid; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  .container, .hero-content { width: min(100% - 40px, var(--wrap)); }
  .topbar { grid-template-columns: 1fr auto; padding: 0 20px; height: 64px; }
  .topnav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 14px 18px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: rgba(7,9,10,.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
  .topnav.open { display: grid; }
  .topnav a { align-items: flex-start; min-height: 54px; padding: 9px 12px; font-size: 14px; }
  .topnav small { font-size: 9px; }
  .nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding: 110px 0 200px; }
  .hero-character-art { width: min(84vw, 920px); top: 50%; right: -6%; }
  .hero-float { display: none; }
  .hero-arrival { bottom: 20px; font-size: 7px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item:nth-child(6n+1) { grid-column: span 2; }
  .hero-side-note { display: none; }
  .hero-crosshair { display: none; }
}
@media (max-width: 640px) {
  .hero-spotlight, .hero-crosshair { display: none; }
  .skills-track { animation: none; width: 100%; flex-wrap: wrap; gap: 12px 24px; }
  .section-fx { display: none; }
  .container, .hero-content { width: calc(100% - 32px); }
  .section { padding: 86px 0; }
  .hero-title { font-size: clamp(54px, 15vw, 84px); margin: 20px 0; }
  .hero-tagline { font-size: 14px; }
  .hero-canvas { opacity: .24; }
  .hero-character-art { width: min(112vw, 680px); right: -16%; top: 40%; }
  .hero-character-video, .hero-character-fallback { inset: -3%; width: 106%; height: 106%; transform: none; }
  .hero-character-media { --media-fade-x: linear-gradient(to right, transparent, #000 13%, #000 96%); --media-fade-y: linear-gradient(to bottom, transparent, #000 8%, #000 78%, transparent); }
  .photo-card.reveal { opacity: 1; transform: none; transition: none; }
  .photo-grid { content-visibility: auto; contain-intrinsic-size: 1px 1200px; }
  .hero-character-caption { left: 8%; bottom: 15%; }
  .hero-character-caption strong { font-size: 22px; }
  .hero-title { position: relative; z-index: 5; }
  .hero-vignette { background: linear-gradient(180deg, rgba(7,9,10,.18), rgba(7,9,10,.45) 47%, #07090a 89%); }
  .hero-copy { padding: 100px 0 70px; }
  .hero-arrival { display: none; }
  .hero.hero-ready .hero-copy > *, .hero.hero-ready .hero-float-top { animation: none; opacity: 1; transform: none; filter: none; }
  .btn { padding: 13px 20px; font-size: 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item, .photo-item:nth-child(6n+1) { grid-column: auto; aspect-ratio: 4/3; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-box { min-height: 120px; padding: 20px 16px; }
  .stat-value { font-size: 40px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .search input { width: 170px; }
  .modal { padding: 12px; }
  .modal-body { padding: 26px 20px; }
  .viewer-shell { height: 300px; }
  .iframe-shell { height: 360px; }
  .embed-host:empty { min-height: 360px; }
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .footer { flex-direction: column; gap: 10px; }
}
/* 模块切换时复用的小光圈转场 */
.fx-lens {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px;
  border-radius: 50%; border: 1px solid var(--acid); opacity: 0;
  transform: translate(-50%, -50%) scale(.2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 36px color-mix(in srgb, var(--acid) 50%, transparent);
}
.section-fx.play .fx-lens { animation: fxLens .75s cubic-bezier(.2,.8,.2,1); }
@keyframes fxLens {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(6); }
}

@media (max-width: 640px) {
  .intro-caption { padding: 0 22px; }
  .intro-title { font-size: clamp(38px, 11vw, 62px); }
  .intro-kicker { font-size: 9px; letter-spacing: .28em; }
  .intro-sub { left: 22px; right: 22px; bottom: 13vh; max-width: none; }
  .intro-skip { right: 18px; bottom: 4vh; font-size: 9px; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-character-art { opacity: 1; transform: translate3d(0, -50%, 0); transition: none; }
  .hero-character-caption { opacity: 1; transform: none; }
  .hero-spotlight, .hero-crosshair { display: none; }
  .hero.hero-ready .hero-copy > *, .hero.hero-ready .hero-float-top { opacity: 1; transform: none; filter: none; }
  .reveal { opacity: 1; transform: none; }
}
