:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #FFFFFF;
  --text-color-dark: #000000;

  /* Neon specific colors - vibrant for glowing effects */
  --neon-primary-glow: #00FFFF; /* Cyan */
  --neon-secondary-glow: #FF00FF; /* Magenta */
  --neon-accent-glow: #FFFF00; /* Yellow */
  --neon-border-glow: #FF6600; /* Orange for borders */

  /* Header offset values */
  --header-offset: 155px; /* Desktop: Marquee 45px + HeaderTop 60px + MainNav 50px */
}

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

/* Base styles for the body to prevent content from being hidden by fixed header */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #f0f0f0;
  background-color: #1a1a2e; /* Dark background for overall site */
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scrolling on body */
}

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

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

@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 Styles */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px; /* Fixed height for desktop */
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: var(--secondary-color);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary-glow),
    0 0 20px var(--neon-primary-glow),
    0 0 30px var(--neon-primary-glow),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  z-index: 1001;
  display: flex; /* For vertical centering of content */
  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; /* Adjusted padding */
}

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

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

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

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

/* Header Section Styles */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: var(--secondary-color);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-border-glow),
    0 0 20px var(--neon-border-glow),
    0 0 30px var(--neon-border-glow),
    inset 0 0 20px rgba(255, 102, 0, 0.1);
}

.header-top {
  width: 100%;
  height: 60px; /* Fixed height for desktop */
  display: flex;
  align-items: center;
  padding: 0;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Ensure dark background */
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Regular color, no neon glow */
  text-decoration: none;
  order: 1; /* For desktop positioning */
  display: block; /* Ensure it's not hidden */
}

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

/* Desktop navigation buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  order: 3; /* For desktop positioning */
}

/* Mobile navigation buttons (hidden on desktop) */
.mobile-nav-buttons {
  display: none; /* Hidden by default on desktop */
}

/* Main Navigation (desktop) */
.main-nav {
  width: 100%;
  display: flex; /* Default to flex for desktop */
  flex-direction: row; /* Default to row for desktop */
  justify-content: center;
  align-items: center;
  height: 50px; /* Fixed height for desktop */
  background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a); /* Different dark gradient */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Different animation direction */
  box-shadow: 
    0 0 8px var(--neon-primary-glow),
    0 0 15px var(--neon-primary-glow),
    0 0 25px var(--neon-primary-glow),
    inset 0 0 15px rgba(0, 255, 255, 0.05);
}

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

.nav-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-primary-glow); /* Highlight with neon color */
  text-shadow: 0 0 8px var(--neon-primary-glow), 0 0 15px var(--neon-primary-glow);
}

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002; /* Above logo and menu */
  order: 0; /* For mobile positioning */
}

.hamburger-icon {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--neon-primary-glow);
  margin-bottom: 6px;
  position: relative;
  transform-origin: 4px 0px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary-glow), 0 0 10px var(--neon-primary-glow);
}

.hamburger-icon:first-child {
  margin-top: 0;
}

.hamburger-icon:last-child {
  margin-bottom: 0;
}

/* Hamburger menu active state (X icon) */
.hamburger-menu.active .hamburger-icon:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: var(--neon-secondary-glow);
}
.hamburger-menu.active .hamburger-icon:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .hamburger-icon:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: var(--neon-secondary-glow);
}

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--login-color)); /* Use primary and login colors */
  padding: 12px 25px;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow: 
    0 0 5px var(--secondary-color),
    0 0 10px var(--primary-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-primary-glow),
    0 0 30px var(--neon-primary-glow),
    0 0 45px var(--neon-primary-glow),
    inset 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Mobile Menu Overlay */
.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 */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer Styles */
.site-footer {
  background: #0d1a2f; /* Dark background, no neon */
  color: #c0c0c0;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

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

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

.footer-col h4 {
  color: var(--primary-color);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

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

.footer-nav-list a {
  color: #c0c0c0;
  text-decoration: none;
  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;
  object-fit: contain;
}

.footer-middle-area {
  padding: 30px 0;
}

.game-providers-section,
.social-media-section {
  margin-bottom: 20px; /* Space between game providers and social media */
}

.game-providers-section:last-child,
.social-media-section:last-child {
  margin-bottom: 0;
}

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

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

.copyright {
  margin: 0;
  color: #a0a0a0;
  text-align: center;
  flex-grow: 1; /* Allow it to take available space */
}

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

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

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Marquee Mobile */
  .marquee-section {
    height: 45px; /* Keep consistent height for offset calculation */
    padding: 0px 2px;
  }
  
  .marquee-container {
    gap: 10px;
    padding: 0px 5px;
  }
  
  .marquee-icon {
    width: 25px;
    height: 25px;
  }
  
  .marquee-icon-emoji {
    font-size: 16px;
  }
  
  .marquee-text {
    font-size: 13px;
  }
  
  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  
  .marquee-content {
    gap: 20px;
    animation: marquee-scroll 25s linear infinite;
  }

  /* Header Mobile */
  .site-header {
    top: 45px; /* Marquee height */
    height: auto; /* Allow height to adjust for mobile buttons */
  }

  .header-top {
    height: 80px; /* Taller for mobile to accommodate logo and hamburger */
    padding: 0 15px;
  }

  .header-container {
    padding: 0;
    max-width: none; /* Mobile container fills width */
    width: 100%;
    justify-content: space-between; /* Hamburger left, Logo center */
    position: relative; /* For logo absolute positioning if needed */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 0;
    position: relative;
    z-index: 1002;
  }

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

  .logo img {
    max-height: 40px !important; /* Adjust logo image size */
  }

  .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; /* Padding around buttons */
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Match header-top background */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 
      0 0 10px var(--neon-border-glow),
      0 0 20px var(--neon-border-glow),
      0 0 30px var(--neon-border-glow),
      inset 0 0 20px rgba(255, 102, 0, 0.1);
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 199px; /* Marquee + HeaderTop + MobileNavButtons height */
    left: 0;
    width: 70%; /* Slide-in menu width */
    height: calc(100% - 199px); /* Full height below header */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1000; /* Above overlay */
    background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a); /* Match desktop main-nav */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    box-shadow: 
      0 0 8px var(--neon-primary-glow),
      0 0 15px var(--neon-primary-glow),
      0 0 25px var(--neon-primary-glow),
      inset 0 0 15px rgba(0, 255, 255, 0.05);
    overflow-y: auto; /* Allow scrolling if menu content is long */
  }

  .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;
    gap: 15px;
    padding: 0;
    width: 100%;
    max-width: none;
  }

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

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

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

  /* Footer Mobile */
  .site-footer .footer-top-area .footer-container {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

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

  .footer-legal-nav {
    flex-direction: column;
    gap: 8px;
  }
}

/* No scroll for body when mobile menu is open */
body.no-scroll {
  overflow: 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;
  }
}
