:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #FFFFFF;
  --text-color: #000000;

  /* Neon colors - intelligent selection based on primary/secondary */
  --neon-primary: var(--primary-color); /* Bright blue */
  --neon-secondary: #FFD700; /* Gold/Yellow for contrast */
  --neon-accent: #FF00FF; /* Magenta for extra pop */
  --neon-glow-primary: #00BFFF; /* Brighter blue */
  --neon-glow-secondary: #FFFF00; /* Brighter yellow */

  --header-offset: 155px; /* Desktop: Marquee (45px) + header-top (60px) + main-nav (50px) */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 160px; /* Mobile: Marquee (40px) + header-top (60px) + mobile-nav-buttons (60px) */
  }
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #000000; /* Dark background for neon effect */
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff; /* Default for headings in dark theme */
}

/* Container for max-width and centering */
.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Neon Glow Animations (Dynamic Colors) */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary);
    box-shadow:
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow:
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow:
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary),
      0 0 15px var(--neon-primary);
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: #ffffff;
  }
}

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

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

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  z-index: 1001;
  height: 45px; /* Fixed height for marquee */
  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: 28px; /* Adjusted size */
  height: 28px; /* Adjusted size */
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 20px; /* Adjusted size */
  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-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
  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; /* Adjusted size */
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-shadow:
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
  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-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    0 0 40px var(--neon-primary);
  transform: scale(1.05);
  color: #ffffff;
}

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

/* Site Header */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent; /* Background handled by header-top and main-nav */
}

/* Header Top Section (Desktop) */
.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
  box-shadow:
    0 0 10px var(--neon-glow-primary),
    0 0 20px var(--neon-glow-primary),
    0 0 30px var(--neon-glow-primary),
    inset 0 0 20px rgba(0, 191, 255, 0.1);
  min-height: 60px; /* Fixed height for header-top */
  display: flex;
  align-items: center;
  position: relative;
}

.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* Ensure container takes full width of header-top */
}

/* Logo (No Neon Effect) */
.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* White for contrast */
  text-decoration: none;
  padding: 5px 0;
  line-height: 1;
  /* NO NEON EFFECTS for LOGO */
}
.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 50px;
}

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

/* Mobile Navigation Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
  display: none; /* Hidden by default on desktop */
}

/* Main Navigation (Desktop) */
.main-nav {
  background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a); /* Different dark gradient */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 5s ease-in-out infinite alternate; /* Different animation for contrast */
  box-shadow:
    0 0 10px var(--neon-glow-secondary),
    0 0 20px var(--neon-glow-secondary),
    0 0 30px var(--neon-glow-secondary),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
  min-height: 50px; /* Fixed height for main-nav */
  display: flex; /* Default to flex for desktop */
  align-items: center;
  position: static; /* Default to static for desktop */
}

.main-nav .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 25px;
  padding: 0 20px;
}

.nav-link {
  color: #ffffff; /* White text for readability */
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-primary); /* Use a neon color on hover */
  text-shadow:
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002; /* Above logo */
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #ffffff; /* White bars */
  position: absolute;
  transition: all 0.3s ease;
  border-radius: 2px;
  /* Neon glow for hamburger icon */
  box-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent);
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
}

.hamburger-icon::before {
  transform: translateY(-8px);
}

.hamburger-icon::after {
  transform: translateY(8px);
}

/* Hamburger menu active state */
.hamburger-menu.active .hamburger-icon {
  background-color: transparent;
  box-shadow: none;
}

.hamburger-menu.active .hamburger-icon::before {
  transform: rotate(45deg);
  background-color: var(--neon-accent);
  box-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent);
}

.hamburger-menu.active .hamburger-icon::after {
  transform: rotate(-45deg);
  background-color: var(--neon-accent);
  box-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent);
}

