/* Global Styles & Variables */
:root {
  --primary-color: #26A9E0; /* Light blue */
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07; /* Orange */

  /* Neon palette derived from primary/secondary/login */
  --neon-blue-light: #33CCFF; /* Brighter version of primary */
  --neon-pink-vibrant: #FF66B2; /* Complementary vibrant color */
  --neon-yellow-bright: #FFFF66; /* Accent color */
  --neon-orange-vibrant: #FF8C00; /* Brighter version of login color */

  /* Default neon variables for animations */
  --neon-current-1: var(--neon-blue-light);
  --neon-current-2: var(--neon-pink-vibrant);
  --neon-current-3: var(--neon-yellow-bright);
  --neon-current-4: var(--neon-orange-vibrant);

  /* Header offset calculation */
  --marquee-height-desktop: 45px;
  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 50px;
  --header-offset: calc(var(--marquee-height-desktop) + var(--header-top-height-desktop) + var(--main-nav-height-desktop)); /* 45 + 60 + 50 = 155px */
}

@media (max-width: 768px) {
  :root {
    --marquee-height-mobile: 35px;
    --header-top-height-mobile: 55px; /* Hamburger + Logo */
    --mobile-nav-buttons-height: 55px; /* Buttons row */
    --header-offset: calc(var(--marquee-height-mobile) + var(--header-top-height-mobile) + var(--mobile-nav-buttons-height)); /* 35 + 55 + 55 = 145px */
  }
}

/* Animations for dynamic neon colors */
@keyframes theme-colors-cycle {
  0%, 100% {
    --neon-current-1: var(--neon-blue-light);
    --neon-current-2: var(--neon-pink-vibrant);
    --neon-current-3: var(--neon-yellow-bright);
  }
  33% {
    --neon-current-1: var(--neon-pink-vibrant);
    --neon-current-2: var(--neon-yellow-bright);
    --neon-current-3: var(--neon-orange-vibrant);
  }
  66% {
    --neon-current-1: var(--neon-yellow-bright);
    --neon-current-2: var(--neon-orange-vibrant);
    --neon-current-3: var(--neon-blue-light);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--neon-current-1),
      0 0 10px var(--neon-current-1),
      0 0 15px var(--neon-current-1);
    color: var(--secondary-color);
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-current-2),
      0 0 10px var(--neon-current-2),
      0 0 15px var(--neon-current-2);
    color: var(--secondary-color);
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-current-3),
      0 0 10px var(--neon-current-3),
      0 0 15px var(--neon-current-3);
    color: var(--secondary-color);
  }
}

@keyframes neon-pulse {
  0%, 100% {
    box-shadow:
      0 0 5px var(--neon-current-1),
      0 0 10px var(--neon-current-1),
      0 0 15px var(--neon-current-1);
  }
  50% {
    box-shadow:
      0 0 15px var(--neon-current-2),
      0 0 30px var(--neon-current-2),
      0 0 45px var(--neon-current-2);
  }
}

@keyframes marquee-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

/* Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: var(--secondary-color); /* Main content background */
  padding-top: var(--header-offset); /* Fixed header offset */
  overflow-x: hidden; /* Prevent horizontal scroll for body */
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
  color: var(--secondary-color);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors-cycle 4s ease-in-out infinite; /* Dynamic color */
  box-shadow:
    0 0 10px var(--neon-current-1),
    0 0 20px var(--neon-current-1),
    0 0 30px var(--neon-current-1),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  z-index: 1001; /* Above header */
  height: var(--marquee-height-desktop);
  display: flex;
  align-items: center;
}

.marquee-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 20px;
  display: inline-block;
  animation: marquee-pulse 2s ease-in-out infinite, text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px var(--neon-current-1),
    0 0 10px var(--neon-current-1),
    0 0 15px var(--neon-current-1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  gap: 30px;
}

.marquee-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  text-shadow:
    0 0 5px var(--neon-current-1),
    0 0 10px var(--neon-current-1),
    0 0 15px var(--neon-current-1);
  line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: all 0.3s ease;
}

.marquee-text:hover {
  text-shadow:
    0 0 10px var(--neon-current-1),
    0 0 20px var(--neon-current-1),
    0 0 30px var(--neon-current-1),
    0 0 40px var(--neon-current-1);
  transform: scale(1.05);
  color: var(--secondary-color);
}

.marquee-separator {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 15px;
  text-shadow:
    0 0 3px var(--neon-current-1),
    0 0 6px var(--neon-current-1);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header Section */
.site-header {
  position: fixed;
  top: var(--marquee-height-desktop); /* Below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
  animation: theme-colors-cycle 4s ease-in-out infinite; /* Dynamic color */
  box-shadow:
    0 0 10px var(--neon-current-1),
    0 0 20px var(--neon-current-1),
    0 0 30px var(--neon-current-1),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.header-top {
  width: 100%;
  background: linear-gradient(135deg, #0f0f0f, #22223a, #1f2a4a); /* Slightly different dark gradient */
  border-bottom: 1px solid;
  animation: theme-colors-cycle 4s ease-in-out infinite;
  box-shadow:
    0 0 8px var(--neon-current-2),
    0 0 16px var(--neon-current-2);
  height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Regular color, not neon */
  text-decoration: none;
  transition: color 0.3s ease;
  display: block; /* Ensure visibility */
  /* NO neon effects on LOGO */
}

.logo:hover {
  color: var(--primary-color);
}

.desktop-nav-buttons {
  display: flex; /* Desktop default: show */
  gap: 10px;
  align-items: center;
}

.mobile-nav-buttons {
  display: none; /* Desktop default: hide */
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap; /* Ensure buttons stay in one line */
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background for mobile buttons */
  border-bottom: 1px solid;
  animation: theme-colors-cycle 4s ease-in-out infinite;
  box-shadow:
    0 0 5px var(--neon-current-3),
    0 0 10px var(--neon-current-3);
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--login-color), var(--neon-orange-vibrant)); /* Use login color for button base */
  padding: 12px 20px;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors-cycle 4s ease-in-out infinite; /* Dynamic color */
  text-shadow:
    0 0 5px var(--secondary-color),
    0 0 10px var(--neon-orange-vibrant);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap; /* Prevent button text from wrapping on desktop */
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow:
    0 0 15px var(--neon-current-4),
    0 0 30px var(--neon-current-4),
    0 0 45px var(--neon-current-4);
}

/* Main Navigation */
.main-nav {
  width: 100%;
  background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a); /* Different dark gradient for contrast */
  border-top: 1px solid;
  animation: theme-colors-cycle 4s ease-in-out infinite;
  box-shadow:
    0 0 8px var(--neon-current-3),
    0 0 16px var(--neon-current-3);
  height: var(--main-nav-height-desktop);
  display: flex; /* Desktop default: show */
  align-items: center;
  flex-direction: row; /* Desktop default: horizontal */
}
/* Payment Methods 图标容器样式 */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

.payment-icons img,
.payment-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Game Providers 图标容器样式 */
.game-providers-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.game-providers-icons img,
.game-provider-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Social Media 图标容器样式 */
.social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.social-media-icons img,
.social-media-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
