/**
 * 奉天大魔神 · 官网样式
 * 暗黑Like / 3D传奇：玄黑底、血焰、传奇金
 */

:root {
  --gold: #c9a227;
  --gold-bright: #f0d060;
  --violet: #b42318;
  --violet-deep: #6e1210;
  --ember: #ff5a1f;
  --blood: #8b1510;
  --bone: #e8e0d4;
  --text: #e8e0d4;
  --text-soft: #a89f92;
  --cream: #efe6d8;
  --line: rgba(201, 162, 39, 0.22);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "STSong", "宋体", serif;
  --font-logo: "Ma Shan Zheng", "Long Cang", "STXingkai", "华文行楷", "KaiTi", cursive;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #070605;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== 全站视频背景 ========== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-bg-poster,
.page-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-bg-video {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.page-bg.is-ready .page-bg-video { opacity: 1; }

.site-header,
main,
.site-footer,
.side-rail,
.corner-rail,
.music-box,
.modal {
  position: relative;
  z-index: 1;
}

.site-header { z-index: 1000; }
.side-rail,
.corner-rail,
.music-box { z-index: 900; }
.modal { z-index: 2000; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ========== 顶栏 ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 6, 5, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(201, 162, 39, 0.28);
}

.header-inner {
  width: min(1280px, 94%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: 0.22em;
  color: #f4e8d0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.site-nav { flex: 1; }

.site-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(247, 242, 234, 0.72);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--gold-bright);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active { color: #fff8ec; }

.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

.header-download {
  flex-shrink: 0;
  height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #1a1008;
  background: linear-gradient(135deg, #f0d060, #c9a227 55%, #a61e1e);
  transition: transform 0.25s, box-shadow 0.25s;
}

.header-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(180, 40, 20, 0.4);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f0d4a8;
}

/* ========== 首页主视觉 ========== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cream);
  background: transparent;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.55) 0%, rgba(7, 6, 5, 0.2) 42%, rgba(7, 6, 5, 0.5) 78%, rgba(7, 6, 5, 0.72) 100%),
    radial-gradient(ellipse at 50% 60%, transparent 28%, rgba(90, 16, 10, 0.35) 100%);
  pointer-events: none;
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + 20px) 20px 90px;
  max-width: 920px;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(240, 212, 168, 0.85);
  margin-bottom: 18px;
}

/* ========== 主标题 LOGO：古风玄幻厚重书法 ========== */
.hero-logo-title {
  position: relative;
  display: inline-block;
  margin: 0 0 20px;
  line-height: 1.15;
  font-size: clamp(3.8rem, 11.5vw, 7.6rem);
  font-family: var(--font-logo);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-indent: 0.08em;
  user-select: none;
  filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.65));
}

.logo-layer {
  display: block;
  font: inherit;
  letter-spacing: inherit;
  text-indent: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.logo-glow,
.logo-flame,
.logo-stroke {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
}

/* 淡紫色暗焰 / 朦胧法术光晕 */
.logo-glow {
  color: transparent;
  text-shadow:
    0 0 18px rgba(186, 140, 255, 0.55),
    0 0 36px rgba(120, 60, 180, 0.55),
    0 0 64px rgba(90, 30, 140, 0.5),
    0 0 96px rgba(201, 162, 39, 0.22);
  animation: logo-halo 3.6s ease-in-out infinite;
}

/* 暗紫金渐变流光描边层 */
.logo-flame {
  color: transparent;
  -webkit-text-stroke: 6px transparent;
  background: linear-gradient(
    115deg,
    #2a0e40 0%,
    #6b2d9e 22%,
    #c9a227 48%,
    #9b4dff 68%,
    #3a1658 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(1.15px);
  opacity: 0.95;
  transform: scale(1.018);
  animation: logo-flame-flow 4.2s ease-in-out infinite;
}

/* 暗紫金金石描边 */
.logo-stroke {
  color: #160818;
  text-shadow:
    0 1px 0 #2a1238,
    1px 0 0 #4a2068,
    -1px 0 0 #3a1848,
    0 -1px 0 #5a2a78,
    2px 2px 0 #1c0c24,
    -2px 1px 0 #6b3d8f,
    1px -2px 0 #a87838,
    -1px -1px 0 #c9a227,
    0 0 2px rgba(201, 162, 39, 0.9);
  opacity: 0.96;
}

/* 霜白主体 + 鎏金星光颗粒 */
.logo-fill {
  position: relative;
  z-index: 2;
  background: linear-gradient(
    165deg,
    #ffffff 0%,
    #f7f4ff 16%,
    #fff8ec 34%,
    #e8d6a8 48%,
    #faf7ff 62%,
    #d4b56a 78%,
    #ffffff 100%
  );
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.55px rgba(90, 40, 120, 0.4);
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 2px 0 rgba(40, 16, 60, 0.6));
  animation: logo-gold-shimmer 5s ease-in-out infinite;
}

/* 细碎鎏金 / 紫焰星光颗粒 */
.logo-sparkle {
  position: absolute;
  inset: -8% -4%;
  z-index: 3;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 38%, rgba(255, 240, 200, 0.95), transparent),
    radial-gradient(1px 1px at 28% 22%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 45% 55%, rgba(232, 201, 122, 0.9), transparent),
    radial-gradient(1px 1px at 58% 30%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 72% 48%, rgba(200, 160, 255, 0.85), transparent),
    radial-gradient(1px 1px at 84% 28%, rgba(255, 236, 180, 0.9), transparent),
    radial-gradient(1px 1px at 38% 68%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 66% 72%, rgba(168, 120, 255, 0.8), transparent);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: logo-spark 2.8s ease-in-out infinite;
}

@keyframes logo-halo {
  0%, 100% {
    text-shadow:
      0 0 16px rgba(168, 120, 255, 0.45),
      0 0 32px rgba(120, 60, 180, 0.4),
      0 0 56px rgba(90, 30, 140, 0.35),
      0 0 80px rgba(201, 162, 39, 0.16);
  }
  50% {
    text-shadow:
      0 0 24px rgba(190, 140, 255, 0.75),
      0 0 48px rgba(140, 70, 200, 0.6),
      0 0 72px rgba(100, 40, 160, 0.55),
      0 0 110px rgba(232, 201, 122, 0.28);
  }
}

@keyframes logo-flame-flow {
  0%, 100% { background-position: 0% 50%; opacity: 0.85; }
  50% { background-position: 100% 50%; opacity: 1; }
}

@keyframes logo-gold-shimmer {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

@keyframes logo-spark {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}
.hero-slogan {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: rgba(247, 242, 234, 0.88);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  letter-spacing: 0.16em;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(0.98); }

/* 主按钮：暗金血焰 */
.btn-solid {
  color: #fff8ec;
  border: 1px solid rgba(232, 180, 90, 0.35);
  background: linear-gradient(
    145deg,
    #c45c28 0%,
    #8b1a12 42%,
    #5a0e0c 72%,
    #3a0a0a 100%
  );
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(140, 24, 16, 0.28),
    inset 0 1px 0 rgba(255, 210, 140, 0.22);
}

.btn-solid:hover {
  color: #1a1008;
  border-color: transparent;
  background: linear-gradient(145deg, #f0d060 0%, #e8a838 45%, #c9a227 100%);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(201, 162, 39, 0.35);
}

/* 次按钮：玄黑玻璃描金 */
.btn-line {
  color: #f0e6d4;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: linear-gradient(
    180deg,
    rgba(28, 18, 14, 0.72),
    rgba(10, 8, 6, 0.82)
  );
  backdrop-filter: blur(8px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 236, 200, 0.08);
}

.btn-line:hover {
  color: #fff8ec;
  border-color: rgba(240, 208, 96, 0.75);
  background: linear-gradient(
    180deg,
    rgba(90, 28, 18, 0.55),
    rgba(28, 12, 10, 0.78)
  );
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(140, 24, 16, 0.22);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(247, 242, 234, 0.65);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ========== 内容区：白色透明罩，透出全站视频背景 ========== */
.panel-section {
  position: relative;
  z-index: 1;
  padding: 96px 0 88px;
  overflow: hidden;
  background: transparent;
}

.panel-frost {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 6, 5, 0.72) 0%,
    rgba(10, 8, 6, 0.78) 50%,
    rgba(8, 6, 5, 0.74) 100%
  );
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.panel-frost--strong {
  background: rgba(7, 6, 5, 0.86);
}

.panel-section > .container {
  position: relative;
  z-index: 2;
}

.panel-head {
  text-align: center;
  margin-bottom: 42px;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.28em;
  text-indent: 0.14em;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.panel-head p {
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

/* ========== 新闻 ========== */
.news-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

.news-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(12, 10, 8, 0.82);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  min-height: 360px;
}

.news-shot-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.news-shot-item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
}

.news-shot-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.news-shot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.news-shot-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: #fff8ec;
  background: linear-gradient(180deg, transparent, rgba(6, 4, 3, 0.88));
  pointer-events: none;
}

.news-shot-prev,
.news-shot-next {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 1px solid rgba(232, 201, 122, 0.35);
  background: rgba(10, 6, 16, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s, background 0.25s, border-color 0.25s;
}

.news-shot:hover .news-shot-prev,
.news-shot:hover .news-shot-next {
  opacity: 1;
}

.news-shot-prev { left: 10px; }
.news-shot-next { right: 10px; }

.news-shot-prev:hover,
.news-shot-next:hover {
  background: rgba(201, 164, 92, 0.35);
  border-color: var(--gold-bright);
}

.news-shot-prev::before,
.news-shot-next::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-top: 2px solid #f0d4a8;
  border-right: 2px solid #f0d4a8;
}

.news-shot-prev::before { transform: rotate(-135deg); margin-left: 14px; }
.news-shot-next::before { transform: rotate(45deg); margin-left: 10px; }

.news-shot-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.news-shot-dots button {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.35);
  transition: background 0.25s, transform 0.25s;
}

.news-shot-dots button.is-active {
  background: var(--gold-bright);
  transform: scale(1.2);
}

.news-board {
  max-width: none;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(18, 14, 12, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.news-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 10, 8, 0.8);
}

.news-tab {
  flex: 1;
  height: 48px;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  transition: color 0.25s, background 0.25s;
}

.news-tab.is-active {
  color: var(--gold-bright);
  font-weight: 700;
  background: rgba(28, 20, 16, 0.95);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.news-list { padding: 8px 0; flex: 1; }

.news-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(90, 60, 40, 0.06);
  transition: background 0.25s;
}

.news-list li:last-child a { border-bottom: 0; }

.news-list li a:hover {
  background: rgba(40, 28, 20, 0.65);
}

.news-list em {
  flex-shrink: 0;
  width: 48px;
  font-style: normal;
  font-size: 13px;
  color: #8a8074;
  letter-spacing: 0.04em;
}

.tag {
  flex-shrink: 0;
  font-size: 12px;
  padding: 2px 8px;
  letter-spacing: 0.06em;
}

.tag-news { color: var(--gold-bright); background: rgba(201, 162, 39, 0.15); }
.tag-notice { color: #d4b56a; background: rgba(201, 162, 39, 0.12); }
.tag-event { color: var(--ember); background: rgba(255, 90, 31, 0.12); }

.news-list strong {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list li.is-hidden { display: none; }

/* ========== 魔神世界（黑神话式产品介绍分章） ========== */
.world-lead {
  max-width: 52em;
  margin: 0 auto 48px;
  text-align: center;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: rgba(247, 242, 234, 0.82);
}

.world-chapters {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
}

.world-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
}

.world-chapter--reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
}

.world-chapter--reverse .world-chapter-media {
  order: 2;
}

.world-chapter--reverse .world-chapter-body {
  order: 1;
}

.world-chapter-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(10, 8, 6, 0.85);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.world-chapter-media img {
  width: 100%;
  height: clamp(240px, 36vw, 420px);
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s var(--ease);
}

.world-chapter:hover .world-chapter-media img {
  transform: scale(1.04);
}

.world-chapter-body {
  padding: 8px 4px;
}

.world-chapter-verse {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.9;
}

.world-chapter-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  letter-spacing: 0.2em;
  line-height: 1.35;
  color: var(--gold-bright);
  margin-bottom: 16px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.world-chapter-body > p:last-child {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(247, 242, 234, 0.78);
  max-width: 36em;
}

/* ========== 英雄集（燕云首领集式单舞台切换） ========== */
.heroes-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 12px) 0 28px;
  color: #f7f2ea;
  overflow: hidden;
}

