:root {
  --ink: #0b1a24;
  --foam: #f4fbff;
  --cyan: #2ec6ff;
  --coral: #ff6b7a;
  --gold: #ffd166;
  --panel: rgba(8, 24, 36, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--foam);
  font-family: var(--font-body);
  background: #041018;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.is-hidden { display: none !important; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(46, 198, 255, 0.25), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(255, 107, 122, 0.2), transparent 40%),
    #041018;
}
.loader-inner { text-align: center; width: min(280px, 70vw); }
.loader-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(46, 198, 255, 0.9), rgba(255, 107, 122, 0.85));
  animation: float 1.6s ease-in-out infinite;
}
.loader-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width 0.2s ease;
}
.loader p { margin-top: 0.75rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(4,16,24,0.9), rgba(4,16,24,0.35), transparent);
  backdrop-filter: blur(6px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav {
  display: none;
  gap: 1.1rem;
  margin-left: 1rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
}
.nav a:hover { color: #fff; }
.top-actions { margin-left: auto; display: flex; gap: 0.6rem; align-items: center; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.icon-btn.is-on { background: rgba(46,198,255,0.25); border-color: var(--cyan); }
.cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #5b8cff);
  color: #041018;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #041018 center/cover no-repeat;
}
.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,16,24,0.78), rgba(4,16,24,0.25) 45%, rgba(4,16,24,0.55)),
    linear-gradient(180deg, rgba(4,16,24,0.35), transparent 30%, rgba(4,16,24,0.85));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2rem));
  padding: 6rem 0 5rem;
  text-align: left;
}
.hero-logo {
  width: min(220px, 55vw);
  margin-bottom: 1rem;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35));
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  text-shadow: 0 8px 30px rgba(0,0,0,0.45);
}
.hero-sub {
  margin: 0.75rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.86);
}
.reserve {
  margin: 1rem 0 1.5rem;
  color: rgba(255,255,255,0.75);
}
.reserve strong {
  color: var(--gold);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-btns a, .hero-btns button {
  border: 0;
  background: transparent;
  padding: 0;
}
.hero-btns img {
  height: 56px;
  width: auto;
  transition: transform 0.2s ease;
}
.hero-btns a:hover img, .hero-btns button:hover img { transform: translateY(-3px) scale(1.03); }
.hero-social {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: inherit;
}
button.chip {
  cursor: pointer;
  font: inherit;
}
.chip-disabled {
  opacity: 0.55;
}
.side-rail {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: none;
  flex-direction: column;
  gap: 0.65rem;
}
.side-rail .chip {
  justify-content: center;
  min-width: 88px;
  background: rgba(8, 24, 36, 0.75);
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, -6px); opacity: 1; }
}

.section {
  position: relative;
  padding: 4.5rem 1.25rem;
}
.section-head {
  width: min(1100px, 100%);
  margin: 0 auto 2rem;
}
.eyebrow {
  margin: 0;
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}
.section-head h2 {
  margin: 0.35rem 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.section-head p:last-child {
  margin: 0;
  color: rgba(255,255,255,0.65);
}

.roles {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(46,198,255,0.18), transparent 50%),
    linear-gradient(180deg, #061820, #0a2230 60%, #061820);
}
.role-stage {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.role-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 460px;
  max-height: min(720px, 78vh);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1c28;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.role-layers {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}
.role-layers.is-out-left {
  animation: roleSlideOutLeft 0.38s ease forwards;
}
.role-layers.is-out-right {
  animation: roleSlideOutRight 0.38s ease forwards;
}
.role-layers.is-in-left {
  animation: roleSlideInLeft 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.role-layers.is-in-right {
  animation: roleSlideInRight 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes roleSlideOutLeft {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(-28%) scale(0.96); opacity: 0; }
}
@keyframes roleSlideOutRight {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(28%) scale(0.96); opacity: 0; }
}
@keyframes roleSlideInLeft {
  from { transform: translateX(-32%) scale(0.96); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes roleSlideInRight {
  from { transform: translateX(32%) scale(0.96); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}
.role-bg,
.role-char,
.role-word {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.role-bg {
  object-fit: contain;
  object-position: center center;
  z-index: 1;
}
.role-char {
  z-index: 2;
  width: 92%;
  height: 96%;
  left: 4%;
  top: 2%;
  right: auto;
  bottom: auto;
  object-fit: contain;
  object-position: center bottom;
}
.role-word {
  z-index: 3;
  object-fit: contain;
  object-position: left center;
  width: min(38%, 360px);
  height: auto;
  max-height: 55%;
  left: 3%;
  top: 10%;
  right: auto;
  bottom: auto;
}
.role-name {
  position: absolute;
  z-index: 4;
  left: 4%;
  bottom: 8%;
  width: min(36%, 280px);
  height: auto;
  max-height: 20%;
  object-fit: contain;
  object-position: left bottom;
}
.role-nav {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}
.role-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.role-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.28);
  padding: 0;
}
.role-dots button.is-on { background: var(--cyan); width: 24px; }

.acts {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255,107,122,0.16), transparent 45%),
    #071822;
}
.act-tabs {
  width: min(1100px, 100%);
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.act-tabs button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}
.act-tabs button.is-on {
  background: rgba(46,198,255,0.2);
  border-color: var(--cyan);
  color: #fff;
}
.act-panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.2fr 1fr;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
.act-banner-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,0.04);
}
.act-panel img {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.act-copy h3 { margin: 0 0 0.35rem; font-size: 1.5rem; }
.act-copy .sub { color: var(--gold); margin: 0 0 0.75rem; }
.act-copy p { color: rgba(255,255,255,0.78); line-height: 1.7; }
.act-copy .btn {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), #ff8f5a);
  color: #fff;
  font-weight: 700;
}

.download {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,209,102,0.12), transparent 40%),
    #06141d;
}
.dl-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.dl-card {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
  color: inherit;
  width: 100%;
  cursor: pointer;
  font: inherit;
}
.dl-card:hover {
  transform: translateY(-3px);
  background: rgba(46,198,255,0.14);
}
.community {
  width: min(1100px, 100%);
  margin: 2rem auto 0;
}
.community h3 { margin: 0 0 0.75rem; }
.community-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.trailer {
  background: #051018;
}
.trailer-wrap {
  width: min(960px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.trailer-wrap iframe { width: 100%; height: 100%; }

.footer {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #030b11;
}
.footer img {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  border-radius: 10px;
}
.footer .muted {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .side-rail { display: flex; }
  .hero-content { margin-right: 8rem; }
}
@media (max-width: 800px) {
  .act-panel { grid-template-columns: 1fr; }
  .role-stage { grid-template-columns: 1fr; }
  .role-nav { display: none; }
  .role-frame {
    aspect-ratio: 3 / 4;
    min-height: 520px;
    max-height: 85vh;
  }
  .role-char {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-position: center bottom;
  }
  .role-word {
    width: 78%;
    max-height: 28%;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    object-position: center top;
  }
  .role-name {
    left: 50%;
    bottom: 5%;
    width: 70%;
    transform: translateX(-50%);
    object-position: center bottom;
  }
}
