:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-color: #ffffff;
  --dark-bg: #0a0a0a;
  --dark-bg-gradient-1: #1a1a2e;
  --dark-bg-gradient-2: #16213e;
  --dark-bg-gradient-3: #0f3460;

  --neon-primary-glow: var(--secondary-color); /* Gold for primary glow */
  --neon-secondary-glow: #ff00ff; /* Magenta for secondary glow */
  --neon-accent-glow: #00ffff; /* Cyan for accent glow */

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

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

/* Base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  background-color: #000000;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Animations for Neon Effects */
@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%);
  }
}

@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: #ffffff;
  }
  33% {
    text-shadow: 
      0 0 5px var(--neon-secondary-glow),
      0 0 10px var(--neon-secondary-glow),
      0 0 15px var(--neon-secondary-glow);
    color: #ffffff;
  }
  66% {
    text-shadow: 
      0 0 5px var(--neon-accent-glow),
      0 0 10px var(--neon-accent-glow),
      0 0 15px var(--neon-accent-glow);
    color: #ffffff;
  }
  100% {
    text-shadow: 
      0 0 5px var(--neon-primary-glow),
      0 0 10px var(--neon-primary-glow),
      0 0 15px var(--neon-primary-glow);
    color: #ffffff;
  }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--secondary-color);
    box-shadow: 
      0 0 10px var(--secondary-color),
      0 0 20px var(--secondary-color),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  33% {
    border-color: #ff00ff; /* Magenta */
    box-shadow: 
      0 0 10px #ff00ff,
      0 0 20px #ff00ff,
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  66% {
    border-color: #00ffff; /* Cyan */
    box-shadow: 
      0 0 10px #00ffff,
      0 0 20px #00ffff,
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
}

/* Marquee Section Styles */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-gradient-1), var(--dark-bg-gradient-2));
  color: var(--text-color);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--secondary-color),
    0 0 20px var(--secondary-color),
    0 0 30px var(--secondary-color),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  z-index: 1001;
  height: 45px; /* Desktop height */
  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: 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-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;
}

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

/* Header Section Styles */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-gradient-1));
  color: var(--text-color);
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-gradient-1));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--secondary-color),
    0 0 20px var(--secondary-color),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  padding: 10px 0;
  min-height: 60px; /* Desktop height */
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  flex-shrink: 0;
  /* LOGO does not use neon effects */
}

.hamburger-menu {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 5px var(--secondary-color),
    0 0 10px var(--secondary-color);
  border-radius: 3px;
}

.hamburger-icon {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.hamburger-icon:nth-child(1) { top: 0; }
.hamburger-icon:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-icon:nth-child(3) { bottom: 0; }

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

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

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

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

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg-gradient-3));
  padding: 12px 25px;
  color: var(--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(--text-color),
    0 0 10px var(--secondary-color);
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:hover {
  animation-duration: 2s; /* Faster color change on hover */
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px var(--secondary-color),
    0 0 30px var(--secondary-color),
    inset 0 0 15px rgba(255, 215, 0, 0.5);
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-gradient-1), var(--dark-bg-gradient-3));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse;
  box-shadow: 
    0 0 10px #ff00ff, /* Magenta glow for nav */
    0 0 20px #ff00ff,
    inset 0 0 20px rgba(255, 0, 255, 0.1);
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 50px; /* Desktop height */
}

.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 15px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: none;
}

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

/* Footer Styles */
.site-footer {
  background: var(--dark-bg);
  color: #cccccc;
  padding-top: 40px;
  font-size: 14px;
}

.footer-top-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

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

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

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #cccccc;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

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

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

.payment-icons, .game-providers-icons, .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
}

.payment-icons {
  gap: 5px;
}

.game-providers-icons, .social-media-icons {
  gap: 8px;
}

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8);
  transition: filter 0.3s ease;
}

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

.footer-middle-section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-middle-section .footer-container {
  display: block; /* Override grid for these sections */
}

.footer-bottom-section {
  padding: 20px 0;
}

.footer-bottom-section .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.copyright {
  margin: 0;
  color: #888888;
}

.footer-action-links a {
  color: var(--secondary-color);
  margin-left: 20px;
  transition: color 0.3s ease;
}

.footer-action-links a:hover {
  color: var(--text-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Prevent image overflow and body scroll */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }

  .marquee-section {
    height: 30px; /* Mobile height */
    padding: 0;
  }
  .marquee-container {
    gap: 10px;
    padding: 0 10px;
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .marquee-icon-emoji {
    font-size: 18px;
  }
  .marquee-text {
    font-size: 13px;
  }
  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 15px;
    animation: marquee-scroll 25s linear infinite;
  }

  .site-header {
    top: 30px; /* Marquee mobile height */
  }

  .header-top {
    padding: 10px 0;
    min-height: 70px; /* Mobile height */
  }
  .header-container {
    padding: 0 15px;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
  }

  .hamburger-menu {
    display: block;
    margin-right: auto; /* Push logo to center */
    box-shadow: 
      0 0 3px var(--secondary-color),
      0 0 6px var(--secondary-color);
  }

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

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

  .mobile-nav-buttons {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 15px 15px; /* Mobile height */
    background: linear-gradient(135deg, var(--dark-bg-gradient-1), var(--dark-bg-gradient-2));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    box-shadow: 
      0 0 8px #00ffff, /* Cyan glow for mobile buttons */
      0 0 16px #00ffff,
      inset 0 0 10px rgba(0, 255, 255, 0.1);
    min-height: 69px; /* Remaining height for 199px total offset */
    flex-wrap: nowrap; /* Ensure buttons stay on one line */
  }

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

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-offset));
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    background: linear-gradient(180deg, var(--dark-bg-gradient-3), var(--dark-bg-gradient-1));
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 
      0 0 10px #ff00ff, /* Magenta glow */
      0 0 20px #ff00ff,
      inset 0 0 20px rgba(255, 0, 255, 0.1);
  }

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

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

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

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

  /* Mobile Overlay for menu */
  .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;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
  }

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

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

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

  .footer-bottom-section .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .copyright {
    margin-bottom: 10px;
  }

  .footer-action-links a {
    margin: 0 10px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
