:root {
    --primary-color: #FFD700;
    --secondary-color: #1A1A1A;
    --dark-grey-2: #333333;
    --text-light: #FFFFFF;
    --text-dark: #1A1A1A;
    --header-offset: 110px; /* Desktop: header-top (60px) + main-nav (50px) */
  }
  
  @media (max-width: 768px) {
    :root {
      --header-offset: 110px; /* Mobile: header-top (60px) + mobile-buttons (50px) */
    }
  }
  
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: var(--header-offset);
    background-color: #f4f4f4;
    color: var(--text-dark);
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Site Header - Fixed Navigation */
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-height: var(--header-offset);
    display: flex;
    flex-direction: column;
  }
  
  .header-top {
    background-color: var(--secondary-color); /* Dark Grey */
    color: var(--text-light);
    min-height: 60px;
    display: flex;
    align-items: center;
    width: 100%;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  
  .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
  }
  
  .desktop-nav-buttons {
    display: flex;
    gap: 12px;
  }
  
  .btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    display: inline-block;
  }
  
  .btn-login {
    background-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
  }
  
  .btn-login:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.6);
  }
  
  .btn-register {
    background-color: #dc3545; /* A vibrant red for register */
    color: var(--text-light);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
  }
  
  .btn-register:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.6);
  }
  
  .main-nav {
    background-color: var(--dark-grey-2); /* Slightly lighter dark grey for distinction */
    min-height: 50px;
    display: flex;
    align-items: center;
    width: 100%;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 10px 20px;
  }
  
  .nav-link {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .nav-link:hover {
    color: var(--text-light);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: var(--text-light);
    transition: width 0.3s ease;
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }
  
  .hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
  }
  
  .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-buttons-container {
    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: var(--secondary-color);
    color: var(--text-light);
    padding: 40px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }
  
  .site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
    gap: 30px;
  }
  
  .site-footer .footer-column {
    flex: 1;
    min-width: 180px;
    margin-bottom: 20px;
  }
  
  .site-footer .footer-column h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
  }
  
  .site-footer .footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
  }
  
  .site-footer .footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .site-footer .footer-nav li {
    margin-bottom: 8px;
  }
  
  .site-footer .footer-nav a {
    color: var(--text-light);
    transition: color 0.3s ease;
  }
  
  .site-footer .footer-nav a:hover {
    color: var(--primary-color);
  }
  
  .site-footer .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #bbb;
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .site-header {
      flex-direction: column;
      min-height: var(--header-offset);
    }
  
    .header-top {
      min-height: 60px;
    }
  
    .header-container {
      padding: 0 15px;
      width: 100%;
      max-width: none; /* Ensure container takes full width */
      justify-content: space-between;
    }
  
    .hamburger-menu {
      display: block;
      order: 0;
    }
  
    .logo {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 24px;
      order: 1;
    }
  
    .desktop-nav-buttons {
      display: none;
    }
  
    .mobile-buttons-container {
      display: flex;
      background-color: var(--secondary-color);
      padding: 10px 0;
      min-height: 50px;
      width: 100%;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
  
    .mobile-buttons-container .header-container {
      justify-content: center;
      gap: 10px;
    }
  
    .main-nav {
      display: none; /* Hidden by default on mobile */
      flex-direction: column;
      position: fixed;
      top: var(--header-offset);
      left: 0;
      width: 80%;
      max-width: 300px;
      height: calc(100% - var(--header-offset));
      background-color: var(--dark-grey-2);
      overflow-y: auto;
      transition: transform 0.3s ease;
      transform: translateX(-100%); /* Slide out of view */
      z-index: 1000;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
  
    .main-nav.active {
      display: flex; /* Must be set to display for visibility */
      transform: translateX(0); /* Slide into view */
    }
  
    .nav-container {
      flex-direction: column;
      align-items: flex-start;
      padding: 20px;
      gap: 15px;
      width: 100%;
      max-width: none; /* Ensure container takes full width */
    }
  
    .nav-link {
      width: 100%;
      padding: 10px 0;
      color: var(--primary-color);
      border-bottom: 1px solid #444;
    }
  
    .nav-link:last-child {
      border-bottom: none;
    }
  
    .nav-link:hover::after {
      width: 0; /* Remove underline animation for mobile */
    }
  
    .site-footer .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .site-footer .footer-column h3::after {
      left: 50%;
      transform: translateX(-50%);
    }
  
    /* General mobile content 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;
    }
  
    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;
  }
}
