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

  /* Neon specific colors for dynamic glow */
  --neon-glow-color-1: #00FFFF; /* Cyan */
  --neon-glow-color-2: #FF00FF; /* Magenta */
  --neon-glow-color-3: #FFFF00; /* Yellow */

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

@media (max-width: 768px) {
  :root {
    --header-offset: 130px; /* Mobile: Marquee(30) + HeaderTop(50) + MobileButtons(50) */
  }
}

/* Global Reset & Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--dark-background);
  color: var(--secondary-color);
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

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

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--neon-glow-color-1),
      0 0 10px var(--neon-glow-color-1),
      0 0 15px var(--neon-glow-color-1);
    color: var(--secondary-color);
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-glow-color-2),
      0 0 10px var(--neon-glow-color-2),
      0 0 15px var(--neon-glow-color-2);
    color: var(--secondary-color);
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-glow-color-3),
      0 0 10px var(--neon-glow-color-3),
      0 0 15px var(--neon-glow-color-3);
    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 */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: var(--secondary-color);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors-header 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-glow-color-1),
    0 0 20px var(--neon-glow-color-1),
    0 0 30px var(--neon-glow-color-1),
    inset 0 0 20px rgba(0, 255, 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: 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;
  text-shadow:
    0 0 5px var(--neon-glow-color-1),
    0 0 10px var(--neon-glow-color-1),
    0 0 15px var(--neon-glow-color-1);
  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;
  height: 100%;
}

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

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

/* Header Section */
.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);
}

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

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

.site-header .logo {
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  flex-shrink: 0;
  /* LOGO MUST NOT have neon effects */
}

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

.site-header .desktop-nav-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

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

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

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

.site-header .nav-link {
  color: var(--secondary-color);
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  /* Regular style, no neon effect */
}

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

/* Hamburger Menu (Desktop Hidden) */
.hamburger-menu {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1002; /* Above logo on mobile */
}

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

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

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

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

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--login-color));
  padding: 10px 20px;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors-header 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) scale(1.05);
  box-shadow:
    0 0 15px var(--neon-glow-color-1),
    0 0 30px var(--neon-glow-color-1),
    0 0 45px var(--neon-glow-color-1),
    inset 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Footer */
.site-footer {
  background-color: #1a1a2e; /* Darker than header for contrast, but not neon */
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 14px;
}

.site-footer a {
  color: #cccccc;
  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: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.site-footer .footer-col ul {
  list-style: none;
}

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

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

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

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

.site-footer .game-providers-section,
.site-footer .social-media-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.site-footer .footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #999999;
}

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

  /* Header */
  .site-header {
    top: 30px; /* Mobile marquee height */
  }
  .site-header .header-top {
    height: 50px; /* Mobile height */
  }
  .site-header .header-container {
    padding: 0 15px;
    position: relative; /* For absolute logo positioning */
  }
  .hamburger-menu {
    display: flex;
    width: 25px;
    height: 18px;
    z-index: 1002;
  }
  .hamburger-menu span {
    box-shadow:
      0 0 3px var(--neon-glow-color-1),
      0 0 6px var(--neon-glow-color-1);
  }
  .site-header .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: calc(100% - 80px); /* Account for hamburger width */
    font-size: 20px;
  }
  .site-header .logo img {
    max-height: 30px !important;
  }

  .site-header .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .site-header .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    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;
    animation: theme-colors-header 4s ease-in-out infinite;
    box-shadow:
      0 0 8px var(--neon-glow-color-3),
      0 0 15px var(--neon-glow-color-3),
      inset 0 0 10px rgba(255, 255, 0, 0.1);
  }
  .site-header .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;
  }

  .site-header .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 130px; /* Marquee + HeaderTop + MobileButtons height */
    left: 0;
    width: 70%; /* Adjust as needed */
    max-width: 300px; /* Max width for mobile menu */
    height: calc(100% - 130px); /* Adjust height */
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-right: 2px solid;
    animation: theme-colors-header 4s ease-in-out infinite;
    box-shadow:
      0 0 10px var(--neon-glow-color-2),
      0 0 20px var(--neon-glow-color-2),
      inset 0 0 20px rgba(255, 0, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Ensure it's above overlay */
    overflow-y: auto;
  }

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

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

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

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

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

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

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

/* Footer Mobile */
@media (max-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .site-footer .footer-col {
    margin-bottom: 20px;
  }
  .site-footer .footer-container {
    padding: 0 15px;
  }
  .site-footer .mt-3 { margin-top: 15px; }
}

/* Body no-scroll for mobile menu */
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;
  }
}
