/* =========================================================
   安心把我可是 — 守望先锋战术 HUD 个人站
   设计系统：OKLCH 配色 · 六角几何 · 流体排版 · 指数缓动
   ========================================================= */

:root {
  /* —— 中性：深空冷蓝灰（无纯黑纯白） —— */
  --bg-0: oklch(12% 0.018 255);   /* 最底层背景 */
  --bg-1: oklch(15.5% 0.022 258); /* 面板 / hero */
  --bg-2: oklch(20% 0.028 258);   /* 卡片 */
  --bg-3: oklch(25% 0.03 258);    /* 悬停 / 高亮面 */
  --line: oklch(38% 0.03 258);    /* 边框 */
  --line-soft: oklch(30% 0.025 258);

  /* —— 文本 —— */
  --text-0: oklch(97% 0.008 255); /* 主文本 */
  --text-1: oklch(80% 0.02 258);  /* 次文本 */
  --text-2: oklch(64% 0.02 258);  /* 弱文本 / 标签 */

  /* —— 品牌强调（克制使用） —— */
  --energy: oklch(73% 0.155 62);  /* OW 能量橙 — 攻击/高光 */
  --energy-deep: oklch(58% 0.15 55);
  --tech: oklch(74% 0.095 205);   /* 青蓝 — 科技/辅助 */
  --danger: oklch(64% 0.17 25);   /* 红 — clutch/危险 */

  /* —— 字体 —— */
  --font-display: "Chakra Petch", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* —— 间距（流式） —— */
  --space-section: clamp(4rem, 9vw, 8.5rem);
  --space-gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
  --maxw: 1180px;

  /* —— 缓动（指数曲线，拒绝 bounce） —— */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-mid: 300ms;
  --dur-slow: 600ms;

  /* —— 六角 clip-path（尖顶） —— */
  --hex-pointy: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  --hex-flat: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* —— Reset —— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  font-weight: 350;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

::selection { background: var(--energy); color: var(--bg-0); }

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

/* —— 跳链接（a11y） —— */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--energy); color: var(--bg-0);
  padding: 0.6rem 1rem; font-family: var(--font-mono); font-weight: 500;
  border-radius: 0 0 8px 8px; transition: top var(--dur-fast) var(--ease-expo);
}
.skip-link:focus { top: 0; }

/* 数据加载态 / 无脚本提示 */
.loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; font-family: var(--font-mono);
  color: oklch(72% 0.04 220); letter-spacing: 0.1em; font-size: 0.95rem;
}
.noscript-warn {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: oklch(22% 0.06 250); color: #fff;
  padding: 1rem 1.25rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.9rem; border-top: 1px solid oklch(40% 0.08 250);
}

/* =========================================================
   背景图层
   ========================================================= */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.backdrop__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.tri-canvas { opacity: 1; pointer-events: none; }
.backdrop__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, oklch(38% 0.03 258 / 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(38% 0.03 258 / 0.10) 1px, transparent 1px);
  background-size: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 72px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.backdrop__scanline {
  position: absolute; left: 0; right: 0; height: 38vh;
  background: linear-gradient(180deg, transparent, oklch(73% 0.155 62 / 0.05), transparent);
  animation: scan 9s linear infinite;
}
@keyframes scan { 0% { transform: translateY(-40vh); } 100% { transform: translateY(140vh); } }

