:root {
  --bg: #05070a;
  --bg-soft: #0d1117;
  --panel: rgba(10, 14, 22, 0.62);
  --panel-strong: rgba(10, 14, 20, 0.88);
  --panel-line: rgba(255, 255, 255, 0.11);
  --text: #f4efe6;
  --muted: rgba(236, 230, 220, 0.72);
  --hero-accent: #f0b35b;
  --hero-accent-soft: rgba(240, 179, 91, 0.18);
  --hero-cool: #87b6ff;
  --hero-warm: #ff8669;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(135, 182, 255, 0.17), transparent 25%),
    radial-gradient(circle at 78% 24%, rgba(255, 134, 105, 0.16), transparent 20%),
    linear-gradient(180deg, #030507 0%, #090d13 54%, #05070a 100%);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(12px);
  z-index: 0;
}

body::before {
  width: 48vw;
  height: 48vw;
  left: -12vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(126, 164, 255, 0.24) 0%, rgba(126, 164, 255, 0) 72%);
}

body::after {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  top: 20vh;
  background: radial-gradient(circle, rgba(255, 145, 114, 0.18) 0%, rgba(255, 145, 114, 0) 76%);
}

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

.home-shell {
  position: relative;
  z-index: 1;
}

.hero-section {
  position: relative;
  min-height: 100dvh;
  padding: 28px 28px 34px;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-stage-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 44%, rgba(6, 10, 16, 0.86) 0%, rgba(6, 10, 16, 0.72) 18%, rgba(6, 10, 16, 0.28) 42%, transparent 62%),
    radial-gradient(circle at 55% 48%, rgba(15, 20, 30, 0.02), rgba(4, 6, 8, 0.72) 74%),
    linear-gradient(90deg, rgba(4, 7, 11, 0.9) 0%, rgba(6, 10, 16, 0.68) 16%, rgba(6, 10, 16, 0.28) 32%, rgba(6, 10, 16, 0.08) 44%, rgba(6, 10, 16, 0.16) 60%, rgba(4, 7, 11, 0.82) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

.topbar,
.hero-layout,
.content-section {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 44px;
  max-width: 1480px;
}

.brandmark {
  display: grid;
  gap: 2px;
}

.brandmark-cn {
  font-family: "STXingkai", "STKaiti", "KaiTi", serif;
  font-size: 32px;
  letter-spacing: 0.08em;
}

.brandmark-en {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
}

.topnav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.42);
  backdrop-filter: blur(14px);
}

.topnav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.topnav a:hover {
  color: var(--text);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(360px, 540px) minmax(360px, 430px);
  justify-content: space-between;
  gap: clamp(52px, 10vw, 220px);
  align-items: stretch;
  max-width: 1480px;
  margin: 0 auto;
}

.hero-panel,
.content-section {
  backdrop-filter: blur(14px);
}

.hero-copy {
  position: relative;
  display: grid;
  align-content: center;
  justify-self: start;
  gap: 20px;
  min-height: calc(100dvh - 140px);
  width: min(100%, 540px);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 7% auto 2% -10%;
  width: min(46vw, 560px);
  background: radial-gradient(circle at 22% 34%, rgba(7, 12, 19, 0.72) 0%, rgba(7, 12, 19, 0.42) 44%, rgba(7, 12, 19, 0) 78%);
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
}

.hero-badge,
.section-kicker,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-badge::before,
.section-kicker::before,
.panel-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--hero-accent), transparent);
}

.hero-copy h1,
.section-title-row h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Source Han Serif SC", serif;
  line-height: 1.04;
}

.hero-copy h1 {
  max-width: 5.15em;
  font-size: clamp(46px, 5.8vw, 86px);
  letter-spacing: 0.02em;
  text-wrap: balance;
  line-height: 1.08;
  text-shadow: 0 14px 60px rgba(0, 0, 0, 0.46);
}

