:root {
  --primary-color: #26A9E0; /* Light Blue */
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07; /* Orange */
  --black-color: #000000;

  /* Neon Dark Backgrounds */
  --neon-dark-bg1: #0a0a0a;
  --neon-dark-bg2: #1a1a2e;
  --neon-dark-bg3: #16213e;

  /* Neon Dynamic Glow Colors (for cycling) */
  --neon-glow-color1: #FF00FF; /* Magenta */
  --neon-glow-color2: #00FFFF; /* Cyan */
  --neon-glow-color3: #FFFF00; /* Yellow */
  --neon-glow-color4: #FF1493; /* Deep Pink */
  --neon-glow-color5: #00FF00; /* Lime Green */

  /* Header offset calculation (Marquee: 45px + Header-top: 60px + Main-nav: 50px) */
  --header-offset: 155px; 
}

@media (max-width: 768px) {
  /* Mobile: Marquee: 25px + Header-top (Hamburger/Logo): 64px + Mobile-nav-buttons: 50px */
  :root {
    --header-offset: 139px; /* Adjusted to 25 + 64 + 50 = 139px for more accurate calculation based on current structure. Prompt example was 199px, but current structure is smaller. */ 
  }
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: var(--secondary-color);
  background-color: var(--black-color);
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

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

.footer-container, .header-container, .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Neon Dynamic Color Animations */
@keyframes rainbow-border {
  0% { border-color: var(--neon-glow-color1); box-shadow: 0 0 10px var(--neon-glow-color1), 0 0 20px var(--neon-glow-color1); }
  20% { border-color: var(--neon-glow-color2); box-shadow: 0 0 10px var(--neon-glow-color2), 0 0 20px var(--neon-glow-color2); }
  40% { border-color: var(--neon-glow-color3); box-shadow: 0 0 10px var(--neon-glow-color3), 0 0 20px var(--neon-glow-color3); }
  60% { border-color: var(--neon-glow-color4); box-shadow: 0 0 10px var(--neon-glow-color4), 0 0 20px var(--neon-glow-color4); }
  80% { border-color: var(--neon-glow-color5); box-shadow: 0 0 10px var(--neon-glow-color5), 0 0 20px var(--neon-glow-color5); }
  100% { border-color: var(--neon-glow-color1); box-shadow: 0 0 10px var(--neon-glow-color1), 0 0 20px var(--neon-glow-color1); }
}

@keyframes alternate-glow {
  0%, 100% { border-color: var(--login-color); box-shadow: 0 0 10px var(--login-color), 0 0 20px var(--login-color); }
  50% { border-color: var(--primary-color); box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color); }
}

@keyframes theme-colors {
  0%, 100% { border-color: var(--primary-color); box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color); }
  33% { border-color: var(--login-color); box-shadow: 0 0 10px var(--login-color), 0 0 20px var(--login-color); }
  66% { border-color: var(--neon-glow-color1); box-shadow: 0 0 10px var(--neon-glow-color1), 0 0 20px var(--neon-glow-color1); }
}

@keyframes text-glow-flow {
  0% { text-shadow: 0 0 5px var(--neon-glow-color1), 0 0 10px var(--neon-glow-color1), 0 0 15px var(--neon-glow-color1); color: var(--secondary-color); }
  33% { text-shadow: 0 0 5px var(--neon-glow-color2), 0 0 10px var(--neon-glow-color2), 0 0 15px var(--neon-glow-color2); color: var(--secondary-color); }
  66% { text-shadow: 0 0 5px var(--neon-glow-color3), 0 0 10px var(--neon-glow-color3), 0 0 15px var(--neon-glow-color3); color: var(--secondary-color); }
  100% { text-shadow: 0 0 5px var(--neon-glow-color1), 0 0 10px var(--neon-glow-color1), 0 0 15px var(--neon-glow-color1); color: var(--secondary-color); }
}

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

/* Marquee Section Styles */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--neon-dark-bg1), var(--neon-dark-bg2), var(--neon-dark-bg3));
  color: var(--secondary-color);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--primary-color),
    0 0 20px var(--primary-color),
    0 0 30px var(--primary-color),
    inset 0 0 20px rgba(38, 169, 224, 0.1);
  z-index: 1001;
  height: 45px; /* Fixed height for calculation */
  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: 40px;
  height: 40px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 24px;
  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-glow-color1),
    0 0 10px var(--neon-glow-color1),
    0 0 15px var(--neon-glow-color1);
  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: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  text-shadow: 
    0 0 5px var(--neon-glow-color2),
    0 0 10px var(--neon-glow-color2),
    0 0 15px var(--neon-glow-color2);
  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-glow-color2),
    0 0 20px var(--neon-glow-color2),
    0 0 30px var(--neon-glow-color2),
    0 0 40px var(--neon-glow-color2);
  transform: scale(1.05);
  color: var(--secondary-color);
}

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

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

/* Header Section Styles */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  color: var(--secondary-color);
}

.site-header .header-top {
  background: linear-gradient(135deg, var(--neon-dark-bg1), var(--neon-dark-bg2), var(--neon-dark-bg3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--primary-color),
    0 0 20px var(--primary-color),
    0 0 30px var(--primary-color),
    inset 0 0 20px rgba(38, 169, 224, 0.1);
  padding: 15px 0;
  height: 60px; /* Fixed height for calculation */
  box-sizing: border-box;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* LOGO NO NEON EFFECT */
  text-decoration: none;
  display: block; 
  line-height: 1;
  order: 0; /* Default order for desktop */
  /* No neon effects for logo */
  text-shadow: none;
  box-shadow: none;
  filter: none;
  animation: none;
}

.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 40px;
}

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

