:root {
  --bg: #0f1b2d;
  --bg-soft: #162741;
  --card: #1c3255;
  --text: #f4f8ff;
  --text-soft: #b2c5e6;
  --accent: #f5b84a;
  --accent-dark: #d79b2e;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--text);
  background: linear-gradient(180deg, #102037 0%, #0f1b2d 60%, #0e1626 100%);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.site {
  width: 100%;
  min-height: 100vh;
}

/* 首屏滑动条在全宽展示，规则见下方 @media (min-width: 0) */

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(11, 19, 34, 0.72);
  border-bottom: 1px solid var(--line);
}

.topbarInner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-soft);
}

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

.bulletin {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 15, 28, 0.65);
}

.bulletinInner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bulletinTag {
  color: #1f2531;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.bulletinInner p {
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero {
  position: relative;
  padding: 104px 0 88px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 184, 74, 0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(72, 137, 255, 0.16), transparent 35%);
  pointer-events: none;
}

.heroContent {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 74px);
  line-height: 1.06;
  margin-bottom: 14px;
}

.heroText {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

.heroStats {
  margin-top: 20px;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.heroStats div {
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.heroStats strong {
  display: block;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.1;
}

.heroStats span {
  color: var(--text-soft);
  font-size: 12px;
}

.heroActions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quickLinks {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quickLinks a {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  padding: 6px 12px;
}

.btn {
  min-width: 122px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btnPrimary {
  background: var(--accent);
  color: #1f2531;
}

.btnPrimary:hover {
  background: var(--accent-dark);
}

.btnGhost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.btnGhost:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.section {
  padding: 72px 0;
}

.sectionAlt {
  background: rgba(255, 255, 255, 0.03);
}

.section h2 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-soft);
  line-height: 1.65;
}

.captainCard {
  min-height: 180px;
}

.captainTag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(245, 184, 74, 0.15);
  color: var(--accent);
}

.newsList {
  list-style: none;
  display: grid;
  gap: 12px;
}

.newsList li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.newsList h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.newsList p {
  color: var(--text-soft);
}

.newsDate {
  color: var(--accent) !important;
  font-size: 12px;
}

.downloadBox {
  text-align: center;
}

.downloadBox p {
  color: var(--text-soft);
}

.downloadActions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 34px;
}

.footerInner {
  padding: 24px 0 96px;
  color: #9ab0d6;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}

.mobileBar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(1120px, 92%);
  z-index: 50;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 33, 0.92);
  backdrop-filter: blur(8px);
}

.mobileBar .btn {
  flex: 1;
  text-align: center;
}