.heroes-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.94) 0%, rgba(7, 6, 5, 0.22) 30%, rgba(7, 6, 5, 0.18) 70%, rgba(7, 6, 5, 0.94) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(140, 24, 16, 0.32), transparent 56%);
  pointer-events: none;
}

.heroes-stage-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(18px, 2.2vw, 48px);
  display: grid;
  grid-template-columns: minmax(168px, 200px) minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: stretch;
  min-height: min(900px, 90vh);
}

.heroes-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 28px;
  justify-content: flex-start;
  justify-self: start;
}

.heroes-rail-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  letter-spacing: 0.38em;
  text-indent: 0.18em;
  color: var(--gold-bright);
  margin-bottom: 26px;
  writing-mode: horizontal-tb;
}

.heroes-rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 14px;
  text-align: left;
  font-size: clamp(15px, 1.15vw, 18px);
  letter-spacing: 0.2em;
  color: rgba(247, 242, 234, 0.45);
  border-left: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}

.heroes-rail-item span {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(232, 201, 122, 0.45);
  font-family: var(--font-serif);
}

.heroes-rail-item:hover {
  color: rgba(247, 242, 234, 0.85);
  transform: translateX(4px);
}

.heroes-rail-item.is-active {
  color: #fff8ec;
  border-left-color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.18), transparent);
}

