:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #FFFFFF; /* 白色 */
  --login-color: #EA7C07; /* 登录橙色 */
  --black-color: #000000; /* 黑色 */

  /* Neon colors based on primary and secondary, with vibrant accents */
  --neon-primary: var(--primary-color); /* #26A9E0 */
  --neon-secondary: #00ffff; /* Cyan for contrast */
  --neon-accent: #ff00ff; /* Magenta for contrast */
  --neon-glow-color-1: #ff00ff; /* Purple/Pink */
  --neon-glow-color-2: #00ffff; /* Cyan */
  --neon-glow-color-3: #ffff00; /* Yellow */
  --neon-glow-color-4: #ff0000; /* Red */
  --neon-glow-color-5: #00ff00; /* Green */

  --header-offset: 155px; /* 桌面端：Marquee(45px) + HeaderTop(60px) + MainNav(50px) */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 125px; /* 移动端：Marquee(25px) + HeaderTop(50px) + MobileNavButtons(50px) */
  }
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: var(--secondary-color);
  background-color: var(--black-color);
  line-height: 1.6;
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--neon-primary);
}

/* Global Container */
.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Neon Animations */
@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 neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor, inset 0 0 15px currentColor; }
  20%, 24%, 55% { opacity: 0.8; box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, inset 0 0 10px currentColor; }
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
  to { box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor; }
}

@keyframes led-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

@keyframes text-glow-flow {
  0% { text-shadow: 0 0 5px var(--neon-glow-color-1), 0 0 10px var(--neon-glow-color-1), 0 0 15px var(--neon-glow-color-1); color: var(--secondary-color); }
  25% { text-shadow: 0 0 5px var(--neon-glow-color-2), 0 0 10px var(--neon-glow-color-2), 0 0 15px var(--neon-glow-color-2); color: var(--secondary-color); }
  50% { text-shadow: 0 0 5px var(--neon-glow-color-3), 0 0 10px var(--neon-glow-color-3), 0 0 15px var(--neon-glow-color-3); color: var(--secondary-color); }
  75% { text-shadow: 0 0 5px var(--neon-glow-color-4), 0 0 10px var(--neon-glow-color-4), 0 0 15px var(--neon-glow-color-4); color: var(--secondary-color); }
  100% { text-shadow: 0 0 5px var(--neon-glow-color-5), 0 0 10px var(--neon-glow-color-5), 0 0 15px var(--neon-glow-color-5); color: var(--secondary-color); }
}

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

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
  color: var(--secondary-color);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
  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(38, 169, 224, 0.1); /* Neon glow */
  z-index: 1001; /* Ensure on top */
  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: 30px; /* Reduced width */
  height: 30px; /* Reduced height */
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 20px; /* Reduced font size */
  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); /* Neon 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(--secondary-color);
  text-decoration: none;
  text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary); /* Neon 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), 0 0 20px var(--neon-primary), 0 0 30px var(--neon-primary), 0 0 40px var(--neon-primary);
  transform: scale(1.05);
  color: var(--secondary-color);
}

.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; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--black-color); /* Fallback */
  display: flex;
  flex-direction: column; /* Default to column for easier mobile override, will be row for desktop */
}

/* Header Top Bar - Desktop */
.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Darker background */
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon-glow-color-3), 0 0 20px var(--neon-glow-color-3), 0 0 30px var(--neon-glow-color-3), inset 0 0 20px rgba(255, 255, 0, 0.1); /* Yellow glow */
  padding: 10px 0; /* Vertical padding */
  height: 60px; /* Desktop fixed height */
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

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

/* Logo - NO NEON EFFECT */
.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* White for contrast */
  text-decoration: none;
  padding: 5px 0;
  display: block; /* Desktop default */
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex; /* Desktop default */
  gap: 15px;
  align-items: center;
}

/* Mobile Navigation Buttons - Hidden by default on desktop */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

/* Main Navigation - Desktop */
.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Slightly different dark background */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Dynamic border color, different animation for contrast */
  box-shadow: 0 0 10px var(--neon-glow-color-4), 0 0 20px var(--neon-glow-color-4), 0 0 30px var(--neon-glow-color-4), inset 0 0 20px rgba(255, 0, 0, 0.1); /* Red glow */
  padding: 0; /* Reset padding */
  height: 50px; /* Desktop fixed height */
  box-sizing: border-box;
  display: flex; /* Desktop default */
  align-items: center;
  position: static; /* Desktop default */
}

.main-nav .nav-container {
  display: flex;
  justify-content: center; /* Center nav links */
  align-items: center;
  width: 100%;
  gap: 25px;
  height: 100%;
}

