:root {
  --primary-color: #0056B3;
  --secondary-color: #FFD700;
  --neon-primary-base: #007bff; /* Brighter blue */
  --neon-secondary-base: #ffc107; /* Brighter gold */
  --neon-accent-base: #dc3545; /* Vibrant red */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --header-offset: 155px; /* Desktop: 45px marquee + 60px header-top + 50px main-nav */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #e0e0e0;
  background-color: var(--dark-bg-1);
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

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

/* Neon Glow Animations */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary-base);
    box-shadow: 
      0 0 10px var(--neon-primary-base),
      0 0 20px var(--neon-primary-base),
      inset 0 0 10px rgba(0, 123, 255, 0.3);
  }
  33% {
    border-color: var(--neon-secondary-base);
    box-shadow: 
      0 0 10px var(--neon-secondary-base),
      0 0 20px var(--neon-secondary-base),
      inset 0 0 10px rgba(255, 193, 7, 0.3);
  }
  66% {
    border-color: var(--neon-accent-base);
    box-shadow: 
      0 0 10px var(--neon-accent-base),
      0 0 20px var(--neon-accent-base),
      inset 0 0 10px rgba(220, 53, 69, 0.3);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow: 
      0 0 5px var(--neon-primary-base),
      0 0 10px var(--neon-primary-base),
      0 0 15px var(--neon-primary-base);
    color: #ffffff;
  }
  50% {
    text-shadow: 
      0 0 5px var(--neon-secondary-base),
      0 0 10px var(--neon-secondary-base),
      0 0 15px var(--neon-secondary-base);
    color: #ffffff;
  }
  100% {
    text-shadow: 
      0 0 5px var(--neon-accent-base),
      0 0 10px var(--neon-accent-base),
      0 0 15px var(--neon-accent-base);
    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, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary-base),
    0 0 20px var(--neon-primary-base),
    0 0 30px var(--neon-primary-base),
    inset 0 0 20px rgba(0, 123, 255, 0.1);
  z-index: 1001;
  height: 45px; /* Fixed height for calculation */
}

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

.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-primary-base),
    0 0 10px var(--neon-primary-base),
    0 0 15px var(--neon-primary-base);
  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;
  padding-right: 30px; /* Ensure content loops smoothly */
}

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

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

/* Header Section */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  box-shadow: 
    0 0 15px rgba(0, 123, 255, 0.5),
    0 0 30px rgba(0, 123, 255, 0.3),
    inset 0 0 10px rgba(0, 123, 255, 0.1);
}

.site-header .header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary-base),
    0 0 20px var(--neon-primary-base),
    0 0 30px var(--neon-primary-base),
    inset 0 0 20px rgba(0, 123, 255, 0.1);
  min-height: 60px; /* Fixed height for calculation */
  display: flex;
  align-items: center;
}

.site-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.site-header .logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  padding: 0;
  margin: 0;
  display: block;
  /* LOGO NO NEON EFFECT */
  text-shadow: none;
  box-shadow: none;
  filter: none;
  animation: none;
}

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

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

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

.site-header .main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Slightly different dark gradient */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Different animation for contrast */
  box-shadow: 
    0 0 10px var(--neon-secondary-base),
    0 0 20px var(--neon-secondary-base),
    0 0 30px var(--neon-secondary-base),
    inset 0 0 20px rgba(255, 193, 7, 0.1);
  min-height: 50px; /* Fixed height for calculation */
  display: flex; /* Desktop default: visible, horizontal */
  align-items: center;
  flex-direction: row;
  position: static; /* Desktop default */
}

.site-header .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  gap: 25px;
}

.site-header .nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  /* Regular styling, no neon for nav links */
  text-shadow: none;
  box-shadow: none;
  filter: none;
  animation: none;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--secondary-color);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
}

/* Button Styling */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary-base), var(--neon-secondary-base));
  padding: 12px 25px;
  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-base);
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  line-height: 1.2;
}

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

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger-icon {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Neon glow for hamburger */
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Neon glow for hamburger */
}

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

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

.hamburger-menu.active .hamburger-icon {
  background-color: transparent;
  animation: none;
  box-shadow: none;
  text-shadow: none;
}

.hamburger-menu.active .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger-menu.active .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer Section */
.site-footer {
  background-color: #111111;
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.site-footer .footer-col {
  margin-bottom: 20px;
}

.site-footer .footer-logo {
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

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

.site-footer .footer-heading {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.site-footer .footer-nav a:hover {
  color: var(--secondary-color);
}

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

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

.site-footer .game-providers-section,
.site-footer .social-media-section {
  margin-bottom: 30px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.site-footer .game-providers-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.site-footer .footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  margin-top: 20px;
}

.site-footer .copyright {
  margin: 0;
  color: #aaaaaa;
}

.site-footer .compliance-links {
  margin-top: 10px;
}

.site-footer .compliance-links a {
  color: #aaaaaa;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .marquee-section {
    height: 40px; /* Adjust marquee height for mobile */
    padding: 0;
  }
  .marquee-container {
    padding: 0 10px;
    gap: 10px;
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .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;
  }

  .site-header {
    top: 40px; /* Marquee height for mobile */
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    box-shadow: 
      0 0 10px rgba(0, 123, 255, 0.4),
      0 0 20px rgba(0, 123, 255, 0.2),
      inset 0 0 8px rgba(0, 123, 255, 0.1);
  }

  .site-header .header-top {
    min-height: 60px;
    height: auto;
  }

  .site-header .header-container {
    padding: 0 15px;
    height: 60px;
    justify-content: space-between; /* Keep space-between for hamburger and logo */
  }

  .hamburger-menu {
    display: block;
    order: 0; /* Left side */
    margin-right: 15px; /* Space between hamburger and logo */
  }

  .site-header .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-right: 45px; /* Offset for hamburger on the left */
    font-size: 20px;
  }
  
  .site-header .logo img {
    max-height: 40px !important;
  }

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

  .site-header .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    overflow: hidden;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    background-color: var(--dark-bg-1);
    border-bottom: 1px solid #333;
    min-height: 40px; /* Fixed height for calculation */
  }

  .site-header .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Account for gap */
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }

  .site-header .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 145px; /* Marquee (40px) + Header Top (60px) + Mobile Buttons (40px) */
    left: 0;
    width: 250px;
    height: calc(100% - 145px); /* Adjust height to fill remaining viewport */
    background: linear-gradient(180deg, var(--dark-bg-3), var(--dark-bg-1));
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
  }

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

  .site-header .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    width: 100%;
    max-width: none;
    height: auto;
  }

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

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer .footer-col:first-child {
    margin-bottom: 0;
  }

  .site-footer .footer-col {
    text-align: center;
  }

  .site-footer .footer-logo {
    margin-bottom: 10px;
  }

  .site-footer .footer-description {
    margin-bottom: 20px;
  }

  .site-footer .payment-methods, .site-footer .game-providers-section, .site-footer .social-media-section {
    text-align: center;
  }
  .site-footer .payment-icons, .site-footer .game-providers-icons, .site-footer .social-media-icons {
    justify-content: center;
  }
}

/* Mobile content overflow prevention */
@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;
  }
}