.heroes-rail-item.is-active span { color: var(--gold-bright); }

.heroes-canvas {
  position: relative;
  overflow: hidden;
  min-height: min(820px, 86vh);
  background: radial-gradient(ellipse at 50% 55%, rgba(80, 40, 120, 0.22), transparent 68%);
}

.heroes-art {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04) translateX(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
  pointer-events: none;
}

.heroes-art.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

.heroes-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

/* 中间角色视频：cover 填满，裁切黑边 */
.heroes-art--video {
  display: block;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.heroes-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.heroes-canvas.is-video-hero {
  display: block;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(140, 24, 16, 0.26), transparent 58%),
    radial-gradient(ellipse at 50% 70%, rgba(80, 40, 120, 0.14), transparent 70%);
}

.heroes-canvas.is-video-hero .heroes-art--video.is-active {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 全站视频：统一 cover 填满，消除黑边 */
video {
  object-fit: cover;
  object-position: center center;
  background: transparent;
}

.heroes-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid rgba(232, 201, 122, 0.4);
  background: rgba(10, 6, 16, 0.55);
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s;
}

.heroes-arrow:hover {
  background: rgba(201, 164, 92, 0.35);
  border-color: var(--gold-bright);
}

.heroes-arrow::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #f0d4a8;
  border-right: 2px solid #f0d4a8;
}