/* =========================================================
   滚动进度条
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150;
  background: oklch(38% 0.03 258 / 0.4);
}
.scroll-progress__bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--tech), var(--energy));
  box-shadow: 0 0 12px var(--energy);
  transition: width 80ms linear;
}

/* =========================================================
   导航
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--space-gutter);
  background: oklch(12% 0.018 255 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--dur-mid) var(--ease-expo), border-color var(--dur-mid);
}
.nav.is-scrolled { background: oklch(12% 0.018 255 / 0.92); border-color: var(--line); }

.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__hex {
  width: 30px; height: 30px; fill: none;
  stroke: var(--energy); stroke-width: 4;
  filter: drop-shadow(0 0 6px oklch(73% 0.155 62 / 0.6));
  transition: transform var(--dur-mid) var(--ease-expo);
}
.nav__brand:hover .nav__hex { transform: rotate(60deg); }
.nav__id {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.06em; color: var(--text-0);
}
.nav__sep { color: var(--energy); }

.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.nav__links a {
  font-family: var(--font-mono); font-size: 0.92rem; letter-spacing: 0.04em;
  color: var(--text-2); position: relative; padding: 0.3rem 0;
  transition: color var(--dur-fast) var(--ease-expo);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--energy); transition: width var(--dur-mid) var(--ease-expo);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text-0); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

.nav__toggle { display: none; width: 42px; height: 42px; flex-direction: column;
  justify-content: center; gap: 5px; padding: 10px; border-radius: 8px; }
.nav__toggle span {
  display: block; height: 2px; width: 100%; background: var(--text-0);
  transition: transform var(--dur-mid) var(--ease-expo), opacity var(--dur-fast);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   通用 section
   ========================================================= */
.section {
  max-width: var(--maxw); margin-inline: auto;
  padding: var(--space-section) var(--space-gutter);
}
.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__kicker {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.18em;
  color: var(--energy); text-transform: uppercase; margin-bottom: 0.8rem;
}
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.05;
  color: var(--text-0); letter-spacing: -0.01em;
}
.section__desc { margin-top: 0.9rem; color: var(--text-2); font-size: 1.05rem; max-width: 52ch; }

/* 入场动画（JS 启用时生效，IntersectionObserver 触发 .in） */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-slow) var(--ease-expo), transform var(--dur-slow) var(--ease-expo); }
html.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem var(--space-gutter) 4rem;
  max-width: var(--maxw); margin-inline: auto;
}
.hero__inner { max-width: 46rem; }
.hero__tag {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.16em;
  color: var(--tech); margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 11vw, 7rem); line-height: 0.96;
  letter-spacing: -0.02em; color: var(--text-0);
  text-transform: none;
}
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(100deg, var(--energy), oklch(80% 0.13 75));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  margin-top: 1.6rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-1); max-width: 44ch;
}
.hero__lede strong { color: var(--text-0); font-weight: 600; }

.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__hud {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-top: 1.8rem; border-top: 1px solid var(--line-soft);
}
.hero__hud div { display: flex; flex-direction: column; gap: 0.3rem; }
.hero__hud dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text-2); text-transform: uppercase; }
.hero__hud dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--text-0); }
.hero__hud dd span { font-size: 0.5em; color: var(--energy); margin-left: 0.15em; }

/* 准星装饰 */
.crosshair { position: absolute; right: clamp(1rem, 8vw, 8rem); top: 50%; transform: translateY(-50%);
  width: clamp(120px, 22vw, 240px); height: clamp(120px, 22vw, 240px); opacity: 0.5; }
.crosshair span { position: absolute; background: var(--energy); box-shadow: 0 0 10px var(--energy); }
.crosshair span:nth-child(1), .crosshair span:nth-child(3) { width: 2px; height: 22%; left: 50%; transform: translateX(-50%); }
.crosshair span:nth-child(2), .crosshair span:nth-child(4) { height: 2px; width: 22%; top: 50%; transform: translateY(-50%); }
.crosshair span:nth-child(1) { top: 0; } .crosshair span:nth-child(3) { bottom: 0; }
.crosshair span:nth-child(2) { left: 0; } .crosshair span:nth-child(4) { right: 0; }

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.04em; padding: 0.85rem 1.5rem; border-radius: 10px;
  transition: transform var(--dur-fast) var(--ease-expo), box-shadow var(--dur-mid) var(--ease-expo), background var(--dur-mid), color var(--dur-mid);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-mid) var(--ease-expo); }
.btn--primary { background: var(--energy); color: var(--bg-0); box-shadow: 0 6px 24px oklch(73% 0.155 62 / 0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px oklch(73% 0.155 62 / 0.5); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--line); color: var(--text-0); }
.btn--ghost:hover { border-color: var(--tech); color: var(--tech); transform: translateY(-2px); }

