/* ============================================================
   墨夜展厅 · Dark Gallery
   深暖黑底 + 鎏金点缀 + 全套动效
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0d0c0a;
  --bg-soft: #100e0c;
  --bg-raised: #161411;
  --ink: #f2ede3;
  --muted: #8f887a;
  --line: rgba(235, 225, 205, 0.14);
  --gold: #d2a24c;
  --gold-bright: #f0c776;
  --gold-dim: rgba(210, 162, 76, 0.32);
  --red: #ff2442;
  --white: #ffffff;
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --font-sans: "Inter", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Source Han Serif SC", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(210, 162, 76, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(210, 162, 76, 0.05), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
  overflow-x: clip;
}

::selection {
  background: rgba(210, 162, 76, 0.38);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2c2822;
  border-radius: 8px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}

html {
  scrollbar-width: thin;
  scrollbar-color: #2c2822 var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

/* ---------- 胶片颗粒 ---------- */

body::after {
  content: "";
  position: fixed;
  inset: -60%;
  z-index: 10030;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.86" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.5"/></svg>');
  opacity: 0.045;
  animation: grain 7s steps(8) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1.4%); }
  40% { transform: translate(1.6%, -1%); }
  60% { transform: translate(-1%, -1.8%); }
  80% { transform: translate(2%, 1.2%); }
}