.heroes-arrow--prev { left: 4px; }
.heroes-arrow--prev::before { transform: rotate(-135deg); margin-left: 16px; }
.heroes-arrow--next { right: 4px; }
.heroes-arrow--next::before { transform: rotate(45deg); margin-left: 12px; }

.heroes-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: end;
  width: 100%;
  padding: 24px 8px 24px 4px;
  animation: none;
}

.heroes-panel.is-swap {
  animation: panel-swap 0.4s var(--ease);
}

@keyframes panel-swap {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.heroes-panel-tag {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 10px;
}

.heroes-panel-name {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3vw, 2.85rem);
  letter-spacing: 0.28em;
  text-indent: 0.1em;
  line-height: 1.12;
  color: #fff8ec;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
}

.heroes-panel-intro {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247, 242, 234, 0.8);
  margin-bottom: 20px;
}

.heroes-panel-stats {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.heroes-panel-stats .stat-row {
  display: grid;
  grid-template-columns: 42px 1fr 52px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.heroes-panel-stats .stat-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.heroes-panel-stats .stat-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--gold-bright));
  transition: width 0.55s var(--ease);
}

.heroes-panel-stats em {
  font-style: normal;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-align: right;
}

.heroes-skills-label {
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 10px;
}

.heroes-panel-skills ul {
  display: grid;
  gap: 8px;
}