/* =========================================================
   集锦画廊
   ========================================================= */
.gallery {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.clip {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  cursor: pointer; text-align: left;
  transition: transform var(--dur-mid) var(--ease-expo), border-color var(--dur-mid), box-shadow var(--dur-mid) var(--ease-expo);
}
.clip:hover, .clip:focus-visible {
  transform: translateY(-6px);
  border-color: var(--energy);
  box-shadow: 0 16px 40px oklch(0% 0 0 / 0.45), 0 0 0 1px var(--energy);
}
.clip__media {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  overflow: hidden;
}
.clip__glyph {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8vw, 4.5rem);
  color: oklch(98% 0 0 / 0.92); text-shadow: 0 4px 20px oklch(0% 0 0 / 0.4);
  transition: transform var(--dur-slow) var(--ease-expo);
}
.clip:hover .clip__glyph, .clip:focus-visible .clip__glyph { transform: scale(1.12) rotate(-3deg); }
/* 各英雄主题渐变 */
.clip__media--genji  { background: linear-gradient(135deg, oklch(62% 0.13 150), oklch(42% 0.10 165)); }
.clip__media--pharah { background: linear-gradient(135deg, oklch(68% 0.15 45), oklch(50% 0.13 30)); }
.clip__media--tracer { background: linear-gradient(135deg, oklch(74% 0.12 70), oklch(54% 0.12 50)); }
.clip__media--hanzo  { background: linear-gradient(135deg, oklch(55% 0.16 285), oklch(38% 0.13 270)); }
.clip__media--dva    { background: linear-gradient(135deg, oklch(66% 0.16 340), oklch(48% 0.14 325)); }
.clip__media--widow  { background: linear-gradient(135deg, oklch(70% 0.11 200), oklch(50% 0.10 190)); }
.clip__media--winston{ background: linear-gradient(135deg, oklch(64% 0.12 230), oklch(46% 0.11 220)); }
.clip__media--mercy  { background: linear-gradient(135deg, oklch(80% 0.12 85), oklch(62% 0.12 70)); }

.clip__meta { padding: 1rem 1.1rem 1.2rem; }
.clip__tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg-0);
  background: var(--energy); padding: 0.2rem 0.55rem; border-radius: 5px; margin-bottom: 0.7rem;
}
.clip__name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--text-0); }
.clip__hero { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-2); margin-top: 0.25rem; }

.clip__play {
  position: absolute; top: 0.8rem; right: 0.8rem; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  background: oklch(12% 0.018 255 / 0.7); color: var(--text-0); font-size: 0.8rem;
  border: 1px solid var(--line); transform: scale(0.8); opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-expo), transform var(--dur-mid) var(--ease-expo);
}
.clip:hover .clip__play, .clip:focus-visible .clip__play { opacity: 1; transform: scale(1); }

/* =========================================================
   英雄六边形网格
   ========================================================= */
.hexgrid {
  display: grid; gap: clamp(0.5rem, 2vw, 1rem);
  grid-template-columns: repeat(4, 1fr);
  max-width: 760px;
}
.hex {
  position: relative; aspect-ratio: 1; clip-path: var(--hex-pointy);
  background: var(--bg-2); border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  color: var(--text-1);
  transition: transform var(--dur-mid) var(--ease-expo), background var(--dur-mid), color var(--dur-mid);
}
.hex::before {
  content: ""; position: absolute; inset: 0; clip-path: var(--hex-pointy);
  background: oklch(72% 0.15 var(--hue) / 0.16); opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-expo);
}
.hex:hover, .hex:focus-visible { transform: scale(1.06); color: var(--text-0); }
.hex:hover::before, .hex:focus-visible::before { opacity: 1; }
.hex__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.3rem); position: relative; }
.hex__lvl {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: oklch(72% 0.15 var(--hue)); position: relative; text-transform: uppercase;
}

/* =========================================================
   雪神 · 全能战力
   ========================================================= */
