/* ============================================================
   李奇峰 · 声音作品集
   隐喻体系：正在拍摄的影片 + 正在混音的工程
   导航=场记编号 · 卡片=镜头 · 滚动=走带 · 鼠标=取景框 · 背景=声波
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg-2: #0c1119;
  --bg-3: #0e1622;
  --panel: rgba(15, 23, 35, 0.62);
  --panel-solid: #0d1420;
  --text: #e9f0f7;
  --muted: #8ba0b6;
  --faint: #5c7086;
  --line: #1c2a3a;
  --line-soft: rgba(28, 42, 58, 0.55);
  --accent: #45e0c8;
  --accent-2: #7ee8d8;
  --accent-dim: rgba(69, 224, 200, 0.13);
  --rec: #ff4d5e;
  --rec-dim: rgba(255, 77, 94, 0.15);
  --sans: "Space Grotesk", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --max: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden 属性必须压过任何 display 声明（modal/lightbox/editor 等用了 display:flex） */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 取景框光标：精细指针设备上全局隐藏系统光标 */
body.cursor-fine, body.cursor-fine * { cursor: none !important; }

::selection { background: var(--accent); color: #06231e; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e2c3d; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a3d52; }

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

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }

.mono { font-family: var(--mono); }
.shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--accent); color: #06231e; font-family: var(--mono); font-size: 13px;
  padding: 10px 16px; border-radius: 8px; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ============ 自定义光标（取景框） ============ */