.desktop-nav-buttons .btn {
  background: linear-gradient(135deg, var(--login-color), var(--primary-color));
  padding: 10px 20px;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: alternate-glow 3s ease-in-out infinite alternate;
  text-shadow: 
    0 0 5px var(--secondary-color),
    0 0 10px var(--login-color);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.desktop-nav-buttons .btn:hover {
  animation-duration: 1.5s;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 15px var(--login-color),
    0 0 30px var(--login-color),
    0 0 45px var(--login-color);
}

/* 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, var(--neon-dark-bg2), var(--neon-dark-bg3), #0f3460);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: rainbow-border 5s linear infinite;
  box-shadow: 
    0 0 10px var(--neon-glow-color4),
    0 0 20px var(--neon-glow-color4),
    0 0 30px var(--neon-glow-color4),
    inset 0 0 20px rgba(255, 20, 147, 0.1);
  padding: 10px 0;
  display: flex; /* Desktop default: show */
  height: 50px; /* Fixed height for calculation */
  box-sizing: border-box;
  align-items: center;
}

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

.main-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.main-nav .nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

.main-nav .nav-link:hover::after {
  width: 100%;
}

/* Hamburger menu (hidden on desktop) */
.hamburger-menu {
  display: none; 
}

/* Mobile Menu Overlay (hidden on desktop) */
.mobile-menu-overlay {
  display: none;
}

.header-top-right-spacer {
  display: none; /* Hidden on desktop */
}

/* Footer Section Styles */
.site-footer {
  background-color: var(--black-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer h4 {
  color: var(--secondary-color);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

.site-footer .footer-top .footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.site-footer .footer-description {
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
  margin-top: 0;
}

.site-footer .footer-links li {
  margin-bottom: 8px;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

.site-footer .payment-methods .payment-icons,
.site-footer .game-providers-section .game-providers-icons,
.site-footer .social-media-section .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.site-footer .payment-methods .payment-icons img,
.site-footer .game-providers-section .game-providers-icons img,
.site-footer .social-media-section .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
  transition: filter 0.3s ease;
}

.site-footer .payment-methods .payment-icons img:hover,
.site-footer .game-providers-section .game-providers-icons img:hover,
.site-footer .social-media-section .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%);
}

.site-footer .footer-middle {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.site-footer .footer-bottom {
  padding-top: 20px;
  text-align: center;
}

.site-footer .footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Marquee Mobile */
  .marquee-section {
    height: 25px; /* Adjust height for mobile */
    padding: 0;
  }
  .marquee-container {
    padding: 0 10px;
    gap: 10px;
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .marquee-icon-emoji {
    font-size: 14px;
  }
  .marquee-text {
    font-size: 13px;
    line-height: 1.2;
  }
  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 20px;
    animation: marquee-scroll 20s linear infinite; /* Faster scroll on mobile */
  }

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

  .site-header .header-top {
    padding: 10px 0;
    height: 64px; /* Adjust height for hamburger + logo row */
    align-items: center;
  }

  .site-header .header-container {
    padding: 0 15px;
    max-width: none; /* Mobile container fills width */
    width: 100%;
    display: flex; 
    justify-content: flex-start; 
    align-items: center;
    gap: 15px;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1002; /* Above logo and overlay */
    position: relative;
    padding: 5px;
    order: -1; /* Place it first in flex order */
    flex-shrink: 0;
    border-radius: 3px;
    border: 1px solid transparent;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 
      0 0 5px var(--primary-color),
      0 0 10px var(--primary-color);
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px var(--primary-color);
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important; /* Center content within logo */
    align-items: center !important;
    order: 0; /* Ensures logo is in the middle */
    font-size: 22px; /* Smaller font for mobile */
    margin: 0; /* Reset margins */
    max-width: calc(100% - 100px); /* Account for hamburger and spacer width */
    text-align: center;
  }

  .logo img {
    max-height: 35px; /* Smaller image for mobile */
  }

  .header-top-right-spacer {
    display: block; /* Show spacer on mobile */
    width: 40px; /* Same width as hamburger-menu for balance */
    flex-shrink: 0;
    order: 1; /* After logo */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--neon-dark-bg1), var(--neon-dark-bg2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 50px; /* Fixed height for calculation */
    box-sizing: border-box;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Position below fixed header elements */
    left: 0;
    width: 80%; /* Sidebar width */
    max-width: 300px;
    height: calc(100% - var(--header-offset)); /* Fill remaining viewport height */
    background: linear-gradient(180deg, var(--neon-dark-bg3), var(--neon-dark-bg1));
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Above overlay, below hamburger */
    border-right: 2px solid;
    animation: rainbow-border 5s linear infinite;
    overflow-y: auto; /* Allow scrolling for long menus */
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
    width: 100%;
    max-width: none; /* Mobile container fills width */
  }

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

  .main-nav .nav-link::after {
    display: none; /* Hide hover underline on mobile menu */
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999; /* Below menu, above content */
    display: none; /* Hidden by default */
  }

  .mobile-menu-overlay.active {
    display: block; /* Show when active */
  }

  /* Footer Mobile */
  .site-footer .footer-top .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .site-footer .footer-middle .footer-container {
    padding: 0 15px;
  }
  
  .site-footer .footer-col.payment-methods {
    order: 4; /* Move payment methods to the bottom of the top section */
  }

  .site-footer .footer-col,
  .site-footer .game-providers-section,
  .site-footer .social-media-section {
    padding: 0 15px; /* Add padding to columns on mobile */
  }
  
  .site-footer .game-providers-section .game-providers-icons img,
  .site-footer .social-media-section .social-media-icons img {
    max-height: 40px; /* Smaller icons on mobile */
  }

  /* Mobile Content Overflow Protection */
  .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;
  }
}
