/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #00b4ff;
  --primary-dark: #0088cc;
  --primary-light: #33ccff;
  --accent: #00d4ff;
  /* 天蓝色主题背景 */
  --dark: #001830;
  --dark-2: #002244;
  --dark-3: #003366;
  --bg-card: rgba(0, 50, 100, 0.6);
  --text: #e0f4ff;
  --text-muted: #80c8ff;
  --border: rgba(0, 180, 255, 0.15);
  --glow-blue: rgba(0, 180, 255, 0.4);
  --glow-cyan: rgba(0, 220, 255, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* ======================================================
   ANIMATED BACKGROUND
   ====================================================== */
.bg-universe {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, #003355 0%, #002244 40%, #001122 100%);
  overflow: hidden;
  pointer-events: none;
}

/* Stars */
.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 85%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 95%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 30%, rgba(255,255,255,0.4) 0%, transparent 100%);
  background-size: 550px 550px;
  animation: starsDrift 120s linear infinite;
}

@keyframes starsDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(-550px); }
}

/* Nebula / aurora blobs */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: nebulaFloat 15s ease-in-out infinite;
}

.nebula-1 {
  width: 600px;
  height: 400px;
  top: -100px;
  left: -150px;
  background: radial-gradient(ellipse, rgba(0, 180, 255, 0.3) 0%, transparent 70%);
  animation-delay: 0s;
  opacity: 1;
}

.nebula-2 {
  width: 500px;
  height: 500px;
  top: 30%;
  right: -100px;
  background: radial-gradient(ellipse, rgba(0, 220, 255, 0.25) 0%, transparent 70%);
  animation-delay: -5s;
  opacity: 1;
}

.nebula-3 {
  width: 400px;
  height: 350px;
  bottom: 10%;
  left: 20%;
  background: radial-gradient(ellipse, rgba(0, 150, 255, 0.22) 0%, transparent 70%);
  animation-delay: -10s;
  opacity: 1;
}

@keyframes nebulaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* Grid floor */
.grid-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(0, 180, 255, 0.06) 100%),
    repeating-linear-gradient(
      transparent 0px,
      transparent 49px,
      rgba(0, 180, 255, 0.12) 50px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 49px,
      rgba(0, 180, 255, 0.12) 50px
    );
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  animation: gridPulse 6s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* Floating fire particles */
.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  pointer-events: none;
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% {
    transform: translateY(-100vh) scale(0.3);
    opacity: 0;
  }
}

/* Shooting star */
.shooting-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.8), 0 0 20px 4px rgba(255,200,100,0.4);
  animation: shootStar linear infinite;
  opacity: 0;
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(to left, rgba(255,200,100,0.6), transparent);
  transform: translateY(-50%);
}

@keyframes shootStar {
  0%   { opacity: 0; transform: translate(0, 0); }
  5%   { opacity: 1; }
  30%  { opacity: 1; transform: translate(-250px, -180px); }
  35%  { opacity: 0; }
  100% { opacity: 0; transform: translate(-250px, -180px); }
}

/* Scan line overlay */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
}

/* Vignette */
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0,0,0,0.6) 100%
  );
  pointer-events: none;
}

/* ===== Container ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 24, 48, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 180, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 180, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.logo-text {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #00b4ff, #33ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
}

.menu-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.menu-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* ===== Banner Top Text ===== */
.banner-top-text {
  margin-top: 60px;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.2), rgba(0, 220, 255, 0.15));
  border-bottom: 1px solid rgba(0, 180, 255, 0.25);
  font-size: 15px;
  color: rgba(200, 240, 255, 0.9);
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  line-height: 1.5;
}