.cursor {
  position: fixed; top: 0; left: 0; z-index: 500;
  width: 18px; height: 18px;
  border: 1.5px solid rgba(69, 224, 200, 0.9);
  border-radius: 3px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 14px rgba(69, 224, 200, 0.35), inset 0 0 8px rgba(69, 224, 200, 0.12);
  transition: width 0.22s var(--ease), height 0.22s var(--ease), border-color 0.22s, border-radius 0.22s;
}
.cursor-dot {
  position: absolute; top: 50%; left: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor::before, .cursor::after {
  content: ""; position: absolute; background: rgba(69, 224, 200, 0.55);
}
.cursor::before { top: -7px; bottom: -7px; left: 50%; width: 1px; transform: translateX(-50%); }
.cursor::after { left: -7px; right: -7px; top: 50%; height: 1px; transform: translateY(-50%); }

.cursor-follower {
  position: fixed; top: 0; left: 0; z-index: 499;
  width: 36px; height: 36px;
  border: 1px solid rgba(69, 224, 200, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
body.cursor-hovering .cursor { width: 30px; height: 30px; border-radius: 6px; }
body.cursor-hovering .cursor-follower {
  width: 46px; height: 46px;
  border-color: rgba(69, 224, 200, 0.6);
  box-shadow: 0 0 22px rgba(69, 224, 200, 0.25);
}
/* 悬停可交互元素 = 内圈红点 tally 灯（对焦锁定） */
body.cursor-hovering .cursor-dot { background: var(--rec); box-shadow: 0 0 9px var(--rec); }
body.cursor-hovering .cursor::before, body.cursor-hovering .cursor::after { background: rgba(255, 77, 94, 0.45); }
/* 对焦环：悬停时外圈出现四角对焦刻度 */
.cursor-follower::before, .cursor-follower::after {
  content: ""; position: absolute; width: 11px; height: 11px;
  opacity: 0; transition: opacity 0.25s;
}
.cursor-follower::before { top: -5px; left: -5px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: 8px; }
.cursor-follower::after { bottom: -5px; right: -5px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); border-bottom-right-radius: 8px; }
body.cursor-hovering .cursor-follower::before, body.cursor-hovering .cursor-follower::after { opacity: 1; }
body.recording .cursor-follower::before, body.recording .cursor-follower::after { opacity: 1; border-color: var(--rec); }
/* REC 状态：录制红圈 */
body.recording .cursor { border-color: var(--rec); box-shadow: 0 0 16px rgba(255, 77, 94, 0.5); }
body.recording .cursor-dot { background: var(--rec); }
body.recording .cursor::before, body.recording .cursor::after { background: rgba(255, 77, 94, 0.55); }
body.recording .cursor-follower { border-color: rgba(255, 77, 94, 0.65); box-shadow: 0 0 24px rgba(255, 77, 94, 0.3); }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-follower { display: none !important; }
}

/* ============ 背景特效层 ============ */

.fx-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* 左侧胶片齿孔边轨（右侧让位给滚动条本身就是走带） */
.film-rail {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 2;
  width: 26px;
  background:
    repeating-linear-gradient(180deg, #060a0f 0 15px, #101a26 15px 40px) 5px 0 / 16px 100% no-repeat,
    linear-gradient(90deg, #0d1420, #0b1119);
  border-right: 1px solid var(--line-soft);
  animation: railMove 16s linear infinite;
  pointer-events: none;
}
@keyframes railMove { to { background-position: 5px 80px, 0 0; } }

/* 胶片颗粒噪点 */
.film-grain {
  position: fixed; inset: -60%;
  z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grainJitter 0.9s steps(2) infinite;
  pointer-events: none;
}
@keyframes grainJitter {
  0% { transform: translate(0, 0); }
  50% { transform: translate(2.2%, -1.6%); }
  100% { transform: translate(-1.8%, 1.4%); }
}
body.recording .film-grain { opacity: 0.11; }

/* ============ 全屏取景框（监视器四角） ============ */

.viewfinder { position: fixed; inset: 16px; z-index: 0; pointer-events: none; } /* 下沉到作品之下：浮层不再盖在作品上 */
.vf-corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(69, 224, 200, 0.3); transition: border-color 0.3s; }
.vf-corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
body.recording .vf-corner { border-color: rgba(255, 77, 94, 0.75); }
@media (hover: none), (pointer: coarse) { .viewfinder { display: none; } }

/* 章节剪辑点：黑场一帧 */
.cut-flash {
  position: fixed; inset: 0; z-index: 120;
  background: #000; opacity: 0;
  pointer-events: none;
}
.cut-flash.on { animation: cutFlash 170ms ease-out; }
@keyframes cutFlash { 0% { opacity: 0; } 14% { opacity: 0.94; } 100% { opacity: 0; } }

/* 开拍白闪一帧 */
.white-flash {
  position: fixed; inset: 0; z-index: 150;
  background: #e9f0f7; opacity: 0;
  pointer-events: none;
}
.white-flash.on { animation: whiteFlash 240ms ease-out; }
@keyframes whiteFlash { 0% { opacity: 0; } 10% { opacity: 0.92; } 100% { opacity: 0; } }

/* ============ 时间码 HUD ============ */

.timecode {
  position: fixed; left: 40px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--faint);
  user-select: none;
  background: rgba(10, 14, 20, 0.66);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 5px 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tc-value {
  font: inherit; color: inherit; letter-spacing: inherit;
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.tc-value:hover { color: var(--accent); border-color: var(--line); }
body.recording .tc-value { color: var(--rec); }
body.recording .tc-value::before { content: "● "; animation: recBlink 1s steps(2) infinite; }
@keyframes recBlink { 50% { opacity: 0; } }
.tc-section {
  color: var(--faint);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.tc-fps-popover {
  position: absolute; left: 0; bottom: calc(100% + 10px);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  min-width: 150px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.tc-fps-title {
  font-size: 10px; color: var(--faint); letter-spacing: 0.18em;
  padding: 2px 8px 8px; text-transform: uppercase;
}
.tc-fps-popover button {
  display: flex; justify-content: space-between; width: 100%;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); padding: 7px 8px; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.tc-fps-popover button:hover { background: var(--accent-dim); color: var(--text); }
.tc-fps-popover button.active { color: var(--accent); }
.tc-fps-popover .tc-shooting {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line-soft);
  margin-top: 6px; padding: 8px 8px 2px;
  font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.14em;
}
.tc-fps-popover .tc-shooting b { color: var(--accent); font-weight: 600; font-size: 12px; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 130;
  height: 2px; width: 0;
  background: linear-gradient(90deg, rgba(69, 224, 200, 0.25), var(--accent));
  box-shadow: 0 0 10px rgba(69, 224, 200, 0.5);
  pointer-events: none;
}

/* 右侧场记标记轨：章节刻度 */
.reel-track {
  position: fixed; right: 18px; top: 50%; z-index: 60;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
}
.reel-track a { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 14px; }
.reel-track a span {
  position: absolute; right: 26px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--muted); white-space: nowrap;
  opacity: 0; transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s, color 0.25s;
}
.reel-track a i {
  width: 14px; height: 2px; border-radius: 2px;
  background: #24374c;
  transition: width 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
.reel-track a:hover span, .reel-track a.active span { opacity: 1; transform: none; }
.reel-track a:hover i { background: var(--accent-2); }
.reel-track a.active i { width: 26px; background: var(--accent); box-shadow: 0 0 10px rgba(69, 224, 200, 0.5); }
.reel-track a.active span { color: var(--accent); }
@media (max-width: 680px), (hover: none) { .reel-track { display: none; } }

/* ============ 顶部导航 ============ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 44px);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 34px; height: 34px; color: var(--text); }
.logo-bar { animation: logoDance 2.6s var(--ease) infinite; }
.logo-bar:nth-child(3) { animation-delay: 0.2s; }
.logo-bar:nth-child(4) { animation-delay: 0.4s; }
.logo-bar:nth-child(5) { animation-delay: 0.6s; }
@keyframes logoDance { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }
.brand-name { font-weight: 600; font-size: 17px; display: flex; align-items: baseline; gap: 10px; }
.brand-sub { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.22em; }

.site-nav { display: flex; gap: clamp(14px, 2.6vw, 34px); }
.site-nav a {
  position: relative;
  font-size: 14.5px; color: var(--muted);
  padding: 6px 2px;
  transition: color 0.25s;
}
.site-nav a i {
  font-style: normal; font-family: var(--mono); font-size: 10.5px;
  color: var(--accent); margin-right: 7px; letter-spacing: 0.1em;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a.active::after, .site-nav a:hover::after { width: 100%; }

/* ============ Hero · SCENE 00 ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.6);
  z-index: 0;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(69, 224, 200, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.8) 0%, rgba(10, 14, 20, 0.62) 45%, var(--bg) 97%);
}
.hero-scanline {
  position: absolute; left: 0; right: 0; top: -25%;
  height: 24%; z-index: 2;
  background: linear-gradient(180deg,
    transparent,
    rgba(69, 224, 200, 0.05) 42%,
    rgba(233, 240, 247, 0.1) 50%,
    rgba(69, 224, 200, 0.05) 58%,
    transparent);
  animation: scanDown 7.5s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes scanDown { to { top: 110%; } }

.hero-inner { position: relative; z-index: 3; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(10, 14, 20, 0.5);
  backdrop-filter: blur(6px);
  margin-bottom: 30px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: recBlink 2.2s steps(2) infinite;
}
.badge-sep { color: var(--faint); }

.hero-title {
  font-size: clamp(2.5rem, 6.2vw, 4.7rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(69, 224, 200, 0.4);
}
/* 合板入场：场记板落下后标题逐行浮现 + 轻微打板抖动 */
.hero-title .line {
  display: inline-block;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.hero-title .line:nth-of-type(1) { transition-delay: 0.05s; }
.hero-title .line:nth-of-type(2) { transition-delay: 0.18s; }
body.clapped .hero-title .line { opacity: 1; transform: none; }
body.clapped .hero-title { animation: plateShake 0.4s 0.55s var(--ease); }
@keyframes plateShake {
  0%, 100% { transform: none; }
  30% { transform: translateY(-3px); }
  55% { transform: translateY(2px); }
  78% { transform: translateY(-1px); }
}
.hero-lead {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--accent-2);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.hero-bio {
  max-width: 560px;
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 54px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600;
  padding: 13px 26px; border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn .icon { width: 17px; height: 17px; }
.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #06231e;
  box-shadow: 0 6px 26px rgba(69, 224, 200, 0.28);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(69, 224, 200, 0.4); }
.btn-ghost { color: var(--text); background: rgba(10, 14, 20, 0.4); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn:hover { cursor: pointer; }

.hero-stats { display: flex; gap: clamp(24px, 4vw, 54px); flex-wrap: wrap; }
.stat { border-left: 2px solid var(--line); padding-left: 16px; }
.stat b {
  display: block;
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--text);
}
.stat b i { font-style: normal; color: var(--accent); }
.stat span { font-size: 12.5px; color: var(--faint); letter-spacing: 0.06em; }

/* 工具跑马灯：字幕条 */
.hero-marquee {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid var(--line-soft);
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: inline-flex; gap: 0;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint);
  padding: 0 1.9vw;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 通用 Section ============ */

main { position: relative; z-index: 1; }
main > section { position: relative; padding: clamp(76px, 10vw, 130px) 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.section-title { display: flex; align-items: baseline; gap: 18px; }
.section-index {
  font-family: var(--mono); font-size: 15px;
  color: var(--accent); letter-spacing: 0.14em;
}
.section-index::after { content: " /"; color: var(--faint); }
.section-title h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: 0.01em; }
.section-note { font-family: var(--mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.1em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ 01 作品 ============ */

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip {
  font-family: var(--mono); font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 17px;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.filter-chip:hover { color: var(--text); border-color: #2c4258; transform: translateY(-1px); }
.filter-chip.active {
  color: var(--accent);
  border-color: rgba(69, 224, 200, 0.55);
  background: var(--accent-dim);
}
.filter-chip small { color: var(--faint); margin-left: 7px; font-size: 11px; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.work-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(69, 224, 200, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(69, 224, 200, 0.12);
}
.work-card.audio-card { border-style: dashed; }

.work-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  overflow: hidden;
}
.work-cover img, .work-cover video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.5s, filter 0.5s var(--ease);
}
.work-cover img { opacity: 0; filter: brightness(0.68) saturate(0.9); }
.work-cover img.is-loaded { opacity: 1; }
.work-card:hover .work-cover img { transform: scale(1.045); filter: brightness(1) saturate(1); }
.work-cover video { z-index: 2; }

/* 封面加载骨架：微光扫过，图载入后隐去 */
.work-cover:has(img)::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, transparent 32%, rgba(69, 224, 200, 0.07) 46%, rgba(233, 240, 247, 0.09) 50%, rgba(69, 224, 200, 0.07) 54%, transparent 68%)
    var(--bg-3);
  background-size: 220% 100%;
  animation: coverShimmer 1.4s linear infinite;
  transition: opacity 0.45s;
}
.work-cover:has(img.is-loaded)::before { opacity: 0; animation-play-state: paused; }
@keyframes coverShimmer { to { background-position: -120% 0; } }

/* 播放量徽章 */
.work-badge {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(10, 14, 20, 0.78);
  border: 1px solid rgba(69, 224, 200, 0.4);
  border-radius: 6px; padding: 4px 9px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.work-badge .icon { width: 10px; height: 10px; }

/* REC 角标：悬停才出现 */
.work-rec {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: none; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: #ffd7db;
  background: rgba(10, 14, 20, 0.78);
  border: 1px solid rgba(255, 77, 94, 0.5);
  border-radius: 6px;
  padding: 4px 9px;
  backdrop-filter: blur(4px);
}
.work-rec::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 8px var(--rec);
  animation: recBlink 0.9s steps(2) infinite;
}
.work-card:hover .work-rec { display: inline-flex; }

.work-dur {
  position: absolute; bottom: 12px; right: 12px; z-index: 4;
  font-family: var(--mono); font-size: 11px;
  color: var(--text);
  background: rgba(10, 14, 20, 0.75);
  border-radius: 6px; padding: 3px 9px;
  backdrop-filter: blur(4px);
}
.work-scan {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, transparent 30%, rgba(69, 224, 200, 0.14) 50%, transparent 70%);
  background-size: 100% 220%;
  background-position: 0 -110%;
  transition: background-position 0.9s var(--ease);
  pointer-events: none;
}
.work-card:hover .work-scan { background-position: 0 210%; }

/* 纯音频作品：律动均衡条卡片 */
.eq-bars {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 12%;
}
.eq-bars i {
  width: 7px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), rgba(69, 224, 200, 0.25));
  height: 22%;
  animation: eqBounce 1.15s var(--ease) infinite alternate;
  opacity: 0.85;
}
.work-card:hover .eq-bars i { animation-duration: 0.55s; }
@keyframes eqBounce { from { transform: scaleY(0.35); } to { transform: scaleY(1.9); } }
.eq-label {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(69, 224, 200, 0.4);
  border-radius: 6px; padding: 3px 8px;
  background: rgba(10, 14, 20, 0.7);
}

/* 音频卡片内嵌试听 */
.audio-play {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(10, 14, 20, 0.72);
  border: 1px solid rgba(69, 224, 200, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(69, 224, 200, 0.25);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.audio-play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: #06231e; }
.audio-play .icon { width: 20px; height: 20px; }
.audio-play .i-pause { display: none; }
.audio-play.playing .i-play { display: none; }
.audio-play.playing .i-pause { display: block; }
.audio-mini {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  height: 48px; padding: 4px 10px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 13, 0.88));
  opacity: 0; transition: opacity 0.3s;
}
.audio-mini canvas { width: 100%; height: 100%; }
.work-card.audio-live .audio-mini { opacity: 1; }
.work-card.audio-live .eq-bars { opacity: 0.12; }

.work-body { padding: 18px 20px 20px; }
.work-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--faint); letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.work-meta .scene { color: var(--accent); }
.work-meta .sep { color: #263547; }
.work-body h3 {
  font-size: 16.5px; font-weight: 600; line-height: 1.45;
  margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.work-body p {
  font-size: 13.5px; color: var(--muted); line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.work-open {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--faint);
  transition: color 0.25s, gap 0.25s;
}
.work-card:hover .work-open { color: var(--accent); gap: 13px; }

/* ============ 02 服务 ============ */

.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 76px 300px 1fr;
  gap: 22px; align-items: baseline;
  padding: 24px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  transition: background 0.3s, padding-left 0.3s var(--ease);
}
.service-row:hover { background: var(--accent-dim); padding-left: 26px; }
.service-num {
  font-family: var(--mono); font-size: 13px;
  color: var(--accent); letter-spacing: 0.14em;
}
.service-row h3 { font-size: 17px; font-weight: 600; }
.service-row p { font-size: 14px; color: var(--muted); }

/* ============ 03 技能与素材库 ============ */

.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.library-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 34px);
}
.library-block-title {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--accent); letter-spacing: 0.2em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.library-block-hint { font-size: 12.5px; color: var(--faint); margin-bottom: 16px; }
.library-block:nth-child(3) { grid-column: 1 / -1; }

/* 技能条：调音台推子/电平表 */
.skill { margin-bottom: 19px; }
.skill:last-child { margin-bottom: 0; }
.skill-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.skill-head b { font-size: 14.5px; font-weight: 600; }
.skill-head b small { font-weight: 400; color: var(--faint); font-size: 12px; margin-left: 8px; }
.skill-head span { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.skill-bar {
  height: 7px; border-radius: 99px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(140, 160, 182, 0.14) calc(10% - 1px) 10%) #121c29;
  overflow: hidden;
}
.skill-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(69, 224, 200, 0.5), var(--accent));
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(69, 224, 200, 0.4);
  transition: width 1.1s var(--ease);
}

