/* ===========================================================
   黄珏晔 · 游戏音频作品集 — 样式表
   滚轮整屏吸附翻页 / 深色 HUD 风 / 无外部依赖 / 可离线打开
   =========================================================== */

:root {
  --bg:        #07090d;
  --bg-soft:   #10151b;
  --bg-card:   #141b23;
  --bg-hi:     #1c2530;
  --line:      #26313d;
  --line-soft: #1a222b;
  --text:      #e9edf2;
  --text-dim:  #a6b1bf;
  --text-mute: #6f7c8b;
  --accent:    #5eead4;
  --accent-dim: rgba(94, 234, 212, .16);
  --accent-2:  #a78bfa;
  --accent-3:  #fbbf24;
  --accent-4:  #fb7185;
  --radius:    6px;
  --radius-sm: 5px;
  --maxw:      1140px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

/* ===========================================================
   整屏吸附：滚轮一次翻一屏
   =========================================================== */
/* 翻页动画由 JS 控制（滚轮/键盘一次翻一屏，requestAnimationFrame 自己做缓动）。
   这里必须关掉浏览器自带的平滑滚动，否则两套动画会打架。 */
html { scroll-behavior: auto; }

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

/* --- 背景：光晕 + 网格 + 扫描线 --- */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 680px;
  background:
    radial-gradient(56% 60% at 20% 10%, rgba(94, 234, 212, .14), transparent 62%),
    radial-gradient(48% 56% at 84% 2%,  rgba(167, 139, 250, .14), transparent 66%),
    radial-gradient(40% 50% at 50% 42%, rgba(251, 113, 133, .07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(94, 234, 212, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, .05) 1px, transparent 1px);
  background-size: 100% 3px, 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(130% 95% at 50% 0%, #000 18%, transparent 76%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 650; letter-spacing: .01em; }
p  { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.15em; }
li { margin-bottom: .38em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------------- 一屏 ----------------
   每屏最小占满一屏高度，吸附到顶部；内容垂直居中。
   底部留出 HUD 的高度，避免正在播放时压住内容。 */
.snap {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 76px 0 40px;
  border-bottom: 1px solid var(--line-soft);
}
.snap:last-of-type { border-bottom: 0; }

/* 翻到这一屏时内容上浮入场 —— 让"翻页"这件事看得见 */
.snap.flip-in .wrap { animation: pageIn .55s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes pageIn {
  from { opacity: .3; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: rgba(7, 9, 13, .84);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(94, 234, 212, .08);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.nav-brand { font-weight: 700; letter-spacing: .04em; font-size: 15px; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.nav-brand i { width: 9px; height: 9px; background: var(--accent); display: inline-block; box-shadow: 0 0 10px var(--accent); animation: blip 2.4s ease-in-out infinite; }
.nav-brand span { color: var(--accent); }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav-links a {
  color: var(--text-dim); font-size: 14px; padding: 7px 12px; border-radius: 4px;
  text-decoration: none; transition: .18s; border: 1px solid transparent; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hi); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: var(--accent-dim); border-color: rgba(94, 234, 212, .32); }
.nav-cta {
  font-size: 13px; padding: 8px 15px; border-radius: 4px; font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(94, 234, 212, .4) !important; color: var(--accent) !important;
  background: var(--accent-dim); box-shadow: 3px 3px 0 rgba(94, 234, 212, .12);
}
.nav-cta:hover { background: rgba(94, 234, 212, .22); text-decoration: none !important; }

/* ---------------- 右侧进度点 ---------------- */
.dots {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 70;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-end;
}
.dots button {
  width: 11px; height: 11px; border-radius: 2px; border: 1px solid var(--line);
  background: var(--bg-card); cursor: pointer; padding: 0; transition: .18s; position: relative;
}
.dots button:hover { border-color: var(--accent); }
.dots button.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(94, 234, 212, .65); height: 24px; }
.dots button span {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 11px; color: var(--text-dim); white-space: nowrap;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px;
  opacity: 0; pointer-events: none; transition: .16s;
}
.dots button:hover span { opacity: 1; }
@media (max-width: 1200px) { .dots { display: none; } }

/* ---------------- 向下滚动提示 ---------------- */
.scroll-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--text-mute);
  text-decoration: none;
}
.scroll-hint:hover { color: var(--text-dim); text-decoration: none; }
.scroll-hint i {
  width: 14px; height: 14px; border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
  transform: rotate(45deg); animation: hint 1.9s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { opacity: .35; transform: rotate(45deg) translate(0, 0); }
  50%      { opacity: 1;   transform: rotate(45deg) translate(5px, 5px); }
}

/* ---------------- 首屏 ---------------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; align-items: center; }
.hero-kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.hero-kicker::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 750; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--text-mute); font-weight: 400; font-size: .48em; display: block; margin-top: 10px; letter-spacing: .05em; }
.cursor { display: inline-block; width: .4em; height: .82em; background: var(--accent); vertical-align: -.04em; margin-left: 8px; animation: blink 1.05s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: 17px; color: var(--text-dim); max-width: 56ch; margin: 18px 0 0; }
.hero-lead strong { color: var(--text); font-weight: 600; box-shadow: inset 0 -6px 0 var(--accent-dim); }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin: 20px 0 0; max-width: 320px; }
.eq span {
  flex: 1 1 auto; min-width: 2px; height: 22%; border-radius: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(94, 234, 212, .18));
  animation: eq 1.15s ease-in-out infinite;
}
.eq span:nth-child(3n)  { animation-duration: 1.4s; }
.eq span:nth-child(4n)  { animation-duration: .88s; }
.eq span:nth-child(5n)  { animation-duration: 1.65s; }
.eq span:nth-child(2n)  { animation-delay: -.32s; }
.eq span:nth-child(7n)  { animation-delay: -.62s; }
.eq span:nth-child(11n) { animation-delay: -.9s; }
@keyframes eq { 0%, 100% { height: 14%; } 50% { height: 94%; } }
body.audio-live .eq span { animation-duration: .52s; filter: brightness(1.3) saturate(1.15); }

.hero-hint { font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); letter-spacing: .08em; margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-hint b { color: var(--accent-3); font-weight: 600; }

.stats { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.stat {
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius);
  padding: 10px 15px; min-width: 138px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); transition: .2s;
}
.stat:hover { border-color: rgba(94, 234, 212, .42); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(94, 234, 212, .12); }
.stat b { display: block; font-family: var(--mono); font-size: 20px; color: var(--accent); font-weight: 600; }
.stat span { font-size: 12.5px; color: var(--text-mute); }

.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; border: 1px solid var(--line); color: var(--text);
  background: var(--bg-card); transition: .16s; text-decoration: none; cursor: pointer;
  font-family: var(--sans); box-shadow: 4px 4px 0 rgba(0, 0, 0, .4);
}
.btn:hover { background: var(--bg-hi); border-color: #33414f; text-decoration: none; transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(0, 0, 0, .45); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .4); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #04231f; box-shadow: 4px 4px 0 rgba(94, 234, 212, .22); }
.btn-primary:hover { background: #7df0dc; border-color: #7df0dc; box-shadow: 6px 6px 0 rgba(94, 234, 212, .3); }
.btn-primary:active { box-shadow: 1px 1px 0 rgba(94, 234, 212, .25); }

/* ---------------- 人物照：等比例完整显示 + 融进深色画风 ----------------
   1) 用高度决定尺寸（height + width:auto），保证整张照片都看得到，不裁切
   2) filter 压一点白场
   3) 两层叠加：multiply 染色（白底变青灰）+ 暗角，让亮底融进页面
   4) 扫描线纹理，跟背景统一成"屏幕"质感 */
.hero-side { display: flex; flex-direction: column; align-items: center; justify-self: center; width: fit-content; max-width: 100%; }
.char-card { display: flex; flex-direction: column; align-items: center; gap: 11px; width: 100%; }
.char-frame {
  position: relative; display: inline-block; border-radius: 8px; padding: 3px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2) 52%, var(--accent-4));
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .45);
}
.char-frame img {
  display: block; height: clamp(230px, 40vh, 430px); width: auto; max-width: 100%;
  border-radius: 6px; background: var(--bg-card);
  filter: brightness(.9) contrast(1.06) saturate(.86);
}
.char-frame::before, .char-frame::after { content: ""; position: absolute; width: 15px; height: 15px; pointer-events: none; z-index: 3; }
.char-frame::before { left: -8px; top: -8px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.char-frame::after { right: -8px; bottom: -8px; border-right: 2px solid var(--accent-4); border-bottom: 2px solid var(--accent-4); }
.char-tint {
  position: absolute; inset: 3px; border-radius: 6px; pointer-events: none; z-index: 1;
  mix-blend-mode: multiply;
  background: linear-gradient(158deg, rgba(64, 190, 175, .74), rgba(38, 50, 64, .64) 46%, rgba(122, 98, 192, .68));
}
.char-vig {
  position: absolute; inset: 3px; border-radius: 6px; pointer-events: none; z-index: 2;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px),
    radial-gradient(118% 86% at 50% 34%, rgba(255, 255, 255, .92) 26%, rgba(150, 160, 172, .9) 62%, rgba(24, 30, 40, .95) 100%);
}
.nameplate {
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: 6px; width: 100%;
  padding: 9px 14px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .32); display: flex; align-items: center; gap: 10px;
}
.nameplate b { font-size: 15px; }
.nameplate span { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; margin-left: auto; }
.status-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font-size: 12px; color: var(--text-dim); border: 1px solid var(--line); background: var(--bg-soft);
  border-radius: 999px; padding: 6px 12px; font-family: var(--mono); letter-spacing: .02em;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: blip 2s ease-in-out infinite; }

