:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --neon-primary: #39FF14; /* Vibrant Green */
  --neon-secondary: #00FFFF; /* Vibrant Cyan */
  --neon-accent: #FF00FF; /* Vibrant Magenta */
  --neon-border-top: #FFFF00; /* Neon Yellow for header-top border */
  --neon-border-nav: #FF0000; /* Neon Red for main-nav border */
  --header-offset: 155px; /* Desktop: Marquee(45) + Header-top(60) + Main-nav(50) */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 125px; /* Mobile: Marquee(25) + Header-top(50) + Mobile-nav-buttons(50) */
  }
}

/* Base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #1a1a1a;
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

/* Global animations for neon effects */
@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 rainbow-border {
  0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
  16.6% { border-color: #ff8000; box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000; }
  33.3% { border-color: #ffff00; box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
  50% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
  66.6% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff; }
  83.3% { border-color: #8000ff; box-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff; }
  100% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
}

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

/* Marquee Section Styles */
.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; /* 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: 40px;
  height: 40px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 24px;
  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));
}

@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%;
}

.marquee-text {
  font-size: 16px;
  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: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 15px;
  text-shadow: 
    0 0 3px var(--neon-primary),
    0 0 6px var(--neon-primary);
}

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

/* Header Section Styles */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
}

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

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

.site-header .logo {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

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

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

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

.site-header .btn {
  position: relative;
  background: linear-gradient(135deg, #C30808, #FF6600);
  padding: 12px 25px;
  color: #FFFF00; /* Custom font color for buttons */
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow: 
    0 0 5px #FFFF00,
    0 0 10px #C30808;
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

.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(102, 126, 234, 0.5);
}

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid var(--neon-border-nav);
  border-bottom: 2px solid var(--neon-border-nav);
  box-shadow: 
    0 0 10px var(--neon-border-nav),
    0 0 20px var(--neon-border-nav),
    0 0 30px var(--neon-border-nav),
    inset 0 0 20px rgba(255, 0, 0, 0.1);
  width: 100%;
  display: flex; /* Desktop default: visible */
  min-height: 50px; /* Desktop main-nav height */
  align-items: center;
  animation: theme-colors 4s ease-in-out infinite;
}

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

.main-nav .nav-link {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--neon-primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

.hamburger-menu .bar:nth-child(1) { top: 0; }
.hamburger-menu .bar:nth-child(2) { top: 9px; }
.hamburger-menu .bar:nth-child(3) { top: 18px; }

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

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

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

/* Footer Section Styles */
.site-footer {
  background-color: #0a0a0a;
  color: #f0f0f0;
  padding: 40px 0 20px 0;
  font-size: 14px;
}

.site-footer .footer-top {
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.site-footer .footer-middle {
  padding: 30px 0;
  border-bottom: 1px solid #333;
}

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

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

.site-footer .footer-col {
  flex: 1;
  min-width: 200px;
}

.site-footer .footer-logo {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.site-footer .footer-description {
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #b0b0b0;
}

.site-footer .footer-heading {
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

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

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

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

.site-footer .footer-copyright {
  text-align: center;
  color: #b0b0b0;
  flex: 1;
}

.site-footer .footer-legal {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.site-footer .footer-legal li {
  margin-bottom: 0;
}

.site-footer .footer-legal a {
  white-space: nowrap;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .marquee-section {
    height: 25px; /* Mobile marquee height */
  }

  .marquee-container {
    gap: 10px;
    padding: 0 5px;
  }

  .marquee-icon {
    width: 25px;
    height: 25px;
  }

  .marquee-icon-emoji {
    font-size: 16px;
  }

  .marquee-text {
    font-size: 13px;
    line-height: 1.2;
  }

  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }

  .marquee-content {
    gap: 15px;
    animation: marquee-scroll 20s linear infinite;
  }

  .site-header {
    top: 25px; /* Mobile marquee height */
  }

  .site-header .header-top {
    min-height: 50px; /* Mobile header-top height */
  }

  .site-header .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    position: relative;
  }

  .site-header .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px;
  }

  .site-header .logo img {
    max-height: 40px;
  }

  .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;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-bottom: 2px solid var(--neon-border-top);
    box-shadow: 
      0 0 5px var(--neon-border-top),
      0 0 10px var(--neon-border-top),
      inset 0 0 10px rgba(255, 255, 0, 0.1);
    animation: theme-colors 4s ease-in-out infinite;
  }

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

  .hamburger-menu {
    display: block;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 18px;
  }

  .hamburger-menu .bar:nth-child(1) { top: 0; }
  .hamburger-menu .bar:nth-child(2) { top: 8px; }
  .hamburger-menu .bar:nth-child(3) { top: 16px; }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Below header and mobile buttons */
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset));
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-right: 2px solid var(--neon-border-nav);
    box-shadow: 
      0 0 10px var(--neon-border-nav),
      0 0 20px var(--neon-border-nav);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000; /* Above overlay */
    overflow-y: auto;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 0;
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    width: 100%;
    max-width: none;
    gap: 0;
  }

  .main-nav .nav-link {
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .site-footer .footer-container {
    flex-direction: column;
    padding: 0 15px;
  }

  .site-footer .footer-col {
    min-width: 100%;
  }

  .site-footer .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

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