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

  --neon-color-1: #00FFFF; /* Vibrant Cyan */
  --neon-color-2: #FF00FF; /* Vibrant Magenta */
  --neon-color-3: #FFFF00; /* Vibrant Yellow */

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

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

/* Common styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--secondary-color);
  background-color: #0a0a0a;
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

/* Ensure text contrast for WCAG AA */
h1, h2, h3, h4, h5, h6, p, a, li, button {
  color: var(--secondary-color);
}

a {
  text-decoration: none;
  color: var(--secondary-color);
}

a:hover {
  text-decoration: underline;
}

.footer-description, .copyright {
  color: rgba(255, 255, 255, 0.7);
}

/* Dynamic Neon Color Animations */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-color-1);
    box-shadow: 
      0 0 10px var(--neon-color-1),
      0 0 20px var(--neon-color-1),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-color-2);
    box-shadow: 
      0 0 10px var(--neon-color-2),
      0 0 20px var(--neon-color-2),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  66% {
    border-color: var(--neon-color-3);
    box-shadow: 
      0 0 10px var(--neon-color-3),
      0 0 20px var(--neon-color-3),
      inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
}

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

@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 
      0 0 5px currentColor,
      0 0 10px currentColor;
  }
  50% {
    box-shadow: 
      0 0 15px currentColor,
      0 0 30px currentColor,
      0 0 45px currentColor;
  }
}

/* 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-color-1),
    0 0 20px var(--neon-color-1),
    0 0 30px var(--neon-color-1),
    inset 0 0 20px rgba(0, 255, 255, 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: 40px;
  height: 40px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 24px;
  display: inline-block;
  animation: neon-pulse 2s ease-in-out infinite, text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px var(--neon-color-1),
    0 0 10px var(--neon-color-1),
    0 0 15px var(--neon-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;
}

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

@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;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: var(--secondary-color);
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-color-1),
    0 0 20px var(--neon-color-1),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 15px 0;
  min-height: 60px; /* Desktop header-top height */
  box-sizing: border-box;
}

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

.logo {
  color: var(--secondary-color);
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  padding: 0;
}

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

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

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

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

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

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

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-color-1), var(--neon-color-2));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite, neon-pulse 2s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-color-1);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  text-shadow:
    0 0 8px #ffffff,
    0 0 15px var(--neon-color-1),
    0 0 25px var(--neon-color-1);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neon-color-1);
  margin: 5px 0;
  transition: all 0.3s ease;
  box-shadow:
    0 0 5px var(--neon-color-1),
    0 0 10px var(--neon-color-1);
}

/* Footer Section Styles */
.site-footer {
  background-color: #1a1a2e;
  color: var(--secondary-color);
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-main, .game-providers-section, .social-media-section, .footer-bottom {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
  padding-top: 0;
}

.game-providers-section, .social-media-section {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: none;
}

.footer-bottom {
  border-bottom: none;
  padding-bottom: 0;
}

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

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

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

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

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

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

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

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav-list a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.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;
  filter: grayscale(100%) brightness(150%); /* For better visibility on dark background */
  transition: filter 0.3s ease;
}

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

.copyright {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-template-columns: none;
  gap: 0;
}

.footer-bottom .action-links {
  display: flex;
  gap: 20px;
}

.footer-bottom .action-links li {
  margin-bottom: 0;
}

.footer-bottom .action-links a {
  color: var(--login-color);
  font-weight: bold;
}

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

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

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

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

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

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

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

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

  .header-top {
    padding: 10px 0;
    border-bottom: none;
    min-height: 50px; /* Mobile header-top height */
  }

  .header-container {
    padding: 0 15px;
    justify-content: flex-start;
    position: relative;
    min-height: 50px;
  }

  .hamburger-menu {
    display: block;
    order: 0;
    margin-right: 15px;
  }

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

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

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

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

  .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-color: #1a1a2e;
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 5px var(--neon-color-3),
      0 0 10px var(--neon-color-3),
      inset 0 0 10px rgba(255, 255, 0, 0.1);
    min-height: 50px; /* Mobile buttons height */
  }

  .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;
    animation-name: neon-pulse, theme-colors;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: calc(30px + 50px + 50px); /* Marquee + HeaderTop + MobileButtons */
    left: 0;
    width: 70%;
    max-width: 300px;
    height: calc(100% - (30px + 50px + 50px)); /* Adjust height */
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 10px var(--neon-color-2),
      0 0 20px var(--neon-color-2),
      inset 0 0 20px rgba(255, 0, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 0;
  }

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

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

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

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

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

  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom .footer-container {
    flex-direction: column;
    gap: 15px;
  }

  .footer-bottom .action-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom .action-links li {
    margin-bottom: 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;
  }
}