/* ---------------- 成就条 ---------------- */
.band { margin-top: 34px; }
.band-in { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
.band-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; color: var(--accent-3); text-transform: uppercase; margin-right: 6px; white-space: nowrap; }
.ach {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim);
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 5px 11px; transition: .18s;
}
.ach b { color: var(--accent-3); font-size: 11px; }
.ach:hover { border-color: rgba(251, 191, 36, .42); color: var(--text); transform: translateY(-1px); }

/* ---------------- 分区标题 ---------------- */
.sec-head { margin-bottom: 24px; }
.sec-head .idx { font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: .2em; display: inline-flex; align-items: center; gap: 9px; }
.sec-head .idx::before { content: "◆"; color: var(--accent-2); font-size: 10px; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 6px; }
.sec-head h2::after { content: ""; display: block; width: 54px; height: 3px; margin-top: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), rgba(167, 139, 250, .5) 70%, transparent); }
.sec-head p { color: var(--text-dim); margin-top: 10px; max-width: 74ch; }

/* ---------------- 关卡选择 ---------------- */
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.level {
  position: relative; display: block; border: 1px solid var(--line); background: var(--bg-soft);
  border-radius: var(--radius); padding: 20px; cursor: pointer; transition: .18s; text-align: left;
  color: inherit; font-family: var(--sans); box-shadow: 5px 5px 0 rgba(0, 0, 0, .34); overflow: hidden;
  text-decoration: none;
}
.level::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .35; transition: opacity .2s; }
.level:hover, .level.sel { border-color: var(--accent); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(94, 234, 212, .14); text-decoration: none; }
.level:hover::after, .level.sel::after { opacity: 1; }
.level-num { display: block; font-family: var(--mono); font-size: 30px; font-weight: 700; line-height: 1; color: var(--text-mute); transition: .18s; }
.level:hover .level-num, .level.sel .level-num { color: var(--accent); text-shadow: 0 0 20px rgba(94, 234, 212, .5); }
.level-title { display: block; font-size: 17px; font-weight: 650; margin-top: 12px; }
.level-title::before { content: "▶ "; color: var(--accent); font-size: 11px; opacity: 0; transition: .16s; }
.level:hover .level-title::before, .level.sel .level-title::before { opacity: 1; }
.level-sub { display: block; font-size: 13px; color: var(--text-dim); margin-top: 7px; }
.level-tags { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-top: 12px; letter-spacing: .02em; }
.level-go { position: absolute; right: 16px; bottom: 14px; font-family: var(--mono); font-size: 11px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: .18s; letter-spacing: .08em; }
.level:hover .level-go, .level.sel .level-go { opacity: 1; transform: none; }
.level.latest { border-color: rgba(251, 191, 36, .34); }
.level .pill-latest { position: absolute; right: 14px; top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 2px 8px; border-radius: 3px; background: rgba(251, 191, 36, .14); color: var(--accent-3); border: 1px solid rgba(251, 191, 36, .35); }