.heroes-panel-skills li {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 201, 122, 0.18);
  border-left: 3px solid var(--gold);
}

.heroes-panel-skills strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #fff8ec;
  margin-bottom: 3px;
}

.heroes-panel-skills span {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(247, 242, 234, 0.68);
}

.heroes-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.heroes-dot {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(232, 201, 122, 0.25);
  opacity: 0.55;
  overflow: hidden;
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}

.heroes-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.4);
}

.heroes-dot:hover,
.heroes-dot.is-active {
  opacity: 1;
  border-color: var(--gold-bright);
  transform: translateY(-3px);
}

.heroes-dot.is-active img { filter: none; }

/* ========== 游戏特色：沉浸式英雄横幅 ========== */
.features-banner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 100px;
  overflow: hidden;
  color: #f7f2ea;
}

.features-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.features-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.08) brightness(0.55);
}

.features-banner-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(140, 24, 16, 0.38), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(40, 8, 10, 0.85), transparent 50%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.72) 0%, rgba(7, 6, 5, 0.35) 40%, rgba(7, 6, 5, 0.78) 100%),
    linear-gradient(90deg, rgba(7, 6, 5, 0.55) 0%, transparent 28%, transparent 72%, rgba(7, 6, 5, 0.55) 100%);
}

.features-banner-inner {
  position: relative;
  z-index: 2;
  width: min(920px, 92%);
  margin: 0 auto;
  text-align: center;
}

.features-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  line-height: 1.15;
  color: #fff8ec;
  text-shadow:
    0 0 24px rgba(140, 24, 16, 0.55),
    0 8px 32px rgba(0, 0, 0, 0.65);
  margin: 0 0 28px;
}

