:root {
  --primary: #7B68EE;
  --primary-dark: #5A4ACF;
  --secondary: #4CAF50;
  --accent: #FFD700;
  --dark: #2D2D2D;
  --light: #F8F9FA;
  --card-shadow: 0 10px 30px rgba(123, 104, 238, 0.15);
  --card-shadow-hover: 0 24px 48px rgba(123, 104, 238, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: #0f0c29;
  color: #f8f9fa;
  overflow-x: hidden;
}

.header-scrolled {
  background: rgba(15, 12, 41, 0.92) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  overflow: hidden;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(123, 104, 238, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.18) 0%, transparent 40%);
  pointer-events: none;
}

.hero-home::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, #0f0c29, transparent);
  z-index: 2;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  background: rgba(255, 215, 0, 0.6);
  border-radius: 50%;
  animation: floatUp 10s linear infinite;
}

.hero-particles span:nth-child(1) { left: 10%; bottom: -10%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 25%; bottom: -10%; width: 6px; height: 6px; animation-delay: 2s; }
.hero-particles span:nth-child(3) { left: 45%; bottom: -10%; animation-delay: 4s; }
.hero-particles span:nth-child(4) { left: 65%; bottom: -10%; width: 10px; height: 10px; animation-delay: 1s; }
.hero-particles span:nth-child(5) { left: 85%; bottom: -10%; animation-delay: 3s; }
.hero-particles span:nth-child(6) { left: 55%; bottom: -10%; width: 5px; height: 5px; animation-delay: 5s; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-110vh) scale(0.4); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
}

.game-logo {
  filter: drop-shadow(0 0 30px rgba(123, 104, 238, 0.6));
  animation: logoPulse 3s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(90deg, #fff, #FFD700, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 6px 0 var(--primary-dark),
    0 12px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
}

.btn-3d:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 10px 0 var(--primary-dark),
    0 20px 36px rgba(0, 0, 0, 0.4);
}

.btn-3d:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 var(--primary-dark),
    0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ffaa00 100%);
  color: #1a1a2e;
  box-shadow:
    0 6px 0 #c48a00,
    0 12px 24px rgba(0, 0, 0, 0.35);
}

.btn-accent:hover {
  box-shadow:
    0 10px 0 #c48a00,
    0 20px 36px rgba(0, 0, 0, 0.4);
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(123, 104, 238, 0.35);
}

.feature-card img {
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.contact-card {
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.12), rgba(76, 175, 80, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.qr-img {
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
