/* ===== 设计变量 ===== */
:root {
  --bg: #0a0a14;
  --bg-soft: #12121f;
  --bg-card: #181826;
  --primary: #6c5ce7;
  --primary-2: #00d2ff;
  --accent: #fd79a8;
  --text: #f5f5fa;
  --text-dim: #a0a0b8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --maxw: 1200px;
  --nav-h: 68px;
  --grad: linear-gradient(135deg, var(--primary), var(--primary-2));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 通用按钮 ===== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s, box-shadow .25s, opacity .25s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(108,92,231,.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(108,92,231,.55); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-2); }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10,10,20,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.navbar.scrolled { background: rgba(10,10,20,.9); border-bottom: 1px solid var(--border); }
.nav-container {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo-mark { color: var(--primary-2); font-size: 22px; text-shadow: 0 0 14px var(--primary-2); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text i { font-size: 10px; letter-spacing: 3px; color: var(--text-dim); font-style: normal; font-weight: 400; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--text-dim); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--grad); border-radius: 2px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 语言切换 ===== */
.lang-switch {
  display: flex; gap: 4px; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; transition: .2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--grad); color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 40px) 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(108,92,231,.35), transparent 60%),
    radial-gradient(50% 50% at 80% 30%, rgba(0,210,255,.28), transparent 60%),
    radial-gradient(60% 60% at 50% 90%, rgba(253,121,168,.22), transparent 60%),
    var(--bg);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
  animation: drift 20s linear infinite;
}
@keyframes drift { to { background-position: 44px 44px; } }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-tag { letter-spacing: 6px; font-size: 13px; color: var(--primary-2); margin-bottom: 18px; }
.hero-title { font-size: clamp(34px, 7vw, 64px); font-weight: 800; line-height: 1.1; margin-bottom: 18px; }
.hero-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(15px, 2.2vw, 19px); color: var(--text-dim); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.stat strong { display: block; font-size: clamp(28px, 5vw, 42px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 14px; color: var(--text-dim); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 30px; color: var(--text-dim); animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,10px);} }

/* ===== 通用区块 ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-label { letter-spacing: 5px; font-size: 12px; color: var(--primary-2); margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 4.5vw, 42px); font-weight: 800; }
.section-desc { color: var(--text-dim); max-width: 560px; margin: 14px auto 0; }

/* ===== 即将发布作品 ===== */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
.game-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.game-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,.45); border-color: var(--primary); }
.game-thumb {
  position: relative; aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.game-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.18), transparent 60%);
}
.game-qmark {
  position: relative; z-index: 1;
  font-size: clamp(64px, 12vw, 110px); font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.82); text-shadow: 0 6px 28px rgba(0,0,0,.35);
}
.game-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(0,0,0,.4); backdrop-filter: blur(6px); padding: 4px 12px;
  border-radius: 999px; font-size: 12px; color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.game-coming {
  position: absolute; left: 14px;  bottom: 14px; z-index: 2;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 4px 12px;
  border-radius: 999px; font-size: 12px; color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.game-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.game-body h3 { font-size: 20px; margin-bottom: 8px; }
.game-body p { color: var(--text-dim); font-size: 14px; line-height: 1.65; margin-bottom: 16px; flex: 1; }
.game-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.game-meta span { font-size: 12px; color: var(--text-dim); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }

/* ===== 关于我们 ===== */
.about { background: var(--bg-soft); max-width: none; min-height: 100vh; display: flex; align-items: center; }
.about-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text p { color: var(--text-dim); margin: 16px 0; }
.about-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.about-list li { display: flex; gap: 10px; color: var(--text); }
.about-list li span { color: var(--primary-2); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .3s, border-color .3s; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--primary-2); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14px; }

/* ===== 页脚 ===== */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 60px 24px 30px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-desc { color: var(--text-dim); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--primary-2); }
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; color: var(--text-dim); font-size: 13px; }

/* ===== 进场动画 ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ===== 响应式：平板 ===== */
@media (max-width: 980px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ===== 响应式：移动端 ===== */
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,10,20,.97); backdrop-filter: blur(14px);
    padding: 0 24px; max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { max-height: 360px; padding: 12px 24px 24px; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; order: -1; position: relative; z-index: 2; pointer-events: auto; }
  .lang-switch { order: 2; }

  .section { padding: 60px 18px; }
  .hero-stats { gap: 26px; margin-top: 40px; }
  .games-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .footer { padding: 48px 18px 28px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col:first-child .logo { justify-content: center; }
  .footer-desc { max-width: 320px; margin: 16px auto 0; }
  .footer-col h4 { margin-bottom: 12px; color: var(--primary-2); font-size: 14px; letter-spacing: 1px; }
  .footer-col:nth-child(2) a { display: inline-block; margin: 0 18px 8px 0; }
  .footer-col:nth-child(2) a:last-child { margin-right: 0; }
  .footer-col a, .footer-col p { line-height: 1.8; margin-bottom: 8px; }
  .footer-bottom { font-size: 12px; padding-top: 20px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
