:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --black-color: #000000;

  /* Neon palette for dynamic animations */
  --header-top-neon-1: #FFFF00; /* Yellow */
  --header-top-neon-2: #FFA500; /* Orange */
  --header-top-neon-3: #FFD700; /* Gold */

  --main-nav-neon-1: #FF00FF; /* Magenta */
  --main-nav-neon-2: #FF1493; /* Deep Pink */
  --main-nav-neon-3: #FF69B4; /* Hot Pink */

  --marquee-neon-1: #00FFFF; /* Cyan */
  --marquee-neon-2: #00BFFF; /* Deep Sky Blue */
  --marquee-neon-3: #1E90FF; /* Dodger Blue */

  --button-neon-1: #FF4500; /* OrangeRed */
  --button-neon-2: #FF6347; /* Tomato */
  --button-neon-3: #FF8C00; /* DarkOrange */

  /* Header offset values */
  --marquee-height-desktop: 45px;
  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 45px;
  --header-offset: calc(var(--marquee-height-desktop) + var(--header-top-height-desktop) + var(--main-nav-height-desktop)); /* Desktop: 45 + 60 + 45 = 150px */
}

@media (max-width: 768px) {
  :root {
    --marquee-height-mobile: 25px;
    --header-top-height-mobile: 50px;
    --mobile-buttons-height: 54px;
    --header-offset: calc(var(--marquee-height-mobile) + var(--header-top-height-mobile) + var(--mobile-buttons-height)); /* Mobile: 25 + 50 + 54 = 129px */
  }
}

/* Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--header-offset);
}

.site-header, .marquee-section, .site-footer {
  box-sizing: border-box;
}

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

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

/* Animations for dynamic colors */
@keyframes theme-colors-header-top {
  0%, 100% {
    border-color: var(--header-top-neon-1);
    box-shadow: 0 0 10px var(--header-top-neon-1), 0 0 20px var(--header-top-neon-1), inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
  33% {
    border-color: var(--header-top-neon-2);
    box-shadow: 0 0 10px var(--header-top-neon-2), 0 0 20px var(--header-top-neon-2), inset 0 0 10px rgba(255, 165, 0, 0.3);
  }
  66% {
    border-color: var(--header-top-neon-3);
    box-shadow: 0 0 10px var(--header-top-neon-3), 0 0 20px var(--header-top-neon-3), inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
}

@keyframes theme-colors-main-nav {
  0%, 100% {
    border-color: var(--main-nav-neon-1);
    box-shadow: 0 0 10px var(--main-nav-neon-1), 0 0 20px var(--main-nav-neon-1), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  33% {
    border-color: var(--main-nav-neon-2);
    box-shadow: 0 0 10px var(--main-nav-neon-2), 0 0 20px var(--main-nav-neon-2), inset 0 0 10px rgba(255, 20, 147, 0.3);
  }
  66% {
    border-color: var(--main-nav-neon-3);
    box-shadow: 0 0 10px var(--main-nav-neon-3), 0 0 20px var(--main-nav-neon-3), inset 0 0 10px rgba(255, 105, 180, 0.3);
  }
}

@keyframes theme-colors-marquee {
  0%, 100% {
    border-color: var(--marquee-neon-1);
    box-shadow: 0 0 10px var(--marquee-neon-1), 0 0 20px var(--marquee-neon-1), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--marquee-neon-2);
    box-shadow: 0 0 10px var(--marquee-neon-2), 0 0 20px var(--marquee-neon-2), inset 0 0 10px rgba(0, 191, 255, 0.3);
  }
  66% {
    border-color: var(--marquee-neon-3);
    box-shadow: 0 0 10px var(--marquee-neon-3), 0 0 20px var(--marquee-neon-3), inset 0 0 10px rgba(30, 144, 255, 0.3);
  }
}

@keyframes theme-colors-button {
  0%, 100% {
    border-color: var(--button-neon-1);
    box-shadow: 0 0 10px var(--button-neon-1), 0 0 20px var(--button-neon-1), inset 0 0 10px rgba(255, 69, 0, 0.3);
  }
  33% {
    border-color: var(--button-neon-2);
    box-shadow: 0 0 10px var(--button-neon-2), 0 0 20px var(--button-neon-2), inset 0 0 10px rgba(255, 99, 71, 0.3);
  }
  66% {
    border-color: var(--button-neon-3);
    box-shadow: 0 0 10px var(--button-neon-3), 0 0 20px var(--button-neon-3), inset 0 0 10px rgba(255, 140, 0, 0.3);
  }
}

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

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

/* Marquee Section Styles */
.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-marquee 4s ease-in-out infinite;
  z-index: 1001;
  height: var(--marquee-height-desktop);
}

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

.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(--marquee-neon-1), 0 0 10px var(--marquee-neon-1), 0 0 15px var(--marquee-neon-1);
  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;
  height: 100%;
}

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

