:root {
  --primary-color: #017439; /* Green */
  --secondary-color: #FFFFFF; /* White */
  --accent-color: #FFFF00; /* Yellow for text glow */
  --button-bg-color: #C30808; /* Red for buttons */
  --button-text-color: #FFFF00; /* Yellow for button text */

  /* Neon palette for Header/Marquee */
  --neon-dark-bg-1: #0a0a0a;
  --neon-dark-bg-2: #1a1a2e;
  --neon-dark-bg-3: #16213e;
  --neon-glow-primary: #00ff00; /* Greenish glow, adapting to primary */
  --neon-glow-secondary: #00ffff; /* Cyan glow, contrasting */
  --neon-glow-accent: #ff00ff; /* Magenta glow, contrasting */

  --header-offset: 155px; /* Desktop: Marquee (45px) + Header Top (60px) + Main Nav (50px) */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 135px; /* Mobile: Marquee (30px) + Header Top (50px) + Mobile Buttons (55px) */
  }
}

/* Base Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Apply header offset to body */
  background-color: var(--secondary-color); /* Page background is white */
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent body overflow */
}

body.no-scroll {
  overflow: hidden;
}

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

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

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

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

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

/* Marquee Section Styles */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--neon-dark-bg-1), var(--neon-dark-bg-2), var(--neon-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-glow-primary),
    0 0 20px var(--neon-glow-primary),
    0 0 30px var(--neon-glow-primary),
    inset 0 0 20px rgba(0, 255, 0, 0.1); /* Greenish tint for inner glow */
  z-index: 1001;
  height: 45px; /* Fixed height for desktop */
  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: 30px; /* Adjusted for desktop */
  height: 30px; /* Adjusted for desktop */
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 20px; /* Adjusted for desktop */
  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-primary),
    0 0 10px var(--neon-glow-primary),
    0 0 15px var(--neon-glow-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

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

.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;
  height: 100%; /* Ensure content fills wrapper height */
  line-height: 1; /* Adjust line height to fit */
}

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

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

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

/* Header Styles */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--neon-dark-bg-1), var(--neon-dark-bg-2), var(--neon-dark-bg-3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  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, 255, 0, 0.1); /* Greenish tint */
}

.header-top {
  display: flex;
  align-items: center;
  padding: 10px 0;
  min-height: 40px; /* Base height for header-top content */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Inner padding for logo and buttons */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* White, regular style */
  text-transform: uppercase;
  /* NO neon effects for logo */
}

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

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

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

.btn {
  position: relative;
  padding: 10px 20px; /* Adjusted for desktop */
  color: var(--button-text-color); /* Yellow */
  background: var(--button-bg-color); /* Red */
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic glow for buttons */
  box-shadow: 
    0 0 10px var(--neon-glow-primary),
    0 0 20px var(--neon-glow-primary),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
  text-shadow: 
    0 0 5px var(--button-text-color),
    0 0 10px var(--button-text-color); /* Yellow text glow */
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.main-nav {
  display: flex; /* Visible on desktop */
  background: linear-gradient(135deg, #1a1a2e, #0f3460, #16213e); /* Different dark gradient for nav */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-glow-secondary), /* Cyan glow */
    0 0 20px var(--neon-glow-secondary),
    0 0 30px var(--neon-glow-secondary),
    inset 0 0 20px rgba(0, 255, 255, 0.1); /* Cyan tint */
  padding: 10px 0;
  min-height: 30px; /* Base height for nav content */
}

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

.nav-link {
  color: var(--secondary-color); /* White, regular style */
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--primary-color); /* Green on hover */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002;
  flex-shrink: 0;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic glow for hamburger */
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff; /* White glow for lines */
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 10px; }
.hamburger-menu span:nth-child(3) { top: 20px; }

/* 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 menu, above content */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer Styles */
.site-footer {
  background-color: #1a1a1a; /* Dark background for footer */
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-top-grid {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid for 4 columns */
  gap: 30px;
  padding: 0 20px;
}

.footer-col h4 {
  color: var(--primary-color); /* Green headings */
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color); /* Green logo for footer */
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word; /* Ensure full display and wrapping */
  overflow-wrap: break-word;
}

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

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

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

.payment-methods .payment-icons,
.game-providers-section .game-providers-icons,
.social-media-section .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-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(150%); /* For better visibility on dark background, adjust as needed */
  transition: filter 0.3s ease;
}

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

.footer-middle-sections {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

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

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

.footer-bottom .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.copyright {
  margin: 0;
  color: #999999;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-legal-links a {
  color: #999999;
  transition: color 0.3s ease;
}

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


/* Responsive Styles */
@media (max-width: 768px) {
  /* Marquee Mobile */
  .marquee-section {
    height: 30px; /* Mobile fixed height */
    top: 0; /* Ensure it stays at top */
  }
  .marquee-container {
    gap: 10px;
    padding: 0 10px;
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .marquee-icon-emoji {
    font-size: 14px;
  }
  .marquee-text {
    font-size: 13px;
  }
  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 20px;
    animation-duration: 25s;
  }

  /* Header Mobile */
  .site-header {
    top: 30px; /* Marquee mobile height */
    box-shadow: 
      0 0 5px var(--neon-glow-primary),
      0 0 10px var(--neon-glow-primary);
  }

  .header-top {
    padding: 10px 15px; /* Smaller padding for mobile */
    min-height: 40px; /* Adjusted min-height for mobile */
  }

  .header-container {
    padding: 0; /* Remove inner padding, controlled by outer padding */
    width: 100%;
    max-width: none; /* Ensure full width */
    justify-content: flex-start; /* Align hamburger to start */
    gap: 10px;
  }
  
  .hamburger-menu {
    display: block; /* Visible on mobile */
    order: -1; /* Place hamburger first */
    margin-right: 10px;
  }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    margin-right: 40px; /* Push logo to center, considering hamburger */
  }

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

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

  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px; /* Padding for the button container */
    overflow: hidden;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    background: linear-gradient(135deg, var(--neon-dark-bg-1), var(--neon-dark-bg-2)); /* Dark background for mobile buttons */
    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, 255, 0, 0.1);
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Below fixed header and mobile buttons */
    left: 0;
    width: 70%; /* Side menu width */
    height: calc(100% - var(--header-offset));
    background: linear-gradient(180deg, var(--neon-dark-bg-2), var(--neon-dark-bg-3)); /* Dark background for side menu */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Above overlay */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    color: var(--secondary-color); /* White, regular style */
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 30px 0 15px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    padding: 0 15px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h4 {
    margin-bottom: 10px;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-bottom .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 0 15px;
  }
  .footer-legal-links {
    justify-content: center;
  }

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