/* ---------- 自定义光标 ---------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10040;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 300ms ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 162, 76, 0.75);
  transition: opacity 300ms ease, width 240ms ease, height 240ms ease,
    border-color 240ms ease, background-color 240ms ease;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  opacity: 1;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor .lightbox-frame img {
  cursor: none !important;
}

.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  border-color: var(--gold-bright);
  background: rgba(210, 162, 76, 0.12);
}

/* ---------- 滚动进度条 ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10025;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(210, 162, 76, 0.55);
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 34px 0;
  color: var(--ink);
  isolation: isolate;
  pointer-events: none;
  transition: transform 480ms var(--ease-out);
}

.site-header.is-hidden {
  transform: translateY(-115%);
}

.brand,
.top-nav {
  position: relative;
  z-index: 10001;
  pointer-events: auto;
}

.brand {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(28, 25, 20, 0.72), rgba(13, 12, 10, 0.55) 45%, rgba(28, 25, 20, 0.66));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(242, 237, 227, 0.12);
  backdrop-filter: blur(22px) saturate(1.4);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.brand:hover {
  border-color: var(--gold-dim);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(210, 162, 76, 0.14),
    inset 0 1px 0 rgba(242, 237, 227, 0.14);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
}

.top-nav a {
  position: relative;
  min-width: 78px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(28, 25, 20, 0.72), rgba(13, 12, 10, 0.55) 45%, rgba(28, 25, 20, 0.66));
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(242, 237, 227, 0.1);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(240, 199, 118, 0.18);
  transition: transform 260ms ease, border-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

.top-nav a::after,
.hero-hezha-link::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
}

.top-nav a:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  color: var(--gold-bright);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(210, 162, 76, 0.16),
    inset 0 1px 0 rgba(242, 237, 227, 0.12);
}

.top-nav a.is-active {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(210, 162, 76, 0.22),
    inset 0 1px 0 rgba(240, 199, 118, 0.25);
}

.xhs-icon {
  min-width: 108px !important;
  width: auto;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 30%),
    linear-gradient(135deg, rgba(255, 118, 136, 0.96) 0%, rgba(255, 36, 66, 0.94) 44%, rgba(217, 12, 43, 0.96) 100%) !important;
  color: #ffffff;
  box-shadow:
    0 18px 38px rgba(255, 36, 66, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(90, 0, 14, 0.18);
}

.xhs-icon:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(135deg, #ff6a80 0%, #ff2442 44%, #c80024 100%) !important;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(255, 36, 66, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.xhs-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

/* ---------- 首屏 HERO ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(1400px 800px at 70% 20%, rgba(210, 162, 76, 0.06), transparent 60%),
    var(--bg);
  color: var(--ink);
  isolation: isolate;
}

.hero-collage-parallax {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform, opacity;
}

.hero-collage {
  position: absolute;
  inset: -22vh -16vw -34vh -16vw;
  min-height: 170vh;
  display: flex;
  align-items: flex-start;
  gap: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 2800ms ease, transform 5200ms var(--ease-out);
}

.hero-collage.is-ready {
  opacity: 1;
  transform: scale(1);
}

.hero-column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translate3d(var(--px, 0px), calc(var(--base-y, 0vh) + var(--py, 0px)), 0);
  will-change: transform;
}

.hero-column:nth-child(1) { flex-grow: 0.92; --base-y: -7vh; }
.hero-column:nth-child(2) { flex-grow: 1.08; --base-y: 5vh; }
.hero-column:nth-child(3) { flex-grow: 0.96; --base-y: -2vh; }
.hero-column:nth-child(4) { flex-grow: 1.12; --base-y: 8vh; }
.hero-column:nth-child(5) { flex-grow: 0.94; --base-y: -5vh; }
.hero-column:nth-child(6) { flex-grow: 1.1; --base-y: 3vh; }
.hero-column:nth-child(7) { flex-grow: 0.98; --base-y: -9vh; }

.hero-piece {
  position: relative;
  z-index: var(--z, 1);
  display: block;
  width: 100%;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  box-shadow: none;
  animation: pieceRise 1550ms var(--ease-out) forwards;
  animation-delay: calc(80ms + var(--i, 0) * 72ms);
  will-change: transform, opacity;
}

.hero-piece img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transform: none;
  filter: none;
  animation: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(13, 12, 10, 0.88), rgba(13, 12, 10, 0.52) 32%, rgba(13, 12, 10, 0.14) 52%, transparent 68%),
    linear-gradient(0deg, var(--bg) 2%, rgba(13, 12, 10, 0.4) 22%, transparent 55%),
    linear-gradient(180deg, rgba(13, 12, 10, 0.5), transparent 26%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 6;
  width: min(900px, calc(100% - 112px));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 118px 0 82px clamp(110px, 10vw, 168px);
  text-align: left;
  transition: opacity 700ms ease, transform 900ms var(--ease-out);
}

.hero.is-dimmed .hero-copy {
  opacity: 0;
  transform: translateY(-26px);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(98px, 12.5vw, 176px);
  line-height: 0.86;
  font-weight: 900;
  text-shadow: 0 0 46px rgba(240, 199, 118, 0.18), 0 18px 58px rgba(0, 0, 0, 0.7);
}

.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.38em) rotate(2deg);
  animation: charIn 1050ms var(--ease-out) forwards;
}

.hero-char:nth-child(2) {
  animation-delay: 150ms;
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-char {
    background: linear-gradient(
      108deg,
      var(--ink) 38%,
      var(--gold-bright) 48%,
      #fff6e3 52%,
      var(--ink) 62%
    );
    background-size: 260% 100%;
    background-position: 115% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation:
      charIn 1050ms var(--ease-out) forwards,
      sheen 7.5s ease-in-out 1.6s infinite;
  }

  .hero-char:nth-child(2) {
    animation-delay: 150ms, 1.75s;
  }
}

@keyframes sheen {
  0%, 18% { background-position: 115% 0; }
  55%, 100% { background-position: -35% 0; }
}

.hero-subtitle {
  margin: 22px 0 0;
  color: rgba(242, 237, 227, 0.9);
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.24;
  font-weight: 950;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.6);
  animation: subIn 1400ms var(--ease-out) 620ms both;
}

.hero-hezha-link {
  position: relative;
  margin-top: 28px;
  min-width: 132px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(210, 162, 76, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(240, 199, 118, 0.18), rgba(13, 12, 10, 0.28)),
    rgba(22, 20, 17, 0.58);
  color: var(--gold-bright);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 28px rgba(210, 162, 76, 0.12);
  backdrop-filter: blur(18px) saturate(1.3);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.08em;
  animation: subIn 1400ms var(--ease-out) 840ms both;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(240, 199, 118, 0.18);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.hero-hezha-link:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5), 0 0 36px rgba(210, 162, 76, 0.22);
}

@keyframes subIn {
  from {
    opacity: 0;
    transform: translateY(18px);
    letter-spacing: 0.34em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.02em;
  }
}

.scroll-hint {
  position: absolute;
  left: clamp(110px, 10vw, 168px);
  bottom: 34px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  transition: opacity 600ms ease, color 300ms ease;
  animation: subIn 1400ms var(--ease-out) 1.4s both;
}

.scroll-hint:hover {
  color: var(--gold-bright);
}

.hero.is-dimmed .scroll-hint {
  opacity: 0 !important;
  pointer-events: none;
}

.scroll-hint-line {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(210, 162, 76, 0.25);
  overflow: hidden;
}

.scroll-hint-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--gold-bright));
  animation: hintDrop 1.9s ease-in-out infinite;
}

@keyframes hintDrop {
  0% { transform: translateY(-100%); }
  62%, 100% { transform: translateY(100%); }
}

.scroll-hint-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.42em;
  writing-mode: vertical-rl;
}

/* ---------- 跑马灯 ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 15px 0;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 3.2em;
  padding-right: 3.2em;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--muted);
}

.marquee-inner b {
  color: var(--gold);
  font-weight: 400;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 作品小节 ---------- */

