:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;

  /* Neon base colors - derived from primary/secondary but made vibrant */
  --neon-cyan: #00FFFF; /* Vibrant blue/cyan, close to primary */
  --neon-magenta: #FF00FF; /* Vibrant pink/purple */
  --neon-yellow: #FFFF00; /* Vibrant yellow */
  --neon-red: #FF3366; /* Vibrant pinkish-red */
  --neon-green: #39FF14; /* Vibrant green */

  /* Dark backgrounds for neon theme */
  --dark-bg-1: #0a0a0a; /* Deep black */
  --dark-bg-2: #1a1a2e; /* Dark blue-purple */
  --dark-bg-3: #16213e; /* Darker blue-purple */

  /* For theme-flow animation, use a sequence of vibrant neon colors */
  --theme-flow-color-1: var(--neon-cyan);
  --theme-flow-color-2: var(--neon-magenta);
  --theme-flow-color-3: var(--neon-yellow);

  /* Header Offsets */
  --marquee-height-desktop: 45px;
  --marquee-height-mobile: 30px;
  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 50px;
  --mobile-header-top-height: 50px;
  --mobile-nav-buttons-height: 50px;

  --header-offset: calc(var(--marquee-height-desktop) + var(--header-top-height-desktop) + var(--main-nav-height-desktop)); /* Marquee + HeaderTop + MainNav */
}

@media (max-width: 768px) {
  :root {
    --header-offset: calc(var(--marquee-height-mobile) + var(--mobile-header-top-height) + var(--mobile-nav-buttons-height)); /* Marquee + HeaderTop + MobileButtons */
  }
}

/* Global Resets & Body */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--dark-bg-1);
  color: #ffffff;
  padding-top: var(--header-offset);
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

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

@keyframes text-glow-flow {
  0% {
    text-shadow: 0 0 5px var(--theme-flow-color-1), 0 0 10px var(--theme-flow-color-1), 0 0 15px var(--theme-flow-color-1);
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 5px var(--theme-flow-color-2), 0 0 10px var(--theme-flow-color-2), 0 0 15px var(--theme-flow-color-2);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px var(--theme-flow-color-3), 0 0 10px var(--theme-flow-color-3), 0 0 15px var(--theme-flow-color-3);
    color: #ffffff;
  }
}

@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: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--theme-flow-color-1),
    0 0 20px var(--theme-flow-color-1),
    0 0 30px var(--theme-flow-color-1),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  z-index: 1001;
  height: var(--marquee-height-desktop);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

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

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  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;
  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;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.marquee-text:hover {
  text-shadow: 
    0 0 10px var(--theme-flow-color-1),
    0 0 20px var(--theme-flow-color-1),
    0 0 30px var(--theme-flow-color-1),
    0 0 40px var(--theme-flow-color-1);
  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(--theme-flow-color-1),
    0 0 6px var(--theme-flow-color-1);
}

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

/* Site Header */
.site-header {
  position: fixed;
  top: var(--marquee-height-desktop);
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark-bg-1); /* Fallback */
}

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

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

.logo {
  color: var(--secondary-color); /* Regular color, no neon */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  padding: 5px 0;
  flex-shrink: 0;
}

/* LOGO DOES NOT USE NEON EFFECTS */
.logo:hover {
  color: var(--primary-color); /* Simple hover effect */
}

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

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

/* Main Navigation */
.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 4s ease-in-out infinite reverse;
  box-shadow: 
    0 0 10px var(--theme-flow-color-2),
    0 0 20px var(--theme-flow-color-2),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
  padding: 10px 0;
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  justify-content: center;
  align-items: center;
  min-height: var(--main-nav-height-desktop);
}

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

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

.nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--primary-color);
}

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  padding: 10px 20px;
  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-cyan);
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s; /* hover时加快颜色变化速度 */
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 15px var(--theme-flow-color-1),
    0 0 30px var(--theme-flow-color-1),
    inset 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Hamburger Menu (Mobile) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: relative;
  z-index: 1002; /* Above logo and overlay */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-cyan);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan);
}

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

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

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

.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;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Footer */
.site-footer {
  background-color: var(--dark-bg-1);
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  border-top: 2px solid var(--primary-color); /* Regular border, no neon */
}

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

.footer-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

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

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

.footer-col ul li a {
  color: #cccccc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

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

.footer-description {
  color: #aaaaaa;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888888;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Marquee */
  .marquee-section {
    height: var(--marquee-height-mobile);
    padding: 0 5px;
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .marquee-icon-emoji {
    font-size: 14px;
  }
  .marquee-text {
    font-size: 12px;
    line-height: 1.3;
  }
  .marquee-separator {
    font-size: 12px;
    margin: 0 5px;
  }
  .marquee-content {
    gap: 15px;
    animation-duration: 25s;
  }

  /* Header */
  .site-header {
    top: var(--marquee-height-mobile);
  }
  .header-top {
    padding: 5px 0;
    min-height: var(--mobile-header-top-height);
  }
  .header-container {
    padding: 0 15px;
    flex-wrap: nowrap;
    position: relative; /* For absolute positioning of logo if needed */
    min-height: var(--mobile-header-top-height);
  }

  .hamburger-menu {
    display: flex;
    order: 0;
    margin-right: auto; /* Push logo to center */
  }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    padding: 0; /* Remove padding for better centering */
    text-align: center;
    max-width: calc(100% - 60px); /* Account for hamburger width */
  }
  .logo img {
    max-height: 35px; /* Adjust for mobile */
  }

  .desktop-nav-buttons {
    display: none;
  }

  .mobile-nav-buttons {
    display: flex !important;
    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 row */
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 
      0 0 8px var(--theme-flow-color-3),
      0 0 15px var(--theme-flow-color-3),
      inset 0 0 10px rgba(255, 255, 0, 0.1);
    min-height: var(--mobile-nav-buttons-height);
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* 50% width minus half of 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 marquee and mobile buttons */
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset));
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    justify-content: flex-start; /* Align menu items to top */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    box-shadow: 
      0 0 10px var(--theme-flow-color-2),
      0 0 20px var(--theme-flow-color-2),
      inset 0 0 20px rgba(255, 0, 255, 0.1);
    z-index: 1000; /* Above overlay */
  }

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

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

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

  /* Footer */
  .footer-row {
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col ul {
    text-align: center;
  }
  .footer-col ul li a {
    display: inline-block;
  }
  .footer-description {
    text-align: center;
  }
  .payment-methods, .game-providers-section, .social-media-section {
    text-align: center;
  }
  .payment-icons, .game-providers-icons, .social-media-icons {
    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;
  }
}

/* Utility for no scroll on body */
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;
  }
}
