:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --btn-text-color: #FFFF00;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;
  --neon-glow-color1: #00FF00; /* Bright Green */
  --neon-glow-color2: #00FFFF; /* Cyan */
  --neon-glow-color3: #FF00FF; /* Magenta */
  --header-offset: 155px; /* Desktop: Marquee(45px) + HeaderTop(60px) + MainNav(50px) = 155px */
}

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

/* Animations for Neon Glow */
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor, inset 0 0 15px currentColor; }
  20%, 24%, 55% { opacity: 0.8; box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, inset 0 0 10px currentColor; }
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
  to { box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor; }
}

@keyframes led-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

@keyframes text-glow-flow {
  0% { text-shadow: 0 0 5px var(--neon-glow-color1), 0 0 10px var(--neon-glow-color1), 0 0 15px var(--neon-glow-color1); color: var(--secondary-color); }
  33% { text-shadow: 0 0 5px var(--neon-glow-color2), 0 0 10px var(--neon-glow-color2), 0 0 15px var(--neon-glow-color2); color: var(--secondary-color); }
  66% { text-shadow: 0 0 5px var(--neon-glow-color3), 0 0 10px var(--neon-glow-color3), 0 0 15px var(--neon-glow-color3); color: var(--secondary-color); }
  100% { text-shadow: 0 0 5px var(--neon-glow-color1), 0 0 10px var(--neon-glow-color1), 0 0 15px var(--neon-glow-color1); color: var(--secondary-color); }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-glow-color1);
    box-shadow: 0 0 10px var(--neon-glow-color1), 0 0 20px var(--neon-glow-color1), inset 0 0 10px rgba(0, 255, 0, 0.3);
  }
  33% {
    border-color: var(--neon-glow-color2);
    box-shadow: 0 0 10px var(--neon-glow-color2), 0 0 20px var(--neon-glow-color2), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-glow-color3);
    box-shadow: 0 0 10px var(--neon-glow-color3), 0 0 20px var(--neon-glow-color3), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  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-glow-color1), 0 0 20px var(--neon-glow-color1), 0 0 30px var(--neon-glow-color1), inset 0 0 20px rgba(0, 255, 0, 0.1);
  z-index: 1001;
  line-height: 1;
  padding: 8px 0;
  height: 45px;
  box-sizing: border-box;
}

.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: 24px;
  height: 24px;
  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-color1), 0 0 10px var(--neon-glow-color1), 0 0 15px var(--neon-glow-color1);
  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;
}

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

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

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

.site-header .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(--neon-glow-color1), 0 0 20px var(--neon-glow-color1), 0 0 30px var(--neon-glow-color1), inset 0 0 20px rgba(0, 255, 0, 0.1);
  padding: 10px 0;
  height: 60px;
  box-sizing: border-box;
  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;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

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

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

.site-header .btn {
  position: relative;
  background: linear-gradient(135deg, var(--register-btn-bg), #FF6600);
  padding: 10px 20px;
  color: var(--btn-text-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow: 0 0 5px var(--btn-text-color), 0 0 10px var(--register-btn-bg);
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.site-header .main-nav {
  background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-4));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon-glow-color2), 0 0 20px var(--neon-glow-color2), 0 0 30px var(--neon-glow-color2), inset 0 0 20px rgba(0, 255, 255, 0.1);
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: static;
}

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

.site-header .nav-links-wrapper {
  display: flex;
  gap: 20px;
}

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

.site-header .nav-link:hover {
  color: var(--neon-glow-color2);
}

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

/* Footer Section */
.site-footer {
  background-color: #1c1c1c;
  color: #cccccc;
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
}

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

.site-footer .footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer .footer-col {
  display: flex;
  flex-direction: column;
}

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

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

.site-footer .footer-title {
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.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: #aaaaaa;
  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;
}

.site-footer .payment-icons {
  gap: 5px;
}

.site-footer .payment-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
}

.site-footer .footer-middle {
  max-width: 1200px;
  margin: 0 auto 30px;
  border-bottom: 1px solid #333;
  padding-bottom: 30px;
}

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

.site-footer .game-providers-icons,
.site-footer .social-media-icons {
  gap: 8px;
  width: 100%;
}

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

.site-footer .footer-bottom {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  color: #888888;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .marquee-section {
    padding: 5px 0;
    height: 30px;
  }

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

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

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

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

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

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

  .site-header {
    top: 30px; /* Marquee height for mobile */
    min-height: 120px; /* Header top + mobile buttons */
  }

  .site-header .header-top {
    padding: 8px 0;
    height: 50px;
  }

  .site-header .header-container {
    padding: 0 15px;
    max-width: none; /* Remove max-width on mobile */
    width: 100%;
    justify-content: space-between;
  }

  .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: 35px;
  }

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

  .site-header .mobile-nav-buttons {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 0 0 8px var(--neon-glow-color3), 0 0 15px var(--neon-glow-color3), inset 0 0 10px rgba(255, 0, 255, 0.1);
    z-index: 990; /* Below main-nav and hamburger */
  }

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

  .site-header .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset));
    transform: translateX(-100%); /* Off-screen */
    transition: transform 0.3s ease-out;
    background: linear-gradient(180deg, var(--dark-bg-3), var(--dark-bg-4));
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--neon-glow-color2), 0 0 20px var(--neon-glow-color2), inset 0 0 20px rgba(0, 255, 255, 0.1);
    z-index: 1000;
    padding-top: 20px;
    overflow-y: auto;
  }

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

  .site-header .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
    max-width: none; /* Remove max-width on mobile */
    width: 100%;
  }

  .site-header .nav-links-wrapper {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

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

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

  .site-header .hamburger-menu {
    display: block;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    animation: theme-colors 4s ease-in-out infinite; /* Apply dynamic color animation */
    box-shadow: 0 0 5px var(--neon-glow-color1), 0 0 10px var(--neon-glow-color1);
    border-radius: 3px;
  }

  .site-header .hamburger-icon {
    display: block;
    position: relative;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
  }

  .site-header .hamburger-icon::before,
  .site-header .hamburger-icon::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
  }

  .site-header .hamburger-icon::before {
    top: -8px;
  }

  .site-header .hamburger-icon::after {
    top: 8px;
  }

  .site-header .hamburger-menu.active .hamburger-icon {
    background: transparent;
  }

  .site-header .hamburger-menu.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header .hamburger-menu.active .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

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

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .site-footer .footer-cols {
    grid-template-columns: 1fr;
  }

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

  .site-footer .footer-middle {
    padding-left: 0;
    padding-right: 0;
  }

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