:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --neon-primary: var(--secondary-color, #FFF000); /* Bright yellow/gold */
  --neon-secondary: #00FFFF; /* Cyan */
  --neon-accent: #FF00FF; /* Magenta */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;

  /* Header offsets - Calculated based on actual structure */
  --marquee-height-desktop: 45px;
  --header-top-height-desktop: 60px; /* Logo + buttons area */
  --main-nav-height-desktop: 50px; /* Nav links area */
  --header-offset: calc(var(--marquee-height-desktop) + var(--header-top-height-desktop) + var(--main-nav-height-desktop)); /* Desktop: 45 + 60 + 50 = 155px */
}

@media (max-width: 768px) {
  :root {
    --marquee-height-mobile: 30px;
    --header-top-height-mobile: 50px; /* Hamburger + Logo area */
    --mobile-buttons-height-mobile: 50px; /* Mobile buttons area */
    --header-offset: calc(var(--marquee-height-mobile) + var(--header-top-height-mobile) + var(--mobile-buttons-height-mobile)); /* Mobile: 30 + 50 + 50 = 130px */
  }
}

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

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

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

/* Animations for neon effects */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary, #FFF000);
    box-shadow: 
      0 0 10px var(--neon-primary, #FFF000),
      0 0 20px var(--neon-primary, #FFF000),
      inset 0 0 10px rgba(255, 240, 0, 0.3);
  }
  33% {
    border-color: var(--neon-secondary, #00FFFF);
    box-shadow: 
      0 0 10px var(--neon-secondary, #00FFFF),
      0 0 20px var(--neon-secondary, #00FFFF),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-accent, #FF00FF);
    box-shadow: 
      0 0 10px var(--neon-accent, #FF00FF),
      0 0 20px var(--neon-accent, #FF00FF),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow: 
      0 0 5px var(--neon-primary, #FFF000),
      0 0 10px var(--neon-primary, #FFF000),
      0 0 15px var(--neon-primary, #FFF000);
    color: #ffffff;
  }
  50% {
    text-shadow: 
      0 0 5px var(--neon-secondary, #00FFFF),
      0 0 10px var(--neon-secondary, #00FFFF),
      0 0 15px var(--neon-secondary, #00FFFF);
    color: #ffffff;
  }
  100% {
    text-shadow: 
      0 0 5px var(--neon-accent, #FF00FF),
      0 0 10px var(--neon-accent, #FF00FF),
      0 0 15px var(--neon-accent, #FF00FF);
    color: #ffffff;
  }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--marquee-height-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, #FFF000),
    0 0 20px var(--neon-primary, #FFF000),
    0 0 30px var(--neon-primary, #FFF000),
    inset 0 0 20px rgba(255, 240, 0, 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, #FFF000),
    0 0 10px var(--neon-primary, #FFF000),
    0 0 15px var(--neon-primary, #FFF000);
  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;
  height: 100%; /* Ensure wrapper takes full height for vertical alignment */
  display: flex;
  align-items: center;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  gap: 30px;
  padding-right: 30px; /* Ensure content is fully visible before repeating */
}

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

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

/* Header Section */
.site-header {
  position: fixed;
  top: var(--marquee-height-desktop); /* Position below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
}

.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; /* Dynamic border glow */
  box-shadow: 
    0 0 10px var(--neon-primary, #FFF000),
    0 0 20px var(--neon-primary, #FFF000),
    inset 0 0 20px rgba(255, 240, 0, 0.1);
  padding: 10px 0;
  min-height: var(--header-top-height-desktop);
  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;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold color for contrast, no neon glow */
  text-decoration: none;
  display: block; /* Default for text logo */
  line-height: 1;
  padding: 5px 0;
  flex-shrink: 0;
  /* LOGO must NOT have neon effects */
  text-shadow: none;
  box-shadow: none;
  filter: none;
  animation: none;
}
.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 50px; /* Desktop logo height */
}

.desktop-nav-buttons {
  display: flex; /* Desktop default: visible */
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

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

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Dynamic border glow, different from top header */
  box-shadow: 
    0 0 10px var(--neon-secondary, #00FFFF),
    0 0 20px var(--neon-secondary, #00FFFF),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 10px 0;
  min-height: var(--main-nav-height-desktop);
  display: flex; /* Desktop default: visible */
  align-items: center;
  justify-content: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap; /* Allow wrapping for many items */
}

.nav-link {
  color: #ffffff;
  font-size: 16px;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary, #FFF000), var(--neon-secondary, #00FFFF));
  padding: 12px 20px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border glow */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary, #FFF000);
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  animation-duration: 2s; /* Faster glow on hover */
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px var(--neon-primary, #FFF000),
    0 0 30px var(--neon-primary, #FFF000),
    0 0 45px var(--neon-primary, #FFF000),
    inset 0 0 15px rgba(255, 240, 0, 0.5);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Desktop default: hidden */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above logo */
  flex-shrink: 0;
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neon-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary);
}

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

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

.hamburger-menu.active .hamburger-icon: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-color: rgba(0, 0, 0, 0.7);
  z-index: 999; /* Below menu, above content */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer Section */
.site-footer {
  background-color: var(--primary-color); /* Deep tech blue, no neon */
  color: #ffffff;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold color */
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold color */
  margin-bottom: 15px;
  display: block;
}

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

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

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

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

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

.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 all icon sets */
  width: 100%;
}

.payment-icons img,
.game-providers-icons img,
.social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

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

.footer-middle-section .footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-providers-section h4,
.social-media-section h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.footer-bottom-section {
  padding-top: 20px;
}

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

.copyright-info {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Marquee */
  .marquee-section {
    height: var(--marquee-height-mobile);
  }
  .marquee-container {
    gap: 10px;
    padding: 0 10px;
  }
  .marquee-icon {
    width: 25px;
    height: 25px;
  }
  .marquee-icon-emoji {
    font-size: 16px;
  }
  .marquee-text {
    font-size: 14px;
  }
  .marquee-separator {
    font-size: 14px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 20px;
    animation: marquee-scroll 25s linear infinite;
  }

  /* Header */
  .site-header {
    top: var(--marquee-height-mobile); /* Position below mobile marquee */
  }

  .header-top {
    padding: 5px 0;
    min-height: var(--header-top-height-mobile);
  }

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

  .hamburger-menu {
    display: block; /* Mobile default: visible */
    order: 1; /* Left side */
  }

  .logo {
    order: 2; /* Center */
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    max-width: calc(100% - 100px); /* Adjust for hamburger width */
  }
  .logo img {
    max-height: 40px; /* Mobile logo height */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Mobile: visible */
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    box-shadow: 
      0 0 8px var(--neon-secondary, #00FFFF),
      0 0 15px var(--neon-secondary, #00FFFF),
      inset 0 0 10px rgba(0, 255, 255, 0.1);
    padding: 8px 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    min-height: var(--mobile-buttons-height-mobile);
    align-items: center;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Two buttons, with 10px gap */
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font size */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
  }

  .main-nav {
    display: none; /* Mobile default: hidden, JS toggles 'active' */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Position below entire header */
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px;
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-1));
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 
      0 0 15px var(--neon-accent, #FF00FF),
      0 0 30px var(--neon-accent, #FF00FF),
      inset 0 0 20px rgba(255, 0, 255, 0.1);
    transform: translateX(-100%); /* Hidden off-screen */
    transition: transform 0.3s ease-out;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 1000; /* Above overlay */
  }

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

  .nav-container {
    flex-direction: column;
    padding: 0 15px;
    align-items: flex-start;
    width: 100%;
    max-width: none; /* Mobile: container fills width */
  }

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

  /* Footer */
  .site-footer .footer-container {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    padding: 0 15px;
    max-width: none; /* Mobile: container fills width */
  }

  .footer-bottom-section .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

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

  /* 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;
  }
}
