:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-btn-color: #EA7C07;
    --text-color: #000000;
    --header-top-bg: #1a1a1a;
    --header-nav-bg: var(--primary-color);
    --header-offset: 120px; /* Desktop: header-top (70px) + main-nav (50px) */
  }
  @media (max-width: 768px) {
    :root {
      --header-offset: 120px; /* Mobile: header-top (70px) + mobile-nav-buttons (50px) */
    }
  }

  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: var(--header-offset);
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden; /* Prevent horizontal scroll on body */
  }

  /* General Button Styles */
  .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    border: none;
    color: var(--secondary-color);
  }

  .btn-primary {
    background-color: var(--primary-color);
  }

  .btn-primary:hover {
    background-color: #1e87b7;
    transform: translateY(-2px);
  }

  .btn-secondary {
    background-color: var(--login-btn-color);
  }

  .btn-secondary:hover {
    background-color: #c06607;
    transform: translateY(-2px);
  }

  /* Header Styles */
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--header-top-bg); /* Default background for entire header */
  }

  .header-top {
    background-color: var(--header-top-bg);
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
  }

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

  .logo {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    flex-shrink: 0;
  }

  .desktop-nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
  }

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

  .main-nav {
    background-color: var(--header-nav-bg);
    width: 100%;
    display: flex; /* Desktop default: visible */
    min-height: 50px;
    align-items: center;
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row; /* Desktop default: horizontal */
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    flex-wrap: wrap;
  }

  .nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 15px;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
    white-space: nowrap;
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
  }

  /* Hamburger Menu (Mobile Only) */
  .hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    order: 0; /* Placed first in flex order */
  }

  .hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
  }

  .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-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* Footer Styles */
  .site-footer {
    background-color: var(--header-top-bg);
    color: var(--secondary-color);
    padding: 40px 20px 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;
    padding-bottom: 30px;
  }

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

  .footer-section h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
  }

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

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

  .footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }

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

  .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-bottom p {
    margin: 0;
  }

  /* Mobile Specific 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 {
      padding: 0 15px;
    }
    .nav-container {
      padding: 10px 15px;
    }

    .hamburger-menu {
      display: block;
    }

    .logo {
      flex: 1 !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      font-size: 24px;
      padding: 10px 0;
    }

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

    .mobile-nav-buttons {
      display: flex !important;
      width: 100%; max-width: 100%;
      box-sizing: border-box;
      padding: 10px 15px;
      overflow: hidden;
      gap: 10px;
      flex-wrap: nowrap;
      justify-content: center;
      background-color: var(--header-top-bg); /* Same as header-top for continuity */
      min-height: 50px;
      align-items: center;
    }
    .mobile-nav-buttons .btn {
      flex: 1; min-width: 0;
      max-width: calc(50% - 5px); /* Adjusted for 2 buttons with 10px gap */
      box-sizing: border-box;
      padding: 8px 12px;
      font-size: 13px;
      white-space: normal;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .main-nav {
      display: none; /* Hidden by default, shown with JS .active */
      flex-direction: column; /* Vertical layout for mobile menu */
      position: fixed;
      top: var(--header-offset); /* Position below fixed header and mobile buttons */
      left: 0;
      width: 80%;
      height: calc(100% - var(--header-offset));
      background-color: var(--header-nav-bg);
      transform: translateX(-100%); /* Off-screen by default */
      transition: transform 0.3s ease;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
      overflow-y: auto;
    }

    .main-nav.active {
      display: flex; /* Must be flex to show */
      transform: translateX(0); /* Slide in */
    }

    .nav-container {
      flex-direction: column;
      align-items: flex-start;
      padding: 20px 15px;
    }

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

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

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

    .footer-section {
      min-width: unset;
      width: 100%;
      text-align: center;
    }
    .footer-section ul {
      text-align: center;
    }
    .footer-section li {
      display: inline-block;
      margin: 0 10px 8px 0;
    }
    .footer-section li:last-child {
      margin-right: 0;
    }
  }
/* 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;
  }
}
