/* ═══ 9F Gaming Landing — 全局样式 ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080b14;
  --bg-card: rgba(14, 18, 30, 0.85);
  --bg-glass: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.06);
  --text: #e8eaf0;
  --text-dim: #7a8194;
  --accent: #00d4aa;
  --accent2: #00a3ff;
  --gradient: linear-gradient(135deg, #00d4aa 0%, #00a3ff 100%);
  --glow: 0 0 30px rgba(0,212,170,0.15);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ─── 背景效果 ─── */
.bg-effects {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0,212,170,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0,163,255,0.05) 0%, transparent 50%);
}

#particleCanvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ─── 导航栏 ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; height: 72px;
  display: flex; align-items: center;
  background: rgba(8,11,20,0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(8,11,20,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 1.3rem; cursor: default;
}
.logo-icon {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}
.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-sub { color: var(--text-dim); font-weight: 400; font-size: 0.85rem; letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  color: var(--text-dim); text-decoration: none; font-weight: 500;
  font-size: 0.9rem; transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

.nav-right {
  display: flex; align-items: center; gap: 0.8rem;
}
.lang-selector {
  position: relative;
}
.lang-trigger {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-glass); border: 1px solid var(--border);
  color: var(--text-dim); padding: 6px 12px; border-radius: 20px;
  cursor: pointer; font-family: inherit; font-size: 0.8rem; font-weight: 600;
  transition: all 0.2s; white-space: nowrap;
}
.lang-trigger:hover { border-color: var(--accent); color: var(--accent); }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: 0.78rem; }
.lang-arrow { font-size: 0.7rem; opacity: 0.6; transition: transform 0.2s; }
.lang-selector.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px; background: rgba(14,18,30,0.97);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  backdrop-filter: blur(20px); overflow: hidden; z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.lang-selector.open .lang-dropdown { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 16px; border: none; background: none;
  color: var(--text-dim); font-family: inherit; font-size: 0.85rem;
  cursor: pointer; transition: all 0.15s; text-align: left;
}
.lang-option:hover { background: rgba(0,212,170,0.1); color: var(--text); }
.lang-option.active { color: var(--accent); background: rgba(0,212,170,0.08); }
.lang-opt-flag { font-size: 1.1rem; }

.nav-cta {
  background: var(--gradient); color: #080b14; text-decoration: none;
  padding: 10px 24px; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--glow); }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: rgba(8,11,20,0.95); backdrop-filter: blur(20px);
  padding: 1.5rem 2rem; flex-direction: column; gap: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.show { display: flex; }
.mobile-link {
  color: var(--text-dim); text-decoration: none; font-size: 1.1rem;
  font-weight: 500; padding: 0.5rem 0;
}
.mobile-cta { text-align: center; margin-top: 0.5rem; }

/* ─── Hero ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 2rem 80px; position: relative; z-index: 1;
}
.hero-content { max-width: 800px; }

.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  background: var(--bg-glass); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease 0.1s both;
}
.title-line { display: block; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem; color: var(--text-dim); max-width: 560px;
  margin: 0 auto 2.5rem; line-height: 1.7;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 700;
  font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: all 0.25s; border: none; font-family: inherit;
}
.btn-primary {
  background: var(--gradient); color: #080b14;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,212,170,0.25); }
.btn-secondary {
  background: var(--bg-glass); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-3px); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-icon { font-size: 1.1em; }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  margin-top: 3.5rem;
  animation: fadeUp 0.6s ease 0.4s both;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-size: 1.8rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── 通用区块 ─── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.section-desc { color: var(--text-dim); font-size: 1.05rem; margin-top: 0.8rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── 游戏展区 ─── */
.games { padding: 100px 0; position: relative; z-index: 1; }

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

.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.35s; cursor: pointer;
}
.game-card:hover { transform: translateY(-8px); border-color: rgba(0,212,170,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.game-card.coming { opacity: 0.7; }
.game-card.coming:hover { opacity: 0.85; }

.game-img { aspect-ratio: 4/5; overflow: hidden; }
.game-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-card:hover .game-img img { transform: scale(1.05); }

.game-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 1px;
}
.live-badge { background: #00d4aa; color: #080b14; animation: pulse 2s infinite; }
.soon-badge { background: rgba(255,255,255,0.1); color: var(--text-dim); backdrop-filter: blur(10px); }

.game-info {
  padding: 1.2rem 1.2rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem;
}
.game-name { font-size: 1.2rem; font-weight: 700; }
.game-desc { font-size: 0.82rem; color: var(--text-dim); }
.game-play-btn { margin-top: 0.6rem; align-self: flex-start; }

/* ─── 特性区 ─── */
.features { padding: 100px 0; position: relative; z-index: 1; }

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

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(0,212,170,0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ─── 社区区 ─── */
.community { padding: 80px 0 100px; position: relative; z-index: 1; }

.community-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; padding: 4rem; text-align: center;
  position: relative; overflow: hidden;
}
.community-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,212,170,0.05) 0%, transparent 70%);
}
.community-content { position: relative; z-index: 1; }
.community-links { margin-top: 2rem; }

/* ─── Footer ─── */
.footer {
  background: rgba(4,6,12,0.8); border-top: 1px solid var(--border);
  padding: 3rem 0 2rem; position: relative; z-index: 1;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.2rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-compliance {
  display: flex; align-items: flex-start; gap: 1.5rem;
  padding: 2rem 0; flex-wrap: wrap;
}
.age-badge {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid #ff6b6b; color: #ff6b6b;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem;
}
.compliance-text { font-size: 0.78rem; color: var(--text-dim); line-height: 1.7; max-width: 700px; }

.footer-bottom { text-align: center; padding-top: 1.5rem; }
.footer-bottom p { font-size: 0.75rem; color: #3a3f52; }

/* ─── 动画 ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,212,170,0); }
}

/* ─── 响应式 ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .community-card { padding: 2.5rem 1.5rem; }
  .hero-stats { gap: 1.2rem; }
  .stat-num { font-size: 1.4rem; }
}

@media (max-width: 520px) {
  .navbar { padding: 0 1rem; }
  .hero { padding: 100px 1.2rem 60px; }
  .games-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-wrap: wrap; }
}
