:root {
  --bg: #f7f4ff;
  --surface: #ffffff;
  --ink: #1a1033;
  --muted: #5f5680;
  --line: #e8e0f7;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --neon: #ec4899;
  --gold: #f59e0b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
a { color: inherit; text-decoration: none; }

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 12% -8%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 6%, rgba(236, 72, 153, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(6, 182, 212, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f4ff 40%, #eef9ff 100%);
}
.orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.orb-a {
  width: 42vw; height: 42vw; max-width: 520px; max-height: 520px;
  right: -8%; top: 6%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
}
.orb-b {
  width: 28vw; height: 28vw; max-width: 360px; max-height: 360px;
  left: -6%; top: 42%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 70%);
}

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }
.logo span {
  background: linear-gradient(90deg, var(--accent), var(--neon), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }

.wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: 4rem 0 5rem;
  gap: 3rem;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(1.85rem, 4.6vw, 4.2rem);
  white-space: nowrap;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 0%, var(--neon) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.4rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #7c3aed, #ec4899 55%, #06b6d4);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(124, 58, 237, 0.35); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { box-shadow: 0 12px 28px rgba(236, 72, 153, 0.16); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 2.4rem;
  box-shadow: 0 30px 80px rgba(124, 58, 237, 0.12);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--neon), var(--accent-2));
}
.stat { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat:first-child { padding-top: 0; }
.stat dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.stat dd { font-size: 1.35rem; font-weight: 700; }

section { padding: 6.5rem 0; }
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: 1.5rem;
  max-width: 12em;
}

.pillars {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 1.8rem;
  box-shadow: 0 16px 40px rgba(18, 24, 38, 0.04);
}
.pillar-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}
.pillar:nth-child(2) .pillar-ico {
  background: linear-gradient(135deg, #ec4899, #f59e0b);
}
.pillar:nth-child(3) .pillar-ico {
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
}
.pillar h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; }

.games-list { display: grid; gap: 2rem; }
.game-stage {
  display: grid;
  gap: 2.5rem;
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.08), rgba(236, 72, 153, 0.06) 45%, rgba(6, 182, 212, 0.08)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 2.4rem;
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.12);
}
@media (min-width: 860px) {
  .game-stage { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 3.5rem; padding: 3rem; }
}
/* 公司介绍下方：两款游戏 icon 横向排列 */
.game-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.6rem 3rem;
  margin-top: 2.6rem;
}
.game-icon {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}
.game-icon img {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  object-fit: cover;
  display: block;
  background: linear-gradient(150deg, #ffffff, #f6f1ff);
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 7px var(--line),
    0 16px 34px rgba(124, 58, 237, 0.18);
}
.game-icon figcaption {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

/* 游戏作品左侧：小程序码，无外框，与卡片底色融合 */
.game-qr {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin: 0 auto;
}
.game-qr .qr-tip {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}
@media (min-width: 860px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2.5rem;
    align-items: start;
  }
  .feature-list > div:last-child { grid-column: 1 / -1; }
}
.feature-list h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.feature-list p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}
.game-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #f59e0b);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  margin-bottom: 1rem;
}
.game-stage h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.9rem; }
.game-stage p { color: var(--muted); margin-bottom: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: #f3e8ff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.tag:nth-child(2) { color: #be185d; background: #fce7f3; }
.tag:nth-child(3) { color: #0e7490; background: #cffafe; }
.tag:nth-child(4) { color: #b45309; background: #fef3c7; }

/* 关于游戏：整块横铺，标题与正文同行，避免左侧留白 */
.about { padding: 3.5rem 0; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(1.8rem, 3.2vw, 2.8rem);
  box-shadow: 0 20px 50px rgba(18, 24, 38, 0.05);
}
.about-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 1.3rem;
}
.about-head .section-label {
  margin-bottom: 0;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: #f3e8ff;
  font-size: 0.72rem;
}
.about-head .section-title { margin-bottom: 0; max-width: none; }
.about-lead {
  font-size: 1.05rem;
  color: var(--muted);
}
.about-body { display: grid; gap: 1.4rem; }
@media (min-width: 860px) {
  .about-body {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
    align-items: start;
  }
}

/* 小程序码面板：上下布局（码在上、提示在下） */
.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, #faf7ff, #f2fbff);
  justify-self: start;
}
.qr-panel .qr-img {
  width: 108px;
  height: 108px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.qr-panel .qr-tip {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

/* 游戏作品区：小程序码去掉外框，与卡片底色融合，尺寸放大 */
.game-qr .qr-img {
  width: 200px;
  height: 200px;
  max-width: 100%;
  display: block;
  border-radius: 0;
  background: transparent;
  mix-blend-mode: multiply;
}
@media (max-width: 520px) {
  .game-qr .qr-img { width: 160px; height: 160px; }
}

.contact-block {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .contact-block {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
}
.contact-side {
  display: grid;
  gap: 1.5rem;
}
.contact-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
}
.contact-item dt {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 0.7rem;
}
.contact-item dd { font-size: 1.12rem; font-weight: 500; }
.contact-item a:hover { color: var(--accent); }
.contact-wechat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
}
.contact-wechat img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
}
.contact-wechat .meta {
  display: grid;
  gap: 0.35rem;
}
.contact-wechat .name {
  font-size: 1.2rem;
  font-weight: 700;
}
.contact-wechat .phone {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

footer {
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer strong { color: var(--ink); font-weight: 700; }
.beian {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.beian img {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.beian a:hover { color: var(--ink); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero { padding-top: 2.5rem; }
}
