:root {
  --bg: #fff9f5;
  --bg-alt: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --primary: #ff6b4a;
  --primary-dark: #e85a3a;
  --secondary: #4ecdc4;
  --accent: #ffd166;
  --blue: #5b9cff;
  --purple: #9b7bff;
  --shadow: 0 12px 40px rgba(255, 107, 74, 0.12);
  --shadow-soft: 0 8px 24px rgba(31, 41, 55, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 249, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 74, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff8f70);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.28);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid rgba(255, 107, 74, 0.18);
}

.hero {
  padding: calc(var(--header-height) + 64px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}

.hero-blob-1 {
  width: 320px;
  height: 320px;
  background: #ffd166;
  top: 40px;
  right: -80px;
}

.hero-blob-2 {
  width: 280px;
  height: 280px;
  background: #4ecdc4;
  bottom: 20px;
  left: -60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(78, 205, 196, 0.14);
  color: #0f766e;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.stat-card {
  min-width: 120px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.phone-frame {
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2d3748, #1a202c);
  box-shadow: 0 30px 60px rgba(31, 41, 55, 0.28);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  min-height: 390px;
  padding: 18px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.phone-title {
  font-weight: 800;
  font-size: 1rem;
}

.phone-chip {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 74, 0.12);
  color: var(--primary);
  font-weight: 700;
}

.mini-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-game {
  aspect-ratio: 1;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--shadow-soft);
}

.float-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  animation: float 4s ease-in-out infinite;
}

.float-card-1 {
  top: 24px;
  left: -10px;
}

.float-card-2 {
  bottom: 40px;
  right: -8px;
  animation-delay: 1.2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 249, 245, 0.9));
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 12px;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 107, 74, 0.06);
  transition: transform 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.game-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-cover {
  height: 120px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.game-body {
  padding: 16px;
}

.game-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 74, 0.1);
  color: var(--primary);
  margin-bottom: 8px;
}

.game-body h3 {
  margin: 0;
  font-size: 1rem;
}

.game-body p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.apps-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 74, 0.15);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.app-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.app-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.about-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.about-list li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 800;
}

.cta {
  padding: 72px 0;
}

.cta-box {
  border-radius: 28px;
  padding: 48px;
  background: linear-gradient(135deg, #ff6b4a, #ff8f70 40%, #ffd166);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-box p {
  margin: 0 0 24px;
  opacity: 0.92;
}

.cta-box .btn-secondary {
  background: rgba(255, 255, 255, 0.95);
}

.site-footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 14px;
}

.footer-grid a {
  display: block;
  color: #d1d5db;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

.legal-page {
  padding: calc(var(--header-height) + 48px) 0 80px;
}

.legal-page h1 {
  margin-top: 0;
}

.legal-page h2 {
  margin-top: 32px;
  font-size: 1.2rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .features-grid,
  .games-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 32px 20px;
  }
}