.features-banner-desc {
  margin: 0 auto;
  max-width: 46em;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 2;
  letter-spacing: 0.06em;
  color: rgba(247, 242, 234, 0.86);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.features-banner-tools {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.features-tool {
  min-width: 120px;
  height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.18em;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(7, 6, 5, 0.72);
  color: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(8px);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}

.features-tool:hover {
  color: #1a1208;
  background: linear-gradient(180deg, #f0d48a, #c9a45c);
  border-color: transparent;
  transform: translateY(-2px);
}

.features-tool--download {
  border-color: rgba(180, 40, 28, 0.55);
  box-shadow: 0 0 18px rgba(140, 24, 16, 0.25);
}

/* ========== 截图轮播 ========== */
.gallery-wrap {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.gallery-track {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(18, 14, 12, 0.75);
  overflow: hidden;
  min-height: 360px;
}

.gallery-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-item.is-active {
  opacity: 1;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: min(520px, 56vw);
  object-fit: cover;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(12, 10, 8, 0.82);
  color: var(--gold-bright);
}

.gallery-prev { left: -8px; }
.gallery-next { right: -8px; }

.gallery-prev::before,
.gallery-next::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.gallery-prev::before { transform: rotate(-135deg); }
.gallery-next::before { transform: rotate(45deg); }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dots button {
  width: 10px;
  height: 10px;
  background: rgba(61, 31, 92, 0.25);
  transition: background 0.25s, transform 0.25s;
}

.gallery-dots button.is-active {
  background: var(--violet);
  transform: scale(1.2);
}

/* ========== 下载 ========== */
.download-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  padding: 20px 24px;
  background: rgba(18, 14, 12, 0.8);
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.dl-card img { width: 48px; height: 48px; object-fit: contain; }
.dl-card--qr img { width: 96px; height: 96px; border: 1px solid var(--line); }

.dl-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.dl-card span { font-size: 13px; color: var(--text-soft); }

/* ========== 页脚 ========== */
.site-footer {
  background: #050403;
  color: rgba(232, 224, 212, 0.7);
  padding: 48px 0 56px;
}

.footer-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.footer-brand {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  padding-top: 4px;
}

.footer-copy {
  flex: 1;
  font-size: 12px;
  line-height: 1.9;
}

.footer-copy strong { color: var(--gold); }

/* ========== 侧栏 ========== */
.side-rail {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 900;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  width: 44px;
  background: rgba(7, 6, 5, 0.92);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-right: 0;
}

.side-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 6px;
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: rgba(247, 242, 234, 0.82);
  border-bottom: 1px solid rgba(232, 201, 122, 0.12);
  transition: color 0.25s, background 0.25s;
}

.side-item:last-child { border-bottom: 0; }

.side-item:hover,
.side-download {
  color: #1a1208;
  background: linear-gradient(180deg, #f0d48a, #c9a45c);
}

.side-top { writing-mode: horizontal-tb; letter-spacing: 0.12em; font-size: 12px; }

/* ========== 左下角：社交关注 + 适龄 ========== */
.corner-rail {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-item {
  position: relative;
}

.social-btn {
  display: block;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.22s var(--ease), filter 0.22s;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.social-btn img {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* 定制社交图标：统一 46px，与 16+ 协调 */
.social-btn--icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.28),
    0 4px 14px rgba(80, 30, 120, 0.35);
}

.social-btn--icon img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  object-position: center center;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
  outline: none;
}

.social-qr {
  position: absolute;
  left: calc(100% + 14px);
  bottom: 0;
  z-index: 5;
  width: 168px;
  padding: 10px 10px 8px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(12, 10, 8, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.social-qr::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 22px;
  width: 10px;
  height: 10px;
  background: rgba(12, 10, 8, 0.94);
  border-left: 1px solid rgba(201, 162, 39, 0.35);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  transform: rotate(45deg);
}

.social-qr img {
  display: block;
  width: 148px;
  height: auto;
  background: #fff;
}

.social-qr span {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.social-item:hover .social-qr,
.social-item:focus-within .social-qr {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.age-tip {
  position: relative;
  left: auto;
  bottom: auto;
}

.age-tip img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

/* ========== 背景音乐 ========== */
.music-box {
  position: fixed;
  right: 56px;
  top: 18px;
  z-index: 1100;
}

.music-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(240, 208, 96, 0.25), transparent 55%),
    rgba(7, 6, 5, 0.78);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.music-btn img {
  width: 26px;
  height: 26px;
  opacity: 0.85;
}

.music-btn:hover {
  transform: scale(1.06);
  border-color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(180, 40, 20, 0.35);
}

.music-btn.is-playing {
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.4);
}

.music-btn.is-playing img {
  opacity: 1;
  animation: music-spin 3s linear infinite;
}

@keyframes music-spin {
  to { transform: rotate(360deg); }
}

.modal[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 16, 0.55);
}

.modal-panel {
  position: relative;
  width: min(420px, 90%);
  padding: 28px 24px 24px;
  background: #14100c;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--bone);
}

.modal-panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.modal-panel p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.8;
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
  .news-shot,
  .news-shot-track {
    min-height: 260px;
  }
  .news-shot-prev,
  .news-shot-next {
    opacity: 1;
  }
  .world-chapter,
  .world-chapter--reverse {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .world-chapter--reverse .world-chapter-media,
  .world-chapter--reverse .world-chapter-body {
    order: initial;
  }
  .world-chapter-media img {
    height: clamp(200px, 48vw, 300px);
  }
  .world-lead {
    margin-bottom: 32px;
    text-align: left;
  }
  .features-banner {
    min-height: min(100vh, 900px);
    padding: calc(var(--header-h) + 36px) 18px 88px;
  }
  .features-banner-title {
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    margin-bottom: 20px;
  }
  .features-banner-desc {
    line-height: 1.85;
    text-align: center;
  }
  .features-banner-tools {
    bottom: 20px;
    gap: 10px;
  }
  .features-tool {
    min-width: 104px;
    height: 40px;
    font-size: 13px;
  }
  .heroes-stage-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 16px;
  }
  .heroes-rail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 0;
  }
  .heroes-rail-title {
    width: 100%;
    margin-bottom: 8px;
    font-size: 1.05rem;
  }
  .heroes-rail-item {
    height: 40px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 0 10px;
    font-size: 13px;
  }
  .heroes-rail-item.is-active {
    border-left: 0;
    border-bottom-color: var(--gold-bright);
    background: rgba(201, 164, 92, 0.12);
  }
  .heroes-canvas {
    min-height: min(520px, 58vh);
  }
  .heroes-art--video,
  .heroes-canvas.is-video-hero .heroes-art--video.is-active {
    overflow: hidden;
  }
  .heroes-video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
  }
  .heroes-panel {
    padding: 8px 4px 16px;
    justify-self: stretch;
  }
  .heroes-panel-name {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
  }
  .heroes-panel-intro {
    font-size: 14px;
  }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }

  .header-download { display: none; }
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(18, 12, 24, 0.96);
    padding: 12px 16px 18px;
    border-bottom: 1px solid rgba(232, 201, 122, 0.18);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul { flex-direction: column; gap: 0; }
  .nav-link { padding: 12px 8px; color: rgba(247, 242, 234, 0.85); }

  .hero-logo-title { letter-spacing: 0.1em; text-indent: 0.04em; }
  .panel-section { padding: 72px 0 64px; }
  .news-list strong { white-space: normal; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .side-rail { display: none; }
  .corner-rail { bottom: 16px; left: 12px; gap: 8px; }
  .social-stack { gap: 8px; }
  .social-qr {
    left: calc(100% + 10px);
    width: 148px;
    padding: 8px;
  }
  .social-qr img { width: 132px; }
  .music-box { right: 14px; top: 12px; }
  .music-btn { width: 42px; height: 42px; }
  .heroes-dot { width: 48px; height: 48px; }
  .heroes-arrow { width: 36px; height: 36px; }
}

/* ========== 滚动显现 / 入场动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(2px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--left.is-inview {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--right.is-inview {
  transform: translateX(0);
}

.reveal--scale {
  transform: translateY(24px) scale(0.96);
}

.reveal--scale.is-inview {
  transform: translateY(0) scale(1);
}

.reveal--soft {
  transform: translateY(20px);
  filter: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

.reveal-hero > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal-hero.is-ready > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-hero.is-ready > *:nth-child(2) { transition-delay: 0.18s; }
.reveal-hero.is-ready > *:nth-child(3) { transition-delay: 0.32s; }
.reveal-hero.is-ready > *:nth-child(4) { transition-delay: 0.46s; }
.reveal-hero.is-ready > *:nth-child(5) { transition-delay: 0.58s; }

.reveal-hero.is-ready > * {
  opacity: 1;
  transform: translateY(0);
}

.panel-section,
.heroes-stage,
.features-banner {
  scroll-margin-top: calc(var(--header-h) - 8px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
  .reveal,
  .reveal-hero > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
