:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --neon-green: #39FF14;
  --neon-blue: #00FFFF;
  --neon-magenta: #FF00FF;
  --neon-yellow: #FFFF00;
  --neon-red: #FF0000;
  --header-offset: 155px; /* Desktop: Marquee (45px) + Header Top (70px) + Main Nav (40px) = 155px */
}

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

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  overflow-x: hidden; /* Prevent body overflow on mobile */
  padding-top: var(--header-offset);
}

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

ul {
  list-style: none;
}

/* Neon Animations */
@keyframes rainbow-border {
  0% { border-color: var(--neon-red); box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red); }
  16.6% { border-color: var(--neon-yellow); box-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-yellow); }
  33.3% { border-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green); }
  50% { border-color: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue); }
  66.6% { border-color: var(--neon-magenta); box-shadow: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta); }
  83.3% { border-color: var(--neon-red); box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red); }
  100% { border-color: var(--neon-red); box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red); }
}

@keyframes text-glow-flow {
  0% {
    text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green), 0 0 15px var(--neon-green);
    color: var(--text-light);
  }
  33% {
    text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 15px var(--neon-blue);
    color: var(--text-light);
  }
  66% {
    text-shadow: 0 0 5px var(--neon-yellow), 0 0 10px var(--neon-yellow), 0 0 15px var(--neon-yellow);
    color: var(--text-light);
  }
  100% {
    text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green), 0 0 15px var(--neon-green);
    color: var(--text-light);
  }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green), inset 0 0 10px rgba(57, 255, 20, 0.3);
  }
  33% {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: var(--text-light);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green), 0 0 30px var(--neon-green), inset 0 0 20px rgba(57, 255, 20, 0.1);
  z-index: 1001;
  padding: 10px 0; /* Adjust for content height */
  min-height: 45px;
  display: flex;
  align-items: center;
}

.marquee-container {
  width: 100%;
  max-width: 1200px;
  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: 25px;
  height: 25px;
  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-green), 0 0 10px var(--neon-green), 0 0 15px var(--neon-green);
  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;
}

.marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  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-yellow), 0 0 20px var(--neon-yellow), 0 0 30px var(--neon-yellow), 0 0 40px var(--neon-yellow);
  transform: scale(1.05);
  color: var(--text-light);
}

.marquee-separator {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 15px;
  text-shadow: 0 0 3px var(--neon-blue), 0 0 6px var(--neon-blue);
}

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

/* Site Header */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height */
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 110px; /* Header top (70px) + main nav (40px) */
}

.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-green), 0 0 20px var(--neon-green), inset 0 0 10px rgba(57, 255, 20, 0.2);
  padding: 15px 0;
  min-height: 70px;
  display: flex;
  align-items: center;
}

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

.site-header .logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  display: block;
  padding: 0;
}

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

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

.site-header .btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--neon-red), 0 0 30px var(--neon-red), inset 0 0 15px rgba(195, 8, 8, 0.4);
}

.site-header .main-nav {
  background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: rainbow-border 6s linear infinite;
  box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), inset 0 0 10px rgba(0, 255, 255, 0.2);
  padding: 10px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  width: 100%;
}

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

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

.site-header .nav-link:hover {
  color: var(--neon-yellow);
  text-shadow: 0 0 5px var(--neon-yellow), 0 0 10px var(--neon-yellow);
}

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

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu .bar1, .bar2, .bar3 {
  width: 100%;
  height: 3px;
  background-color: var(--neon-green);
  margin: 6px 0;
  transition: 0.4s;
  box-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green);
}

.hamburger-menu.active .bar1 {
  transform: rotate(-45deg) translate(-7px, 6px);
  background-color: var(--neon-red);
  box-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red);
}

.hamburger-menu.active .bar2 {
  opacity: 0;
}

.hamburger-menu.active .bar3 {
  transform: rotate(45deg) translate(-7px, -6px);
  background-color: var(--neon-red);
  box-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red);
}

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

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

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

.site-footer h4 {
  color: var(--secondary-color);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

.site-footer ul {
  padding: 0;
}

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

.site-footer ul li a {
  color: #cccccc;
  transition: color 0.3s ease;
}

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

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

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col.footer-about .footer-logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  display: block;
}

.footer-col.footer-about .footer-description {
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.payment-icons, .game-providers-icons, .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(150%); /* Adjust for dark background */
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

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

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

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

.game-providers-icons, .social-media-icons {
  gap: 8px;
  width: 100%;
}

.footer-bottom-nav {
  padding: 30px 0;
}

.footer-bottom-nav .footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-bottom-nav .footer-col ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

.footer-bottom-nav .footer-col ul li {
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999999;
  font-size: 13px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .marquee-section {
    padding: 0;
    min-height: 30px;
  }
  .marquee-container {
    padding: 0 10px;
    gap: 8px;
  }
  .marquee-icon {
    width: 18px;
    height: 18px;
  }
  .marquee-icon-emoji {
    font-size: 14px;
  }
  .marquee-text, .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 20px;
    animation-duration: 25s;
  }

  .site-header {
    top: 30px; /* Mobile marquee height */
    min-height: 110px; /* Header top (50px) + mobile nav buttons (60px) */
  }
  .site-header .header-top {
    padding: 10px 0;
    min-height: 50px;
  }
  .site-header .header-container {
    padding: 0 15px;
    max-width: none;
    justify-content: space-between;
  }
  .site-header .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px;
    padding: 0;
  }
  .site-header .logo img {
    max-height: 40px;
  }

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

  .hamburger-menu {
    display: block;
    order: -1;
    margin-right: auto; /* Push logo to center */
    position: relative; /* Ensure z-index works */
    z-index: 1001;
  }

  .site-header .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 250px;
    height: calc(100vh - var(--header-offset));
    background: linear-gradient(180deg, #1a1a2e, #0f3460);
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Above overlay */
    overflow-y: auto;
    padding: 20px 0;
  }

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

  .site-header .nav-container {
    flex-direction: column;
    padding: 0 15px;
    max-width: none;
    align-items: flex-start;
  }

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

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

  .mobile-nav-buttons {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    overflow: hidden;
    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 5px var(--neon-magenta), 0 0 10px var(--neon-magenta), inset 0 0 5px rgba(255, 0, 255, 0.1);
    min-height: 60px;
  }

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

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-nav .footer-col ul {
    flex-direction: column;
    gap: 8px 0;
  }

  .footer-bottom-nav .footer-col ul li {
    width: 100%;
    text-align: center;
  }

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