:root {
    --primary-color: #007bff;
    --auxiliary-color: #ffc107;
    --dark-blue: #004085;
    --light-blue: #3399ff;
    --header-offset: 114px; /* Desktop: header-top (70px) + main-nav (44px) */
  }
  
  @media (max-width: 768px) {
    :root {
      --header-offset: 120px; /* Mobile: header-top (60px) + mobile-nav-buttons (60px) */
    }
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: var(--header-offset);
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
    color: var(--primary-color);
  }
  
  ul {
    list-style: none;
  }
  
  /* Site Header */
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff; /* Neutral background for the fixed header */
  }
  
  .header-top {
    background-color: var(--dark-blue); /* Distinct dark blue for top bar */
    padding: 15px 0;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  
  .logo {
    color: var(--auxiliary-color); /* Gold for logo */
    font-size: 2.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
  }
  
  .desktop-nav-buttons {
    display: flex;
    gap: 10px;
  }
  
  .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
  }
  
  .btn-login {
    background-color: var(--auxiliary-color); /* Gold for Login */
    color: var(--dark-blue);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
  }
  
  .btn-login:hover {
    background-color: #e0a800;
    color: #fff;
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
  }
  
  .btn-register {
    background-color: var(--primary-color); /* Primary blue for Register */
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  }
  
  .btn-register:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
  }
  
  .main-nav {
    background-color: var(--auxiliary-color); /* Auxiliary gold for main nav */
    padding: 10px 0;
    display: flex; /* Desktop default: visible, horizontal */
    justify-content: center;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 25px;
  }
  
  .nav-link {
    color: var(--dark-blue); /* Dark blue for nav links */
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    white-space: nowrap;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: #fff;
    border-bottom: 2px solid #fff;
  }
  
  .hamburger-menu {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 0;
  }
  
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--auxiliary-color); /* Gold for hamburger lines */
    margin-bottom: 5px;
    transition: all 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-nav-buttons {
    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 */
  .site-footer {
    background-color: #222;
    color: #f8f8f8;
    padding: 40px 20px;
    font-size: 0.9em;
    text-align: center;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    gap: 30px;
  }
  
  .footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
  }
  
  .footer-column h3 {
    color: var(--auxiliary-color); /* Gold for footer headings */
    font-size: 1.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
  }
  
  .footer-column p {
    color: #ccc;
  }
  
  .footer-nav li {
    margin-bottom: 8px;
  }
  
  .footer-nav a {
    color: #ccc;
    transition: color 0.3s ease;
    white-space: nowrap;
  }
  
  .footer-nav a:hover {
    color: var(--primary-color); /* Primary blue on hover */
  }
  
  .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
  }
  
  /* 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-top {
      padding: 10px 0;
    }
  
    .header-container {
      width: 100%;
      max-width: none;
      padding: 0 15px;
      justify-content: flex-start;
    }
  
    .hamburger-menu {
      display: block;
      order: 0;
      margin-right: 15px;
    }
  
    .logo {
      flex: 1 !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      font-size: 1.8em;
      order: 1;
      margin-right: auto; /* Push hamburger to left, logo to center */
    }
    .logo img {
      display: block !important;
      max-width: 100%;
      height: auto;
      max-height: 40px;
    }
  
    .desktop-nav-buttons {
      display: none;
    }
  
    .main-nav {
      display: none; /* Hidden by default */
      flex-direction: column;
      position: fixed;
      top: var(--header-offset); /* Position below fixed header */
      left: 0;
      width: 80%;
      height: calc(100% - var(--header-offset));
      background-color: var(--dark-blue); /* Dark blue for mobile menu */
      box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
      transform: translateX(-100%); /* Off-screen by default */
      transition: transform 0.3s ease-in-out;
      overflow-y: auto;
      padding-bottom: 20px;
      z-index: 999;
    }
  
    .main-nav.active {
      display: flex; /* Show when active */
      transform: translateX(0); /* Slide into view */
    }
  
    .nav-container {
      width: 100%;
      max-width: none;
      padding: 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
    }
  
    .nav-link {
      width: 100%;
      padding: 15px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      color: #fff; /* White for mobile nav links */
      text-align: left;
    }
  
    .nav-link:hover,
    .nav-link.active {
      background-color: rgba(255, 255, 255, 0.1);
      color: var(--auxiliary-color);
      border-bottom: 1px solid var(--auxiliary-color);
    }
  
    .mobile-nav-buttons {
      display: flex;
      background-color: var(--primary-color); /* Primary blue for mobile buttons bar */
      padding: 10px 15px;
      gap: 10px;
      justify-content: space-around;
      align-items: center;
      width: 100%;
    }
  
    .mobile-nav-buttons .btn {
      flex: 1;
      padding: 8px 15px;
      font-size: 0.9em;
    }
  
    .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-column {
      min-width: unset;
      width: 100%;
    }
  }
/* 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;
  }
}
