:root {
    --header-offset: 130px; /* Desktop: header-top (60px) + main-nav (70px) */
  }
  @media (max-width: 768px) {
    :root {
      --header-offset: 130px; /* Mobile: header-top (60px) + mobile-nav-buttons (70px) */
    }
  }

  /* Basic Reset & Body Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFFFFF; /* Default text color for dark background */
    background-color: #FFFFFF; /* Default page background */
    padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
    overflow-x: hidden;
  }

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

  ul {
    list-style: none;
  }

  /* Site Header */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: transparent; /* Handled by header-top and main-nav */
    min-height: var(--header-offset); /* Ensure it covers the full height */
  }

  .header-top {
    background-color: #000000; /* Primary color, dark */
    color: #FFFFFF;
    padding: 10px 0;
  }

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

  .logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFFFFF;
    text-transform: uppercase;
    padding: 5px 0;
  }

  .desktop-nav-buttons {
    display: flex;
    gap: 12px;
  }

  .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline for buttons */
  }

  .btn-login {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Contrasting text for login button */
    border: 2px solid #FCBC45;
  }

  .btn-login:hover {
    background-color: #e0a53c;
    box-shadow: 0 0 10px rgba(252, 188, 69, 0.7);
  }

  .btn-register {
    background-color: #FFFFFF; /* Register color */
    color: #000000; /* Contrasting text for register button */
    border: 2px solid #FFFFFF;
  }

  .btn-register:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  }

  .main-nav {
    background-color: #1a1a1a; /* Dark gray, contrasting with header-top */
    color: #FFFFFF;
    padding: 10px 0;
    display: flex; /* Desktop default: visible */
    justify-content: center;
    align-items: center;
    min-height: 50px; /* Base height for main-nav content */
  }

  .main-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row; /* Desktop default: row */
    justify-content: center;
    gap: 25px;
    padding: 0 20px;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 8px 15px;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
  }

  .nav-link:hover {
    color: #FCBC45;
  }

  /* Hamburger Menu (Hidden on Desktop) */
  .hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
  }

  .hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 5px 0;
    transition: all 0.3s ease;
  }

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

  /* Mobile Menu Overlay (Hidden on Desktop) */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

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

  /* Footer */
  .site-footer {
    background-color: #000000; /* Primary color */
    color: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    text-align: left;
  }

  .footer-section {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
  }

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

  .site-footer p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
  }

  .footer-nav h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #FCBC45;
  }

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

  .footer-nav ul li a {
    font-size: 14px;
    transition: color 0.3s ease;
  }

  .footer-nav ul li a:hover {
    color: #FCBC45;
  }

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

    .header-container {
      width: 100%;
      max-width: none;
      padding: 0 15px; /* Smaller padding for mobile */
      justify-content: space-between; /* Hamburger left, Logo center, space for potential right element */
    }

    .logo {
      flex: 1;
      text-align: center;
      padding: 5px 0;
    }

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

    .hamburger-menu {
      display: block;
      order: -1; /* Place hamburger on the left */
    }

    /* Hamburger X animation */
    .hamburger-menu.active .hamburger-icon:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .hamburger-icon:nth-child(2) {
      opacity: 0;
    }
    .hamburger-menu.active .hamburger-icon:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav {
      display: none; /* Hidden by default on mobile */
      flex-direction: column; /* Vertical menu */
      position: fixed;
      top: var(--header-offset); /* Start below the fixed header + mobile buttons */
      left: 0;
      width: 70%; /* Adjust as needed */
      height: calc(100% - var(--header-offset));
      background-color: #000000; /* Dark background for mobile menu */
      transform: translateX(-100%); /* Slide out from left */
      transition: transform 0.3s ease-out;
      overflow-y: auto;
      padding: 20px 0;
      box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
      z-index: 999;
    }

    .main-nav.active {
      display: flex; /* IMPORTANT: Must set display to make it visible */
      transform: translateX(0); /* Slide in */
    }

    .main-nav .nav-container {
      flex-direction: column;
      align-items: flex-start;
      padding: 0 20px;
      gap: 15px;
      width: 100%;
      max-width: none; /* Remove max-width for mobile */
    }

    .nav-link {
      width: 100%;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .mobile-nav-buttons {
      display: flex; /* Show on mobile */
      justify-content: center;
      gap: 10px;
      padding: 10px 15px;
      background-color: #000000; /* Same as header-top */
      min-height: 50px;
    }

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

    .footer-container {
      flex-direction: column;
      text-align: center;
    }

    .footer-section {
      max-width: 100%;
      text-align: center;
    }

    .footer-nav ul {
      padding: 0;
    }

    .footer-nav ul li {
      margin-bottom: 5px;
    }
  }
/* Payment Methods 图标容器样式 */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

.payment-icons img,
.payment-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Game Providers 图标容器样式 */
.game-providers-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.game-providers-icons img,
.game-provider-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Social Media 图标容器样式 */
.social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.social-media-icons img,
.social-media-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
