:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;

  /* Neon colors derived from theme, for dynamic effects */
  --neon-theme-1: #00FFFF; /* Bright Cyan from Primary */
  --neon-theme-2: #FF69B4; /* Bright Pink */
  --neon-theme-3: #00FF00; /* Bright Green */
  --neon-theme-4: #FFFF00; /* Bright Yellow */
  --neon-theme-5: #FF00FF; /* Bright Magenta */
  
  /* Header offset values */
  --header-offset: 155px; /* Desktop: Marquee(45) + HeaderTop(60) + MainNav(50) */
}

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

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: var(--dark-bg-1);
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--neon-theme-1);
}

ul {
  list-style: none;
}

/* Neon animations */
@keyframes theme-colors-glow {
  0%, 100% {
    border-color: var(--neon-theme-1);
    box-shadow: 
      0 0 10px var(--neon-theme-1),
      0 0 20px var(--neon-theme-1);
  }
  33% {
    border-color: var(--neon-theme-2);
    box-shadow: 
      0 0 10px var(--neon-theme-2),
      0 0 20px var(--neon-theme-2);
  }
  66% {
    border-color: var(--neon-theme-3);
    box-shadow: 
      0 0 10px var(--neon-theme-3),
      0 0 20px var(--neon-theme-3);
  }
}

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

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

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  color: var(--secondary-color);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors-glow 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-theme-1),
    0 0 20px var(--neon-theme-1),
    0 0 30px var(--neon-theme-1),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  z-index: 1001;
  height: 45px; /* Fixed height for desktop */
}

.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: 24px;
  height: 24px;
  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-theme-1),
    0 0 10px var(--neon-theme-1),
    0 0 15px var(--neon-theme-1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%; /* Ensure wrapper takes full height to center content */
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  gap: 30px;
  height: 100%; /* Ensure content takes full height for vertical centering */
}

.marquee-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  text-shadow: 
    0 0 5px var(--neon-theme-1),
    0 0 10px var(--neon-theme-1),
    0 0 15px var(--neon-theme-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-theme-1),
    0 0 20px var(--neon-theme-1),
    0 0 30px var(--neon-theme-1),
    0 0 40px var(--neon-theme-1);
  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-theme-1),
    0 0 6px var(--neon-theme-1);
}

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

/* Header Section */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Stack header-top and main-nav */
}

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

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* LOGO is NOT neon */
  text-decoration: none;
  display: block; /* Ensure it's not inline for layout */
  padding: 0;
  margin: 0;
}

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

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

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

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

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors-glow 4s ease-in-out infinite reverse; /* Different animation for contrast */
  box-shadow: 
    0 0 10px var(--neon-theme-5), /* Magenta/Pinkish glow for nav */
    0 0 20px var(--neon-theme-5),
    0 0 30px var(--neon-theme-5),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
  min-height: 50px;
  display: flex; /* Desktop default: visible, horizontal */
  align-items: center;
  width: 100%;
}

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

.nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
  text-transform: uppercase; /* Match neon style */
  font-size: 15px;
}

.nav-link:hover {
  color: var(--neon-theme-1);
  text-shadow: 0 0 5px var(--neon-theme-1);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above other header elements */
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--secondary-color);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px var(--neon-theme-1); /* Neon glow for hamburger bars */
}

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

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

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

.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-color: rgba(0, 0, 0, 0.7);
  z-index: 999; /* Below menu, above content */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer Section */
.site-footer {
  background: var(--dark-bg-1);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 20px;
  font-size: 14px;
}

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

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

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.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;
}

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

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

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

.footer-nav-list 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; /* Consistent gap for all icon sections */
  width: 100%;
}

.payment-icons img, .game-providers-icons img, .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;
}

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

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

.game-providers-section, .social-media-section {
  margin-top: 20px;
  text-align: center; /* Center section titles */
}

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

.game-providers-icons, .social-media-icons {
    justify-content: center; /* Center icons within their section */
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

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

  /* Header */
  .site-header {
    top: 30px; /* Marquee height for mobile */
  }
  
  .header-top {
    min-height: 50px; /* Smaller height for mobile */
  }
  
  .header-container {
    padding: 10px 15px;
    max-width: none; /* Mobile container fills width */
    width: 100%;
    justify-content: space-between; /* Hamburger left, Logo center */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 0; /* Leftmost */
  }

  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 22px;
    order: 1; /* Center */
    max-width: calc(100% - 60px); /* Adjust max-width to not overlap hamburger */
  }

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

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px; /* Adjust padding for mobile */
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one row */
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 1px solid;
    animation: theme-colors-glow 4s ease-in-out infinite;
    box-shadow: 
      0 0 5px var(--neon-theme-4),
      0 0 10px var(--neon-theme-4);
    min-height: 45px; /* Height for mobile buttons section */
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Below marquee and mobile buttons */
    left: 0;
    width: 75%; /* Slide-in menu width */
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Ensure menu is above overlay */
    padding: 20px 0;
    border-right: 2px solid;
    animation: theme-colors-glow 4s ease-in-out infinite reverse;
    box-shadow: 
      0 0 10px var(--neon-theme-5),
      0 0 20px var(--neon-theme-5);
  }

  .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: 0 15px;
    max-width: none; /* Mobile container fills width */
    width: 100%;
  }

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

  .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Prevent content overflow on mobile */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 0 15px;
  }
  .footer-col {
    align-items: center; /* Center footer columns */
    text-align: center;
  }
  .footer-description {
    max-width: 90%; /* Limit description width for better readability */
  }
  .payment-icons, .game-providers-icons, .social-media-icons {
    justify-content: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
