:root {
  --header-offset: 120px; /* Desktop: Total height of header + button area */
  --marquee-height: 50px;
  --neon-primary: #FFD700; /* Gold */
  --neon-secondary: #8B0000; /* Dark Red */
  --neon-accent: #FF4500; /* OrangeRed for contrast */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 200px; /* Mobile: Total height including marquee/header/button area */
    --marquee-height: 40px;
  }
}

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

.page-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}
.page-content {
  overflow-x: hidden;
  max-width: 100%;
}

/* Neon Glow Animations */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary);
    box-shadow: 
      0 0 8px var(--neon-primary),
      0 0 16px var(--neon-primary),
      inset 0 0 8px rgba(255, 215, 0, 0.3);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 
      0 0 8px var(--neon-secondary),
      0 0 16px var(--neon-secondary),
      inset 0 0 8px rgba(139, 0, 0, 0.3);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 
      0 0 8px var(--neon-accent),
      0 0 16px var(--neon-accent),
      inset 0 0 8px rgba(255, 69, 0, 0.3);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow: 
      0 0 4px var(--neon-primary),
      0 0 8px var(--neon-primary),
      0 0 12px var(--neon-primary);
    color: #ffffff;
  }
  50% {
    text-shadow: 
      0 0 4px var(--neon-secondary),
      0 0 8px var(--neon-secondary),
      0 0 12px var(--neon-secondary);
    color: #ffffff;
  }
  100% {
    text-shadow: 
      0 0 4px var(--neon-accent),
      0 0 8px var(--neon-accent),
      0 0 12px var(--neon-accent);
    color: #ffffff;
  }
}

@keyframes marquee-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  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;
  line-height: 1;
}

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

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

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

@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;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  min-height: 60px; /* Base height for header-top */
}

.site-header .header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  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: 10px 0;
}

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

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff; /* Regular color for logo */
  text-decoration: none;
  flex-shrink: 0;
  /* LOGO should not have neon effects */
  text-shadow: none;
  box-shadow: none;
  filter: none;
  transition: none;
  animation: none;
}

.site-header .logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 40px;
  text-shadow: none; /* Ensure no text-shadow on image if it's a text-based image */
}

.site-header .desktop-nav-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.site-header .btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 10px 20px;
  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: bold;
  cursor: pointer;
  white-space: nowrap;
}

.site-header .btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
}

.site-header .main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  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);
  padding: 10px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

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

.site-header .nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--neon-primary);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above logo */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
  box-shadow: 
    0 0 5px var(--neon-accent),
    0 0 10px var(--neon-accent);
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

.hamburger-menu.active .hamburger-icon {
  background-color: transparent;
}

.hamburger-menu.active .hamburger-icon::before {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--neon-primary);
}

.hamburger-menu.active .hamburger-icon::after {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--neon-primary);
}

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

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer Section */
.site-footer {
  background-color: #1a1a2e;
  color: #c0c0c0;
  padding: 40px 0 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

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

.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 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

.site-footer .footer-logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--neon-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

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

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

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

.site-footer .footer-col ul li a {
  color: #c0c0c0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-col ul li a:hover {
  color: var(--neon-primary);
}

.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;
  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%); /* Subtle effect for icons */
  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%); /* Color on hover */
}

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

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

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

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

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

.site-footer .copyright {
  margin: 0;
  color: #888888;
}

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

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

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

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

  .site-header {
    top: var(--marquee-height);
  }

  .site-header .header-top {
    padding: 10px 0;
  }

  .site-header .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    position: relative;
    min-height: 50px;
  }

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

  .site-header .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    order: 1; /* Center */
  }
  .site-header .logo img {
    max-height: 35px;
  }

  .site-header .desktop-nav-buttons {
    display: none;
  }

  .mobile-nav-buttons {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 
      0 0 8px var(--neon-accent),
      0 0 16px var(--neon-accent),
      inset 0 0 8px rgba(255, 69, 0, 0.1);
  }
  
  .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: calc(var(--marquee-height) + 120px); /* Adjust based on header-top and mobile-nav-buttons height */
    left: 0;
    width: 250px;
    height: calc(100% - var(--marquee-height) - 120px); /* Adjust height */
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      inset 0 0 20px rgba(255, 215, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    overflow-y: auto;
  }

  .site-header .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

  .site-header .nav-container {
    flex-direction: column;
    padding: 0;
    width: 100%;
    max-width: none;
  }

  .site-header .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

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

  .site-footer .footer-bottom-section .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .site-footer .footer-legal-nav {
    justify-content: 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;
  }
}