.kbd-hint { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); margin-top: 20px; letter-spacing: .04em; }
.kbd-hint kbd { border: 1px solid var(--line); background: var(--bg-card); border-radius: 3px; padding: 2px 7px; color: var(--text-dim); font-family: var(--mono); font-size: 11px; box-shadow: 0 2px 0 rgba(0, 0, 0, .42); }

/* ---------------- 作品详情 ---------------- */
.work-head { display: flex; gap: 13px; align-items: baseline; flex-wrap: wrap; }
.work-num { font-family: var(--mono); font-size: 12.5px; color: var(--text-mute); letter-spacing: .12em; }
.work h3 { font-size: clamp(19px, 2.4vw, 25px); }
.work-sub { color: var(--text-dim); font-size: 14.5px; margin: 7px 0 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 13px 0 0; }
.tags li { font-size: 12px; color: var(--text-dim); border: 1px solid var(--line); background: var(--bg-card); border-radius: 3px; padding: 3px 10px; margin: 0; box-shadow: 2px 2px 0 rgba(0, 0, 0, .3); }
.work-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 20px; }
.work-body.no-media { grid-template-columns: 1fr; }
.work-col h4 {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute);
  margin-bottom: 10px; font-family: var(--mono); font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.work-col h4::before { content: ""; width: 4px; height: 12px; background: var(--accent); display: inline-block; }
