@charset "UTF-8";
:root {
  --primary-color: #017439; /* Dark green */
  --secondary-color: #FFFFFF; /* White */

  /* Derived vibrant neon colors for animations */
  --neon-primary: #39FF14; /* Bright green */
  --neon-secondary: #00FFFF; /* Bright cyan */
  --neon-accent: #FFFF00; /* Bright yellow */

  /* Custom button colors from prompt */
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-color: #FFFF00;

  /* Header offsets */
  --marquee-height: 45px; /* Based on marquee-section padding and line-height */
  --header-top-height-desktop: 60px; /* Based on header-top padding and logo height */
  --main-nav-height-desktop: 40px; /* Based on main-nav padding and link height */
  --header-top-height-mobile: 60px; /* Based on header-top padding and logo height */
  --mobile-nav-buttons-height: 40px; /* Based on mobile-nav-buttons padding and button height */
  
  --header-offset: calc(var(--marquee-height) + var(--header-top-height-desktop) + var(--main-nav-height-desktop)); /* Desktop */
}
@media (max-width: 768px) {
  :root {
    --header-offset: calc(var(--marquee-height) + var(--header-top-height-mobile) + var(--mobile-nav-buttons-height)); /* Mobile */
  }
}

/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Apply header offset to body */
  background-color: #0a0a0a; /* Dark background for neon theme */
  color: #e0e0e0;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body.no-scroll {
  overflow: hidden;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Animations for Neon Glow */
@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); }
  100% { filter: hue-rotate(360deg); }
}

@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: var(--neon-primary); box-shadow: 0 0 20px var(--neon-primary); }
  20% { border-color: var(--neon-secondary); box-shadow: 0 0 20px var(--neon-secondary); }
  40% { border-color: var(--neon-accent); box-shadow: 0 0 20px var(--neon-accent); }
  60% { border-color: #00ff00; box-shadow: 0 0 20px #00ff00; } /* Fallback/additional color */
  80% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; } /* Fallback/additional color */
  100% { border-color: var(--neon-primary); box-shadow: 0 0 20px var(--neon-primary); }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 0 0 10px var(--neon-accent), 0 0 20px var(--neon-accent);
  }
}

@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: #ffffff;
  }
  50% {
    text-shadow: 
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: #ffffff;
  }
  100% {
    text-shadow: 
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: #ffffff;
  }
}

@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 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: 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 */
  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(57, 255, 20, 0.1); /* Based on neon-primary */
  z-index: 1001;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; /* Smaller icon for better fit */
  height: 24px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 20px; /* Smaller font size */
  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;
  padding-left: 100%; /* Start off-screen to the right */
}

.marquee-text {
  font-size: 14px; /* Smaller font size */
  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: 14px; /* Smaller font size */
  color: rgba(255, 255, 255, 0.6);
  margin: 0 10px;
  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%); } /* Scrolls to half of its content length */
}

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: var(--marquee-height); /* Position below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.header-top {
  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 10px var(--neon-secondary), /* Use neon-secondary for header-top glow */
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(0, 255, 255, 0.1); /* Based on neon-secondary */
  padding: 10px 0; /* Approx 60px height with 40px logo */
  height: var(--header-top-height-desktop);
  box-sizing: border-box;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* White, contrasting with dark background */
  text-decoration: none;
  /* LOGO MUST NOT use neon effects */
  /* NO text-shadow, NO box-shadow, NO neon animations */
  display: block; /* Ensure it's not hidden by default */
}
.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 40px; /* Max height for logo image */
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--button-register), var(--button-login)); /* Custom button colors */
  padding: 10px 20px;
  color: var(--button-text-color); /* Custom button text color */
  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(--button-text-color),
    0 0 10px var(--button-text-color);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px var(--neon-primary),
    0 0 30px var(--neon-primary),
    0 0 45px var(--neon-primary),
    inset 0 0 15px rgba(57, 255, 20, 0.4);
}

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Different dark background */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Dynamic color border, reversed animation */
  box-shadow: 
    0 0 10px var(--neon-accent), /* Use neon-accent for main-nav glow */
    0 0 20px var(--neon-accent),
    0 0 30px var(--neon-accent),
    inset 0 0 20px rgba(255, 255, 0, 0.1); /* Based on neon-accent */
  padding: 0; /* Padding handled by nav-container */
  display: flex; /* Desktop default: visible, horizontal */
  align-items: center;
  height: var(--main-nav-height-desktop); /* Fixed height for desktop */
  box-sizing: border-box;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* Center menu items */
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  width: 100%;
  height: 100%; /* Fill parent height */
  box-sizing: border-box;
}

.nav-link {
  color: var(--secondary-color); /* White for menu links */
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon-primary); /* Hover with neon color */
  text-shadow: 0 0 5px var(--neon-primary);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001; /* Above mobile menu overlay */
  transition: all 0.3s ease;
  padding: 5px; /* Add padding for clickable area */
  box-sizing: content-box;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary); /* Neon color for bars */
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary); /* Neon glow */
}

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

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

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

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
  /* Mobile styles will be applied in media query */
}

