html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f0f0f0;
  background-color: #0d0d0d;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --primary-color: #0A2647;
  --secondary-color: #F4B400;
  --marquee-height: 45px;
  --header-top-height: 60px;
  --main-nav-height: 50px;
  --mobile-button-height: 50px;
  --header-offset: calc(var(--marquee-height) + var(--header-top-height) + var(--main-nav-height)); /* Desktop */

  --neon-primary: #8C4DFF; /* Vibrant Purple */
  --neon-secondary: #FFD700; /* Vibrant Gold */
  --neon-accent: #FF0077; /* Vibrant Pink */
}

@media (max-width: 768px) {
  :root {
    --header-offset: calc(var(--marquee-height) + var(--header-top-height) + var(--mobile-button-height)); /* Mobile */
  }
}

/* WCAG AA contrast for text */
a, button, .nav-link, .btn, .logo, .marquee-text, .footer-logo, .footer-description, h4, p {
  color: #f0f0f0;
}

/* General Neon Glow Animations */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary, #8C4DFF);
    box-shadow:
      0 0 10px var(--neon-primary, #8C4DFF),
      0 0 20px var(--neon-primary, #8C4DFF),
      inset 0 0 10px rgba(140, 77, 255, 0.3);
  }
  33% {
    border-color: var(--neon-secondary, #FFD700);
    box-shadow:
      0 0 10px var(--neon-secondary, #FFD700),
      0 0 20px var(--neon-secondary, #FFD700),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  66% {
    border-color: var(--neon-accent, #FF0077);
    box-shadow:
      0 0 10px var(--neon-accent, #FF0077),
      0 0 20px var(--neon-accent, #FF0077),
      inset 0 0 10px rgba(255, 0, 119, 0.3);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--neon-primary, #8C4DFF),
      0 0 10px var(--neon-primary, #8C4DFF),
      0 0 15px var(--neon-primary, #8C4DFF);
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary, #FFD700),
      0 0 10px var(--neon-secondary, #FFD700),
      0 0 15px var(--neon-secondary, #FFD700);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent, #FF0077),
      0 0 10px var(--neon-accent, #FF0077),
      0 0 15px var(--neon-accent, #FF0077);
    color: #ffffff;
  }
}

/* Marquee Section Styles */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--marquee-height);
  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, #8C4DFF),
    0 0 20px var(--neon-primary, #8C4DFF),
    0 0 30px var(--neon-primary, #8C4DFF),
    inset 0 0 20px rgba(140, 77, 255, 0.1);
  z-index: 1001;
  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: 30px;
  height: 30px;
  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, #8C4DFF),
    0 0 10px var(--neon-primary, #8C4DFF),
    0 0 15px var(--neon-primary, #8C4DFF);
  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: #ffffff;
  text-decoration: none;
  text-shadow:
    0 0 5px var(--neon-primary, #8C4DFF),
    0 0 10px var(--neon-primary, #8C4DFF),
    0 0 15px var(--neon-primary, #8C4DFF);
  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, #8C4DFF),
    0 0 20px var(--neon-primary, #8C4DFF),
    0 0 30px var(--neon-primary, #8C4DFF),
    0 0 40px var(--neon-primary, #8C4DFF);
  transform: scale(1.05);
  color: #ffffff;
}

.marquee-separator {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 10px;
  text-shadow:
    0 0 3px var(--neon-primary, #8C4DFF),
    0 0 6px var(--neon-primary, #8C4DFF);
}

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

/* Header Section Styles */
.site-header {
  position: fixed;
  top: var(--marquee-height);
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent; /* Background handled by header-top and main-nav */
}

.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-secondary, #FFD700),
    0 0 20px var(--neon-secondary, #FFD700),
    0 0 30px var(--neon-secondary, #FFD700),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  padding: 10px 0;
  height: var(--header-top-height);
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff; /* Regular style, no neon for logo */
  text-decoration: none;
  flex-shrink: 0;
  display: block;
}

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

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary, #8C4DFF), var(--neon-accent, #FF0077));
  padding: 10px 20px;
  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, #8C4DFF);
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow:
    0 0 15px var(--neon-primary, #8C4DFF),
    0 0 30px var(--neon-primary, #8C4DFF),
    inset 0 0 15px rgba(140, 77, 255, 0.5);
}

.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, #8C4DFF),
    0 0 20px var(--neon-primary, #8C4DFF),
    0 0 30px var(--neon-primary, #8C4DFF),
    inset 0 0 20px rgba(140, 77, 255, 0.1);
  width: 100%;
  display: flex;
  align-items: center;
  height: var(--main-nav-height);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  gap: 25px;
}

.nav-link {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: transform 0.3s ease;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #f0f0f0;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow:
    0 0 5px var(--neon-accent, #FF0077),
    0 0 10px var(--neon-accent, #FF0077);
}

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

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

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

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  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 Styles */
.site-footer {
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 40px 20px 20px;
  font-size: 14px;
  border-top: 1px solid #333;
}

.footer-main-content {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
}

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

.site-footer h4 {
  font-size: 18px;
  color: var(--secondary-color, #F4B400);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color, #F4B400);
}

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

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

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

.footer-links a:hover {
  color: var(--secondary-color, #F4B400);
}

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

.game-providers-section, .social-media-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.social-media-section {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  margin: 0;
  color: #ccc;
}

.footer-links-bottom {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links-bottom a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
  color: var(--secondary-color, #F4B400);
}

/* Mobile Responsive Styles */
@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;
  }

  .marquee-section {
    padding: 0;
    height: var(--marquee-height);
  }
  .marquee-container {
    padding: 0 10px;
    gap: 10px;
  }
  .marquee-icon {
    width: 25px;
    height: 25px;
  }
  .marquee-icon-emoji {
    font-size: 16px;
  }
  .marquee-text, .marquee-separator {
    font-size: 13px;
    margin: 0 5px;
  }
  .marquee-content {
    gap: 20px;
    animation-duration: 25s;
  }

  .site-header {
    top: var(--marquee-height);
  }

  .header-top {
    height: var(--header-top-height);
    padding: 0;
  }

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

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

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

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

  .mobile-nav-buttons {
    display: flex !important;
    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 5px var(--neon-secondary, #FFD700),
      0 0 10px var(--neon-secondary, #FFD700);
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    height: var(--mobile-button-height);
    align-items: center;
  }

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

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: calc(var(--marquee-height) + var(--header-top-height) + var(--mobile-button-height)); /* Below header and mobile buttons */
    left: 0;
    width: 250px;
    height: calc(100% - var(--marquee-height) - var(--header-top-height) - var(--mobile-button-height));
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    overflow-y: auto;
    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, #8C4DFF),
      0 0 20px var(--neon-primary, #8C4DFF);
  }

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

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

  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
  }
  .nav-link:last-child { border-bottom: none; }

  .footer-main-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-links-bottom {
    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;
  }
}
