:root {
  --primary-color: #1A2E44;
  --secondary-color: #FFD700;
  --neon-primary: var(--secondary-color); /* Gold/Yellow for primary glow */
  --neon-secondary: #FF6600; /* Orange for secondary glow */
  --neon-accent: #FF00FF; /* Magenta for accent glow */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --header-offset: 155px; /* Desktop: Marquee (45) + Header Top (60) + Main Nav (50) */
}

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

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #f0f0f0;
  background-color: var(--dark-bg-1);
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

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

@keyframes text-glow-flow {
  0% {
    text-shadow: 
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary),
      0 0 15px var(--neon-primary);
    color: #ffffff;
  }
  50% {
    text-shadow: 
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: #ffffff;
  }
  100% {
    text-shadow: 
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    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%;
  height: 45px; /* Fixed height for desktop */
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  z-index: 1001;
  display: flex; /* Ensure content is vertically centered */
  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: marquee-pulse 2s ease-in-out infinite, text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-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; /* Space for seamless loop */
}

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

/* Header Section */
.site-header {
  position: fixed;
  top: 45px; /* Below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-bg-1); /* Fallback */
}

.site-header .header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  padding: 15px 0;
  height: 60px; /* Fixed height for desktop header-top */
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

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

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff; /* Regular style, no neon glow */
  text-transform: uppercase; /* MWC77 -> MWC77 */
  display: block;
  flex-shrink: 0;
  line-height: 1; /* Adjust for vertical alignment */
}

/* LOGO does not use neon effects */
.site-header .logo:hover {
  color: var(--secondary-color);
  text-shadow: none;
  box-shadow: none;
}

.site-header .desktop-nav-buttons {
  display: flex; /* Desktop default: flex */
  gap: 10px;
  flex-shrink: 0;
}

.site-header .mobile-nav-buttons {
  display: none; /* Desktop default: hidden */
}

.site-header .btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  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);
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap; /* Prevent button text from wrapping on desktop */
}

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

.site-header .main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--primary-color));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Different animation for contrast */
  box-shadow: 
    0 0 10px var(--neon-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(255, 102, 0, 0.1);
  padding: 10px 0;
  display: flex; /* Desktop default: flex */
  justify-content: center;
  align-items: center;
  height: 50px; /* Fixed height for desktop main-nav */
  box-sizing: border-box;
}

.site-header .main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row; /* Desktop default: row */
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  box-sizing: border-box;
}

.site-header .main-nav .nav-link {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.site-header .main-nav .nav-link:hover,
.site-header .main-nav .nav-link.active {
  color: var(--secondary-color);
  text-shadow: 0 0 8px var(--secondary-color);
}

.hamburger-menu {
  display: none; /* Desktop default: hidden */
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1002; /* Above logo */
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-accent); /* Neon glow for bars */
}

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

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

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

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

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

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

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

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

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

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

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

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

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

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

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

.site-footer .payment-icons,
.site-footer .game-providers-icons,
.site-footer .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px; /* Adjusted gap for tighter packing */
  width: 100%;
}

.site-footer .payment-icons img,
.site-footer .game-providers-icons img,
.site-footer .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(150%) contrast(100%); /* Example filter for subtle effect */
  transition: filter 0.3s ease;
}

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

.site-footer .footer-middle-section {
  padding: 30px 0;
  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-section:last-child,
.site-footer .social-media-section:last-child {
  margin-bottom: 0;
}

.site-footer .footer-bottom-section {
  padding-top: 20px;
  text-align: center;
}

.site-footer .copyright {
  color: #888;
  margin-bottom: 15px;
}

.site-footer .footer-nav-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.site-footer .footer-nav-legal a {
  color: #888;
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent legal links from wrapping too aggressively */
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Global mobile overrides */
  body {
    padding-top: var(--header-offset);
    overflow-x: hidden;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

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

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

  .site-header .header-top {
    padding: 10px 0;
    height: 50px; /* Fixed height for mobile header-top */
  }
  .site-header .header-container {
    padding: 0 15px;
    max-width: none; /* Mobile: no max-width */
    width: 100%;
    justify-content: space-between; /* Hamburger left, Logo center, space right */
    position: relative;
  }

  .site-header .logo {
    font-size: 22px;
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important; /* Center logo */
    align-items: center !important;
    position: absolute; /* Override flex positioning for absolute center */
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 80px); /* Account for hamburger width + padding */
  }

  .site-header .desktop-nav-buttons {
    display: none; /* Mobile: hidden */
  }

  .site-header .mobile-nav-buttons {
    display: flex !important; /* Mobile: visible */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
  }

  .site-header .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Two buttons, evenly spaced */
    padding: 8px 12px; /* Smaller padding for mobile */
    font-size: 13px; /* Smaller font for mobile */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
  }

  .hamburger-menu {
    display: flex; /* Mobile: visible */
    position: relative;
    z-index: 1002;
    margin-right: auto; /* Push logo to center */
  }

  .site-header .main-nav {
    display: none; /* Mobile default: hidden */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header and buttons */
    left: 0;
    width: 80%; /* Adjust as needed */
    max-width: 300px; /* Max width for mobile menu */
    height: calc(100% - var(--header-offset)); /* Fill remaining height */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--primary-color));
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Hidden by default */
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Above overlay */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      inset 0 0 20px rgba(255, 102, 0, 0.1);
  }

  .site-header .main-nav.active {
    display: flex; /* Mobile active: visible */
    transform: translateX(0); /* Slide in */
  }

  .site-header .main-nav .nav-container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 0; /* Remove horizontal padding */
    max-width: none; /* No max width for mobile nav container */
    width: 100%;
  }
  .site-header .main-nav .nav-link {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
  }
  
  /* Footer mobile styles */
  .site-footer .footer-top-section .footer-container {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
  }
  .site-footer .footer-col {
    text-align: center;
  }
  .site-footer .footer-col h4 {
    margin-top: 20px;
  }
  .site-footer .footer-nav, .site-footer .footer-nav-legal {
    justify-content: center;
  }
  .site-footer .footer-logo {
    text-align: center;
  }
  .site-footer .footer-description {
    text-align: 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;
  }
}
