/* =========================================================
   空哥 · 作品集  |  main.css
   原生 CSS，无构建、无外部字体
   ========================================================= */

:root {
  --bg: #fdfbf9;
  --bg-alt: #f7f2ef;
  --surface: #ffffff;
  --ink: #1d1a24;
  --ink-soft: #5d5668;
  --ink-fade: #8b8398;
  --line: rgba(29, 26, 36, 0.10);
  --line-strong: rgba(29, 26, 36, 0.18);

  --pink: #ff6f9c;
  --violet: #7a5cff;
  --cyan: #35b8c4;
  --amber: #f0a23c;

  --card: rgba(255, 255, 255, 0.74);
  --card-solid: #ffffff;
  --shadow-s: 0 2px 8px rgba(31, 24, 44, 0.06);
  --shadow-m: 0 14px 34px -18px rgba(31, 24, 44, 0.34);
  --shadow-l: 0 36px 80px -40px rgba(31, 24, 44, 0.45);

  --serif: "STZhongsong", "Songti SC", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --header-h: 68px;
  --wrap: 1200px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 26px;
}

[data-theme="dark"] {
  --bg: #0c0a12;
  --bg-alt: #12101b;
  --surface: #171422;
  --ink: #f3f0fa;
  --ink-soft: #b1a9c2;
  --ink-fade: #7f7791;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --pink: #ff86b1;
  --violet: #a48cff;
  --cyan: #5fd3dd;
  --card: rgba(255, 255, 255, 0.055);
  --card-solid: #171422;
  --shadow-s: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-m: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  --shadow-l: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background 0.4s ease, color 0.4s ease;
}

img, video, iframe { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--pink); color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- 背景层 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(255, 143, 177, 0.20), transparent 62%),
    radial-gradient(900px 560px at 6% 4%, rgba(122, 92, 255, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(53, 184, 196, 0.14), transparent 64%);
}
[data-theme="dark"] .bg-layer {
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(255, 111, 156, 0.16), transparent 62%),
    radial-gradient(900px 560px at 6% 4%, rgba(122, 92, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(53, 184, 196, 0.12), transparent 64%);
}

#petals {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}
[data-theme="dark"] #petals { opacity: 0.4; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: max(24px, calc((100vw - var(--wrap)) / 2));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.header.is-stuck { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  color: #fff;
  background: linear-gradient(140deg, var(--pink), var(--violet));
  box-shadow: 0 6px 16px -8px rgba(255, 111, 156, 0.9);
}
.brand__name { font-family: var(--serif); font-size: 17px; }
.brand__en {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-fade);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--ink); background: var(--card); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--pink), var(--violet));
}

.header__tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.menu-btn { display: none; }

/* ---------- 通用 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-fade);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), transparent);
}

.serif { font-family: var(--serif); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding-inline: 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 14px 30px -16px rgba(255, 111, 156, 0.95);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(122, 92, 255, 0.85); }
.btn--ghost {
  border-color: var(--line-strong);
  background: var(--card);
}
.btn--ghost:hover { transform: translateY(-2px); background: var(--surface); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding-inline: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 54px);
  padding-bottom: 40px;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.36;
  letter-spacing: 0.01em;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  background: linear-gradient(120deg, var(--pink) 10%, var(--violet) 60%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 111, 156, 0.28), rgba(122, 92, 255, 0.12));
  z-index: -1;
}
.hero__lead {
  margin: 22px 0 0;
  max-width: 30em;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}
.stat span {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-fade);
  text-transform: uppercase;
}

/* Hero 右侧卡组 */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 0.94;
  perspective: 1200px;
}
.hero__glow {
  position: absolute;
  inset: 8% 2% 6% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(122, 92, 255, 0.34), transparent 66%);
  filter: blur(18px);
}
.deck {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.deck__card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-m);
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.deck__card img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

