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

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #FFFFFF;
    background-color: #FFFFFF;
    padding-top: var(--header-offset);
  }

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

  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .header-top {
    background-color: #000000; /* Primary color */
    width: 100%;
    padding: 15px 0;
  }

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

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

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

  .btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
  }

  .btn-login {
    background-color: #FCBC45; /* Login custom color */
    color: #000000;
    border: 1px solid #FCBC45;
  }

  .btn-login:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
  }

  .btn-register {
    background-color: #FFFFFF; /* Register custom color */
    color: #000000;
    border: 1px solid #FFFFFF;
  }

  .btn-register:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
  }

  .main-nav {
    background-color: #333333; /* Dark grey, distinct from header-top */
    width: 100%;
    display: flex;
    padding: 10px 0;
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
  }

  .nav-link {
    color: #FFFFFF;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
  }

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

  .hamburger-menu {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    z-index: 1001; /* Above logo and mobile buttons */
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    margin-bottom: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger-menu span:last-child {
    margin-bottom: 0;
  }

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

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

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

  .mobile-buttons-area {
    display: none; /* 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 {
    display: block;
    opacity: 1;
  }

  .site-footer {
    background-color: #000000; /* Primary color */
    color: #FFFFFF;
    padding: 40px 20px;
    font-size: 14px;
    line-height: 1.6;
  }

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

  .footer-col {
    flex: 1;
    min-width: 200px;
  }

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

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

  .footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }

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

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

  .footer-nav 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;
      justify-content: space-between;
    }

    .hamburger-menu {
      display: block; /* Show hamburger on mobile */
      order: 0; /* Leftmost */
    }

    .logo {
      flex: 1 !important; /* For centering logo */
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      font-size: 24px;
      order: 1; /* Center */
    }

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

    .main-nav {
      display: none; /* Hidden by default on mobile */
      flex-direction: column;
      position: fixed;
      top: var(--header-offset); /* Below header */
      left: 0;
      width: 80%;
      height: calc(100% - var(--header-offset));
      background-color: #1a1a1a;
      transform: translateX(-100%); /* Off-screen by default */
      transition: transform 0.3s ease;
      z-index: 1000;
      overflow-y: auto;
    }

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

    .nav-container {
      width: 100%;
      max-width: none;
      flex-direction: column;
      align-items: flex-start;
      padding: 20px 15px;
    }

    .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-buttons-area {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      background-color: #000000; /* Same as header-top */
      padding: 10px 15px;
      width: 100%;
      box-sizing: border-box;
      flex-wrap: wrap;
    }

    .mobile-buttons-area .btn {
      flex: 1;
      max-width: 150px;
      padding: 8px 15px;
      font-size: 14px;
    }

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

    .footer-col {
      min-width: unset;
      width: 100%;
    }

    .footer-nav {
      text-align: center;
    }
  }

  /* Styles for body when mobile menu is open */
  body.no-scroll {
    overflow: hidden;
  }

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