:root {
  color-scheme: dark;
  --bg: #08070d;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7edf6;
  --muted: #b8a8bc;
  --line: rgba(255, 255, 255, 0.16);
  --pink: #ff4fb8;
  --violet: #8f6cff;
  --cyan: #6ff8ff;
  --gold: #ffd18a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius: 28px;
}

@font-face {
  font-family: "TQDream";
  src: local("字心坊童梦奇缘W"), local("字心坊童梦奇缘");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 79, 184, 0.3), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(111, 248, 255, 0.16), transparent 25rem),
    linear-gradient(180deg, #110b18 0%, var(--bg) 46%, #090711 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  content: "";
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  left: var(--x, 50%);
  top: var(--y, 40%);
  z-index: -1;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 184, 0.18), transparent 62%);
  transition: opacity 180ms ease;
}

.floating-nav {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 8, 15, 0.42);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.floating-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  transition: 180ms ease;
}

.floating-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.corner-logo {
  position: absolute;
  top: 54px;
  left: max(24px, calc((100vw - 1180px) / 2));
  z-index: 11;
  display: block;
  width: clamp(96px, 10vw, 150px);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 12px rgba(111, 248, 255, 0.5)) drop-shadow(0 0 20px rgba(255, 79, 184, 0.35));
}

.corner-logo img {
  width: 100%;
  height: auto;
}

.brand,
.hero-actions,
.hero-stats,
.section-heading,
.closing-section,
.site-footer {
  display: flex;
  align-items: center;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 78vh;
  height: 78svh;
  min-height: 0;
  padding: 104px max(28px, calc((100vw - 1180px) / 2)) 104px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 46%, rgba(255, 79, 184, 0.22), transparent 26rem),
    linear-gradient(90deg, rgba(5, 3, 9, 0.88) 0%, rgba(5, 3, 9, 0.56) 34%, rgba(5, 3, 9, 0.2) 66%, rgba(5, 3, 9, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 3, 9, 0.24) 0%, rgba(5, 3, 9, 0) 46%, #08070d 100%);
  content: "";
}

.hero::after {
  content: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(650px, 100%);
  padding-top: 430px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11.5ch;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.3vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-lede {
  max-width: 640px;
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 18px 45px rgba(255, 79, 184, 0.35);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-stats {
  gap: 12px;
  align-items: stretch;
}

.hero-stats div {
  min-width: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #08070d;
  box-shadow: none;
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0;
  background:
    linear-gradient(to top, rgba(8, 7, 13, 0.2), rgba(8, 7, 13, 0));
  content: "";
}

.hero-visual::after {
  content: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  filter: saturate(1.06) contrast(1.04);
}

.scan-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  width: min(320px, calc(100% - 56px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(13, 9, 20, 0.76);
  backdrop-filter: blur(18px);
}

.scan-card span,
.world-card span,
.cast-card span,
.pipeline-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scan-card strong {
  display: block;
  margin-bottom: 6px;
}

.scan-card small {
  color: var(--muted);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.marquee div {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 18px 0;
  animation: drift 24s linear infinite;
}

.marquee span {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  white-space: nowrap;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }

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

.split-section,
.cast-section,
.world-section,
.gallery-section,
.pipeline-section,
.closing-section {
  padding: 110px 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 34px;
}

.split-section > div:nth-child(2) p {
  max-width: 850px;
  font-size: 18px;
}

.concept-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.concept-grid article,
.pipeline-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.035));
}

.concept-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 79, 184, 0.16);
  color: var(--pink);
  font-weight: 900;
}

.section-heading {
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2,
.section-heading p:last-child {
  max-width: 660px;
}

.section-heading.compact {
  display: block;
}

.cast-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

.cast-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.cast-card.featured {
  grid-row: span 2;
}

.cast-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 500ms ease;
}

.cast-card:hover img,
.world-card:hover img,
.wide-gallery img:hover {
  transform: scale(1.045);
}

.cast-card::after,
.world-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(5, 3, 8, 0.88));
  content: "";
}

.cast-card > div,
.world-card > div {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
}

.cast-card p,
.world-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.world-layout {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: 16px;
}

.world-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
}

.world-card.large {
  grid-row: span 3;
  min-height: 640px;
}

.world-card img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 500ms ease;
}

.scene-apartment-night {
  object-position: calc(50% + 200px) center;
}

.gallery-section {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 30px;
  align-items: start;
}

.gallery-copy {
  position: sticky;
  top: 116px;
}

.wide-gallery {
  display: grid;
  gap: 14px;
}

.wide-gallery img {
  overflow: hidden;
  aspect-ratio: 2.36 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 500ms ease;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.pipeline-grid article {
  position: relative;
  min-height: 310px;
}

.pipeline-grid article::before {
  position: absolute;
  right: 20px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  content: "0" counter(step);
  counter-increment: step;
}

.closing-section {
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 79, 184, 0.2), transparent 24rem),
    rgba(255, 255, 255, 0.06);
}

.closing-section div {
  max-width: 720px;
}

.site-footer {
  justify-content: space-between;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .gallery-section {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 11ch;
  }

  .concept-grid,
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cast-grid,
  .world-layout {
    grid-template-columns: 1fr;
  }

  .cast-card.featured,
  .world-card.large {
    grid-row: auto;
  }

  .world-card.large {
    min-height: 420px;
  }

  .scene-apartment-night {
    object-position: calc(50% + 80px) center;
  }

  .gallery-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 78vh;
    height: 78svh;
    min-height: 0;
    padding: 82px 20px;
  }

  .floating-nav {
    top: 14px;
    width: calc(100% - 28px);
    justify-content: center;
    gap: 4px;
    padding: 6px;
  }

  .floating-nav a {
    padding: 9px 13px;
    font-size: 13px;
  }

  .corner-logo {
    top: 37px;
    left: 18px;
    width: 104px;
  }

  .hero-copy {
    padding-top: 260px;
  }

  .hero-stats,
  .section-heading,
  .closing-section,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats div {
    width: 100%;
  }

  .hero-visual,
  .hero-visual img {
    border-radius: 0;
  }

  .scan-card {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .split-section,
  .cast-section,
  .world-section,
  .gallery-section,
  .pipeline-section,
  .closing-section {
    padding: 70px 0;
  }

  .concept-grid,
  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .cast-card,
  .world-card,
  .world-card.large {
    min-height: 330px;
  }

  .closing-section {
    padding: 28px;
  }
}