.allhero { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.allhero__img {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, oklch(64% 0.12 230), oklch(46% 0.11 220));
  display: grid; place-items: center;
  box-shadow: 0 0 60px oklch(64% 0.12 230 / 0.35), inset 0 0 0 1px oklch(80% 0.1 230 / 0.3);
}
.allhero__glyph { font-size: clamp(4rem, 11vw, 7rem); line-height: 1; filter: drop-shadow(0 6px 14px oklch(0% 0 0 / 0.35)); }
.allhero__img::after {
  content: "WINSTON"; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; color: oklch(98% 0 0 / 0.85);
}
.allhero__quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.12; color: var(--text-0); }
.allhero__sub { margin-top: 1rem; color: var(--text-2); max-width: 42ch; }

/* =========================================================
   战绩
   ========================================================= */
.statgrid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.stat {
  position: relative; padding: 1.8rem 1.5rem; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-soft); overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--energy); box-shadow: 0 0 14px var(--energy);
}
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; color: var(--text-0);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stat__label { display: block; margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--text-2); }

/* =========================================================
   关于
   ========================================================= */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1.4fr 1fr; align-items: start; }
.about p { color: var(--text-1); margin-top: 1rem; max-width: 50ch; }
.about__list { margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.about__list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem;
}
.about__list li span { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-2); letter-spacing: 0.04em; }

.about__card {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}
.about__card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--text-0); }
.about__card-desc { color: var(--text-2); margin-top: 0.6rem; font-size: 0.95rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0; }
.social {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text-1); transition: border-color var(--dur-fast) var(--ease-expo), color var(--dur-fast), background var(--dur-fast);
}
.social:hover { border-color: var(--energy); color: var(--energy); background: oklch(73% 0.155 62 / 0.08); }
.about__handle { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-2); }
.about__handle strong { color: var(--text-0); }

/* =========================================================
   页脚
   ========================================================= */
.footer { border-top: 1px solid var(--line-soft); padding: 2.5rem var(--space-gutter); }
.footer__inner { max-width: var(--maxw); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer__id { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text-0); letter-spacing: 0.05em; }
.footer__note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2); max-width: 50ch; }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.5rem; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: oklch(8% 0.015 255 / 0.82); backdrop-filter: blur(6px); animation: fade var(--dur-mid) var(--ease-expo); }
.lightbox__panel {
  position: relative; z-index: 1; width: min(720px, 100%);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 80px oklch(0% 0 0 / 0.6);
  animation: pop var(--dur-mid) var(--ease-expo);
}
.lightbox__close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: oklch(12% 0.018 255 / 0.8); border: 1px solid var(--line); color: var(--text-0);
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-expo);
}
.lightbox__close:hover { background: var(--danger); transform: rotate(90deg); }
.lightbox__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lightbox__media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--bg-3), var(--bg-1)); display: grid; place-items: center; }
.lightbox__media::after { content: "▶ 操作回放占位"; font-family: var(--font-mono); color: var(--text-2); font-size: 0.9rem; }
.lightbox__info { padding: 1.4rem 1.6rem 1.8rem; }
.lightbox__title { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--text-0); margin-top: 0.8rem; }
.lightbox__desc { color: var(--text-1); margin-top: 0.6rem; }
.lightbox__hero { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-2); margin-top: 0.8rem; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: oklch(12% 0.018 255 / 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 0.5rem var(--space-gutter) 1.2rem;
    transform: translateY(-130%); transition: transform var(--dur-mid) var(--ease-expo);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }

  .about__grid { grid-template-columns: 1fr; }
  .allhero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .allhero__sub { margin-inline: auto; }
  .crosshair { opacity: 0.25; right: 1rem; }
}

@media (max-width: 520px) {
  .hexgrid { grid-template-columns: repeat(2, 1fr); }
  .hero__hud { gap: 1.5rem; }
  .gallery { grid-template-columns: 1fr; }
}

/* 容器查询：英雄卡片在超窄容器收紧内边距 */
.heroes { container-type: inline-size; }
@container (max-width: 540px) {
  .hex { gap: 0.1rem; }
}

/* =========================================================
   动效降级
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .backdrop__scanline { display: none; }
}
