:root {
  --ink: #142033;
  --ink-soft: #3a4a63;
  --muted: #6b7a90;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --line: rgba(20, 32, 51, 0.1);
  --accent: #ff5a3c;
  --accent-deep: #e03f22;
  --sky: #2f80ed;
  --android: #34c759;
  --ios: #142033;
  --shadow: 0 20px 48px rgba(20, 32, 51, 0.1);
  --radius: 20px;
  --font-brand: "Syne", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 480px at 85% -5%, rgba(47, 128, 237, 0.16), transparent 60%),
    radial-gradient(760px 420px at 5% 15%, rgba(255, 90, 60, 0.1), transparent 55%),
    linear-gradient(180deg, #eef3fa 0%, var(--bg) 45%, #e8edf5 100%);
  min-height: 100vh;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* —— 顶栏：仅本站游戏 —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.1rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: #dbe7f7;
}

.site-logo__name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
}

/* —— 首屏：游戏官网主视觉 —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: clip;
  padding: 5.5rem 0 3rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(243, 246, 251, 0.92) 0%, rgba(243, 246, 251, 0.72) 48%, rgba(243, 246, 251, 0.35) 100%),
    var(--hero-image, none) center/cover no-repeat;
  transform: scale(1.04);
  animation: slow-zoom 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--sky);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards 0.1s;
}

.hero__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-brand);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards 0.22s;
}

.hero__desc {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards 0.34s;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards 0.42s;
}

.hero__meta li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards 0.5s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 152px;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn--android {
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.28);
}

.btn--ios {
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero__visual {
  justify-self: end;
  width: min(100%, 360px);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  animation: rise-scale 0.9s ease forwards 0.28s;
}

.hero__icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 36px;
  object-fit: cover;
  background: #d7e4f7;
  box-shadow: var(--shadow);
}

.hero__icon.is-empty {
  display: grid;
  place-items: center;
  font-family: var(--font-brand);
  font-size: 4rem;
  font-weight: 800;
  color: var(--sky);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 26px;
  margin: 0.4rem auto 0;
  background: linear-gradient(to bottom, var(--sky), transparent);
  animation: pulse 1.8s ease-in-out infinite;
}

/* —— 内容区块 —— */
.section {
  padding: 1.2rem 0 0.4rem;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section.is-inview {
  opacity: 1;
  transform: none;
}

.section__head {
  margin: 0 0 1rem;
}

.section__title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 700;
}

.section__title span {
  color: var(--accent);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.shot-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  aspect-ratio: 9 / 16;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.shot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-empty,
.empty-tip {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
}

.about {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.about img {
  margin: 0.9rem auto;
  border-radius: 12px;
}

.about p {
  margin: 0.75rem 0;
}

.about h2,
.about h3 {
  margin: 1.1rem 0 0.5rem;
  color: var(--ink);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--sky);
  font-size: 0.9rem;
  font-weight: 500;
}

.cta-band {
  margin: 2.2rem 0 1rem;
  padding: 1.6rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #1e3a5f 0%, #142033 55%, #0f172a 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cta-band.is-inview {
  opacity: 1;
  transform: none;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 1.4rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 2.8rem;
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-brand);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 1.2rem;
  background: rgba(10, 16, 28, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(920px, 100%);
  max-height: min(88vh, 100%);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-scale {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slow-zoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc,
  .hero__title {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__meta,
  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    justify-self: center;
    order: -1;
    width: min(100%, 220px);
  }

  .hero__icon {
    border-radius: 28px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.2rem, 1120px);
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .shot-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(70%, 220px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .shot-item {
    scroll-snap-align: start;
  }

  .cta-band {
    text-align: center;
    justify-content: center;
  }

  .hero__scroll {
    display: none;
  }
}