.hero-lead {
  margin: 0;
  max-width: 470px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-action {
  background: linear-gradient(135deg, color-mix(in srgb, var(--hero-accent) 88%, white), color-mix(in srgb, var(--hero-accent) 68%, #a85630));
  color: #1f1309;
  box-shadow: 0 12px 36px color-mix(in srgb, var(--hero-accent) 22%, transparent);
}

.secondary-action {
  background: rgba(11, 17, 27, 0.44);
  border-color: rgba(255, 255, 255, 0.14);
}

.primary-action:hover,
.secondary-action:hover,
.cast-pill:hover,
.entry-card:hover {
  transform: translateY(-2px);
}

.highlight-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 500px;
}

.highlight-chip {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 17, 26, 0.62), rgba(8, 12, 18, 0.36));
  box-shadow: var(--shadow);
}

.highlight-chip strong {
  font-size: 17px;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--hero-accent) 86%, white);
}

.highlight-chip span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 16px;
  align-content: center;
}

.panel-head,
.selector-head,
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.panel-status,
.selector-head span:last-child,
.section-title-row p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.spotlight-card,
.cast-selector,
.content-section,
.flow-card,
.entry-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 16, 24, 0.88), rgba(7, 11, 17, 0.64));
  box-shadow: var(--shadow);
}

.spotlight-card::before,
.cast-selector::before,
.content-section::before,
.entry-card::before,
.flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hero-accent) 18%, transparent), transparent 46%);
  opacity: 0.9;
  pointer-events: none;
}

.spotlight-card,
.cast-selector {
  padding: 22px 22px 24px;
}

.spotlight-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.spotlight-card h2 {
  margin: 12px 0 4px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 44px;
  line-height: 1;
}

.spotlight-role {
  color: color-mix(in srgb, var(--hero-accent) 88%, white);
  font-size: 15px;
  letter-spacing: 0.14em;
}

.spotlight-tagline,
.spotlight-quote {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.spotlight-quote {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 19px;
  color: rgba(255, 246, 230, 0.86);
}

.spotlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.spotlight-meta span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spotlight-meta strong {
  font-size: 15px;
  color: color-mix(in srgb, var(--hero-accent) 86%, white);
}

.cast-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cast-pill {
  width: 100%;
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cast-pill.is-active {
  border-color: color-mix(in srgb, var(--hero-accent) 65%, white 10%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--hero-accent) 18%, transparent), rgba(255, 255, 255, 0.04));
}

.cast-pill-main {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 22px;
}

.cast-pill-sub {
  font-size: 13px;
  color: var(--muted);
}

.content-section {
  max-width: 1480px;
  margin: 0 auto 24px;
  padding: 30px;
}

.section-title-row {
  margin-bottom: 24px;
}

.section-title-row h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.section-title-row p {
  max-width: 380px;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.entry-card:hover {
  border-color: color-mix(in srgb, var(--hero-accent) 55%, white 15%);
}

.entry-eyebrow,
.entry-action {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.entry-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.entry-title-row h3,
.flow-card h3 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
}

.entry-title-row h3 {
  font-size: 30px;
}

.entry-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1f1309;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hero-accent) 82%, white), color-mix(in srgb, var(--hero-accent) 56%, #a85630));
}

.entry-card p,
.flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.entry-action {
  color: color-mix(in srgb, var(--hero-accent) 86%, white);
}

.story-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.flow-index {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: color-mix(in srgb, var(--hero-accent) 88%, white);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.flow-card h3 {
  font-size: 32px;
}

@media (max-width: 1240px) {
  .hero-layout {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 28px;
  }

  .hero-copy {
    min-height: auto;
    padding-top: 40px;
    width: min(100%, 720px);
  }

  .hero-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-section,
  .content-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar,
  .panel-head,
  .selector-head,
  .section-title-row {
    align-items: start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 14vw, 72px);
    max-width: none;
  }

  .hero-lead {
    font-size: 16px;
  }

  .highlight-row,
  .story-flow,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .cast-rail,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card h2 {
    font-size: 36px;
  }

  .entry-title-row {
    flex-direction: column;
  }
}