.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; /* Below hamburger and menu */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer Styles */
.site-footer {
  background-color: #1a1a2e; /* Dark background, not neon */
  color: #c0c0c0;
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}

.footer-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: var(--secondary-color); /* White headings */
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--neon-primary); /* Use a vibrant green for footer logo */
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
  color: #a0a0a0;
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-nav-list a {
  color: #c0c0c0;
  transition: color 0.3s ease;
}

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

.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: 40px; /* Adjusted for better fit */
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%) brightness(1.2); /* Slightly desaturate and brighten for consistency */
  transition: filter 0.3s ease;
}

.payment-icons img:hover,
.game-providers-icons img:hover,
.social-media-icons img:hover {
  filter: grayscale(0%) brightness(1.5) drop-shadow(0 0 5px var(--neon-primary));
}

.game-providers-section,
.social-media-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-providers-section:last-of-type,
.social-media-section:last-of-type {
  border-bottom: none; /* Remove border for the last section */
}

.game-providers-section h4,
.social-media-section h4 {
  color: var(--secondary-color);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
  color: #888;
}

/* Mobile Responsive */
@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;
  }

  /* Marquee Mobile */
  .marquee-section {
    padding: 0 10px; /* Reduced padding */
    height: var(--marquee-height);
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .marquee-icon-emoji {
    font-size: 16px;
  }
  .marquee-text {
    font-size: 12px;
  }
  .marquee-separator {
    font-size: 12px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 20px;
    animation-duration: 25s; /* Faster scroll on mobile */
  }

  /* Header Mobile */
  .site-header {
    height: calc(var(--header-top-height-mobile) + var(--mobile-nav-buttons-height)); /* Total fixed height for mobile header */
  }
  .header-top {
    padding: 0 15px; /* Reduced padding for mobile */
    height: var(--header-top-height-mobile); /* Fixed height for mobile top bar */
    border-bottom: none; /* Remove border from top bar to allow buttons below */
    box-shadow: none; /* Remove shadow from top bar */
    background: #0a0a0a; /* Simpler dark background for top bar */
  }
  .header-container {
    width: 100%;
    max-width: none; /* Occupy full width */
    padding: 0; /* Remove padding, handled by header-top */
    height: 100%;
    justify-content: space-between; /* Hamburger left, Logo center, space right */
    position: relative; /* For absolute positioning of logo if needed */
  }

  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important; /* Center logo */
    align-items: center !important;
    font-size: 20px; /* Smaller font size for mobile logo */
    max-width: calc(100% - 60px); /* Account for hamburger width */
  }
  .logo img {
    max-height: 35px !important; /* Smaller logo image */
  }

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

  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    margin-right: auto; /* Push logo to center */
    padding: 0; /* Remove padding from hamburger menu itself */
    width: 30px; /* Fixed width for hamburger */
    height: 20px; /* Fixed height for hamburger */
    z-index: 1002; /* Ensure hamburger is above everything */
  }

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px 10px; /* Padding top for separation, bottom for consistency */
    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 10px var(--neon-secondary), 
      0 0 20px var(--neon-secondary),
      inset 0 0 20px rgba(0, 255, 255, 0.1);
    position: absolute; /* Position relative to site-header */
    bottom: 0;
    left: 0;
    height: var(--mobile-nav-buttons-height);
    align-items: center;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Half width minus gap */
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font size */
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: auto; /* Adjust height based on content */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: calc(var(--marquee-height) + var(--header-top-height-mobile) + var(--mobile-nav-buttons-height)); /* Below header and buttons */
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px;
    height: calc(100% - var(--marquee-height) - var(--header-top-height-mobile) - var(--mobile-nav-buttons-height));
    background: linear-gradient(135deg, #1a1a2e, #0f3460); /* Dark background */
    z-index: 1000; /* Above overlay, below hamburger */
    transform: translateX(-100%); /* Slide out to left */
    transition: transform 0.3s ease-out;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border */
    box-shadow: 
      0 0 10px var(--neon-accent), 
      0 0 20px var(--neon-accent),
      inset 0 0 20px rgba(255, 255, 0, 0.1);
    overflow-y: auto; /* Scrollable if menu content is long */
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start; /* Align menu items to left */
    padding: 20px;
    gap: 15px;
    width: 100%; /* Full width within menu */
    max-width: none;
  }

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

  /* Footer Mobile */
  .footer-grid-container {
    grid-template-columns: 1fr; /* Single column layout */
    padding-bottom: 20px;
  }
  .footer-col {
    text-align: center; /* Center content in columns */
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-description {
    text-align: center;
  }
  .footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
  .footer-nav-list li {
    margin-bottom: 0;
  }
  .payment-methods, .game-providers-section, .social-media-section {
    padding: 20px 0;
    text-align: center;
  }
  .payment-icons, .game-providers-icons, .social-media-icons {
    justify-content: center;
  }
  .footer-bottom {
    padding-top: 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