/* 工程与现场：折叠分组 */
.project-gallery { display: flex; flex-direction: column; gap: 10px; }
.pg-group { border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 16, 26, 0.4); overflow: hidden; }
.pg-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px;
  transition: background 0.25s;
}
.pg-head:hover { background: var(--accent-dim); }
.pg-title { font-size: 13.5px; font-weight: 600; }
.pg-count { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.1em; }
.pg-chevron { margin-left: auto; color: var(--faint); transition: transform 0.3s var(--ease); }
.pg-group.open .pg-chevron { transform: rotate(180deg); }
.pg-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.pg-group.open .pg-body { grid-template-rows: 1fr; }
.pg-grid {
  overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 0 14px;
}
.pg-group.open .pg-grid { padding: 4px 14px 14px; }

.project-thumb { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.project-thumb img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform 0.45s var(--ease), filter 0.45s;
  filter: saturate(0.92);
}
.project-thumb:hover img { transform: scale(1.05); filter: saturate(1.05); }
.project-thumb figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(6, 10, 15, 0.88));
  padding: 22px 10px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 悬停放大预览层 */
.pg-preview {
  position: fixed; z-index: 70; pointer-events: none;
  width: min(420px, 44vw); aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(69, 224, 200, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(69, 224, 200, 0.15);
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.2s, transform 0.2s;
}
.pg-preview.show { opacity: 1; transform: scale(1); }
@media (hover: none) { .pg-preview { display: none; } }

.library-desc { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; max-width: 720px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.tag-list span:hover { color: var(--accent); border-color: rgba(69, 224, 200, 0.5); background: var(--accent-dim); }

/* ============ 04 联系 ============ */

.contact-body { max-width: 860px; }
.contact-lede { font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin-bottom: 38px; color: var(--text); }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: 13px;
  padding: 19px 22px;
  background: var(--panel);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.contact-link:hover {
  border-color: rgba(69, 224, 200, 0.5);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.contact-link .cl-label { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.2em; display: block; margin-bottom: 4px; }
.contact-link .cl-value { font-size: 15px; font-weight: 600; word-break: break-all; }
.contact-link .cl-arrow { color: var(--faint); font-family: var(--mono); transition: color 0.3s, transform 0.3s; }
.contact-link:hover .cl-arrow { color: var(--accent); transform: translateX(4px); }

/* ============ 页脚 ============ */

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 78px; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.footer-reel { letter-spacing: 0.24em; }
.to-top { color: var(--muted); transition: color 0.25s; }
.to-top:hover { color: var(--accent); }

/* ============ 作品弹窗 ============ */

.modal {
  position: fixed; inset: 0; z-index: 140;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 8, 13, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-panel {
  position: relative;
  width: min(1060px, 100%);
  max-height: calc(100svh - 44px);
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.4s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(0.985); } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 22px 26px 16px;
}
.modal-category {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--accent); letter-spacing: 0.2em;
  margin-bottom: 7px;
}
.modal-head h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.4; }
.modal-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 7px; letter-spacing: 0.06em; }
.modal-close {
  flex: none;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid; place-items: center;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.modal-close:hover { color: var(--accent); border-color: rgba(69, 224, 200, 0.5); transform: rotate(90deg); }
.modal-close .icon { width: 17px; height: 17px; }

.episode-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 26px 14px; }
.episode-tab {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 14px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.episode-tab:hover { color: var(--text); border-color: #2c4258; }
.episode-tab.active { color: var(--accent); border-color: rgba(69, 224, 200, 0.55); background: var(--accent-dim); }

.modal-media {
  background: #05080d;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.modal-media video, .modal-media iframe { width: 100%; aspect-ratio: var(--aspect, 16 / 9); display: block; background: #000; }
.modal-media iframe { height: auto; border: 0; }
/* 竖屏作品（含 iframe 默认竖屏）：按高度约束、居中显示，避免只露一半 */
.modal-media.is-portrait { display: flex; justify-content: center; background: #05080d; }
.modal-media.is-portrait video, .modal-media.is-portrait iframe {
  height: min(82svh, 760px);
  width: auto;
  max-width: 100%;
  aspect-ratio: var(--aspect, 9 / 16);
  background: #000;
}

/* 音频舞台：实时频谱 + 播放器 */
.audio-stage { padding: 26px clamp(18px, 4vw, 46px) 20px; }
.audio-stage canvas { width: 100%; height: 130px; }
.audio-stage audio { width: 100%; margin-top: 16px; }

.modal-desc { padding: 18px 26px 6px; color: var(--muted); font-size: 14.5px; }
.modal-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 26px 22px;
}
.modal-nav-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 18px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.modal-nav-btn:hover { color: var(--accent); border-color: rgba(69, 224, 200, 0.5); background: var(--accent-dim); }
.modal-nav-btn .icon { width: 15px; height: 15px; }
.modal-nav-btn { white-space: nowrap; }
.modal-nav-count {
  font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.18em;
  flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal-keys {
  text-align: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--faint); letter-spacing: 0.16em;
  padding: 0 26px 16px;
  margin-top: -4px;
}
@media (hover: none) { .modal-keys { display: none; } }

/* ============ 灯箱 ============ */

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 7, 11, 0.93);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: min(1100px, 88vw); max-height: 78svh; border-radius: 8px; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted); font-size: 24px; line-height: 1;
  background: rgba(10, 14, 20, 0.7);
  display: grid; place-items: center;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--accent); border-color: rgba(69, 224, 200, 0.5); }
