:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --background-color: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;

  /* Neon colors derived from theme, for dynamic use */
  --neon-primary: var(--glow-color); /* #FFB04D */
  --neon-secondary: var(--secondary-color); /* #FFA53A */
  --neon-accent: var(--deep-orange); /* #D96800 */

  /* Header offset calculation (with marquee) */
  --header-offset: 166px; /* 44px (marquee) + 68px (header-top) + 52px (main-nav) + 2px buffer */
}

body {
  padding-top: var(--header-offset);
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-main);
  line-height: 1.6;
}

/* Base Neon Glow Animations */
@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 rainbow-border {
  0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
  16.6% { border-color: #ff8000; box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000; }
  33.3% { border-color: #ffff00; box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
  50% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
  66.6% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff; }
  83.3% { border-color: #8000ff; box-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff; }
  100% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
}
@keyframes hue-spin {
  0% { filter: hue-rotate(0deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
}
@keyframes alternate-colors {
  0% { border-color: var(--neon-primary); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  100% { border-color: var(--neon-secondary); box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary); }
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-secondary); }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-accent); }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-secondary); }
}
@keyframes random-glow {
  0% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; } 20% { border-color: #00ffff; box-shadow: 0 0 20px #00ffff; }
  40% { border-color: #ffff00; box-shadow: 0 0 20px #ffff00; } 60% { border-color: #00ff00; box-shadow: 0 0 20px #00ff00; }
  80% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; } 100% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
}
@keyframes theme-colors {
  0%, 100% { border-color: var(--neon-primary); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), inset 0 0 10px rgba(255, 176, 77, 0.3); }
  33% { border-color: var(--neon-secondary); box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary), inset 0 0 10px rgba(255, 165, 58, 0.3); }
  66% { border-color: var(--neon-accent); box-shadow: 0 0 10px var(--neon-accent), 0 0 20px var(--neon-accent), inset 0 0 10px rgba(217, 104, 0, 0.3); }
}
@keyframes text-glow-flow {
  0% { text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary); color: var(--text-main); }
  50% { text-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary), 0 0 15px var(--neon-secondary); color: var(--text-main); }
  100% { text-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent), 0 0 15px var(--neon-accent); color: var(--text-main); }
}
@keyframes led-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.3; } }

/* Marquee Section Styles */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px; /* Desktop fixed height */
  box-sizing: border-box;
  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 */
  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, 176, 77, 0.1);
  z-index: 1001; /* Above header */
}
.marquee-container {
  width: 100%; max-width: 100%; height: 100%; margin: 0 auto; overflow: hidden; display: flex; align-items: center; gap: 15px; padding: 0 20px; 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));
}
@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;
}
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.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);
}

/* Header Section Styles */
.site-header {
  position: fixed;
  top: 44px; /* Below marquee */
  left: 0;
  width: 100%;
  z-index: 1000; /* Below marquee, above content */
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
  box-sizing: border-box;
}

.header-top {
  box-sizing: border-box;
  min-height: 68px; /* Desktop fixed height */
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border */
  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, 176, 77, 0.1);
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
}
.header-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px; /* Inner padding for content */
}

.logo {
  color: var(--text-main); /* Regular color, no neon glow */
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: block; /* Ensure it's not inline-block */
  padding: 5px 0; /* Add some vertical padding */
  text-shadow: none; /* Explicitly remove text-shadow for logo */
  box-shadow: none; /* Explicitly remove box-shadow for logo */
}
.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 60px; /* Desktop max height */
  object-fit: contain;
  box-shadow: none; /* Explicitly remove box-shadow for logo image */
}

.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 12px;
}
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

.main-nav {
  box-sizing: border-box;
  min-height: 52px; /* Desktop fixed height */
  height: 52px;
  display: flex; /* Visible on desktop */
  align-items: center;
  overflow: hidden;
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: alternate-colors 4s ease-in-out infinite; /* Different dynamic color border */
  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(255, 165, 58, 0.1);
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Different dark background */
}
.nav-container {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.nav-link {
  color: var(--text-main); /* Regular text color */
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  text-shadow: none; /* Explicitly remove text-shadow for nav links */
}
.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(255, 140, 26, 0.1);
}

