:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --accent-color: #FF0000; /* Red for emphasis */
  --neon-primary: var(--primary-color);
  --neon-secondary: var(--accent-color);
  --neon-accent: #00FFFF;

  --header-offset: 155px; /* Desktop: Marquee (45px) + Header Top (60px) + Main Nav (50px) */
  --marquee-height: 45px;
}

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

/* Base Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #ffffff;
  background-color: var(--secondary-color);
  padding-top: var(--header-offset);
  overflow-x: hidden; /* Prevent horizontal scroll from mobile content */
}

*, *::before, *::after {
  box-sizing: border-box;
}

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, #FFD700);
    box-shadow: 
      0 0 10px var(--neon-primary, #FFD700),
      0 0 20px var(--neon-primary, #FFD700),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  33% {
    border-color: var(--neon-secondary, #FF0000);
    box-shadow: 
      0 0 10px var(--neon-secondary, #FF0000),
      0 0 20px var(--neon-secondary, #FF0000),
      inset 0 0 10px rgba(255, 0, 0, 0.3);
  }
  66% {
    border-color: var(--neon-accent, #00FFFF);
    box-shadow: 
      0 0 10px var(--neon-accent, #00FFFF),
      0 0 20px var(--neon-accent, #00FFFF),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
}

@keyframes alternate-glow {
  0%, 100% {
    box-shadow: 
      0 0 5px var(--neon-primary, #FFD700),
      0 0 10px var(--neon-primary, #FFD700),
      inset 0 0 5px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 0 5px var(--neon-secondary, #FF0000),
      0 0 10px var(--neon-secondary, #FF0000),
      inset 0 0 5px rgba(255, 0, 0, 0.2);
  }
}

@keyframes neon-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 0 8px var(--neon-primary, #FFD700),
      0 0 15px var(--neon-primary, #FFD700);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 0 12px var(--neon-primary, #FFD700),
      0 0 25px var(--neon-primary, #FFD700),
      0 0 35px var(--neon-primary, #FFD700);
  }
}

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

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--marquee-height);
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border */
  z-index: 1001; /* Ensure on top of header */
  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;
  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: 10px 0; /* Vertical padding for content */
}

.marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.marquee-text:hover {
  text-shadow: 
    0 0 10px var(--neon-primary, #FFD700),
    0 0 20px var(--neon-primary, #FFD700),
    0 0 30px var(--neon-primary, #FFD700),
    0 0 40px var(--neon-primary, #FFD700);
  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, #FFD700),
    0 0 6px var(--neon-primary, #FFD700);
}

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

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

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
  padding: 15px 0;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border */
}

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

.logo {
  color: #ffffff; /* Regular color, no neon */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase; /* Ensure uppercase for English parts */
  letter-spacing: 1px;
  flex-shrink: 0;
}

.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, #FFD700), var(--neon-secondary, #FF0000));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border */
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary, #FFD700);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:hover {
  animation-duration: 2s; /* Faster color change on hover */
  transform: translateY(-2px);
}

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Different dark background for distinction */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Dynamic color border, different animation */
  display: flex; /* Desktop default: flex */
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap; /* Allow wrapping for many links on desktop if needed */
}

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

.nav-link:hover {
  color: var(--neon-primary, #FFD700);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above logo and overlay */
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  animation: alternate-glow 2s ease-in-out infinite; /* Neon glow for hamburger */
  border-radius: 5px;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-primary, #FFD700);
}

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

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

.hamburger-menu.active span: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;
}

/* Footer Section */
.site-footer {
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

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

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

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

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
}

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

.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(--primary-color);
}

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

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

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

.footer-middle-section .footer-container > div {
  margin-bottom: 30px;
}

.footer-middle-section .footer-container > div:last-child {
  margin-bottom: 0;
}

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

.copyright {
  color: rgba(255, 255, 255, 0.5);
}

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

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

  .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;
    padding: 8px 0;
  }

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

  .header-top {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Hamburger left, logo middle, balance right */
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    justify-content: space-between;
  }

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

  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    order: 1; /* Center */
    padding-right: 40px; /* Balance space taken by hamburger */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay on one line */
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border */
  }

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

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: var(--header-offset); /* Below fixed header and mobile buttons */
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset));
    background: linear-gradient(180deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
    transform: translateX(-100%); /* Slide out to left */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Above overlay */
    overflow-y: auto;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse; /* Dynamic color border */
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
  }

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

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

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

  /* Footer Mobile */
  .footer-top-section .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-middle-section .footer-container {
    padding: 0 15px;
  }

  .footer-bottom-section .footer-container {
    padding: 0 15px;
  }

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