.lb-close { top: 22px; right: 26px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }
.lb-caption {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  background: rgba(10, 14, 20, 0.8);
  border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
  white-space: nowrap;
}

/* ============ 编辑器（隐藏后台） ============ */

.editor { position: fixed; inset: 0; z-index: 160; }
.editor-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 11, 0.66); backdrop-filter: blur(6px); }
.editor-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(580px, 100vw);
  background: var(--panel-solid);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  animation: editorIn 0.4s var(--ease);
}
@keyframes editorIn { from { transform: translateX(40px); opacity: 0; } }
.editor-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.editor-head h2 { font-size: 19px; }
.eyebrow { font-family: var(--mono); font-size: 10.5px; color: var(--accent); letter-spacing: 0.3em; margin-bottom: 3px; }
.editor-head-actions { display: flex; align-items: center; gap: 10px; }
.draft-chip {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); border: 1px solid rgba(69, 224, 200, 0.4);
  border-radius: 999px; padding: 4px 11px;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--line); color: var(--muted);
  display: grid; place-items: center;
  transition: color 0.25s, border-color 0.25s;
}
.icon-btn:hover { color: var(--accent); border-color: rgba(69, 224, 200, 0.5); }
.icon-btn .icon { width: 16px; height: 16px; }

.editor-body { flex: 1; overflow-y: auto; padding: 22px 24px 30px; }
.editor-section { margin-bottom: 30px; }
.editor-section h3 {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.2em;
  margin-bottom: 14px; text-transform: uppercase;
}
.editor-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.editor-section-head h3 { margin-bottom: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid label { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.field-grid .span-2 { grid-column: 1 / -1; }
.field-grid input, .field-grid textarea, .field-grid select {
  font: inherit; font-size: 13.5px;
  color: var(--text);
  background: #0a121c;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  transition: border-color 0.25s;
}
.field-grid input:focus, .field-grid textarea:focus, .field-grid select:focus { outline: none; border-color: rgba(69, 224, 200, 0.6); }
.field-grid textarea { resize: vertical; line-height: 1.6; }

.editor-work {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 12px;
  background: rgba(10, 16, 26, 0.5);
}
.editor-work-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.editor-work-head span { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.14em; }
.editor-work-tools { display: flex; gap: 6px; }
.editor-work-tools button {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted); border: 1px solid var(--line); border-radius: 7px;
  padding: 4px 9px; transition: color 0.2s, border-color 0.2s;
}
.editor-work-tools button:hover { color: var(--accent); border-color: rgba(69, 224, 200, 0.5); }
.editor-work-tools button.danger:hover { color: var(--rec); border-color: rgba(255, 77, 94, 0.5); }

.editor-footer {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.editor-footer .btn { font-size: 13px; padding: 10px 16px; border-radius: 9px; }
.editor-footer .primary { background: var(--accent-dim); border-color: rgba(69, 224, 200, 0.5); color: var(--accent); }
.editor-footer .danger { color: var(--rec); }
.editor-footer .danger:hover { border-color: rgba(255, 77, 94, 0.5); }
.btn.small { font-size: 12.5px; padding: 7px 13px; border-radius: 8px; }

/* ============ SND 开关 / Toast ============ */

.snd-toggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 110;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(8px);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.snd-toggle:hover { color: var(--text); }
.snd-toggle.on { color: var(--accent); border-color: rgba(69, 224, 200, 0.55); background: var(--accent-dim); }
.snd-toggle.hint-pulse { animation: sndPulse 0.9s var(--ease) 2; }
@keyframes sndPulse {
  50% { box-shadow: 0 0 0 7px rgba(69, 224, 200, 0.16); border-color: rgba(69, 224, 200, 0.6); }
}

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 180;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 13px;
  color: var(--text);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.35s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }

/* ============ 场记板开场 ============ */

.clapper {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(69, 224, 200, 0.05), transparent 60%),
    var(--bg);
  transition: opacity 0.45s ease;
}
.clapper.closed { opacity: 0; pointer-events: none; }
.clapper-board { width: min(520px, 88vw); position: relative; }

