:root {
  color-scheme: dark;
  --bg: #0a0c1a;
  --bg-deep: #070815;
  --panel: #111426;
  --pink: #ff55ad;
  --pink-soft: #ff76be;
  --lime: #dff531;
  --text: #fff;
  --muted: #a1a4b5;
  --border: rgba(255,255,255,.14);
  --font: "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.site-header { position: absolute; z-index: 40; inset: 0 0 auto; height: 86px; border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(8,9,25,.55); backdrop-filter: blur(12px); }
.header-inner { width: min(1680px, calc(100% - 80px)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: grid; place-items: center; width: 150px; height: 62px; overflow: hidden; }
.brand img { width: 150px; max-width: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-menu { position: relative; z-index: 80; }
.language-toggle { display: grid; grid-template-columns: 22px minmax(86px, auto) 10px; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(8,10,27,.55); color: #fff; cursor: pointer; }
.language-toggle > img { width: 22px; height: 22px; }
.language-toggle .chevron { width: 10px; height: 6px; transition: transform .18s ease; }
.language-toggle[aria-expanded="true"] { border-color: rgba(255,118,190,.65); }
.language-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.language-options { position: absolute; top: calc(100% + 8px); right: 0; width: 176px; padding: 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(15,17,36,.98); box-shadow: 0 18px 45px rgba(0,0,0,.42); backdrop-filter: blur(14px); }
.language-options button { display: block; width: 100%; min-height: 38px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.78); text-align: left; cursor: pointer; }
.language-options button:hover, .language-options button.active { background: rgba(255,85,173,.16); color: #fff; }
.language-options button.active::after { content: "✓"; float: right; color: var(--lime); }
.header-web-link { display: grid; place-items: center; min-width: 132px; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--pink); font-weight: 800; }

.hero { position: relative; height: 900px; overflow: hidden; background: #10142e url("../assets/hero-desktop.jpg") center top / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,24,.64) 0%, rgba(7,8,24,.24) 40%, transparent 67%), linear-gradient(180deg, transparent 78%, rgba(10,12,26,.75)); }
.hero-inner { position: relative; z-index: 2; width: min(1680px, calc(100% - 80px)); height: 100%; margin-inline: auto; }
.hero-copy { position: absolute; left: 0; top: 230px; width: 720px; text-shadow: 0 3px 22px rgba(0,0,0,.5); }
.hero h1 { display: flex; flex-wrap: wrap; margin: 0 0 22px; font-size: clamp(56px, 4.2vw, 78px); line-height: 1.13; letter-spacing: -.045em; font-weight: 950; }
.hero h1 span { color: #fff; }
.hero h1 strong { color: var(--lime); }
.hero-description { margin: 0; color: rgba(255,255,255,.9); font-size: 24px; line-height: 1.65; font-weight: 650; }
.qr-card { position: absolute; left: 0; top: 520px; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; width: 440px; min-height: 200px; padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(8,10,28,.72); box-shadow: 0 22px 50px rgba(0,0,0,.3); backdrop-filter: blur(12px); cursor: default; transition: transform .2s ease, border-color .2s ease; }
.qr-card:hover { transform: translateY(-3px); border-color: rgba(255,85,173,.7); }
.qr-box { display: grid; place-items: center; aspect-ratio: 1; padding: 10px; border-radius: 12px; background: #fff; }
.qr-box img { width: 100%; height: 100%; }
.qr-copy img { width: 48px; height: 48px; margin-bottom: 12px; border-radius: 11px; }
.qr-copy strong { font-size: 25px; line-height: 1.4; }
.hero-mobile-actions { display: none; }
.desktop-scroll { position: absolute; z-index: 3; left: 50%; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); color: rgba(255,255,255,.74); font-size: 14px; }
.desktop-scroll img { width: 14px; transform: rotate(0deg); }

.hot-games { position: relative; min-height: 1010px; padding: 92px 0 70px; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(39,32,90,.4), transparent 40%), var(--bg); }
.hot-inner { width: min(1720px, 100%); margin-inline: auto; }
.section-heading { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 52px; font-size: 43px; line-height: 1.25; font-weight: 900; letter-spacing: -.03em; }
.section-heading img { width: 38px; height: 38px; }
.carousel { position: relative; }
.banner-stage { position: relative; display: flex; align-items: center; justify-content: center; height: 610px; }
.game-banner { position: absolute; margin: 0; overflow: hidden; border-radius: 18px; background: #13162c; box-shadow: 0 30px 60px rgba(0,0,0,.36); }
.game-banner img { width: 100%; height: 100%; object-fit: cover; }
.main-banner { z-index: 2; width: min(1040px, 61vw); aspect-ratio: 16 / 9; }
.side-banner { z-index: 1; width: min(710px, 42vw); aspect-ratio: 16 / 9; opacity: .52; filter: saturate(.7) brightness(.65); }
.side-left { left: -8.5%; transform: perspective(900px) rotateY(7deg) scale(.94); }
.side-right { right: -8.5%; transform: perspective(900px) rotateY(-7deg) scale(.94); }
.carousel-arrow { position: absolute; z-index: 4; top: 265px; display: grid; place-items: center; width: 58px; height: 96px; padding: 0 0 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(8,10,25,.72); font-size: 52px; cursor: pointer; }
.carousel-arrow.previous { left: calc(50% - 590px); }
.carousel-arrow.next { right: calc(50% - 590px); }
.pagination { display: flex; justify-content: center; gap: 13px; padding-top: 28px; }
.pagination button { width: 18px; height: 18px; padding: 4px; border: 0; background: transparent; cursor: pointer; }
.pagination button::before { content: ""; display: block; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.14); }
.pagination button.active::before { border-color: var(--pink-soft); background: var(--pink-soft); }

.game-library { position: relative; min-height: 610px; padding: 84px 0 70px; overflow: hidden; background: linear-gradient(180deg, #090b18, #0d1021); }
.library-heading { text-align: center; }
.round-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: rgba(255,85,173,.16); }
.round-icon img { width: 32px; height: 32px; }
.library-heading h2 { margin: 0 0 9px; font-size: 42px; line-height: 1.3; font-weight: 900; }
.library-heading p { margin: 0; color: var(--lime); font-size: 20px; }
.avatar-wall { position: absolute; inset: 290px 24px auto; display: grid; gap: 14px; }
.avatar-row { display: grid; grid-template-columns: repeat(10, minmax(72px, 150px)); justify-content: center; gap: clamp(8px, .75vw, 14px); width: 100%; }
.avatar-row img { width: 100%; aspect-ratio: 1; border-radius: 22px; object-fit: cover; box-shadow: 0 12px 24px rgba(0,0,0,.28); }

.features { padding: 96px 40px 88px; background: #0b0d1b; }
.feature-stack { display: grid; gap: 54px; width: min(1440px, 100%); margin-inline: auto; }
.feature-card { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; min-height: 520px; padding: 58px 70px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 30px; background: radial-gradient(circle at 74% 44%, rgba(141,45,174,.22), transparent 42%), #101326; }
.feature-card:nth-child(even) { grid-template-columns: 1.05fr .95fr; }
.feature-card:nth-child(even) .feature-copy { order: 2; padding-left: 70px; }
.feature-card:nth-child(even) .feature-art { order: 1; }
.feature-copy { position: relative; z-index: 2; }
.feature-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 24px; border-radius: 50%; background: rgba(255,85,173,.17); }
.feature-icon img { width: 31px; height: 31px; }
.feature-copy h3 { margin: 0 0 12px; font-size: 44px; line-height: 1.25; font-weight: 900; }
.feature-copy p { max-width: 480px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.feature-art { width: 100%; border-radius: 20px; image-rendering: auto; }

.community { min-height: 305px; padding: 62px 40px; background: #0a0c1a; }
.community-layout { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 36px; width: min(1440px, 100%); margin-inline: auto; }
.community-brand { display: grid; place-items: center; width: 190px; height: 104px; overflow: hidden; }
.community-brand img { width: 190px; max-width: none; }
.community-copy h2 { margin: 0 0 12px; font-size: 34px; }
.community-copy p { margin: 0; color: var(--muted); font-size: 17px; }
.social-links { display: grid; grid-template-columns: repeat(3, 154px); gap: 12px; }
.social-link { display: flex; align-items: center; justify-content: center; gap: 9px; height: 54px; border: 1px solid rgba(255,255,255,.72); border-radius: 10px; background: linear-gradient(135deg, #20212b, #101116); font-weight: 650; transition: transform .2s ease, border-color .2s ease; }
.social-link:hover { transform: translateY(-2px); border-color: var(--pink-soft); }
.social-link img { width: 24px; height: 24px; }

.site-footer { min-height: 132px; padding: 28px 40px; border-top: 1px solid rgba(255,255,255,.07); background: var(--bg-deep); color: #777c8e; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(1440px, 100%); height: 100%; margin-inline: auto; }
.age-notice { display: flex; align-items: center; gap: 16px; max-width: 900px; }
.age-notice strong { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 2px solid var(--pink-soft); border-radius: 50%; color: var(--pink-soft); font-size: 13px; }
.age-notice p, .copyright { margin: 0; font-size: 13px; line-height: 1.6; }
.copyright { white-space: nowrap; }
.mobile-sticky { display: none; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 20px); max-width: min(90vw, 520px); padding: 12px 18px; border: 1px solid var(--border); border-radius: 10px; background: #202438; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: fixed; z-index: 99; inset: auto 0 0; padding: 10px; background: #a11; text-align: center; }
body.variant-a [data-variant-only="b"] { display: none !important; }
/* 指定渠道码隐藏「进入网页版」 */
body.hide-web-entry [data-target="web"],
body.hide-web-entry .desktop-web,
body.hide-web-entry .mobile-web { display: none !important; }

@media (max-width: 767px) {
  body { padding-bottom: 68px; }
  .site-header { height: 52px; background: rgba(7,8,23,.53); backdrop-filter: blur(8px); }
  .header-inner { width: calc(100% - 24px); }
  .brand { width: 100px; height: 44px; }
  .brand img { width: 100px; }
  .header-actions { gap: 0; }
  .language-toggle { grid-template-columns: 16px minmax(60px, auto) 8px; gap: 6px; height: 34px; padding: 0 8px; border-radius: 8px; font-size: 11px; }
  .language-toggle > img { width: 16px; height: 16px; }
  .language-toggle .chevron { width: 8px; height: 5px; }
  .language-options { width: 138px; }
  .language-options button { min-height: 34px; padding: 7px 9px; font-size: 12px; }
  .header-web-link { display: none; }

  .hero { height: 664px; background-image: url("../assets/hero-mobile.jpg"); background-position: center top; background-size: cover; }
  .hero-shade { background: linear-gradient(180deg, rgba(7,8,23,.16) 0%, rgba(7,8,23,0) 42%, rgba(7,8,23,.28) 66%, rgba(7,8,23,.88) 100%); }
  .hero-inner { width: 100%; }
  .hero-copy { left: 16px; right: 16px; top: 78px; width: auto; text-align: center; }
  .hero h1 { display: block; margin: 0 0 8px; font-size: 32px; line-height: 1.18; }
  .hero h1 span, .hero h1 strong { display: inline; }
  .hero-description { font-size: 13px; line-height: 1.55; font-weight: 600; }
  .qr-card, .desktop-scroll { display: none; }
  .hero-mobile-actions { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: center; }
  .mobile-download { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 48px; border-radius: 999px; background: var(--pink); font-size: 18px; font-weight: 850; box-shadow: 0 12px 28px rgba(255,85,173,.26); }
  .mobile-download img { width: 24px; height: 24px; }
  .mobile-web { display: inline-block; margin-top: 10px; font-size: 13px; line-height: 20px; text-decoration: underline; }
  .scroll-cue { display: grid; place-items: center; width: 24px; height: 15px; margin-top: 3px; }
  .scroll-cue img { width: 12px; }

  .hot-games { min-height: 274px; height: 274px; padding: 22px 0 0; }
  .hot-inner { width: 100%; }
  .section-heading { justify-content: flex-start; width: calc(100% - 32px); margin: 0 auto 14px; gap: 5px; font-size: 18px; }
  .section-heading img { width: 20px; height: 20px; }
  .banner-stage { height: auto; }
  .game-banner { position: relative; border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
  .main-banner { width: calc(100% - 30px); aspect-ratio: 16 / 9; }
  .side-banner, .carousel-arrow { display: none; }
  .pagination { gap: 5px; padding-top: 8px; }
  .pagination button { width: 10px; height: 10px; padding: 2px; }
  .pagination button::before { width: 6px; height: 6px; border: 0; border-radius: 1px; background: rgba(255,255,255,.28); }
  .pagination button.active::before { background: var(--pink-soft); }

  .game-library { min-height: 260px; height: 260px; padding: 28px 0 0; }
  .round-icon { width: 32px; height: 32px; margin-bottom: 8px; }
  .round-icon img { width: 19px; height: 19px; }
  .library-heading h2 { margin-bottom: 4px; font-size: 20px; }
  .library-heading p { font-size: 12px; }
  .avatar-wall { inset: 125px 16px auto; gap: 7px; }
  .avatar-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; width: 100%; }
  .avatar-row img { width: 100%; aspect-ratio: 1; border-radius: 9px; box-shadow: 0 5px 12px rgba(0,0,0,.26); }
  .avatar-row img:nth-child(n+7) { display: none; }

  .features { padding: 0 15px 16px; }
  .feature-stack { display: block; width: 100%; }
  .feature-card { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-height: 0; margin: 0 0 16px; padding: 16px 8px; border-radius: 16px; background: #101326; }
  .feature-tags-card { height: 332px; }
  .feature-app-card { height: 349px; margin-bottom: 0; }
  .feature-card:nth-child(even) .feature-copy { order: 0; padding-left: 9px; }
  .feature-card:nth-child(even) .feature-art { order: 0; }
  .feature-copy { padding: 0 9px; }
  .feature-icon { width: 24px; height: 24px; margin-bottom: 7px; }
  .feature-icon img { width: 16px; height: 16px; }
  .feature-copy h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.2; }
  .feature-copy p { margin: 0; font-size: 12px; line-height: 1.45; }
  .feature-art { width: 100%; height: 210px; margin-top: 16px; border-radius: 12px; object-fit: fill; }
  .feature-app-card .feature-art { margin-top: 16px; }

  .community { min-height: 238px; padding: 28px 15px 16px; }
  .community-layout { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: center; }
  .community-brand { width: 150px; height: 66px; }
  .community-brand img { width: 150px; }
  .community-copy h2 { margin-bottom: 6px; font-size: 18px; }
  .community-copy p { max-width: 310px; margin: 0 auto; font-size: 12px; line-height: 1.45; }
  .social-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 4px; }
  .social-link { gap: 5px; height: 42px; border-radius: 8px; font-size: 11px; }
  .social-link img { width: 19px; height: 19px; }

  .site-footer { min-height: 77px; padding: 8px 16px 11px; }
  .footer-inner { display: block; width: 100%; text-align: center; }
  .age-notice { display: flex; justify-content: center; gap: 8px; max-width: 100%; }
  .age-notice strong { flex-basis: 30px; width: 30px; height: 30px; font-size: 10px; }
  .age-notice p { max-width: 295px; font-size: 8px; line-height: 1.45; text-align: left; }
  .copyright { margin-top: 5px; font-size: 8px; }

  .mobile-sticky { position: fixed; z-index: 50; inset: auto 0 0; display: grid; grid-template-columns: 44px 1fr 72px; align-items: center; gap: 10px; height: 68px; padding: 8px 16px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); background: #090a16; box-shadow: 0 -10px 24px rgba(0,0,0,.35); }
  .mobile-sticky > img { width: 44px; height: 44px; border-radius: 10px; }
  .mobile-sticky strong { font-size: 15px; }
  .mobile-sticky a { display: grid; place-items: center; width: 72px; height: 36px; border-radius: 999px; background: var(--pink); }
  .mobile-sticky a img { width: 20px; height: 20px; }
  .toast { bottom: 82px; }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .header-inner, .hero-inner { width: calc(100% - 48px); }
  .hero-copy { width: 590px; }
  .hero h1 { font-size: 58px; }
  .main-banner { width: 70vw; }
  .carousel-arrow.previous { left: 6vw; }
  .carousel-arrow.next { right: 6vw; }
  .feature-card { padding: 48px 42px; }
  .feature-copy h3 { font-size: 34px; }
  .community-layout { grid-template-columns: 190px 1fr; }
  .social-links { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
