:root {
  /* 霓虹灯配色 */
  --neon-pink: #ff006e;
  --neon-blue: #00f5ff;
  --neon-purple: #bc13fe;
  --neon-green: #39ff14;
  --neon-yellow: #fff01f;
  --neon-orange: #ff9500;
  
  /* 暗色背景 */
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-hover: #1a1a25;
  
  /* 文字颜色 */
  --text-primary: #ffffff;
  --text-secondary: #888899;
  --text-muted: #555566;
  
  /* 边框和阴影 */
  --border-radius: 16px;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --neon-glow-pink: 0 0 20px rgba(255, 0, 110, 0.5), 0 0 40px rgba(255, 0, 110, 0.3);
  --neon-glow-blue: 0 0 20px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.3);
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* 背景动画 */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(rgba(188, 19, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 19, 254, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* 头部导航 */
.header {
  position: relative;
  z-index: 10;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--neon-glow-pink);
}

.logo-icon {
  font-size: 36px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 用户信息区域（预留） */
.user-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.user-avatar:hover {
  box-shadow: var(--neon-glow-blue);
  transform: scale(1.05);
}

.user-placeholder {
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s;
}

.user-placeholder:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

/* 主内容区 */
.main-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 英雄区 */
.hero {
  text-align: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* 游戏网格 */
.games-section {
  margin-top: 60px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
  border-radius: 2px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* 游戏卡片 */
.game-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow), 0 0 30px rgba(188, 19, 254, 0.2);
  border-color: rgba(188, 19, 254, 0.3);
}

.game-card:hover::before {
  opacity: 1;
}

.game-cover {
  height: 180px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.game-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
}

.game-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-status.ready {
  background: rgba(57, 255, 20, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.game-status.beta {
  background: rgba(255, 149, 0, 0.2);
  color: var(--neon-orange);
  border: 1px solid rgba(255, 149, 0, 0.3);
}

.game-status.soon {
  background: rgba(136, 136, 153, 0.2);
  color: var(--text-secondary);
  border: 1px solid rgba(136, 136, 153, 0.3);
}

.game-info {
  padding: 20px;
}

.game-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.game-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.game-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 标签 */
.tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* 游戏内嵌容器 */
.game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 1000;
  display: none;
}

.game-container.active {
  display: block;
}

.game-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.game-nav {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1001;
  display: flex;
  gap: 12px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--neon-pink);
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
}

/* 响应式 */
@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--neon-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Emoji for Speed 区域高亮样式
   ============================================ */

/* 给 Emoji for Speed 区域的卡片标题加亮 */
.games-section:nth-of-type(2) .game-card .game-title {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* 给 Emoji for Speed 区域的副标题加亮 */
.games-section:nth-of-type(2) .game-card .game-tagline {
  color: #bbbbcc;
}

/* 给 Emoji for Speed 区域的卡片加个淡紫色边框 */
.games-section:nth-of-type(2) .game-card {
  border: 1px solid rgba(188, 19, 254, 0.15);
}

.games-section:nth-of-type(2) .game-card:hover {
  border-color: rgba(188, 19, 254, 0.4);
  box-shadow: var(--card-shadow), 0 0 25px rgba(188, 19, 254, 0.15);
}
