/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #230d41;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5ff;
  --text-muted: #b9b6d3;
  --accent: #ff4d6d;
  --accent-2: #ffd166;
  --grad-accent: linear-gradient(135deg, #ff4d6d, #ff9a5a);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.5);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #2b2050 0%, transparent 60%),
    radial-gradient(1000px 500px at -10% 20%, #1c1740 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== ② 滚动字幕 ===== */
.marquee {
  width: 100%;
  max-width: 720px;
  margin: 15px auto 0;
  background: var(--grad-accent);
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
  padding: 12px 0;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 600;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-group {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  white-space: nowrap;
}

.marquee-group .sep {
  opacity: 0.7;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== ③ 四个游戏卡片 ===== */
.games {
  flex: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 40px) 15px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: var(--grad-accent);
}

.game-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.game-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition), background var(--transition),
    box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-8px);
  background: var(--surface-hover);
  border-color: rgba(255, 77, 109, 0.5);
  box-shadow: var(--shadow-hover);
}

.game-card:active {
  transform: translateY(-3px);
}

.game-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.game-card:hover .game-logo {
  transform: scale(1.06);
}

.game-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.game-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.game-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ===== 响应式断点 ===== */
@media (min-width: 768px) {
  .game-logo {
    width: 88px;
    height: 88px;
  }
  .game-card {
    padding: 22px 24px;
  }
  .game-name {
    font-size: 1.3rem;
  }
  .game-desc {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

