/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; color: #222; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === Navigation === */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(20, 20, 30, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 56px;
}
.nav-logo {
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: 1px;
}
.nav-links {
  display: flex; gap: 24px; margin-left: 40px;
}
.nav-links a {
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-right {
  margin-left: auto; display: flex; align-items: center; gap: 12px;
}
.nav-menu-btn {
  display: none; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer;
}

/* Lang Switch (国内/Global) */
.lang-switch {
  display: flex; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; overflow: hidden;
}
.lang-btn {
  background: transparent; border: none; color: rgba(255,255,255,0.6);
  padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: rgba(255,255,255,0.15); color: #fff;
}

/* === Hero Section (shared layout) === */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 40px; position: relative; overflow: hidden;
}
.hero-content {
  max-width: 600px; text-align: center; position: relative; z-index: 2;
}
.hero-title {
  font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.1rem; opacity: 0.8; margin-bottom: 32px; line-height: 1.7;
}
.platform-badge {
  display: inline-block; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 20px;
  padding: 4px 14px; font-size: 12px; font-weight: 600; margin-bottom: 20px;
}

/* === Download Buttons === */
[data-game-links] {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 12px; font-size: 15px; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.download-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.download-steam { background: #1b2838; color: #fff; }
.download-taptap { background: #15c67b; color: #fff; }
.download-googleplay { background: #01875f; color: #fff; }
.download-appstore { background: #0071e3; color: #fff; }

.download-icon {
  width: 20px; height: 20px; display: inline-block;
}

.platform-hint {
  width: 100%; text-align: center; font-size: 13px; opacity: 0.6; margin-top: 8px;
}
.platform-hint a { text-decoration: underline; margin: 0 4px; }

/* === Features Section === */
.features {
  padding: 80px 24px; max-width: 1000px; margin: 0 auto;
}
.features-title {
  text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 48px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.feature-card {
  text-align: center; padding: 32px 20px;
  border-radius: 16px; transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  font-size: 40px; margin-bottom: 16px;
}
.feature-name {
  font-size: 1.1rem; font-weight: 600; margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.9rem; opacity: 0.7; line-height: 1.6;
}

/* === Footer === */
.site-footer {
  text-align: center; padding: 32px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px; opacity: 0.5;
}

/* === Homepage === */
.home-hero {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 24px; text-align: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
}
.home-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.home-subtitle { font-size: 1.1rem; opacity: 0.7; }

.game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
  padding: 60px 24px;
}
.game-card {
  border-radius: 16px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); cursor: pointer;
}
.game-card:hover {
  transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.game-card-img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  background: #ddd;
}
.game-card-body { padding: 20px; }
.game-card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.game-card-desc { font-size: 0.9rem; opacity: 0.6; line-height: 1.6; }
.game-card-tag {
  display: inline-block; margin-top: 12px; padding: 4px 10px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}

/* === Mobile === */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: rgba(20,20,30,0.98); flex-direction: column; padding: 16px 24px; gap: 12px; }
  .nav-links.open { display: flex; }
  .nav-menu-btn { display: block; }
  .hero-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .home-title { font-size: 1.8rem; }
}