.sections {
  background: transparent;
}

.work-section {
  position: relative;
  padding: 96px clamp(20px, 4vw, 64px) 120px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease, transform 900ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 容器内交错浮现 */
.reveal .featured-item,
.reveal .work-item,
.reveal .video-card {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 640ms ease var(--d, 0ms),
    transform 780ms var(--ease-out) var(--d, 0ms),
    box-shadow 360ms ease,
    border-color 360ms ease,
    filter 360ms ease;
}

.reveal.is-visible .featured-item,
.reveal.is-visible .work-item,
.reveal.is-visible .video-card {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-settled .featured-item,
.reveal.is-settled .work-item,
.reveal.is-settled .video-card {
  transition-delay: 0ms, 0ms, 0ms, 0ms, 0ms;
}

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 0.48fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  max-width: 1380px;
  margin: 0 auto 34px;
}

.section-head > div {
  position: relative;
  z-index: 1;
}

.section-head > div:last-child {
  justify-self: end;
  text-align: right;
}

.section-ghost {
  position: absolute;
  top: -0.42em;
  right: -0.06em;
  z-index: 0;
  font-family: var(--font-sans);
  font-size: clamp(120px, 17vw, 260px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 227, 0.09);
  pointer-events: none;
  user-select: none;
}

.section-index {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1;
  font-weight: 900;
}

.section-copy {
  margin: 0 0 0 auto;
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 650;
  text-align: right;
}

.featured-grid {
  column-count: 4;
  column-gap: 8px;
  max-width: 1500px;
  min-height: 88vh;
  overflow: visible;
  margin: 32px auto 70px;
}

.featured-item {
  position: relative;
  display: inline-block;
  width: 100%;
  min-height: 0;
  margin: 0 0 8px;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid rgba(235, 225, 205, 0.08);
  background: var(--bg-raised);
  transition: transform 360ms ease, box-shadow 360ms ease, border-color 360ms ease;
}

.featured-item button,
.work-item button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.featured-item img,
.work-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fbfbf9;
  transition: filter 420ms ease, transform 620ms var(--ease-out);
}

.reveal.is-visible .featured-item:hover,
.reveal.is-visible .work-item:hover {
  transform: translateY(-5px);
  border-color: rgba(210, 162, 76, 0.4);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(210, 162, 76, 0.1);
}

.featured-item:hover img,
.work-item:hover img {
  filter: brightness(1.05) saturate(1.04);
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1380px;
  margin: 0 auto 18px;
}

.timeline-head h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.timeline-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.timeline-months {
  display: grid;
  gap: 54px;
  max-width: 1380px;
  margin: 0 auto;
}