.btn {
  position: relative;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  padding: 12px 25px;
  color: var(--text-main);
  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 var(--text-main), 0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap; /* Prevent text wrapping on desktop buttons */
}
.btn:hover {
  animation-duration: 2s; /* Faster animation on hover */
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--neon-primary), 0 0 30px var(--neon-primary), inset 0 0 15px rgba(255, 176, 77, 0.5);
}

/* Hamburger Menu (Desktop - Hidden) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1002; /* Above logo and mobile nav buttons */
}
.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary); /* Neon color for hamburger */
  border-radius: 3px;
  transition: all 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic glow */
}
.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 Styles */
.site-footer {
  background-color: var(--background-color);
  color: var(--text-main);
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.footer-col h4 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}
.footer-logo {
  color: var(--text-main);
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 15px;
  display: inline-block;
}
.footer-description {
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--primary-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 sections */
  width: 100%;
}
.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}
.game-providers-section, .social-media-section {
  max-width: 1200px;
  margin: 0 auto 30px;
}
.footer-bottom {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a {
  display: none; /* IMPORTANT: No links allowed in .footer-bottom */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 146px; /* 36px (marquee) + 60px (header-top) + 48px (mobile-nav-buttons) + 2px buffer */
  }

  /* Marquee */
  .marquee-section { height: 36px !important; padding-top: 0px !important; padding-bottom: 0px !important; }
  .marquee-container { gap: 10px !important; padding: 0 12px !important; height: 100% !important; }
  .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; }

  /* Header */
  .site-header { top: 36px; /* Below mobile marquee */ }
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container {
    width: 100%; max-width: none; padding-left: 15px; padding-right: 15px;
    justify-content: flex-start; /* Adjust for hamburger menu */
  }

  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important; /* Center logo horizontally */
    align-items: center !important;
    font-size: 20px;
    max-width: calc(100% - 70px); /* Account for hamburger and some right padding */
  }
  .logo img { max-height: 56px !important; }

  .desktop-nav-buttons { display: none; /* Hide on mobile */ }
  .mobile-nav-buttons {
    display: flex !important; /* Show on mobile */
    width: 100%; max-width: 100%; box-sizing: border-box;
    padding: 10px 15px; /* Add vertical padding */
    gap: 10px; justify-content: center; flex-wrap: nowrap; /* Ensure no wrapping */
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border */
    box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary); /* Reduced glow */
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0; max-width: calc(50% - 5px); /* Two buttons, equal width */
    padding: 8px 12px; font-size: 13px; text-align: center;
    white-space: normal; word-wrap: break-word; overflow-wrap: break-word;
    box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary); /* Reduced glow */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 146px; /* Below header-top and mobile-nav-buttons */
    left: 0;
    width: 250px; /* Sidebar width */
    height: calc(100% - 146px); /* Full height below header */
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Dark background */
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    z-index: 1000; /* Above overlay */
    border-right: 2px solid;
    animation: alternate-colors 4s ease-in-out infinite; /* Dynamic color border */
    box-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary); /* Reduced glow */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container {
    flex-direction: column;
    padding: 0 15px;
    height: auto;
    max-width: none;
  }
  .nav-link {
    width: 100%;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-link:last-child { border-bottom: none; }

  .hamburger-menu {
    display: flex; /* Show on mobile */
    margin-right: 15px;
    width: 25px;
    height: 20px;
  }
  .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); }

  /* Footer */
  .site-footer { padding: 30px 15px 15px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
  .footer-col { text-align: center; }
  .footer-logo { font-size: 20px; }
  .footer-nav { text-align: center; }
  .footer-bottom { padding-top: 15px; }

  /* Mobile Content Overflow Protection */
  .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;
  }
}