.work-col p, .work-col li { color: var(--text-dim); font-size: 14.5px; }
.work-col strong { color: var(--text); font-weight: 600; }
.work-col ul { padding-left: 1.1em; }

.metrics { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.metric { border: 1px solid rgba(94, 234, 212, .28); background: rgba(94, 234, 212, .05); border-radius: var(--radius-sm); padding: 8px 13px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .3); }
.metric b { font-family: var(--mono); font-size: 16px; color: var(--accent); font-weight: 600; margin-right: 8px; }
.metric span { font-size: 12.5px; color: var(--text-dim); }

.boundary {
  margin-top: 14px; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line); background: rgba(255, 255, 255, .012);
  font-size: 13px; color: var(--text-mute);
}
.boundary b { color: var(--text-dim); }

/* ---------------- 视频 ---------------- */
.video-box { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); }
.video-box video { width: 100%; display: block; max-height: 34vh; background: #000; }
.video-note { font-size: 12px; color: var(--text-mute); margin-top: 7px; }

/* ---------------- 音频播放器 ---------------- */
.tracklist { display: flex; flex-direction: column; gap: 7px; margin-top: 3px; }
.tracklist.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.track {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px;
  border: 1px solid var(--line); background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 8px 13px 8px 8px; transition: .16s; position: relative; box-shadow: 3px 3px 0 rgba(0, 0, 0, .3);
}
.track:hover { border-color: #35434f; background: var(--bg-hi); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(0, 0, 0, .34); }
.track.playing { border-color: rgba(94, 234, 212, .5); background: rgba(94, 234, 212, .06); }
.track-play {
  width: 38px; height: 38px; border-radius: 4px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--accent); cursor: pointer; display: grid; place-items: center;
  font-size: 12px; transition: .14s; padding: 0; flex: none;
}
.track-play:hover { background: var(--accent); color: #04231f; border-color: var(--accent); }
.track.playing .track-play { background: var(--accent); color: #04231f; border-color: var(--accent); }
.track-main { min-width: 0; }
.track-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-sub { font-size: 12px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-bar { height: 4px; background: #202932; border-radius: 2px; margin-top: 6px; overflow: hidden; cursor: pointer; }
.track-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.track-time { font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); white-space: nowrap; }
.track-eq { display: none; align-items: flex-end; gap: 2px; height: 13px; margin-top: 5px; }
.track.playing .track-eq { display: flex; }
.track-eq i { width: 3px; height: 30%; background: var(--accent); animation: eq .9s ease-in-out infinite; }
.track-eq i:nth-child(2) { animation-duration: .62s; }
.track-eq i:nth-child(3) { animation-duration: 1.15s; }
.track-eq i:nth-child(4) { animation-duration: .78s; }

/* ---------------- 画廊（当前未启用，保留样式） ---------------- */
.gallery-wrap { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.gallery-wrap > summary { cursor: pointer; font-size: 13.5px; color: var(--text-dim); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; }
.gallery-wrap > summary::-webkit-details-marker { display: none; }
.gallery-wrap > summary::before { content: "▸"; color: var(--accent); transition: .18s; }
.gallery-wrap[open] > summary::before { transform: rotate(90deg); }
.gallery-wrap > summary:hover { color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; margin-top: 16px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg-card); }
.gallery img { width: 100%; height: 148px; object-fit: cover; object-position: top center; display: block; cursor: zoom-in; transition: .2s; background: #0d1117; }
.gallery figure:hover img { opacity: .84; }
.gallery figcaption { font-size: 12px; color: var(--text-mute); padding: 7px 10px; border-top: 1px solid var(--line-soft); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 6, 9, .95); display: none; align-items: center; justify-content: center; padding: 34px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 6px; border: 1px solid var(--line); }
.lightbox-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--text-dim); padding: 0 20px; }

/* ---------------- 能力 ---------------- */
.matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); gap: 14px; }
.mcard {
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius);
  padding: 20px; transition: .2s; box-shadow: 4px 4px 0 rgba(0, 0, 0, .32); position: relative; overflow: hidden;
}
.mcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 80%); opacity: .5; }
.mcard:hover { border-color: rgba(94, 234, 212, .35); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(94, 234, 212, .1); }
.mcard h3 { font-size: 15.5px; margin-bottom: 3px; }
.mcard .lv { font-size: 11px; font-family: var(--mono); color: var(--accent); letter-spacing: .08em; margin-bottom: 9px; }
.mcard li { color: var(--text-dim); font-size: 13.8px; }
.mcard li b { color: var(--text); font-weight: 600; }
.skill-lv { display: flex; gap: 4px; margin-bottom: 12px; }
.skill-lv i { width: 15px; height: 5px; background: #232d38; border-radius: 1px; display: block; }
.skill-lv i.on { background: var(--accent); box-shadow: 0 0 7px rgba(94, 234, 212, .55); }

/* ---------------- 经历 ---------------- */
.timeline { border-left: 1px solid var(--line); padding-left: 24px; margin-left: 6px; }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 7px; width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--accent); transform: rotate(45deg); transition: .2s; }
.tl-item:hover::before { background: var(--accent); box-shadow: 0 0 12px rgba(94, 234, 212, .6); }
.tl-when { font-family: var(--mono); font-size: 12px; color: var(--text-mute); }
.tl-what { font-size: 16px; font-weight: 600; margin: 3px 0 2px; }
.tl-where { font-size: 13px; color: var(--accent); margin-bottom: 6px; }
.tl-item ul { padding-left: 1.1em; }
.tl-item li { color: var(--text-dim); font-size: 14px; }

