html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #ffffff; background-color: #000000; padding-top: 160px; /* For fixed marquee + header */ }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey/Black */

  /* Base neon colors for dynamic animations */
  --neon-base-1: #FFD700; /* Gold */
  --neon-base-2: #FF69B4; /* Hot Pink */
  --neon-base-3: #00FFFF; /* Cyan */
  --neon-base-4: #FF00FF; /* Magenta */
  --neon-base-5: #00FF00; /* Lime Green */
}

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

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

@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-base, var(--neon-base-1)),
    0 0 20px var(--neon-primary-base, var(--neon-base-1)),
    0 0 30px var(--neon-primary-base, var(--neon-base-1)),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  z-index: 1001;
  min-height: 50px;
  display: flex;
  align-items: center;
  --neon-primary-base: var(--neon-base-1); /* Gold */
  --neon-secondary-base: var(--neon-base-4); /* Magenta */
  --neon-accent-base: var(--neon-base-3); /* Cyan */
  --neon-text-primary: var(--neon-base-1);
  --neon-text-secondary: var(--neon-base-4);
  --neon-text-accent: var(--neon-base-3);
}

.marquee-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px 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: marquee-pulse 2s ease-in-out infinite, text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px var(--neon-text-primary),
    0 0 10px var(--neon-text-primary),
    0 0 15px var(--neon-text-primary);
  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-right: 30px; /* Ensure space before loop repeats */
}

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

/* Header Section */
.site-header {
  position: fixed;
  top: 50px; /* Below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
}

.site-header .header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: var(--primary-color);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-primary-base, var(--neon-base-1)),
    0 0 20px var(--neon-primary-base, var(--neon-base-1)),
    0 0 30px var(--neon-primary-base, var(--neon-base-1)),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  padding: 10px 0;
  display: flex;
  align-items: center;
  min-height: 60px;
  --neon-primary-base: var(--neon-base-1); /* Gold */
  --neon-secondary-base: var(--neon-base-4); /* Magenta */
  --neon-accent-base: var(--neon-base-3); /* Cyan */
}

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

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 5px var(--neon-text-primary, var(--neon-base-1)),
    0 0 10px var(--neon-text-primary, var(--neon-base-1)),
    0 0 15px var(--neon-text-primary, var(--neon-base-1));
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  display: block;
  line-height: 1;
  --neon-text-primary: var(--neon-base-1);
  --neon-text-secondary: var(--neon-base-4);
  --neon-text-accent: var(--neon-base-3);
}

.site-header .hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
  --neon-primary-base: var(--neon-base-1); /* Gold */
  --neon-secondary-base: var(--neon-base-4); /* Magenta */
  --neon-accent-base: var(--neon-base-3); /* Cyan */
  animation: theme-colors 4s ease-in-out infinite;
  border-radius: 3px;
}

.site-header .hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  text-shadow:
    0 0 5px var(--neon-text-primary, var(--neon-base-1)),
    0 0 10px var(--neon-text-primary, var(--neon-base-1));
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  --neon-text-primary: var(--neon-base-1);
  --neon-text-secondary: var(--neon-base-4);
  --neon-text-accent: var(--neon-base-3);
}

.site-header .hamburger-menu span:nth-child(1) { top: 0; }
.site-header .hamburger-menu span:nth-child(2) { top: 10px; }
.site-header .hamburger-menu span:nth-child(3) { top: 20px; }

.site-header .hamburger-menu.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.site-header .hamburger-menu.active span:nth-child(2) { opacity: 0; }
.site-header .hamburger-menu.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

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

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

.site-header .btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary-base, var(--neon-base-1)), var(--neon-secondary-base, var(--neon-base-4)));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary-base, var(--neon-base-1));
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap;
  --neon-primary-base: var(--neon-base-1); /* Gold */
  --neon-secondary-base: var(--neon-base-4); /* Magenta */
  --neon-accent-base: var(--neon-base-3); /* Cyan */
}

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

.site-header .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-primary-base, var(--neon-base-2)),
    0 0 20px var(--neon-primary-base, var(--neon-base-2)),
    0 0 30px var(--neon-primary-base, var(--neon-base-2)),
    inset 0 0 20px rgba(255, 105, 180, 0.1);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  min-height: 50px;
  --neon-primary-base: var(--neon-base-2); /* Hot Pink */
  --neon-secondary-base: var(--neon-base-5); /* Lime Green */
  --neon-accent-base: var(--neon-base-4); /* Magenta */
}

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

.site-header .nav-link {
  color: #ffffff;
  font-weight: 500;
  padding: 8px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

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

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

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

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

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

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

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

.site-footer .footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

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

.site-footer .footer-nav-list a {
  color: #cccccc;
  transition: color 0.3s ease;
}

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

.site-footer .payment-methods .payment-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

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

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

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

.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 .game-providers-icons img,
.site-footer .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

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

.site-footer .footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.site-footer .copyright {
  margin: 0;
  color: #888888;
}

.site-footer .footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.site-footer .footer-legal-nav a {
  color: #cccccc;
  transition: color 0.3s ease;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Marquee (30px) + Header Top (50px) + Mobile Buttons (50px) */
  }

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

  /* Header Mobile */
  .site-header {
    top: 30px; /* Below mobile marquee */
  }

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

  .site-header .header-container {
    padding: 0 15px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .site-header .hamburger-menu {
    display: block;
    order: 1;
    margin-right: auto;
    margin-left: 0;
    width: 25px;
    height: 20px;
  }
  .site-header .hamburger-menu span:nth-child(1) { top: 0; }
  .site-header .hamburger-menu span:nth-child(2) { top: 8px; }
  .site-header .hamburger-menu span:nth-child(3) { top: 16px; }

  .site-header .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
    margin-left: auto; /* Push to center */
    margin-right: auto; /* Push to center */
  }

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

  .site-header .mobile-nav-buttons {
    display: flex !important; /* Always visible on mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 8px var(--neon-primary-base, var(--neon-base-1)),
      0 0 15px var(--neon-primary-base, var(--neon-base-1)),
      inset 0 0 10px rgba(255, 215, 0, 0.1);
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    z-index: 1000; /* Ensure it's above content but below hamburger/menu */
    min-height: 50px;
    --neon-primary-base: var(--neon-base-1); /* Gold */
    --neon-secondary-base: var(--neon-base-4); /* Magenta */
    --neon-accent-base: var(--neon-base-3); /* Cyan */
  }

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

  .site-header .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 130px; /* Below marquee + header-top + mobile buttons */
    left: 0;
    width: 70%; /* Adjust width as needed */
    max-width: 300px;
    height: calc(100% - 130px); /* Full height below fixed elements */
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    --neon-primary-base: var(--neon-base-2); /* Hot Pink */
    --neon-secondary-base: var(--neon-base-5); /* Lime Green */
    --neon-accent-base: var(--neon-base-4); /* Magenta */
  }

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

  .site-header .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

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

  /* Footer Mobile */
  .site-footer .footer-top .footer-container {
    grid-template-columns: 1fr;
  }

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

  .site-footer .footer-legal-nav {
    justify-content: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