.deck__card:nth-child(1) {
  width: 43%;
  height: 66%;
  left: 0;
  top: 10%;
  padding: 6px;
  background: #fff;
  transform: translateZ(-20px) rotate(-7deg);
  animation: float1 10s ease-in-out infinite;
}
.deck__card:nth-child(2) {
  width: 40%;
  height: 58%;
  right: 1%;
  top: 2%;
  padding: 6px;
  background: #fff;
  transform: translateZ(30px) rotate(6deg);
  animation: float2 12s ease-in-out infinite;
}
.deck__card:nth-child(3) {
  width: 62%;
  height: 32%;
  left: 15%;
  bottom: 3%;
  padding: 6px;
  background: #fff;
  transform: translateZ(90px) rotate(-2deg);
  animation: float3 9s ease-in-out infinite;
}
@keyframes float1 {
  50% { transform: translateZ(-20px) rotate(-7deg) translateY(-14px); }
}
@keyframes float2 {
  50% { transform: translateZ(30px) rotate(6deg) translateY(12px); }
}
@keyframes float3 {
  50% { transform: translateZ(90px) rotate(-2deg) translateY(-9px); }
}

/* ---------- 跑马灯 ---------- */
.marquee {
  padding: 18px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-alt);
  background: color-mix(in srgb, var(--bg-alt) 60%, transparent);
}
.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee__track span::after {
  content: "✦";
  font-size: 10px;
  color: var(--pink);
  letter-spacing: 0;
}
@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- 章节 ---------- */
.chapter { padding: 92px 0 20px; }
.chapter-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 32px;
  align-items: end;
  margin-bottom: 40px;
}
.chapter-head h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.28;
}
.chapter-head p {
  margin: 0;
  max-width: 26em;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.chapter-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink-fade);
}

/* 左图右文 */
.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: start;
}
.frame {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
}
.frame__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
}
.frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.frame__media:hover img { transform: scale(1.04); }
.frame__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: #1d1a24;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, background 0.3s ease;
}
.frame__media:hover .frame__play { transform: translate(-50%, -50%) scale(1.08); }
.frame__play svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.frame__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-fade);
}
.frame__foot b { color: var(--ink); font-weight: 600; }

.specs { margin: 0; padding: 0; list-style: none; }
.specs li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.specs li:first-child { padding-top: 0; }
.specs dt, .specs .k {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--ink-fade);
  text-transform: uppercase;
  padding-top: 3px;
}
.specs .v { color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.note b { color: var(--ink); }

/* 作品网格 */
.grid-works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.work {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-s);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.work:hover img { transform: scale(1.06); }
.work__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 12px 11px;
  background: linear-gradient(to top, rgba(12, 10, 18, 0.82), transparent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: left;
}
.work:hover .work__cap { opacity: 1; transform: none; }
.work--wide { grid-column: span 2; aspect-ratio: 16 / 9; align-self: center; }

.work-cta {
  grid-column: span 3;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 30px 34px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: var(--card);
}
.work-cta b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}
.work-cta p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.work-cta .btn { align-self: flex-start; height: 40px; padding-inline: 18px; font-size: 13.5px; }

/* ---------- 名片 ---------- */
.cards-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.flip {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  perspective: 1400px;
  display: block;
  width: 100%;
}
.flip__inner {
  display: block;
  position: relative;
  aspect-ratio: 96 / 60;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__face {
  display: block;
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-m);
  background: var(--surface);
}
.flip__face--back { transform: rotateY(180deg); }
.flip__face img { width: 100%; height: 100%; object-fit: cover; }
.flip__hint {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 11px;
  border-radius: 999px;
  background: rgba(18, 16, 26, 0.62);
  color: #fff;
  font-size: 11.5px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.flip__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-fade);
}
.flip__meta b { color: var(--ink); font-weight: 600; font-size: 14.5px; }