/* ---------------- 联系 ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; margin-top: 22px; }
.ccard { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius); padding: 17px 19px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .32); transition: .2s; }
.ccard:hover { border-color: rgba(94, 234, 212, .35); transform: translate(-1px, -1px); }
.ccard span { font-size: 11px; color: var(--text-mute); letter-spacing: .12em; font-family: var(--mono); display: block; margin-bottom: 5px; }
.ccard a, .ccard b { font-size: 15.5px; font-weight: 600; word-break: break-all; }
.dl-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.dl-row .btn { font-size: 13px; padding: 9px 16px; }

/* ---------------- 正在播放 HUD ---------------- */
.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  transform: translateY(115%); transition: transform .28s cubic-bezier(.2, .8, .3, 1);
  background: rgba(9, 12, 17, .95);
  backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-top: 1px solid rgba(94, 234, 212, .3); box-shadow: 0 -8px 26px rgba(0, 0, 0, .45);
}
body.audio-live .hud { transform: none; }
body.audio-live { padding-bottom: 56px; }   /* 给 HUD 让出位置，别盖住页脚 */
.hud-in { display: flex; align-items: center; gap: 13px; height: 54px; }
.hud-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: #04231f; background: var(--accent); padding: 3px 8px; border-radius: 3px; font-weight: 700; white-space: nowrap; }
.hud-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-eq { display: flex; align-items: flex-end; gap: 2px; height: 17px; flex: none; }
.hud-eq i { width: 3px; height: 30%; background: var(--accent); animation: eq .85s ease-in-out infinite; }
.hud-eq i:nth-child(2) { animation-duration: .6s; }
.hud-eq i:nth-child(3) { animation-duration: 1.1s; }
.hud-eq i:nth-child(4) { animation-duration: .72s; }
.hud-eq i:nth-child(5) { animation-duration: .95s; }
.hud-stop {
  margin-left: auto; flex: none; font-size: 12px; color: var(--text-dim); cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 4px; padding: 6px 13px;
  font-family: var(--mono); letter-spacing: .06em; transition: .16s;
}
.hud-stop:hover { color: var(--accent); border-color: rgba(94, 234, 212, .4); }