.clapper-arm, .clapper-fixed {
  height: 56px;
  border-radius: 8px;
  border: 1px solid #223245;
  overflow: hidden;
  transform-origin: 12px 100%;
}
.clapper-arm {
  transform: rotate(-13deg) translateY(-6px);
  margin-bottom: 5px;
  background: repeating-linear-gradient(100deg, #e9f0f7 0 30px, #10161e 30px 60px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.clapper-fixed { background: repeating-linear-gradient(100deg, #10161e 0 30px, #e9f0f7 30px 60px); }
.clapper-arm.snap { animation: armSnap 150ms cubic-bezier(0.7, 0, 0.9, 0.45) forwards; }
@keyframes armSnap { to { transform: rotate(0deg) translateY(0); } }

.clapper-card {
  margin-top: 42px;
  text-align: center;
  padding: 0 12px;
}
.clapper-logo { width: 62px; height: 62px; margin: 0 auto 20px; color: var(--text); }
.clapper-card h1 { font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 700; letter-spacing: 0.28em; margin-bottom: 12px; text-indent: 0.28em; }
.clapper-card > p {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--muted); letter-spacing: 0.24em;
  margin-bottom: 34px;
}
.clapper-hint {
  display: block; margin-top: 22px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--faint); letter-spacing: 0.34em;
}
/* 倒计时条：3.5 秒后自动开拍 */
#clapper-action { position: relative; overflow: hidden; }
.clapper-count {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(6, 35, 30, 0.35);
  pointer-events: none;
}
.clapper-count::after {
  content: ""; position: absolute; inset: 0;
  background: #06231e;
  transform: scaleX(0); transform-origin: left;
}
.clapper-count.run::after { animation: countRun 3.5s linear forwards; }
@keyframes countRun { to { transform: scaleX(1); } }
.clapper.entering { animation: clapperIn 0.6s var(--ease); }
@keyframes clapperIn { from { opacity: 0; transform: translateY(20px); } }

