:root {
    --primary-color: #26A9E0; /* Light Blue */
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07; /* Orange */
    --text-color: #FFFFFF;
    --dark-bg-color: #0a0a0a;
    --dark-bg-gradient: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);

    /* Neon colors derived from primary/accent */
    --neon-primary: var(--primary-color); /* #26A9E0 */
    --neon-secondary: #FF1493; /* Deep Pink */
    --neon-accent: #FFFF00; /* Yellow */
    --neon-login: var(--login-color); /* #EA7C07 */

    --header-offset: 155px; /* Desktop: Marquee 45px + Header Top 60px + Main Nav 50px */
  }

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

  /* Animations for dynamic neon colors */
  @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(38, 169, 224, 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, 20, 147, 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(255, 255, 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(--secondary-color);
    }
    50% {
      text-shadow: 
        0 0 5px var(--neon-secondary),
        0 0 10px var(--neon-secondary),
        0 0 15px var(--neon-secondary);
      color: var(--secondary-color);
    }
    100% {
      text-shadow: 
        0 0 5px var(--neon-accent),
        0 0 10px var(--neon-accent),
        0 0 15px var(--neon-accent);
      color: var(--secondary-color);
    }
  }

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

  @keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.8; }
  }

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

  /* General styles */
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: var(--background-color, #FFFFFF);
    padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
    overflow-x: hidden;
  }
  .no-scroll { overflow: hidden; }

  a {
    text-decoration: none;
    color: var(--primary-color);
  }

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

  h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF; /* For dark header/footer, general text will be black */
  }

  /* Marquee Section */
  .marquee-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark-bg-gradient);
    color: var(--secondary-color);
    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(38, 169, 224, 0.1);
    z-index: 1001;
    height: 45px; /* Fixed height for marquee */
    display: flex;
    align-items: center;
  }

  .marquee-container {
    width: 100%;
    max-width: 100%;
    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: 30px; /* Adjusted for better fit */
    height: 30px; /* Adjusted for better fit */
    z-index: 2;
    position: relative;
  }

  .marquee-icon-emoji {
    font-size: 20px; /* Adjusted for better fit */
    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;
    padding-right: 30px; /* Add padding to prevent abrupt cut-off */
  }

  .marquee-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    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: var(--secondary-color);
  }

  .marquee-separator {
    font-size: 15px;
    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 - Desktop First */
  .site-header {
    position: fixed;
    top: 45px; /* Below marquee */
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .site-header .header-top {
    background: var(--dark-bg-gradient);
    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(38, 169, 224, 0.1);
    padding: 10px 0;
    min-height: 40px; /* Adjusted min-height for content */
    display: flex;
    align-items: center;
  }

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

  .site-header .logo {
    color: var(--secondary-color); /* Regular color, no neon */
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    display: block; /* Ensure it's not hidden */
    text-shadow: none; /* No neon text-shadow */
  }
  .site-header .logo img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 40px;
    text-shadow: none; /* No neon text-shadow */
  }

  .site-header .desktop-nav-buttons {
    display: flex; /* Always visible on desktop */
    gap: 10px;
  }

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

  .site-header .main-nav {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Slightly different dark gradient */
    border-top: 2px solid;
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse; /* Different animation or reverse */
    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, 20, 147, 0.1);
    padding: 10px 0;
    display: flex; /* Visible on desktop */
    min-height: 30px; /* Adjusted min-height for content */
    align-items: center;
  }

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

  .site-header .nav-link {
    color: var(--secondary-color); /* Regular color, no neon */
    padding: 8px 15px;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: none; /* No neon text-shadow */
    white-space: nowrap; /* Prevent wrapping for desktop nav */
  }

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

  /* Buttons */
  .btn {
    position: relative;
    background: linear-gradient(135deg, var(--neon-login), var(--neon-primary)); /* Use login color for button base */
    padding: 10px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Use theme colors for glow */
    text-shadow: 
      0 0 5px var(--secondary-color),
      0 0 10px var(--neon-login); /* Use login color for button text glow */
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap; /* Prevent wrapping for desktop buttons */
  }

  .btn:hover {
    animation-duration: 2s; /* Faster animation on hover */
    transform: translateY(-2px);
    box-shadow: 
      0 0 15px var(--neon-login),
      0 0 30px var(--neon-login),
      inset 0 0 15px rgba(234, 124, 7, 0.5);
  }

  /* Hamburger Menu - Hidden on Desktop */
  .hamburger-menu {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1002; /* Above logo */
    animation: theme-colors 4s ease-in-out infinite; /* Neon glow for hamburger */
    box-shadow: 
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 5px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    text-shadow: 0 0 5px var(--neon-primary); /* Neon glow for lines */
  }
  .hamburger-menu span:nth-child(1) { top: 0px; }
  .hamburger-menu span:nth-child(2) { top: 10px; }
  .hamburger-menu span:nth-child(3) { top: 20px; }

  .hamburger-menu.active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; left: -60px; }
  .hamburger-menu.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

  .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;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Footer Section */
  .site-footer {
    background-color: #1a1a1a; /* Dark, but not neon */
    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 a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
  }

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

  .site-footer .footer-top {
    border-bottom: 1px solid #333333;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

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

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

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

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

  .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; /* Adjusted to 8px for consistency */
    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%); /* Make icons fit dark theme if needed */
    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 {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
  }

  .site-footer .footer-full-width-section {
    margin-bottom: 20px;
  }

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

  /* Mobile Responsive */
  @media (max-width: 768px) {
    .marquee-section {
      height: 40px; /* Smaller marquee on mobile */
      padding: 0;
    }
    .marquee-container {
      gap: 10px;
      padding: 0 10px;
    }
    .marquee-icon {
      width: 25px;
      height: 25px;
    }
    .marquee-icon-emoji {
      font-size: 16px;
    }
    .marquee-text {
      font-size: 13px;
    }
    .marquee-separator {
      font-size: 13px;
      margin: 0 8px;
    }
    .marquee-content {
      gap: 20px;
      animation: marquee-scroll 25s linear infinite; /* Faster scroll on mobile */
    }

    .site-header {
      top: 40px; /* Below smaller mobile marquee */
    }

    .site-header .header-top {
      padding: 8px 0;
      min-height: 35px;
    }

    .site-header .header-container {
      padding: 0 15px;
      width: 100%;
      max-width: none; /* Crucial for mobile container width */
      justify-content: space-between; /* Hamburger left, logo middle */
      position: relative;
    }

    .site-header .logo {
      flex: 1 !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      font-size: 20px;
      text-align: center;
      max-width: calc(100% - 70px); /* Account for hamburger on left */
    }
    .site-header .logo img {
      max-height: 35px;
    }

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

    .hamburger-menu {
      display: block; /* Show hamburger on mobile */
      order: -1; /* Move to left */
      margin-right: auto; /* Push logo to center */
      box-shadow: 
        0 0 3px var(--neon-primary),
        0 0 6px var(--neon-primary);
      width: 25px;
      height: 20px;
    }
    .hamburger-menu span:nth-child(1) { top: 0px; }
    .hamburger-menu span:nth-child(2) { top: 8px; }
    .hamburger-menu span:nth-child(3) { top: 16px; }
    .hamburger-menu.active span:nth-child(1) { top: 8px; }
    .hamburger-menu.active span:nth-child(3) { top: 8px; }

    .site-header .mobile-nav-buttons {
      display: flex !important; /* Show mobile buttons on mobile */
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      padding: 10px 15px;
      overflow-x: hidden; /* Prevent overflow */
      gap: 10px;
      justify-content: center;
      flex-wrap: nowrap; /* Ensure buttons stay in one line */
      background: var(--dark-bg-gradient); /* Match header background */
      border-bottom: 2px solid;
      animation: theme-colors 4s ease-in-out infinite;
      box-shadow: 
        0 0 5px var(--neon-primary),
        0 0 10px var(--neon-primary),
        inset 0 0 10px rgba(38, 169, 224, 0.1);
    }
    .site-header .mobile-nav-buttons .btn {
      flex: 1;
      min-width: 0;
      max-width: calc(50% - 5px); /* Account for 10px gap */
      box-sizing: border-box;
      white-space: normal; /* Allow text wrap for long buttons */
      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, shown by JS */
      flex-direction: column;
      position: fixed;
      top: 0; /* Cover full height when open */
      left: 0;
      width: 80%; /* Menu width */
      height: 100%;
      transform: translateX(-100%); /* Slide out of view */
      transition: transform 0.3s ease;
      z-index: 1000; /* Above overlay, below hamburger */
      background: linear-gradient(135deg, #1a1a2e, #0f3460); /* Darker background for menu */
      padding-top: 60px; /* Space for top bar */
      box-shadow: 
        5px 0 15px rgba(0,0,0,0.5),
        0 0 10px var(--neon-secondary); /* Subtle glow for menu */
      border-right: 2px solid var(--neon-secondary);
    }
    .site-header .main-nav.active {
      display: flex; /* Show menu */
      transform: translateX(0); /* Slide into view */
    }
    .site-header .main-nav .nav-container {
      flex-direction: column;
      align-items: flex-start;
      padding: 20px 15px;
      width: 100%;
      max-width: none; /* Crucial for mobile container width */
    }
    .site-header .nav-link {
      width: 100%;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 15px;
      text-align: left;
      white-space: normal; /* Allow nav links to wrap if needed */
    }
    .site-header .nav-link:last-child {
      border-bottom: none;
    }

    .mobile-menu-overlay {
      top: 0;
    }

    .site-footer .footer-container {
      grid-template-columns: 1fr; /* Single column on mobile */
      gap: 20px;
    }
    .site-footer .footer-col {
      text-align: center;
    }
    .site-footer .footer-col ul {
      text-align: center;
    }
    .site-footer .footer-col ul li a {
      display: inline-block; /* Center list items */
    }
    .site-footer .footer-logo {
      text-align: center;
    }
    .site-footer .footer-description {
      text-align: center;
    }
    .site-footer .payment-icons,
    .site-footer .game-providers-icons,
    .site-footer .social-media-icons {
      justify-content: center; /* Center icons on mobile */
    }

    /* Mobile overflow protection */
    .page-content img {
      max-width: 100% !important;
      height: auto !important;
      display: block;
    }
    .page-content {
      overflow-x: hidden;
      max-width: 100%;
    }
  }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
