:root {
  --bg: #0b0e1a;
  --bg-alt: #11152400;
  --surface: #161b2e;
  --surface-2: #1d2440;
  --text: #e8ecf8;
  --text-dim: #9aa3c0;
  --primary: #7c5cff;
  --primary-2: #18d3ff;
  --accent: #ff5ca8;
  --border: rgba(124, 92, 255, 0.18);
  --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e6e8f0;
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand__img {
  display: block;
  height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 15px;
  color: #5a6075;
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.25s;
}
.nav__links a:hover, .nav__links a.active { color: #1a1f2e; }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__toggle {
  display: none;
  background: none; border: none;
  color: #1a1f2e; font-size: 22px; cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(50% 50% at 85% 30%, rgba(24, 211, 255, 0.25), transparent 60%),
    radial-gradient(60% 60% at 50% 90%, rgba(255, 92, 168, 0.22), transparent 60%);
  filter: blur(10px);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero__content { position: relative; z-index: 1; max-width: 760px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 3px;
  color: var(--primary-2);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 22px;
  background: rgba(24, 211, 255, 0.06);
}
.hero__title {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(120deg, #fff, #c9b8ff 50%, var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--text-dim);
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 26px rgba(124, 92, 255, 0.4);
}
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { box-shadow: 0 14px 34px rgba(124, 92, 255, 0.55); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px; color: var(--text-dim);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{ transform: translate(-50%, 0);} 50%{ transform: translate(-50%, 8px);} }

/* ===== 通用 section ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px;
}
.section--alt {
  max-width: none;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__tag {
  font-size: 12px; letter-spacing: 4px;
  color: var(--primary-2); font-weight: 700;
}
.section__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin-top: 8px;
}
.section__desc { color: var(--text-dim); margin-top: 12px; }

/* ===== 关于我们 ===== */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about__text p { color: var(--text-dim); margin-bottom: 16px; }
.about__text strong { color: var(--text); }
.about__points { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.about__points li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
}
.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}
.about__card h3 {
  font-size: 18px; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.about__card dl { display: grid; gap: 14px; }
.about__card dl > div { display: grid; gap: 2px; }
.about__card dt { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }
.about__card dd { font-size: 14px; color: var(--text); }

/* ===== 游戏中心 ===== */
.games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.28);
}
.game-card__art {
  height: 120px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 52px;
  margin-bottom: 18px;
}
.game-card__art--1 { background: linear-gradient(135deg, #7c5cff33, #18d3ff33); }
.game-card__art--2 { background: linear-gradient(135deg, #18d3ff33, #5cff9d33); }
.game-card__art--3 { background: linear-gradient(135deg, #ff5ca833, #ffd65c33); }
.game-card__art--4 { background: linear-gradient(135deg, #5c9dff33, #b15cff33); }
.game-card h3 { font-size: 18px; margin-bottom: 8px; }
.game-card p { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.game-card__badge {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-2);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(24, 211, 255, 0.06);
}

/* ===== 新闻 ===== */
.news { list-style: none; display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.news__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.news__item:hover { border-color: var(--primary); }
.news__item time {
  font-size: 14px; color: var(--primary-2); font-weight: 600;
  padding-top: 2px;
}
.news__item h3 { font-size: 16px; margin-bottom: 6px; }
.news__item p { font-size: 14px; color: var(--text-dim); }

/* ===== 联系 ===== */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact__item {
  display: flex; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.contact__icon { font-size: 26px; }
.contact__item h4 { font-size: 15px; margin-bottom: 6px; }
.contact__item p { font-size: 14px; color: var(--text-dim); }
.contact__item a:hover { color: var(--primary-2); }

/* ===== 页脚（备案号居中） ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 24px 30px;
  text-align: center;
}
.footer__center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer__company { font-size: 15px; font-weight: 600; color: var(--text); }
.footer__copyright { font-size: 13px; color: var(--text-dim); }
.footer__beian { margin-top: 4px; }
.footer__beian a {
  display: inline-block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.footer__beian a:hover { color: var(--primary-2); border-color: var(--primary-2); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: #ffffff;
    border-bottom: 1px solid #e6e8f0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s;
  }
  .nav__links.open { max-height: 320px; }
  .nav__links a { padding: 14px 24px; border-top: 1px solid #e6e8f0; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: block; }
  .games { grid-template-columns: 1fr; }
  .news__item { grid-template-columns: 1fr; gap: 6px; }
}
