:root {
  /* Site colors */
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --accent-color-red: #C30808;
  --accent-color-yellow: #FFFF00;

  /* Neon colors for dynamic effects */
  --neon-primary: #39FF14; /* Bright Green */
  --neon-secondary: #00FFFF; /* Cyan */
  --neon-accent: #FF00FF; /* Magenta */
  --neon-alt-1: #FFFF00; /* Bright Yellow */
  --neon-alt-2: #FF0000; /* Bright Red */

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff; /* Default text color for dark backgrounds */
  background-color: #121212; /* Dark background for the page */
  overflow-x: hidden; /* Prevent horizontal scroll */
  line-height: 1.5;
}

/* Base container styles */
.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Animations for dynamic neon colors */
@keyframes rainbow-border {
  0% { border-color: var(--neon-alt-2); box-shadow: 0 0 10px var(--neon-alt-2), 0 0 20px var(--neon-alt-2); }
  16.6% { border-color: var(--neon-alt-1); box-shadow: 0 0 10px var(--neon-alt-1), 0 0 20px var(--neon-alt-1); }
  33.3% { border-color: var(--neon-primary); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  50% { border-color: var(--neon-secondary); box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary); }
  66.6% { border-color: var(--neon-accent); box-shadow: 0 0 10px var(--neon-accent), 0 0 20px var(--neon-accent); }
  83.3% { border-color: var(--neon-alt-2); box-shadow: 0 0 10px var(--neon-alt-2), 0 0 20px var(--neon-alt-2); }
  100% { border-color: var(--neon-alt-2); box-shadow: 0 0 10px var(--neon-alt-2), 0 0 20px var(--neon-alt-2); }
}

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

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

.marquee-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px 20px; /* Adjust padding to match height */
  height: 100%;
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; /* Smaller icon */
  height: 30px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 20px; /* Smaller font size */
  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), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-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%;
}

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

/* Header Section */
.site-header {
  position: fixed;
  top: 45px; /* Below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.site-header .header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
  box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), inset 0 0 10px rgba(255, 255, 255, 0.1);
  padding: 15px 0; /* Adjust padding to match height */
  min-height: 60px; /* Desktop height */
  display: flex;
  align-items: center;
}

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

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* Regular color, not neon */
  text-decoration: none;
  /* NO NEON EFFECTS ON LOGO */
}

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

.site-header .btn {
  position: relative;
  background: linear-gradient(135deg, var(--accent-color-red), var(--accent-color-red)); /* Use custom red for background */
  padding: 12px 25px;
  color: var(--accent-color-yellow); /* Use custom yellow for text */
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
  text-shadow: 0 0 5px var(--accent-color-yellow), 0 0 10px var(--accent-color-yellow); /* Yellow text glow */
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

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

.site-header .main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: rainbow-border 6s linear infinite; /* Dynamic rainbow border */
  box-shadow: 0 0 10px var(--neon-alt-2), 0 0 20px var(--neon-alt-2), inset 0 0 10px rgba(255, 0, 0, 0.1);
  padding: 10px 0; /* Adjust padding to match height */
  min-height: 50px; /* Desktop height */
  display: flex;
  flex-direction: row;
  align-items: center;
  box-sizing: border-box;
}

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

.site-header .nav-link {
  color: var(--secondary-color); /* Regular color for nav links */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-header .nav-link:hover {
  color: var(--neon-primary); /* Hover with neon color */
  text-shadow: 0 0 5px var(--neon-primary);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
}

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

.mobile-menu-overlay {
  display: none;
}

/* Footer Section */
.site-footer {
  background-color: #1a1a2e; /* Dark background for footer */
  color: #cccccc;
  font-size: 14px;
  padding-top: 40px;
}

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

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

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

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

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

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

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

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

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

.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; /* Consistent gap for all icon sections */
  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;
  object-fit: contain;
}

.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 .game-providers-section,
.site-footer .social-media-section {
  width: 100%;
}

.site-footer .footer-bottom {
  padding: 20px 0;
}

.site-footer .footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer .copyright {
  margin: 0;
  line-height: 1.5;
}

.site-footer .footer-legal-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Marquee Mobile */
  .marquee-section {
    height: 40px; /* Mobile height */
    padding: 0 !important;
  }
  .marquee-container {
    gap: 10px !important;
    padding: 0 5px;
  }
  .marquee-icon {
    width: 25px !important;
    height: 25px !important;
  }
  .marquee-icon-emoji {
    font-size: 16px !important;
  }
  .marquee-text {
    font-size: 13px !important;
  }
  .marquee-separator {
    font-size: 13px !important;
    margin: 0 10px !important;
  }
  .marquee-content {
    gap: 20px;
    animation: marquee-scroll 25s linear infinite;
  }

  /* Header Mobile */
  .site-header {
    top: 40px; /* Below mobile marquee */
  }

  .site-header .header-top {
    position: relative; /* For absolute positioning of hamburger */
    padding: 10px 0; /* Adjust padding to match height */
    min-height: 50px; /* Mobile height */
    display: flex;
    justify-content: center; /* Center logo */
    align-items: center;
  }

  .site-header .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Important for mobile */
    display: flex;
    justify-content: center; /* Center logo within its container */
    align-items: center;
  }

  /* Hamburger Menu */
  .hamburger-menu {
    display: flex;
    position: absolute; /* Absolute position to left */
    left: 15px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Above logo */
    flex-shrink: 0;
  }

  .hamburger-menu span {
    background-color: var(--neon-primary); /* Neon color for hamburger */
    box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
  }

  .site-header .logo {
    flex: 1 !important; /* Allow logo to take available space */
    display: flex !important; /* Use flex to center its content */
    justify-content: center !important; /* Center text horizontally */
    align-items: center !important; /* Center text vertically */
    font-size: 24px;
    max-width: calc(100% - 60px); /* Ensure it doesn't overlap hamburger */
    text-align: center; /* Fallback for text logo */
  }

  /* Mobile Nav Buttons */
  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .mobile-nav-buttons {
    display: flex !important; /* Always show mobile buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background for buttons */
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
    box-shadow: 0 0 8px var(--neon-primary), 0 0 15px var(--neon-primary);
    min-height: 45px; /* Mobile button height */
  }

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

  /* Main Navigation Mobile */
  .site-header .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 135px; /* Below header-top and mobile buttons */
    left: 0;
    width: 80%; /* Menu slides in from left */
    max-width: 300px;
    height: calc(100vh - 135px); /* Full height below header */
    background: linear-gradient(135deg, #16213e, #0f3460); /* Darker background for menu */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Above overlay, below hamburger */
    border-right: 2px solid;
    animation: rainbow-border 6s linear infinite; /* Dynamic rainbow border */
    box-shadow: 0 0 10px var(--neon-alt-2), 0 0 20px var(--neon-alt-2);
    overflow-y: auto; /* Enable scrolling for long menus */
    padding: 20px 0;
  }

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

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

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

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

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

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

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer Mobile */
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .site-footer .footer-bottom .footer-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

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

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