.banner-top-text strong {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #33ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Hero / Banner ===== */
.hero-section {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2,2,4,0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(2,2,4,0.8) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow-inner {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-glow-1 {
  width: 800px;
  height: 500px;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 180, 255, 0.25) 0%, transparent 70%);
  animation: heroGlowPulse 5s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 300px;
  top: 0;
  right: 10%;
  background: radial-gradient(ellipse, rgba(0, 220, 255, 0.18) 0%, transparent 70%);
  animation: heroGlowPulse 7s ease-in-out infinite reverse;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

.hero-swiper {
  width: 80%;
  height: 100%;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #002244;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.slide-content {
  text-align: center;
  padding: 20px;
  animation: fadeSlideUp 0.8s ease both;
}

.slide-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(40,100,255,0.2);
  border: 1px solid rgba(80,140,255,0.4);
  border-radius: 20px;
  font-size: 12px;
  color: #80c8ff;
  margin-bottom: 18px;
  letter-spacing: 1.5px;
  animation: tagGlow 2s ease-in-out infinite alternate;
}

@keyframes tagGlow {
  from { box-shadow: 0 0 8px rgba(40,100,255,0.25); }
  to   { box-shadow: 0 0 18px rgba(40,100,255,0.5); }
}

.slide-content h2 {
  font-size: 58px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 0 40px rgba(232,52,12,0.3), 0 2px 20px rgba(0,0,0,0.8);
  letter-spacing: 2px;
}

.slide-content p {
  font-size: 18px;
  color: rgba(200,200,220,0.7);
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.slide-btn {
  display: inline-block;
  padding: 13px 40px;
  background: linear-gradient(135deg, var(--primary), #ff6633);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 0 24px rgba(232,52,12,0.4), 0 4px 12px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.slide-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.slide-btn:hover::before { left: 100%; }

.slide-btn:hover {
  box-shadow: 0 0 40px rgba(232,52,12,0.7), 0 6px 20px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: #00d4ff;
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.swiper-button-prev,
.swiper-button-next {
  color: rgba(255,255,255,0.4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(232,52,12,0.5);
  border-color: rgba(232,52,12,0.3);
  color: #fff;
  box-shadow: 0 0 20px rgba(232,52,12,0.3);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Tab Section ===== */
.tab-section {
  position: relative;
  z-index: 1;
  padding: 20px 0 60px;
  background: linear-gradient(
    to bottom,
    rgba(2,8,24,0) 0%,
    rgba(2,8,24,0.4) 30%,
    rgba(2,8,24,0.6) 100%
  );
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: #00d4ff;
  margin-bottom: 10px;
  padding-left: 0;
  border-left: none;
  display: block;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.section-title::after {
  display: none;
}

.section-title-btn {
  display: block;
  width: fit-content;
  padding: 14px 40px;
  background: linear-gradient(135deg, #00d4ff, #00b4ff, #33ccff);
  background-size: 200% 200%;
  color: #fff;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 30px;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
  animation: titleBtnGlow 2s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes titleBtnGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4); }
  50%       { box-shadow: 0 8px 30px rgba(0, 212, 255, 0.7); }
}

.section-title-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 35px rgba(0, 212, 255, 0.6);
}

.add-to-desktop-img {
  text-align: center;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}

.add-to-desktop-img img {
  max-width: 95%;
  width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .add-to-desktop-img img {
    width: 100%;
    max-width: 100%;
  }
}

.tab-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 24px;
  background: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover { color: #fff; }

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(232,52,12,0.06);
  text-shadow: 0 0 20px rgba(232,52,12,0.4);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Game Grid ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  background: rgba(0, 30, 60, 0.5);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 180, 255, 0.15);
}

.game-card {
  background: rgba(0, 40, 80, 0.7);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 180, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0, 212, 255, 0.2), 0 0 30px rgba(0, 212, 255, 0.15);
}

.card-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #001830, #002244);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.game-card:hover .card-thumb img {
  transform: scale(1.05);
}

/* 桌面端悬停层 — 移动端隐藏 */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,80,255,0.8) 0%,
    rgba(0,0,0,0.25) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* 桌面端悬停按钮（拇指图上） */
.play-btn {
  padding: 8px 22px;
  background: rgba(255,255,255,0.95);
  color: #1a4fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(8px);
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.play-btn:hover { background: #fff; }
.game-card:hover .play-btn { transform: translateY(0); }

/* 底部按钮（始终显示） */
.card-footer {
  padding: 10px 16px 14px;
}

.btn-start {
  display: block;
  width: 100%;
  padding: 8px 0;
  background: linear-gradient(135deg, #00ff88, #00cc66, #00ffaa);
  background-size: 200% 200%;
  color: #003322;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.4);
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}

.btn-start:hover {
  background-position: 100% 0;
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.6);
}

.card-info { padding: 10px 12px 2px; }

.card-footer {
  padding: 8px 12px 10px;
}

.card-info h3 {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 2px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 11px;
  color: rgba(200,200,220,0.6);
}

/* ===== Load More (隐藏) ===== */
.load-more { display: none; }

.btn-load-more { display: none; }

/* ===== Activity List ===== */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.activity-card:hover {
  border-color: rgba(40,100,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 20px rgba(40,100,255,0.08);
}

.act-thumb {
  position: relative;
  width: 200px;
  flex-shrink: 0;
}

.act-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .act-thumb img { transform: scale(1.05); }

.act-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.act-status.ongoing {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(232,52,12,0.5);
  animation: pulseGlow 2s ease-in-out infinite;
}

.act-status.upcoming {
  background: rgba(245,166,35,0.9);
  color: #fff;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(232,52,12,0.4); }
  50%       { box-shadow: 0 0 18px rgba(232,52,12,0.8); }
}

.act-info {
  padding: 20px 20px 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.act-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.act-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.act-time {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}

.act-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.act-link:hover { color: var(--primary-light); text-shadow: 0 0 10px rgba(232,52,12,0.5); }

/* ===== Features ===== */
.features-section {
  position: relative;
  z-index: 1;
  padding: 36px 0;
  background: linear-gradient(
    to bottom,
    rgba(4,13,42,0) 0%,
    rgba(4,13,42,0.6) 50%,
    rgba(4,13,42,0) 100%
  );
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-item:hover {
  border-color: rgba(232,52,12,0.25);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(232,52,12,0.08);
}

.feature-icon { font-size: 40px; margin-bottom: 14px; }

.feature-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(0, 12, 30, 0.95);
  padding-top: 50px;
  border-top: 1px solid rgba(0, 180, 255, 0.15);
}

.footer-inner {
  display: flex;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-brand {
  flex-shrink: 0;
  max-width: 240px;
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex: 1;
  gap: 20px;
  flex-wrap: wrap;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 100px;
}

.link-group h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.link-group a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.link-group a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #444;
}

.footer-bottom a { color: #444; }
.footer-bottom a:hover { color: var(--primary); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: rgba(0, 50, 100, 0.3); }
::-webkit-scrollbar-thumb { background: rgba(0, 180, 255, 0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.8); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { gap: 15px; }
  .link-group { gap: 4px; min-width: 80px; }
}

@media (max-width: 768px) {
  .menu-img { width: 36px; height: 36px; }
  .footer-links { gap: 12px; }
  .link-group { gap: 4px; min-width: 70px; }
  .link-group h4 { font-size: 12px; }
  .link-group a { font-size: 11px; }

  .hero-section { height: 260px; }
  .hero-swiper { width: 90%; }
  .banner-top-text { font-size: 10px; padding: 8px 10px; line-height: 1.4; }
  .slide-content h2 { font-size: 32px; }
  .slide-content p { font-size: 14px; }

  .game-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; padding: 14px; }
  .card-thumb { height: 130px; }
  .card-info { padding: 8px 12px 2px; }
  .card-info h3 { font-size: 13px; margin-bottom: 2px; }
  .card-info .card-desc { margin-bottom: 0; }
  .card-footer { padding: 6px 12px 10px; }

  /* 移动端隐藏悬停层，按钮在底部固定显示 */
  .card-overlay { display: none; }

  .btn-start {
    padding: 6px 0;
    font-size: 10px;
    border-radius: 40px;
    animation: btnPulse 2.5s ease-in-out infinite;
  }

  .activity-card { flex-direction: column; }
  .act-thumb { width: 100%; height: 160px; }
  .act-info { padding: 16px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-icon { font-size: 30px; }

  .tab-btn { padding: 8px 16px; font-size: 13px; }
}

@media (max-width: 480px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .slide-content h2 { font-size: 26px; }
  .play-btn {
    padding: 6px 14px;
    font-size: 11px;
  }
}
