:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-color: #ffffff;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --neon-primary: var(--primary-color);
  --neon-secondary: var(--secondary-color);
  --neon-accent: #FF6600; /* Neon Orange */
  --header-offset: 155px; /* Desktop: Marquee (45px) + Header Top (60px) + Main Nav (50px) */
}

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

/* Basic Reset & Body */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--dark-bg-1);
  line-height: 1.6;
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

/* Utility classes for dynamic neon colors */
@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 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;
  }
}

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

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  color: var(--text-color);
  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, 255, 0, 0.1);
  z-index: 1001;
  height: 45px; /* Fixed height for desktop */
}

.marquee-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  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),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
  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;
  padding-right: 30px; /* Ensure content doesn't abruptly end */
}

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

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

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

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

.site-header .header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  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, 255, 0, 0.1);
  padding: 10px 0;
  height: 60px; /* Fixed height for header top */
  box-sizing: border-box;
}

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

.site-header .logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color); /* Regular color, no neon glow */
  text-decoration: none;
  flex-shrink: 0;
  display: block; /* Ensure it's always visible */
  transition: color 0.3s ease;
}

.site-header .logo:hover {
  color: var(--secondary-color);
}

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

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

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

.site-header .btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 10px 20px;
  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(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.site-header .btn.neon-pulse {
  animation: neon-pulse 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

.site-header .btn:hover {
  animation-duration: 2s; /* Faster glow on hover */
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 15px var(--neon-primary),
    0 0 30px var(--neon-primary),
    0 0 45px var(--neon-primary);
}

.site-header .hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002;
  flex-shrink: 0;
}

.site-header .hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary);
}

.site-header .hamburger-menu .bar:last-child {
  margin-bottom: 0;
}

.site-header .main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  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(139, 0, 0, 0.1);
  width: 100%;
  display: flex; /* Display on desktop */
  height: 50px; /* Fixed height for main nav */
  box-sizing: border-box;
}

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

.site-header .nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.site-header .mobile-menu-overlay {
  display: none;
}

/* Footer Section */
.site-footer {
  background: var(--dark-bg-2);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 20px 0;
  font-size: 14px;
}

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

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

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

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

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

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

.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: 20px;
}

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

.site-footer .footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 0.6);
}

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

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

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

.site-footer .footer-bottom-section {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer .footer-bottom-section p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.6);
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .marquee-section {
    height: 30px; /* Smaller height for mobile marquee */
    padding: 5px 0;
  }

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

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

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

  .marquee-text {
    font-size: 12px;
    margin: 0 5px;
  }

  .marquee-separator {
    font-size: 12px;
    margin: 0 5px;
  }

  .marquee-content {
    animation: marquee-scroll 25s linear infinite; /* Faster scroll on mobile */
    gap: 15px;
  }

  .site-header {
    top: 30px; /* Adjusted for mobile marquee height */
  }

  .site-header .header-top {
    padding: 5px 0;
    height: 50px; /* Adjusted height for mobile header top */
  }

  .site-header .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    justify-content: space-between;
    position: relative; /* For logo absolute positioning */
  }

  .site-header .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 80px); /* Account for hamburger menu */
  }

  .site-header .logo img {
    max-height: 35px; /* Smaller logo for mobile */
  }

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

  .site-header .hamburger-menu {
    display: block;
    order: -1; /* Place hamburger menu to the left */
    box-shadow: 0 0 5px var(--neon-primary);
    border-radius: 3px;
    padding: 5px;
    height: 30px;
    width: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

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

  .site-header .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary);
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    height: 60px; /* Fixed height for mobile buttons */
    box-sizing: border-box;
  }

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

  .site-header .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 140px; /* Adjusted for mobile marquee + header top + mobile buttons height */
    left: 0;
    width: 80%;
    max-width: 300px; /* Max width for mobile menu sidebar */
    height: calc(100vh - 140px); /* Full height below header */
    background: linear-gradient(180deg, var(--dark-bg-3), var(--dark-bg-1));
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    z-index: 1000; /* Ensure it's above overlay */
    overflow-y: auto;
  }

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

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

  .site-header .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }

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

  .site-header .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; /* Below menu, above content */
    transition: opacity 0.3s ease;
    opacity: 0;
  }

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

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

  .site-footer .footer-logo {
    text-align: center;
  }

  .site-footer .footer-description {
    text-align: center;
  }

  .site-footer .footer-legal-nav {
    flex-direction: column;
    gap: 10px;
  }

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