/* ---------------- 开机动画 ---------------- */
.boot { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; transition: opacity .4s; }
.boot.gone { opacity: 0; pointer-events: none; }
.boot-in { text-align: center; font-family: var(--mono); }
.boot-title { font-size: 12.5px; letter-spacing: .3em; color: var(--accent); }
.boot-sub { font-size: 11px; letter-spacing: .12em; color: var(--text-mute); margin-top: 10px; }
.boot-bar { width: 200px; height: 4px; background: #1c2530; margin: 16px auto 0; border-radius: 2px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: boot .7s ease-out forwards; }
@keyframes boot { to { width: 100%; } }

/* ---------------- 页脚（也是最后一屏） ---------------- */
footer {
  min-height: 34vh; display: flex; align-items: center;
  border-top: 1px solid var(--line-soft); padding: 30px 0 56px; color: var(--text-mute); font-size: 13px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------- 滚动出现 ---------------- */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); }
.js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .eq span, .track-eq i, .hud-eq i, .nav-brand i, .status-pill .dot, .cursor, .boot-bar i, .scroll-hint i { animation: none !important; }
  .eq span { height: 45%; }
}

/* ---------------- 响应式 ----------------
   窄屏/矮屏内容会变高，吸附改成"不锁死"，避免翻不到下半部分 */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-side { justify-self: start; }
  .char-frame img { height: clamp(200px, 34vh, 340px); }
  .work-body { grid-template-columns: 1fr; gap: 20px; }
  .video-box video { max-height: 38vh; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .snap { min-height: auto; padding: 34px 0 40px; align-items: flex-start; }
  .nav-in { height: auto; padding: 9px 0; flex-wrap: wrap; gap: 8px; }
  .nav-links { width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; padding: 6px 10px; }
  .nav-cta { font-size: 12.5px; padding: 6px 12px; }
  .levels { grid-template-columns: 1fr; }
  .track { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .track-play { width: 34px; height: 34px; }
  .scroll-hint { display: none; }
  .hud-in { height: 50px; gap: 10px; }
  .hud-name { font-size: 13px; }
  footer { min-height: auto; }
}

/* ===========================================================
   像素风覆盖层
   放在最后，用同样的选择器覆盖上面的圆角 / 细边 / 柔投影：
   直角 + 2px 硬边 + 无模糊的整数像素投影 = 复古游戏 UI 的观感
   =========================================================== */

/* 1) 直角化：所有面板、按钮、标签、方块 */
.work, .level, .mcard, .ccard, .track, .stat, .video-box, .nameplate, .status-pill,
.tags li, .metric, .ach, .boundary, .pill-latest, .kbd-hint kbd, .btn, .nav-cta,
.nav-links a, .dots button, .dots button span, .hud-tag, .hud-stop, .lightbox img,
.gallery figure, .gallery img, .char-tint, .char-vig, .skill-lv i, .track-play,
.track-bar, .track-fill, .eq span, .track-eq i, .hud-eq i,
.level .pill-latest, .nav-links a.active, .nav-links a:hover { border-radius: 0; }

/* 2) 2px 硬边 + 无模糊硬投影 */
.work, .level, .mcard, .ccard, .track, .stat, .video-box, .nameplate,
.tags li, .metric, .ach, .boundary, .btn, .nav-cta, .track-play, .hud-stop, .dots button { border-width: 2px; }
.work, .level, .mcard, .ccard, .track, .stat, .nameplate { box-shadow: 5px 5px 0 rgba(0, 0, 0, .62); }
.video-box { box-shadow: 4px 4px 0 rgba(0, 0, 0, .62); }
.btn { box-shadow: 4px 4px 0 rgba(0, 0, 0, .62); }
.work:hover, .level:hover, .level.sel, .mcard:hover, .ccard:hover, .track:hover, .stat:hover {
  box-shadow: 7px 7px 0 rgba(94, 234, 212, .3);
}
.btn:hover { box-shadow: 6px 6px 0 rgba(94, 234, 212, .22); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .62); }
.btn-primary { box-shadow: 4px 4px 0 rgba(94, 234, 212, .42); }
.btn-primary:hover { box-shadow: 6px 6px 0 rgba(94, 234, 212, .5); }
.nav-cta { box-shadow: 3px 3px 0 rgba(0, 0, 0, .62); }