/* ---------- 三联 / 双联 ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.mini {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-s);
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.mini:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: var(--line-strong);
}
.mini__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.mini__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mini:hover .mini__media img { transform: scale(1.05); }
.mini__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding-inline: 9px;
  border-radius: 999px;
  background: rgba(18, 16, 26, 0.6);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
.mini__badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 0 3px rgba(110, 231, 168, 0.22);
}
.mini__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mini__body h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.mini__body p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.mini__go {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--accent, var(--violet));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mini__go svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.3s ease; }
.mini:hover .mini__go svg { transform: translateX(3px); }

/* ---------- 短片 ---------- */
.player {
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0810;
  box-shadow: var(--shadow-l);
}
.player__stage {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #1a1428, #07060c 70%);
  min-height: 280px;
}
.player__stage video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 74vh;
  background: #000;
}
.player.is-vertical .player__stage { padding: 24px 0; }
.player.is-vertical video {
  width: auto;
  height: min(74vh, 660px);
  border-radius: 12px;
}
.player__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfc7de;
  font-size: 12.5px;
}
.player__title b { color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.switch {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.switch button {
  border: 0;
  background: none;
  color: #a99fbe;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.switch button[aria-selected="true"] { background: #fff; color: #14111d; font-weight: 600; }

.shots {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 28px;
  counter-reset: shot;
}
.shots li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.shots li b {
  flex: none;
  min-width: 34px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-fade);
}
.shots li b { color: var(--ink); font-weight: 500; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 100px;
  padding: 54px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  background: color-mix(in srgb, var(--bg-alt) 55%, transparent);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}
.footer p { margin: 0; color: var(--ink-soft); font-size: 13.5px; max-width: 30em; }
.footer__col h4 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-fade);
  font-weight: 500;
}
.footer__col a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer__col a:hover { color: var(--ink); transform: translateX(3px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-fade);
}

/* ---------- 剧场（iframe） ---------- */
.theater {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(9, 7, 14, 0.86);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.theater.is-open { opacity: 1; visibility: visible; }
.theater__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #eae4f5;
  font-size: 13px;
}
.theater__bar b { font-weight: 600; letter-spacing: 0.02em; }
.theater__bar small { color: #9d93b3; font-size: 11.5px; }
.theater__bar .spacer { flex: 1; }
.theater__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #eae4f5;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.theater__btn:hover { background: rgba(255, 255, 255, 0.14); }
.theater__btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.theater__stage {
  position: relative;
  margin: 0 14px 14px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0910;
  min-height: 0;
}
.theater__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.theater__stage.is-ready iframe { opacity: 1; }
.theater__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b9afcc;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  gap: 10px;
  transition: opacity 0.4s ease;
}
.theater__stage.is-ready .theater__loader { opacity: 0; pointer-events: none; }
.dots { display: inline-flex; gap: 5px; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%; background: #b9afcc;
  animation: blink 1.1s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  grid-template-rows: 1fr auto;
  background: rgba(8, 6, 12, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  display: grid;
  place-items: center;
  padding: 34px 70px 10px;
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 18px 22px;
  color: #d7cfe6;
  font-size: 12.5px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- 滚动渐入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 520px; margin-inline: auto; order: -1; width: 100%; aspect-ratio: 1 / 0.86; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); }
  .split { grid-template-columns: 1fr; }
  .chapter-head { grid-template-columns: 1fr; gap: 12px; }
  .cards-duo { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .trio .mini__media { aspect-ratio: 21 / 9; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .wrap { width: calc(100% - 36px); }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    margin-left: 0;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 11px 12px; border-radius: 10px; font-size: 15px; }
  .nav a.is-active::after { left: 12px; transform: none; }
  .menu-btn { display: grid; }
  .header { gap: 12px; }

  .grid-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work--wide { grid-column: span 2; aspect-ratio: 16 / 9; align-self: stretch; }
  .work-cta { grid-column: span 2; align-self: auto; padding: 22px 24px; }
  .duo { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .chapter { padding: 64px 0 10px; }
  .hero__stats { gap: 22px; }
  .stat b { font-size: 23px; }
  .lightbox__stage { padding: 44px 14px 0; }
  .lightbox__nav { top: auto; bottom: 64px; transform: none; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; }
  .player.is-vertical video { height: min(70vh, 560px); }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 30px; line-height: 1.42; }
  .hero__lead { font-size: 14.5px; }
  .hero__art { aspect-ratio: 1 / 0.8; }
  .btn { height: 44px; padding-inline: 20px; font-size: 14px; }
  .deck__card:nth-child(1) { left: 5%; width: 40%; height: 58%; }
  .deck__card:nth-child(2) { right: 9%; width: 35%; height: 52%; top: 6%; }
  .deck__card:nth-child(3) { left: 12%; width: 58%; height: 29%; }
  .frame__foot small { display: none; }
  .player__bar { gap: 8px 12px; }
  .switch { margin-left: 0; }
  .theater__bar { padding: 10px 12px; }
  .theater__bar small { display: none; }
  .theater__stage { margin: 0 8px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