/* ============ 响应式 ============ */

@media (max-width: 1080px) {
  .service-row { grid-template-columns: 60px 250px 1fr; }
}

@media (max-width: 880px) {
  .library-grid { grid-template-columns: 1fr; }
  .library-block:nth-child(3) { grid-column: auto; }
  .service-row { grid-template-columns: 52px 1fr; }
  .service-row p { grid-column: 2; }
  .contact-links { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .film-rail { display: none; }
  .timecode { left: 16px; bottom: 16px; }
  .hero {
    padding-top: calc(var(--header-h) + 22px);
    padding-bottom: 120px;
    justify-content: flex-start;
  }
  .hero-badge { gap: 8px; padding: 6px 13px; margin-bottom: 22px; }
  .hero-title { margin-bottom: 18px; }
  .hero-lead { margin-bottom: 12px; }
  .hero-bio { margin-bottom: 26px; }
  .hero-actions { margin-bottom: 38px; }
  .badge-sep, #hero-tagline { display: none; }
  .brand-sub { display: none; }
  .site-nav a { font-size: 13.5px; }
  .site-nav a i { display: none; }
  .works-grid { grid-template-columns: 1fr; }
  .hero-marquee { padding: 10px 0; }
  .modal { padding: 10px; }
  .modal-head, .episode-tabs, .modal-desc, .modal-nav { padding-left: 16px; padding-right: 16px; }
  .project-gallery { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .field-grid { grid-template-columns: 1fr; }
  .snd-toggle { right: 14px; bottom: 14px; }
}

/* ============ 动效降级 ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .marquee-track, .hero-scanline, .film-rail, .film-grain { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .cut-flash, .white-flash { display: none; }
  .eq-bars i { animation: none !important; transform: scaleY(1.1); }
}

@media (hover: none) {
  .hero-scanline { display: none; }
  .work-rec { display: inline-flex; }
}