/* Header Section Styles */
.site-header {
  position: fixed;
  top: var(--marquee-height-desktop);
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: var(--secondary-color);
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors-header-top 4s ease-in-out infinite;
  width: 100%;
  min-height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
}

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

.logo {
  color: var(--secondary-color);
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 0;
  display: block;
  line-height: 1;
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--button-neon-1), var(--button-neon-3));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors-button 4s ease-in-out infinite;
  text-shadow: 0 0 5px #ffffff, 0 0 10px var(--button-neon-1);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

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

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors-main-nav 4s ease-in-out infinite;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: var(--main-nav-height-desktop);
}

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

.nav-link {
  color: var(--secondary-color);
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  position: relative;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--secondary-color);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px var(--marquee-neon-1);
}

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

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

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

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

/* Footer Styles */
.site-footer {
  background-color: #1a1a2e;
  color: #f0f0f0;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

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

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

.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: #f0f0f0;
  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;
  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;
  filter: grayscale(100%) brightness(150%); /* For better visibility on dark background */
  transition: filter 0.3s ease;
}

.payment-methods .payment-icons img:hover,
.game-providers-section .game-providers-icons img:hover,
.social-media-section .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%);
}

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

.game-providers-section h4,
.social-media-section h4 {
  margin-bottom: 15px;
}

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

.footer-bottom .footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.copyright {
  margin: 0;
  color: #a0a0a0;
}

.footer-action-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .marquee-section {
    height: var(--marquee-height-mobile);
  }

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

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

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

  .marquee-text {
    font-size: 14px;
  }

  .marquee-separator {
    font-size: 14px;
    margin: 0 10px;
  }

  .marquee-content {
    gap: 20px;
    animation: marquee-scroll 25s linear infinite;
  }

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

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

  .header-container {
    padding: 0 15px;
    position: relative;
    min-height: var(--header-top-height-mobile);
  }

  .hamburger-menu {
    display: block;
    order: 0;
    margin-right: auto; /* Push logo to center */
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 22px;
    padding: 5px 0;
  }

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

  .mobile-nav-buttons {
    display: flex !important;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 10px 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    background-color: #16213e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: var(--mobile-buttons-height);
    align-items: center;
  }

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

  .main-nav {
    display: none; /* Hidden by default, shown by JS */
    position: fixed;
    top: calc(var(--marquee-height-mobile) + var(--header-top-height-mobile) + var(--mobile-buttons-height));
    left: 0;
    width: 80%;
    max-width: 300px; /* Limit sidebar width */
    height: calc(100vh - var(--marquee-height-mobile) - var(--header-top-height-mobile) - var(--mobile-buttons-height));
    flex-direction: column;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    overflow-y: auto;
    border-right: 2px solid;
    animation: theme-colors-main-nav 4s ease-in-out infinite;
  }

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

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

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

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

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

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

  .footer-col:last-child {
    margin-bottom: 0;
  }

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

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