/* =========================================================
   主题变量：改配色 / 最大宽度 / 断点只动这里
   ========================================================= */
:root {
  --bg: #0a0a0f;
  --bg-alt: #11111a;
  --surface: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-dim: #a0a0b0;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --max-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Wide screens: widen container with the viewport to reduce side whitespace */
@media (min-width: 1440px) {
  .container {
    max-width: min(90vw, 2000px);
  }
}

/* ===================== 顶部导航 ===================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav { display: flex; gap: 32px; }
.nav a { font-size: 15px; color: var(--text-dim); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.menu-btn {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 26px; cursor: pointer; line-height: 1;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: rgba(10, 10, 15, 0.98);
  padding: 8px 20px 14px;
  z-index: 99;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu.open {
  display: flex;
  animation: menu-drop 0.22s ease both;
}
@keyframes menu-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu a {
  display: block;
  width: 100%;
  padding: 15px 2px;
  color: var(--text-dim);
  font-size: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }

/* ===================== 封面大屏 ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 70% 20%, rgba(124, 92, 255, 0.25), transparent 70%),
    radial-gradient(50% 50% at 20% 80%, rgba(34, 211, 238, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  max-width: 18ch;
  margin-bottom: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 40px;
}
.btn-cta {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 40px rgba(124, 92, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(124, 92, 255, 0.45);
}
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ===================== 通用区块 ===================== */
.section { padding: 100px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 14px;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* ===================== 关于 ===================== */
.about-intro {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 760px;
  margin-bottom: 56px;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.about-card h3 { font-size: 20px; margin-bottom: 12px; }
.about-card p { color: var(--text-dim); }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.stat { text-align: center; }
.stat .value {
  font-size: 40px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

/* ===================== 筹备游戏 ===================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.game-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
}
.game-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -40%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 70%);
}
.game-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
}
.game-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.game-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 22px; min-height: 66px; }
.game-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent2);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

/* ===================== 联系方式 ===================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}
.contact-lead { font-size: 18px; color: var(--text-dim); margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent2);
  margin-bottom: 4px;
}
.contact-info a:hover { color: var(--accent); }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
}
.contact-card h3 { font-size: 20px; margin-bottom: 12px; }
.contact-card p { color: var(--text-dim); font-size: 15px; }
.btn-mail {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  transition: transform 0.2s;
}
.btn-mail:hover { transform: translateY(-2px); }

/* ===================== Footer ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer .brand { font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.footer .brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
  margin-top: 14px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col li,
.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer .copy { color: var(--text-dim); font-size: 13px; }
.back-top { color: var(--text-dim); font-size: 13px; transition: color 0.2s; }
.back-top:hover { color: #fff; }

/* ===================== 双端响应式 ===================== */
/* 平板：游戏卡片两列 */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
/* Mobile: single column + hamburger menu */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header { padding: 14px 20px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .about-intro { font-size: 16px; }
  .about-cards { grid-template-columns: 1fr; margin-bottom: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat .value { font-size: clamp(20px, 6vw, 28px); white-space: nowrap; }
  .stat .label { font-size: 13px; }
  .games-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .scroll-hint { display: none; }
  .footer { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