@media (max-width: 1024px) {
  .featuresGrid,
  .captainsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 全分辨率使用同一套首屏 + 英雄预览 + 特色滑动；桌面版 #hero / .section 等在此套内隐藏 */
@media (min-width: 0) {
  .mobileSlides {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    touch-action: pan-y;
  }

  .mobileLanding {
    display: block;
    position: relative;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #0e1626;
    overflow: hidden;
  }

  .mobileLandingCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  /* 首屏 / 英雄屏底图：同规则满屏 cover + 居中 */
  .mobileLandingBg,
  .mobileHeroBg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  /* Logo（首屏）与英雄 / 游戏特色标题图：同规则，相对画布边角 + safe-area */
  .mobileLandingLogo,
  .mobileHeroTitleImg,
  .mobileFeatureTitleImg {
    position: absolute;
    z-index: 2;
    top: calc(env(safe-area-inset-top, 0px) + clamp(0px, 2.8vw, 2px));
    left: calc(env(safe-area-inset-left, 0px) + clamp(0px, 2.5vw, 2px));
    max-width: calc(100% - 24px);
    line-height: 0;
    pointer-events: none;
  }

  .mobileLandingLogo {
    width: min(56vw, 340px);
  }

  /* 「英雄预览」「游戏特色」标题图：较原先再小 20% */
  .mobileHeroTitleImg,
  .mobileFeatureTitleImg {
    width: min(36vw, 220px);
    height: auto;
    object-fit: contain;
    object-position: left top;
  }

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

  .mobileLandingAge {
    position: absolute;
    z-index: 2;
    bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(10px, 3.2vw, 22px));
    right: calc(env(safe-area-inset-right, 0px) + clamp(12px, 3.6vw, 24px));
    width: min(16vw, 72px);
    height: auto;
    display: block;
    pointer-events: none;
  }

  .mobileLanding .mobileOverlay {
    position: absolute;
    inset: 0;
    display: none;
  }

  .mobileLandingButtons {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* 接近原 71.9% / 80.4% 的纵向区域；+ 约半 个主下载钮高度（较原先整体上移半钮） */
    padding-top: calc(clamp(52vh, 66vh, 72vh) + clamp(52px, 14vw, 92px) / 2);
    padding-bottom: calc(env(safe-area-inset-bottom, 12px) + clamp(20px, 4vh, 56px));
    gap: clamp(4px, 1vh, 10px);
    pointer-events: none;
  }

  .mobileLandingButtons .mobileImageButton {
    position: relative;
    left: auto;
    top: auto;
    flex-shrink: 0;
    transform: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: block;
    width: 61%;
    max-width: 420px;
    line-height: 0;
    pointer-events: auto;
  }

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

  /* 相对居中略偏左，贴近原 hotfix 与背景图对齐 */
  .mobileLandingButtons .appStoreButton {
    transform: translateX(-4.2%);
  }

  .mobileOverlay {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    padding: calc(env(safe-area-inset-top, 16px) + 18px) 16px calc(env(safe-area-inset-bottom, 16px) + 24px);
    display: flex;
    flex-direction: column;
  }

  .mobileTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobileLogo {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 1px;
    color: rgba(240, 248, 255, 0.96);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }

  .mobileMenuBtn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .mobileCenter {
    margin-top: clamp(72px, 18vh, 164px);
    text-align: center;
  }

  .mobileCenter h2 {
    font-size: clamp(48px, 14vw, 64px);
    line-height: 1.06;
    letter-spacing: 2px;
    color: #eaf6ff;
    text-shadow:
      0 3px 0 rgba(83, 121, 161, 0.7),
      0 8px 18px rgba(4, 13, 29, 0.6);
  }

  .mobileDownloadPanel {
    margin-top: auto;
    width: min(360px, 100%);
    align-self: center;
  }

  .mobileLanding .mobileDownloadPanel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom, 12px) + 118px);
    margin: 0;
    width: min(360px, calc(100% - 32px));
  }

  .mobileDownloadMain {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, #55b3ff 0%, #2f8ce2 100%);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
  }

  .mobileDownloadGrid {
    display: grid;
    grid-template-columns: 86px 1fr;
    grid-template-rows: 42px 42px;
    gap: 8px;
  }

  .mobileQr {
    grid-row: 1 / 3;
    border-radius: 8px;
    background:
      linear-gradient(45deg, #ffffff 25%, #f3f3f3 25% 50%, #ffffff 50% 75%, #f3f3f3 75%),
      #fff;
    background-size: 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293a;
    font-size: 12px;
    font-weight: 700;
  }

  .mobileStoreBtn {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.45);
  }

  .appStoreBtn {
    background: #000;
    color: #fff;
  }

  .tapTapBtn {
    background: #fff;
    color: #1aa8d7;
  }

  .mobileAgeBadge {
    position: absolute;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 12px) + 40px);
    width: 46px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 173, 51, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.52);
    padding: 4px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .mobileAgeBadge strong {
    display: block;
    font-size: 20px;
    line-height: 1;
  }

  .mobileAgeBadge span {
    display: block;
    font-size: 10px;
    margin-top: 2px;
  }

  /* 与 .mobileLanding 同规则：整屏一卡，内容叠在画布上 */
  .mobileHeroSlide {
    display: block;
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #e8dcc8;
    overflow: hidden;
  }

  .mobileHeroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .mobileHeroName,
  .mobileHeroRole {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* 与首屏下载区类似：叠在画布底部居中；固定 4×2 */
  .mobileHeroThumbnails {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom, 12px) + clamp(16px, 3vh, 40px));
    z-index: 3;
    width: min(100%, 94vw, 640px);
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    justify-items: center;
    gap: clamp(8px, 2.2vw, 14px);
    pointer-events: none;
    touch-action: manipulation;
    overflow-x: visible;
  }

  .mobileHeroThumbnails .heroThumb {
    pointer-events: auto;
  }

  .heroThumb {
    width: min(100%, clamp(64px, 9vw, 102px));
    aspect-ratio: 1;
    height: auto;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(26, 18, 14, 0.42);
    padding: 2px;
    touch-action: manipulation;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.26);
  }

  .heroThumb.active {
    border-color: #ffffff;
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.3),
      inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  }

  .heroThumbImage {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
  }

  .mobileFeatureSlide {
    position: relative;
    min-height: 100svh;
    height: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    background:
      linear-gradient(180deg, rgba(16, 12, 7, 0.12) 0%, rgba(8, 8, 8, 0.62) 54%, #080808 54%, #080808 100%),
      url("./feature-slide-bg.webp") center 38% / cover no-repeat;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .mobileFeatureTop {
    flex: 1 1 auto;
    min-height: 0;
    /* 标题 absolute：预留标题区 + 与轮播之间的呼吸间距 */
    padding: calc(env(safe-area-inset-top, 16px) + clamp(80px, 18vw, 132px)) 10px 12px;
  }

  .mobileFeatureCardWrap {
    margin-top: clamp(40px, 6.5vh, 76px);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: min(720px, 100%);
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 8px;
  }

  .mobileArrowBtn {
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobileArrowBtn img {
    display: block;
    width: clamp(40px, 11vw, 56px);
    height: auto;
  }

  .mobileFeatureSlider {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    border: 0;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    background: rgba(8, 8, 8, 0.35);
  }

  .mobileFeatureSlideImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .mobileFeatureFooter {
    flex-shrink: 0;
    background: #080808;
    min-height: min(46svh, 520px);
    padding: 24px 20px calc(env(safe-area-inset-bottom, 12px) + 24px);
    display: grid;
    align-content: start;
    gap: 24px;
  }

  .mobileCompliance {
    text-align: center;
    color: #a9a9a9;
    font-size: 11px;
    line-height: 1.55;
    display: grid;
    gap: 4px;
  }

  .topbar {
    display: none;
  }

  .hero,
  .section,
  .footer,
  .mobileBar {
    display: none;
  }
}