.nav-link {
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  white-space: nowrap; /* Prevent wrapping */
}

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

/* Hamburger Menu - Hidden by default on desktop */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--neon-primary);
  margin: 6px 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary); /* Neon glow */
}

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

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary)); /* Use primary and secondary for gradient */
  padding: 12px 25px;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--neon-primary); /* White and primary glow */
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap; /* Prevent text wrap on desktop */
}

.btn:hover {
  animation-duration: 2s; /* Faster glow on hover */
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--neon-primary), 0 0 30px var(--neon-primary), inset 0 0 15px rgba(38, 169, 224, 0.3);
}

/* Mobile Menu Overlay */
.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; /* Below menu, above content */
}

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

/* Footer Section */
.site-footer {
  background-color: #1a1a2e; /* Regular dark background for footer */
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 20px;
  font-size: 14px;
}

.site-footer h4 {
  color: var(--secondary-color);
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

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

.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(150%); /* Make icons fit dark theme, slight glow */
  transition: filter 0.3s ease;
}

.payment-icons img:hover,
.game-providers-icons img:hover,
.social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%) drop-shadow(0 0 5px var(--neon-primary));
}

.game-providers-section,
.social-media-section {
  padding: 20px 0;
  text-align: center;
}

.game-providers-section .footer-container,
.social-media-section .footer-container {
    padding: 0 20px;
}

.game-providers-section h4,
.social-media-section h4 {
  text-align: left;
  margin-left: 20px; /* Align with container padding */
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 15px;
}

.game-providers-section .game-providers-icons,
.social-media-section .social-media-icons {
  justify-content: flex-start; /* Align icons to the left */
  padding: 0 20px; /* Match container padding */
}

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

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

.footer-bottom p {
  margin: 0;
}

.footer-nav-action {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.footer-nav-action a {
  color: var(--login-color); /* Orange for action links */
  font-weight: bold;
}

.footer-nav-action a:hover {
  color: var(--neon-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Common mobile overrides */
  .header-container, .nav-container, .footer-container {
    width: 100%;
    max-width: none; /* Remove max-width on mobile */
    padding: 0 15px; /* Smaller padding */
  }

  /* Marquee mobile adjustments */
  .marquee-section {
    height: 25px; /* Mobile height */
  }
  .marquee-container {
    padding: 0 5px;
    gap: 5px;
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .marquee-icon-emoji {
    font-size: 14px;
  }
  .marquee-text {
    font-size: 12px;
    line-height: 1.2;
  }
  .marquee-separator {
    font-size: 12px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 15px;
    animation: marquee-scroll 20s linear infinite; /* Faster scroll */
  }

  /* Header mobile layout */
  .site-header {
    top: 25px; /* Marquee mobile height */
    flex-direction: column; /* Ensure column layout */
    height: auto; /* Allow height to adjust */
  }

  .header-top {
    padding: 5px 0;
    height: 50px; /* Mobile fixed height for top bar */
  }
  
  .header-top .header-container {
    padding: 0 15px;
    justify-content: space-between; /* Space between hamburger and logo */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 0; /* Left side */
  }

  .logo {
    order: 1; /* Center */
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px; /* Smaller font size */
    max-width: calc(100% - 100px); /* Adjust max-width to not overlap hamburger */
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  /* Mobile Navigation Buttons - Always visible */
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e); /* Dark background for button bar */
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite alternate; /* Dynamic border color */
    box-shadow: 0 0 8px var(--neon-glow-color-2), 0 0 15px var(--neon-glow-color-2), inset 0 0 10px rgba(0, 255, 255, 0.1); /* Cyan glow */
    flex-wrap: nowrap; /* Prevent buttons from wrapping */
  }

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

  /* Main Navigation Mobile (Hamburger menu content) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Position below header (marquee + top + mobile buttons) */
    left: 0;
    width: 70%; /* Slide-in from left */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e); /* Dark background */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
    box-shadow: 5px 0 15px var(--neon-glow-color-1), 10px 0 30px var(--neon-glow-color-1), inset 0 0 20px rgba(255, 0, 255, 0.1); /* Magenta glow */
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1000; /* Ensure menu is above overlay */
  }

  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide into view */
  }

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

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

  /* Footer mobile layout */
  .footer-top .footer-container {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

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

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

  .game-providers-section h4,
  .social-media-section h4 {
    margin-left: 0;
    text-align: center;
  }

  .game-providers-section .game-providers-icons,
  .social-media-section .social-media-icons {
    justify-content: center;
    padding: 0 15px;
  }

  /* Mobile content overflow prevention */
  .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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
