:root {
      --header-offset: 120px; /* Desktop: Header + button area total height */
      --primary-color: #007bff;
      --secondary-color: #ffc107;
      --neon-primary: #00ffff; /* Bright cyan for primary glow */
      --neon-secondary: #ff00ff; /* Bright magenta for secondary glow */
      --neon-accent: #ffff00; /* Bright yellow for accent glow */
      --marquee-height: 50px; /* Default marquee height */
    }

    @media (max-width: 768px) {
      :root {
        --header-offset: 200px; /* Mobile: Marquee + Header + button area total height */
        --marquee-height: 40px; /* Mobile marquee height */
      }
    }

    /* Global Box-sizing */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Arial', sans-serif;
      line-height: 1.6;
      color: #e0e0e0; /* Light grey for general text */
      background-color: #121212; /* Dark background for the page */
      overflow-x: hidden; /* Prevent horizontal scrolling */
      padding-top: calc(var(--marquee-height) + var(--header-offset)); /* Main content offset */
    }

    a {
      color: #007bff;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    /* --- Neon Glow Animations (Dynamic Colors) --- */

    @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 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(0, 255, 255, 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, 0, 255, 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: #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 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 --- */
    .marquee-section {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      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 border color */
      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(0, 255, 255, 0.1);
      z-index: 1001; /* Above header */
      padding: 10px 0; /* Default padding for desktop */
      height: var(--marquee-height); /* Set fixed height */
      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: 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));
    }

    .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: 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 --- */
    .site-header {
      position: fixed;
      top: var(--marquee-height); /* Position below marquee */
      left: 0;
      width: 100%;
      z-index: 1000; /* Below marquee, above content */
      background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
      animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
      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(0, 255, 255, 0.1);
    }

    .header-top {
      padding: 15px 0; /* Vertical padding */
      border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
    }

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

    .logo {
      font-size: 28px;
      font-weight: bold;
      color: #ffffff; /* Regular white color for logo */
      text-decoration: none;
      /* No neon effects for logo */
      display: block; /* Default for desktop */
      padding: 5px 0; /* Adjust padding if needed */
    }
    .logo img {
      display: block;
      max-width: 100%;
      height: auto;
      max-height: 50px; /* Desktop logo height */
    }

    /* Hamburger Menu (hidden on desktop) */
    .hamburger-menu {
      display: none;
      cursor: pointer;
      width: 30px;
      height: 24px;
      position: relative;
      flex-direction: column;
      justify-content: space-between;
      z-index: 1002; /* Above mobile menu overlay */
    }

    .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;
      text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
      box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
    }

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

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

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

    /* Desktop Navigation Buttons */
    .desktop-nav-buttons {
      display: flex; /* Visible on desktop */
      gap: 10px;
      align-items: center;
    }

    /* Mobile Navigation Buttons (hidden on desktop) */
    .mobile-nav-buttons {
      display: none; /* Hidden on desktop */
    }

    /* Main Navigation */
    .main-nav {
      background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Different dark background */
      border-top: 2px solid;
      border-bottom: 2px solid;
      animation: rainbow-border 6s linear infinite; /* Dynamic border color */
      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, 0, 255, 0.1);
      width: 100%;
      display: flex; /* Visible on desktop */
      justify-content: center; /* Center nav links */
      padding: 10px 0; /* Vertical padding */
    }

    .main-nav .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      padding: 0 20px; /* Horizontal padding */
      flex-wrap: wrap; /* Allow wrapping on larger desktops if many links */
    }

    .main-nav .nav-link {
      color: #ffffff; /* Regular white color for nav links */
      font-weight: 500;
      padding: 10px 15px;
      margin: 0 5px;
      text-decoration: none;
      transition: color 0.3s ease, background-color 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .main-nav .nav-link:hover {
      color: var(--neon-primary);
      background-color: rgba(255, 255, 255, 0.1);
      text-decoration: none;
    }
    
    .main-nav .nav-link::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 2px;
      background-color: var(--neon-primary);
      transition: width 0.3s ease, left 0.3s ease;
    }

    .main-nav .nav-link:hover::before {
      width: 100%;
      left: 0;
    }

    /* Mobile Menu Overlay */
    .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;
    }

    /* Buttons */
    .btn {
      position: relative;
      background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
      padding: 12px 25px; /* Adjusted padding for button text */
      color: #ffffff;
      text-decoration: none;
      border-radius: 5px;
      border: 2px solid;
      animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
      text-shadow: 
        0 0 5px #ffffff,
        0 0 10px var(--neon-primary);
      transition: all 0.3s ease;
      font-weight: bold;
      cursor: pointer;
      white-space: nowrap; /* Prevent text wrapping by default */
    }

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

    /* --- Footer Section --- */
    .site-footer {
      background-color: #1a1a1a; /* Darker background for footer */
      color: #b0b0b0;
      padding: 40px 0 20px;
      font-size: 14px;
    }

    .site-footer h4 {
      color: #ffffff;
      font-size: 16px;
      margin-bottom: 15px;
      font-weight: bold;
    }

    .site-footer a {
      color: #b0b0b0;
      transition: color 0.3s ease;
    }

    .site-footer a:hover {
      color: #ffc107;
      text-decoration: none;
    }

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

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

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

    .footer-col.footer-about {
      grid-column: span 1;
    }

    .footer-col.footer-nav-col {
      grid-column: span 1;
    }

    .footer-logo {
      font-size: 24px;
      font-weight: bold;
      color: #ffffff;
      margin-bottom: 15px;
      display: block;
    }

    .footer-description {
      line-height: 1.6;
      word-wrap: break-word; /* Ensure long words wrap */
      overflow-wrap: break-word; /* Modern equivalent */
      color: #b0b0b0;
    }

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

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

    .payment-methods .payment-icons,
    .game-providers-section .game-providers-icons,
    .social-media-section .social-media-icons {
      display: flex;
      flex-wrap: wrap;
      flex-direction: row;
      align-items: flex-start;
      gap: 8px; /* Consistent gap for icons */
      width: 100%;
    }

    .payment-methods .payment-icons img,
    .game-providers-section .game-providers-icons img,
    .social-media-section .social-media-icons img {
      max-height: 50px; /* Max height for all icons */
      height: auto;
      width: auto;
      object-fit: contain;
      filter: grayscale(100%) brightness(150%) contrast(150%); /* Subtle effect for icons */
      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%) contrast(100%); /* Color on hover */
    }

    .footer-middle {
      padding: 30px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .footer-middle .footer-container {
      display: flex;
      flex-direction: column;
      gap: 30px;
    }
    .game-providers-section, .social-media-section {
      width: 100%;
    }

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

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

      /* Mobile Header */
      .site-header {
        top: var(--marquee-height); /* Below mobile marquee */
      }

      .header-top {
        padding: 10px 0;
      }

      .header-container {
        padding: 0 15px; /* Smaller horizontal padding */
        position: relative;
        min-height: 40px;
      }

      .hamburger-menu {
        display: flex; /* Visible on mobile */
        order: 0; /* Left side */
      }

      .logo {
        order: 1; /* Center */
        flex: 1 !important; /* Take available space */
        display: flex !important; /* For centering */
        justify-content: center !important; /* Center content */
        align-items: center !important; /* Center content */
        font-size: 22px;
      }
      .logo img {
        max-height: 40px; /* Mobile logo height */
      }

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

      .mobile-nav-buttons {
        display: flex !important; /* Visible on mobile */
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        flex-wrap: nowrap; /* Ensure buttons stay in one row */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0,0,0,0.3); /* Slightly transparent background */
      }

      .mobile-nav-buttons .btn {
        flex: 1;
        min-width: 0;
        max-width: calc(50% - 5px); /* Account for gap */
        padding: 8px 12px; /* Smaller padding */
        font-size: 13px; /* Smaller font size */
        white-space: normal; /* Allow text wrapping */
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
      }

      .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: calc(var(--marquee-height) + 120px); /* Adjust based on marquee + header-top + mobile-nav-buttons height */
        left: 0;
        width: 70%; /* Side menu width */
        height: calc(100% - var(--marquee-height) - 120px); /* Full height minus header */
        background: linear-gradient(180deg, #0a0a0a, #1a1a2e); /* Dark background for menu */
        transform: translateX(-100%); /* Off-screen by default */
        transition: transform 0.3s ease;
        z-index: 1000; /* Above overlay */
        padding: 20px 0;
        overflow-y: auto; /* Scroll for long menus */
      }

      .main-nav.active {
        display: flex; /* Show menu when active */
        transform: translateX(0); /* Slide into view */
      }
      
      .main-nav .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 15px;
      }

      .main-nav .nav-link {
        width: 100%;
        padding: 12px 15px;
        margin: 5px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      }
      .main-nav .nav-link:last-child {
        border-bottom: none;
      }
      .main-nav .nav-link::before {
        display: none; /* Hide underline effect on mobile */
      }

      /* Mobile Image Overflow Prevention */
      .page-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
      }
      .page-content {
        overflow-x: hidden;
        max-width: 100%;
      }
      body {
        overflow-x: hidden;
      }

      /* Mobile Footer */
      .footer-top .footer-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
      }
      .footer-col.footer-about,
      .footer-col.footer-nav-col,
      .payment-methods {
        grid-column: span 1;
      }
      .footer-middle .footer-container {
        padding: 0 15px;
      }
    }

    /* body no-scroll class for mobile menu */
    body.no-scroll {
      overflow: 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;
  }
}
