:root {
  --site-primary: #017439;
  --site-secondary: #FFFFFF;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-font-color: #FFFF00;

  /* Neon colors derived from site primary/secondary but enhanced for glow */
  --neon-primary-glow: #00FF00; /* Vibrant Green */
  --neon-secondary-glow: #00FFFF; /* Vibrant Cyan */
  --neon-accent-glow: #FF00FF; /* Vibrant Magenta */
  --neon-text-glow: #FFFFFF;

  --header-offset: 155px; /* Desktop: Marquee (45px) + Header Top (60px) + Main Nav (50px) */
}

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

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a2e;
  color: #e0e0e0;
  padding-top: var(--header-offset);
}

/* Common container styling */
.header-container, .nav-container, .footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animations for neon effects */
@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),
      inset 0 0 10px rgba(0, 255, 0, 0.3);
  }
  33% {
    border-color: var(--neon-secondary-glow);
    box-shadow:
      0 0 10px var(--neon-secondary-glow),
      0 0 20px var(--neon-secondary-glow),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-accent-glow);
    box-shadow:
      0 0 10px var(--neon-accent-glow),
      0 0 20px var(--neon-accent-glow),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

@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(--neon-text-glow);
  }
  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(--neon-text-glow);
  }
  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(--neon-text-glow);
  }
}

@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: #ffffff;
  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, 0, 0.1);
  z-index: 1001;
  height: 45px;
  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: 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-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;
  padding-left: 100%; /* Start off-screen */
}

.marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  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: #ffffff;
}

.marquee-separator {
  font-size: 16px;
  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);
}

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

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  height: 60px;
  display: flex;
  align-items: center;
  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, 0, 0.1);
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--site-secondary);
  text-decoration: none;
  display: block;
  padding: 0;
  margin: 0;
  line-height: 1;
  text-align: left;
  /* No neon effects on LOGO */
  text-shadow: none;
  box-shadow: none;
  filter: none;
}

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

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

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

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

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

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

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

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above logo */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 5px;
  border: 1px solid transparent;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 5px var(--neon-accent-glow),
    0 0 10px var(--neon-accent-glow);
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neon-text-glow);
  position: relative;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow:
    0 0 2px var(--neon-text-glow),
    0 0 5px var(--neon-text-glow);
}

.hamburger-icon::before, .hamburger-icon::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neon-text-glow);
  position: absolute;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow:
    0 0 2px var(--neon-text-glow),
    0 0 5px var(--neon-text-glow);
}

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

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

.hamburger-menu.active .hamburger-icon {
  background-color: transparent;
  box-shadow: none;
}

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

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

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

/* Footer */
.site-footer {
  background-color: #1a1a2e;
  color: #e0e0e0;
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  padding: 0 10px;
}

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

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

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

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

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

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

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

.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: 40px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.payment-icons img:hover, .game-providers-icons img:hover, .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
}

.game-providers-section, .social-media-section {
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  color: #888;
  font-size: 13px;
}

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

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

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

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

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

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

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

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

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

  .site-header {
    top: 30px; /* Marquee height */
    padding-bottom: 0;
  }

  .header-top {
    height: 50px;
  }

  .header-container {
    padding: 0 15px;
    justify-content: space-between;
    position: relative;
    min-height: 50px;
    width: 100%;
    max-width: none;
  }

  .hamburger-menu {
    display: flex;
    order: 0;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: calc(100% - 100px); /* Account for hamburger menu width */
    font-size: 22px;
  }

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

  .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, #16213e, #0f3460);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 8px var(--neon-accent-glow),
      0 0 15px var(--neon-accent-glow);
  }

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

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-offset); /* Adjust based on marquee + header-top + mobile-nav-buttons height */
    left: 0;
    width: 280px;
    height: calc(100% - var(--header-offset));
    flex-direction: column;
    background-color: #0a0a0a;
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border-right: 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);
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

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

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

  .nav-link:hover, .nav-link.active {
    background-color: rgba(var(--site-primary), 0.1);
    color: var(--site-primary);
    text-shadow: none;
  }

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

  .footer-col {
    padding: 0 20px;
  }

  .game-providers-section, .social-media-section {
    padding: 20px;
  }

  .footer-bottom {
    padding: 20px 20px 10px;
  }

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