/* Buttons */
.btn {
  position: relative;
  padding: 10px 20px; /* Adjusted padding for desktop */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 15px; /* Adjusted font size */
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary)); /* Gradient background */
  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-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999; /* Below main-nav */
  transition: opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Footer Styles (Regular, No Neon) */
.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 40px 0 20px 0;
  font-size: 14px;
}

.site-footer h4 {
  color: var(--primary-color); /* Use primary color for footer headings */
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
}

.footer-top {
  border-bottom: 1px solid #333333;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col ul {
  line-height: 2;
}

.footer-col a {
  color: #cccccc;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.payment-icons, .game-providers-icons, .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px; /* Adjusted gap for tighter packing */
  width: 100%;
}

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 40px; /* Adjusted max-height for footer icons */
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme, less bright */
  transition: filter 0.3s ease;
}
.payment-icons img:hover, .game-providers-icons img:hover, .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%); /* Colorize on hover */
}


.footer-middle {
  padding-bottom: 30px;
  border-bottom: 1px solid #333333;
  margin-bottom: 30px;
}

.footer-middle .footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-providers-section, .social-media-section {
  width: 100%;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #999999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Marquee Mobile */
  .marquee-section {
    height: 40px; /* Smaller height on mobile */
    padding: 0;
  }
  .marquee-container {
    padding: 0 10px;
    gap: 8px;
  }
  .marquee-icon {
    width: 24px;
    height: 24px;
  }
  .marquee-icon-emoji {
    font-size: 16px;
  }
  .marquee-text {
    font-size: 13px;
  }
  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 20px;
    animation-duration: 25s; /* Faster scroll on mobile */
  }

  /* Header Mobile */
  .site-header {
    top: 40px; /* Marquee height on mobile */
  }

  .header-top {
    min-height: 60px; /* Fixed height for mobile header-top */
    padding: 0 10px; /* Adjust padding */
  }

  .header-top .header-container {
    padding: 0; /* Remove container padding as header-top has it */
  }

  .hamburger-menu {
    display: flex; /* Show hamburger menu on mobile */
    order: 0; /* Left side */
    margin-right: auto; /* Push logo to center */
  }

  .logo {
    order: 1; /* Center logo */
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px; /* Adjust logo size for mobile */
    padding: 0;
  }
  .logo img {
    max-height: 40px; /* Adjust image logo size for mobile */
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons on mobile */
  }

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px; /* Padding for the button container */
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 5px var(--neon-glow-primary),
      0 0 10px var(--neon-glow-primary),
      inset 0 0 10px rgba(0, 191, 255, 0.1);
    min-height: 60px; /* Fixed height for mobile buttons area */
    flex-wrap: nowrap; /* Ensure buttons stay in one row */
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Max width for two buttons with 10px gap */
    box-sizing: border-box;
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font size */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }

  .main-nav {
    display: none; /* Hidden by default, shown with JS active class */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Below header-top and mobile-buttons */
    left: 0;
    width: 80%;
    max-width: 300px; /* Max width for mobile menu */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background: linear-gradient(180deg, #1a1a2e, #0a0a0a); /* Dark background for mobile menu */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    z-index: 1000; /* Above overlay */
    overflow-y: auto; /* Enable scrolling for long menus */
    border-right: 2px solid;
    animation: theme-colors 5s ease-in-out infinite alternate;
  }

  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide into view */
  }

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    width: 100%; /* Ensure container takes full width of main-nav */
    max-width: none; /* Remove max-width constraint for mobile container */
    gap: 15px;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 30px 0 15px 0;
  }
  .footer-top .footer-container {
    grid-template-columns: 1fr; /* Single column layout for footer on mobile */
    gap: 20px;
  }
  .footer-middle .footer-container {
    gap: 20px;
  }
  .payment-icons img, .game-providers-icons img, .social-media-icons img {
    max-height: 35px; /* Smaller icons on mobile */
  }
  .footer-logo {
    font-size: 20px;
  }
  .footer-col h4 {
    font-size: 15px;
  }
}

/* Mobile content overflow protection */
@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;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