.month-block {
  display: grid;
  grid-template-columns: minmax(150px, 0.18fr) minmax(0, 1fr);
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.month-head {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.month-head h4 {
  position: relative;
  margin: 0;
  padding-left: 20px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

.month-head h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(210, 162, 76, 0.7);
}

.masonry {
  column-count: 3;
  column-gap: 8px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.work-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 8px;
  break-inside: avoid;
  border: 1px solid rgba(235, 225, 205, 0.08);
  background: var(--bg-raised);
  overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.load-more {
  position: relative;
  display: block;
  width: min(360px, 100%);
  min-height: 52px;
  margin: 34px auto 0;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.22em;
  overflow: hidden;
  transition: color 320ms ease, border-color 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}

.load-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 420ms var(--ease-out);
  z-index: -1;
}

.load-more:hover {
  color: #17130c;
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(210, 162, 76, 0.22);
}

.load-more:hover::before {
  transform: scaleX(1);
}

.load-more[hidden] {
  display: none;
}

/* ---------- 视频 ---------- */

.video-grid {
  max-width: 1380px;
  margin: 34px auto 0;
}

.video-masonry {
  column-count: 3;
  column-gap: 14px;
}

.video-card {
  display: inline-grid;
  width: 100%;
  grid-template-rows: 1fr auto;
  margin: 0 0 14px;
  break-inside: avoid;
  border: 1px solid rgba(235, 225, 205, 0.1);
  background: var(--bg-raised);
  color: var(--ink);
  overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.reveal.is-visible .video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(210, 162, 76, 0.42);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(210, 162, 76, 0.12);
}

.video-shell {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(210, 162, 76, 0.14), transparent 45%),
    linear-gradient(315deg, rgba(96, 116, 168, 0.18), transparent 50%),
    #100f0d;
}

.video-shell video {
  width: 100%;
  min-height: 240px;
  max-height: 620px;
  display: block;
  object-fit: contain;
  background: #000000;
}

.video-preview:not([controls]) {
  pointer-events: none;
}

.play-video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border: 1px solid rgba(240, 199, 118, 0.85);
  border-radius: 50%;
  background: rgba(13, 12, 10, 0.42);
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
  backdrop-filter: blur(6px);
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.play-video::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(240, 199, 118, 0.6);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  70%, 100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.play-video:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(13, 12, 10, 0.66);
  box-shadow: 0 0 34px rgba(210, 162, 76, 0.3);
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.video-meta span:last-child {
  color: var(--muted);
}

/* ---------- 灯箱 ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 72px minmax(0, 1fr);
  background: rgba(8, 7, 5, 0.94);
  color: var(--ink);
  backdrop-filter: blur(20px);
  animation: lightboxIn 240ms ease both;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 46px;
  line-height: 1;
  transition: color 240ms ease, transform 240ms ease, text-shadow 240ms ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(210, 162, 76, 0.6);
}

.lightbox-prev:hover {
  transform: translateX(-4px);
}

.lightbox-next:hover {
  transform: translateX(4px);
}

.lightbox-close {
  grid-column: 3;
  grid-row: 1;
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 2;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 2;
}

.lightbox-counter {
  position: absolute;
  top: 26px;
  left: 30px;
  z-index: 2;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.lightbox-frame {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0;
  padding: 24px 0;
}

.lightbox-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-out;
  animation: imagePop 340ms var(--ease-out) both;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.lightbox-frame figcaption {
  min-height: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.empty-state {
  padding: 48px 40px;
  color: var(--muted);
  font-weight: 800;
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  padding: 110px clamp(20px, 4vw, 64px) 54px;
  text-align: center;
  background:
    radial-gradient(800px 420px at 50% 118%, rgba(210, 162, 76, 0.12), transparent 62%),
    var(--bg-soft);
  overflow: hidden;
}

.footer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 150px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer-title {
    background: linear-gradient(180deg, var(--ink) 30%, rgba(210, 162, 76, 0.85) 82%, rgba(210, 162, 76, 0.35));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.footer-sub {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.footer-xhs {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 32%),
    linear-gradient(135deg, #ff6a80 0%, #ff2442 48%, #d10c2b 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 38px rgba(255, 36, 66, 0.3);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.footer-xhs:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(255, 36, 66, 0.42);
}

.footer-copy {
  margin: 46px 0 0;
  color: rgba(143, 136, 122, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 9995;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background: rgba(22, 20, 17, 0.78);
  backdrop-filter: blur(14px);
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 380ms ease, transform 380ms var(--ease-out), border-color 260ms ease, box-shadow 260ms ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(210, 162, 76, 0.28);
  transform: translateY(-3px);
}

/* ---------- 关键帧（保留项） ---------- */

@keyframes pieceRise {
  from {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes lightboxIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes imagePop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .site-header {
    height: auto;
    min-height: 78px;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .brand {
    height: 36px;
    padding: 0 14px;
    font-size: 15px;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 280px;
    gap: 7px;
  }

  .top-nav a {
    min-width: 58px;
    height: 36px;
    font-size: 14px;
  }

  .hero-collage {
    inset: -12vh -56vw -18vh -42vw;
    min-height: 150vh;
  }

  .hero-copy {
    width: calc(100% - 28px);
    min-height: 100svh;
    align-items: flex-start;
    justify-content: center;
    padding: 184px 0 98px 34px;
    text-align: left;
  }

  .hero h1 {
    font-size: 92px;
    text-shadow: 0 0 34px rgba(240, 199, 118, 0.16), 0 12px 34px rgba(0, 0, 0, 0.55);
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 28px;
  }

  .scroll-hint {
    left: 34px;
    bottom: 26px;
  }

  .work-section {
    padding: 54px 16px 72px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-head h2 {
    font-size: 46px;
  }

  .section-ghost {
    font-size: 108px;
    top: -0.3em;
  }

  .section-copy {
    font-size: 16px;
  }

  .featured-grid {
    display: block;
    column-count: 3;
    max-height: none;
    overflow: visible;
  }

  .featured-item {
    min-height: auto;
    margin-bottom: 12px;
  }

  .masonry {
    column-count: 2;
    padding-left: 18px;
  }

  .month-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .month-head {
    position: static;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
  }

  .month-head h4 {
    font-size: 28px;
  }

  .video-masonry {
    column-count: 2;
  }

  .lightbox {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    grid-template-rows: 60px minmax(0, 1fr);
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .brand {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .top-nav {
    max-width: 176px;
    gap: 5px;
  }

  .top-nav a {
    min-width: 42px;
    height: 30px;
    font-size: 12px;
  }

  .xhs-icon {
    min-width: 56px !important;
    width: auto;
    padding: 0 8px;
  }

  .xhs-mark {
    height: 24px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-collage {
    inset: -10vh -76vw -18vh -62vw;
    min-height: 154vh;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-copy {
    padding: 190px 16px 92px 30px;
  }

  .scroll-hint {
    left: 30px;
  }

  .scroll-hint-text {
    font-size: 11px;
    letter-spacing: 0.3em;
  }

  .marquee-inner {
    font-size: 13px;
    gap: 2em;
    padding-right: 2em;
  }

  .section-ghost {
    font-size: 84px;
  }

  .masonry {
    column-count: 1;
    padding-left: 14px;
  }

  .featured-grid {
    column-count: 2;
  }

  .video-masonry {
    column-count: 1;
  }

  .timeline-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .footer-title {
    letter-spacing: 0.04em;
  }
}

/* ---------- 动效兜底 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  body::after {
    animation: none !important;
  }

  .marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .hero-piece,
  .hero-piece img,
  .hero-collage,
  .hero-copy,
  .hero-char,
  .reveal,
  .reveal .featured-item,
  .reveal .work-item,
  .reveal .video-card {
    transform: none !important;
    opacity: 1 !important;
  }

  .scroll-hint-line::after,
  .play-video::after {
    display: none;
  }
}

/* ICP 备案号 */
.icp-footer {
  margin: 10px 0 0;
  color: rgba(237, 229, 214, .48);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .04em;
  text-align: center;
}
.icp-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 229, 214, .22);
}
.icp-footer a:hover { color: rgba(255, 244, 224, .82); }
.police-beian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.police-beian-icon {
  width: 18px;
  height: 20px;
  object-fit: contain;
  opacity: .78;
  vertical-align: -4px;
}