/* 3) 标题：硬投影 + 字距，像标题画面 */
.hero h1 { text-shadow: 4px 4px 0 rgba(94, 234, 212, .18); letter-spacing: .02em; }
.sec-head h2 { text-shadow: 3px 3px 0 rgba(167, 139, 250, .18); }
.hero-kicker { letter-spacing: .26em; }
.level-num, .stat b, .metric b, .dots button span, .boot-title { letter-spacing: .04em; }

/* 4) 分区标题下面那条线 → 方块血条 */
.sec-head h2::after {
  width: 138px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 18px);
}

/* 5) 人物照：最近邻放大，真像素块 */
.char-frame, .char-frame img { border-radius: 0; }
.char-frame { box-shadow: 6px 6px 0 rgba(0, 0, 0, .62); }
.char-frame img {
  filter: brightness(.94) contrast(1.04) saturate(.92);
}
.status-pill .dot { border-radius: 0; width: 8px; height: 8px; }

/* 6) 进度点 → 像素方块 */
.dots button { width: 12px; height: 12px; }
.dots button.active { height: 26px; box-shadow: none; outline: 2px solid rgba(94, 234, 212, .3); outline-offset: 2px; }

/* 7) 播放器与能量格方块化 */
.track-play { width: 38px; height: 38px; }
.track-bar { height: 6px; }
.eq span { min-width: 4px; }
.track-eq i, .hud-eq i { width: 4px; }
.skill-lv i { width: 16px; height: 6px; }
.hud { border-top-width: 2px; }
.hud-tag { padding: 4px 9px; }
.band-in { border-top-width: 2px; border-bottom-width: 2px; }
.snap { border-bottom-width: 2px; }

/* 8) 页脚也是翻页停靠点，给同样的入场动效 */
footer.flip-in .wrap { animation: pageIn .55s cubic-bezier(.2, .8, .3, 1) both; }

/* ===========================================================
   9) 点阵（像素）字体
   -----------------------------------------------------------
   本机没有装真正的像素字体（Zpix / 缝合像素 / Silkscreen 之类都没装），
   所以用 Windows 自带里最接近点阵观感的顶：宋体 / 新宋体 / MS Gothic。
   真正让它"像素化"的关键是 -webkit-font-smoothing: none —— 关掉抗锯齿后
   笔画边缘变成硬边，小字号下就是点阵效果。
   字体栈第一位留给了 Zpix / 缝合像素，装了就会自动生效。
   =========================================================== */
/* 站点内嵌的像素字体：Zpix（方正像素，含中文点阵），字体文件由你提供。
   font-weight 声明成范围，避免浏览器给单字重字体合成粗体、把点阵笔画糊掉。 */
@font-face {
  font-family: "Zpix Web";
  src: url("../assets/fonts/zpix.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pixel: "Zpix Web", "Zpix", "Fusion Pixel 12px", "Ark Pixel 12px",
           "SimSun", "NSimSun", "MS Gothic", ui-monospace, monospace;
}

/* 标题 + 所有 UI 文字换成点阵栈，并关闭抗锯齿 */
.hero h1, .sec-head h2, .work h3, .work-col h4, .mcard h3, .tl-what,
.hero-kicker, .sec-head .idx, .band-label, .work-num, .level-num, .level-title,
.level-sub, .level-tags, .level-go, .stat b, .stat span, .metric b, .metric span,
.tags li, .ach, .ccard span, .ccard a, .ccard b, .nameplate b, .nameplate span,
.status-pill, .track-name, .track-sub, .track-time, .nav-brand, .nav-links a,
.nav-cta, .btn, .back-btn, .crumb, .kbd-hint, .kbd-hint kbd, .hero-hint,
.video-note, .boundary, .dots button span, .hud-tag, .hud-name, .hud-stop,
.tl-when, .tl-where, .pill-latest, .scroll-hint, .boot-title, .boot-sub,
.work-sub, footer, .ccard, .boundary b, .level,
.mcard li, .tl-item li, .mcard h3, .mcard .lv {
  font-family: var(--pixel);
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: geometricPrecision;
}
/* 注：长段落（作品说明的条目、首屏导语、分区导语）故意留在无衬线字体，
   宋体 + 关抗锯齿在小字号长文里会显瘦、影响招聘方阅读 —— 像素风只上"界面"，不上"正文" */

/* 小字号对齐 Zpix 的原生 12px（点阵在原尺寸最脆），大标题对齐 12 的倍数 */
.hero-kicker, .sec-head .idx, .work-num, .stat span, .metric span,
.band-label, .kbd-hint, .hero-hint, .track-time, .ccard span, .hud-tag,
.level-tags, .pill-latest, .track-sub, .tl-when, .dots button span { font-size: 12px; }
.scroll-hint { font-size: 11px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 48px); }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 36px); }

