:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --reg-btn-color: #C30808;
  --login-btn-color: #C30808;
  --bg-color: #FFFFFF;
  --reg-login-font-color: #FFFF00;

  /* Neon colors derived from primary/secondary */
  --neon-green-primary: #00FF99; /* Bright green for primary theme */
  --neon-blue-secondary: #00FFFF; /* Cyan for secondary theme */
  --neon-accent-pink: #FF00FF; /* Magenta for accent */
  --neon-red-btn: #FF3333; /* Bright red for buttons */
  --neon-yellow-text: #FFFF00; /* Bright yellow for text */

  --header-offset: 155px; /* Desktop: Marquee (45) + HeaderTop (60) + MainNav (50) */
  --marquee-height: 45px;
}

@media (max-width: 768px) {
  :root {
    --header-offset: 140px; /* Mobile: Marquee (30) + HeaderTop (60) + MobileNavButtons (50) */
    --marquee-height: 30px;
  }
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #ffffff;
  background-color: #000000; /* Dark background for neon theme */
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

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

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

@keyframes theme-colors-border {
  0%, 100% {
    border-color: var(--neon-green-primary);
    box-shadow: 0 0 10px var(--neon-green-primary), 0 0 20px var(--neon-green-primary), inset 0 0 10px rgba(0, 255, 153, 0.3);
  }
  33% {
    border-color: var(--neon-blue-secondary);
    box-shadow: 0 0 10px var(--neon-blue-secondary), 0 0 20px var(--neon-blue-secondary), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-accent-pink);
    box-shadow: 0 0 10px var(--neon-accent-pink), 0 0 20px var(--neon-accent-pink), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--marquee-height);
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors-border 4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon-green-primary), 0 0 20px var(--neon-green-primary), inset 0 0 20px rgba(0, 255, 153, 0.1);
  z-index: 1001;
}

.marquee-container {
  width: 100%;
  max-width: 1200px; /* Limit content width */
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  height: 100%;
  box-sizing: border-box;
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  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-green-primary), 0 0 10px var(--neon-green-primary), 0 0 15px var(--neon-green-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

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

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

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

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

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

/* Header Section */
.site-header {
  position: fixed;
  top: var(--marquee-height);
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors-border 4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon-green-primary), 0 0 20px var(--neon-green-primary), inset 0 0 20px rgba(0, 255, 153, 0.1);
  height: 60px;
  box-sizing: border-box;
}

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

.logo {
  color: var(--secondary-color); /* Regular color, no neon */
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  line-height: 1;
  /* NO NEON EFFECTS for LOGO */
  /* text-shadow: none; */
  /* box-shadow: none; */
  /* filter: none; */
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--reg-btn-color), #FF6600); /* Using specified red for button, with orange gradient */
  padding: 12px 25px;
  color: var(--reg-login-font-color); /* Specified yellow for button font */
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors-border 4s ease-in-out infinite;
  text-shadow: 0 0 5px var(--reg-login-font-color), 0 0 10px var(--reg-login-font-color);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--neon-red-btn), 0 0 30px var(--neon-red-btn), inset 0 0 15px rgba(255, 51, 51, 0.5);
}

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors-border 4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon-blue-secondary), 0 0 20px var(--neon-blue-secondary), inset 0 0 20px rgba(0, 255, 255, 0.1);
  width: 100%;
  display: flex; /* Desktop default */
  height: 50px;
  box-sizing: border-box;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  box-sizing: border-box;
}

.nav-link {
  color: var(--secondary-color); /* Regular color, no neon */
  text-decoration: none;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color); /* Green from theme */
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Hamburger Menu (Mobile) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1002; /* Above logo and overlay */
  padding: 0;
  margin-right: 15px; /* Spacing from logo */
  animation: theme-colors-border 4s ease-in-out infinite;
  box-shadow: 0 0 5px var(--neon-green-primary), 0 0 10px var(--neon-green-primary);
  border-radius: 3px;
}

.hamburger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--neon-green-primary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Neon glow for icon */
}

.hamburger-icon::before, .hamburger-icon::after {
  content: '';
  width: 24px;
  height: 2px;
  background-color: var(--neon-green-primary);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

.hamburger-menu.active .hamburger-icon {
  background-color: transparent;
}

.hamburger-menu.active .hamburger-icon::before {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--neon-blue-secondary);
}

.hamburger-menu.active .hamburger-icon::after {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--neon-blue-secondary);
}

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

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999; /* Below menu, above content */
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer Section */
.site-footer {
  background: #1a1a2e; /* Dark, but not neon */
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-top, .footer-middle, .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  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);
}

.footer-logo {
  color: var(--secondary-color);
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
}

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

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

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

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

.site-footer ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

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

.game-providers-section, .social-media-section {
  margin-bottom: 20px;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

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

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
}

.footer-legal-nav li a {
  font-size: 13px;
}

/* Mobile Responsive */
@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;
  }

  .marquee-section {
    height: var(--marquee-height);
    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.3;
  }
  .marquee-separator {
    font-size: 13px;
    margin: 0 5px;
  }
  .marquee-content {
    gap: 15px;
    animation: marquee-scroll 25s linear infinite;
  }

  .header-top {
    height: 60px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    justify-content: flex-start;
    position: relative;
  }

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: 0;
    margin-left: -5px; /* Adjust to align with container edge */
  }

  .logo {
    order: 2;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px;
    margin-left: -30px; /* Counteract hamburger margin */
  }

  .desktop-nav-buttons {
    display: none;
  }

  .mobile-nav-buttons {
    display: flex !important; /* Always visible on mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px 15px;
    overflow: hidden;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-bottom: 2px solid;
    animation: theme-colors-border 4s ease-in-out infinite;
    box-shadow: 0 0 8px var(--neon-green-primary), 0 0 15px var(--neon-green-primary), inset 0 0 10px rgba(0, 255, 153, 0.1);
    height: 50px;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
    line-height: 1.2;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-offset); /* Below fixed header elements */
    left: 0;
    width: 250px;
    height: calc(100vh - var(--header-offset));
    flex-direction: column;
    background: linear-gradient(135deg, #0f3460, #16213e);
    transform: translateX(-100%); /* Slide out */
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 20px;
    border-right: 2px solid;
    animation: theme-colors-border 4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--neon-blue-secondary), 0 0 20px var(--neon-blue-secondary);
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
    height: auto;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-nav {
    justify-content: center;
  }

  .footer-container {
    padding: 0 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