/* 小字加一点字距，点阵才不糊成一团 */
.hero-kicker, .sec-head .idx, .band-label, .work-num, .level-num, .level-tags,
.work-col h4, .kbd-hint, .hero-hint, .video-note, .boundary, .track-sub,
.track-time, .nav-links a, .nav-cta, .ccard span, .hud-tag, .hud-stop,
.dots button span, .tl-when, .tl-where, .pill-latest, .status-pill, .scroll-hint {
  letter-spacing: .04em;
}

/* 小字加 1px 硬投影，模拟点阵字的实心边缘 */
.nav-brand, .nav-links a, .hero-kicker, .sec-head .idx, .band-label, .level-num,
.stat b, .metric b, .track-time, .hud-tag, .work-num, .tl-when, .pill-latest,
.level-tags, .ccard span {
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .55);
}

/* 大标题用宋体的粗体，边缘方正，接近老游戏标题 */
.hero h1 { font-weight: 700; letter-spacing: .03em; }
.sec-head h2, .work h3 { font-weight: 700; letter-spacing: .02em; }

/* ===========================================================
   10) 剧照条（《失序公约》舞剧演出照）
   =========================================================== */
.photostrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.photostrip img {
  width: 100%;
  height: clamp(118px, 17vh, 196px);
  object-fit: cover;            /* 4:3 左右裁切，553×369 的原图只裁掉约 7% 宽度 */
  object-position: center 38%;
  display: block;
  cursor: zoom-in;
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .62);
  transition: .16s;
  background: #0d1117;
}
.photostrip img:hover { border-color: var(--accent); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(94, 234, 212, .28); }

@media (max-width: 760px) {
  .photostrip { grid-template-columns: repeat(2, 1fr); }
  .photostrip img { height: clamp(96px, 22vh, 160px); }
}

/* ===========================================================
   11) 统一字体：整站都用像素字
   -----------------------------------------------------------
   之前是"界面用像素字、正文用无衬线"的混排，结果同一张作品卡里
   左栏标签是像素字、右栏说明是雅黑 —— 看起来像没改完，而不是设计。
   现在统一：
   · body 设成 --pixel，所有没单独声明字体的元素（正文条目、导语、
     剧照说明等）全部继承像素字
   · 再补上仍然显式声明 --mono 的少数元素
   · 抗锯齿一起关掉，全站渲染一致
   注：Zpix 的原生尺寸是 12px，正文现在是 14.5px（约 1.2 倍），
   笔画会有极轻微粗细不匀；想要最脆的观感就把正文改成 12px。
   =========================================================== */
body {
  font-family: var(--pixel);
  -webkit-font-smoothing: none;
  font-smooth: never;
}
.mcard .lv {
  font-family: var(--pixel);
  -webkit-font-smoothing: none;
  font-size: 12px;
}
.work-col p, .work-col li { font-size: 14px; }

/* ===========================================================
   12) 复制提示条（联系方式点击复制后的反馈）
   =========================================================== */
.toast {
  position: fixed; left: 50%; bottom: 74px; z-index: 120;
  transform: translate(-50%, 14px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  background: var(--bg-card); color: var(--accent);
  border: 2px solid rgba(94, 234, 212, .55);
  padding: 8px 15px; font-size: 12px;
  font-family: var(--pixel);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .6);
  white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 可复制元素：给一点"可点"的暗示 */
[data-copy] { cursor: pointer; }
.ccard a[data-copy]:hover { color: var(--accent); text-decoration: underline; }
