:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Black */
  --text-color: #FFFFFF; /* White for general text on dark backgrounds */
  --link-color: var(--primary-color);
  --button-bg: var(--primary-color);
  --button-text: var(--secondary-color);
  --header-top-bg: var(--secondary-color); /* Dark Black */
  --main-nav-bg: #282828; /* Slightly lighter dark grey for main nav */
  --footer-bg: var(--secondary-color); /* Dark Black */
  --header-offset: 130px; /* Desktop: header-top (60px) + main-nav (70px) */
}

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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-color);
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
  text-decoration: none;
  color: var(--link-color);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent button text from wrapping */
  text-decoration: none; /* Remove underline for buttons */
}

.btn:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  display: flex; /* For stacking header-top and main-nav */
  flex-direction: column;
}

.header-top {
  background-color: var(--header-top-bg);
  width: 100%;
  padding: 10px 0; /* Vertical padding */
  display: flex;
  align-items: center;
  min-height: 40px; /* Minimum height for header top content */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Left/right padding for container content */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color); /* Gold color for logo text */
  text-transform: uppercase;
  white-space: nowrap; /* Prevent logo text from wrapping */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above other elements */
}

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

.desktop-nav-buttons {
  display: flex; /* Show on desktop */
  gap: 12px;
}

/* Main Navigation */
.main-nav {
  background-color: var(--main-nav-bg);
  width: 100%;
  display: flex; /* Show on desktop */
  min-height: 50px; /* Minimum height for main nav content */
  align-items: center;
  flex-shrink: 0; /* Prevent shrinking if header-top is too tall */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row; /* Desktop: horizontal */
  justify-content: center; /* Center menu items */
  align-items: center;
  padding: 10px 20px; /* Vertical and horizontal padding */
}

.nav-link {
  color: var(--text-color);
  padding: 8px 15px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap; /* Prevent menu item text from wrapping */
}

.nav-link:hover {
  color: var(--primary-color);
}

.mobile-nav-buttons,
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* Site Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-color);
  padding: 40px 20px 20px;
  text-align: center;
  font-size: 14px;
}

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

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

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

.footer-section p,
.footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .site-header {
    flex-direction: column; /* Stack header-top and mobile-nav-buttons */
  }

  .header-top {
    padding: 10px 0;
    min-height: 40px;
    justify-content: space-between; /* Space for hamburger and logo */
  }

  .header-container {
    padding: 0 15px; /* Smaller padding for mobile */
    max-width: none; /* Remove max-width for mobile */
    width: 100%;
    justify-content: space-between;
  }

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

  .logo {
    order: 2; /* Place in the middle */
    flex: 1; /* Allow logo to take available space */
    text-align: center; /* Center text logo */
    font-size: 24px;
  }
  /* If logo was an image, this would be the specific centering rule:
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }
  */

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

  .main-nav {
    display: none; /* Hidden by default on mobile, toggled by JS */
    position: fixed;
    top: var(--header-offset); /* Below the header-top and mobile-buttons */
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px;
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    flex-direction: column; /* Vertical menu */
    align-items: flex-start;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    background-color: var(--main-nav-bg); /* Use main nav background */
    overflow-y: auto; /* Allow scrolling for long menus */
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px; /* Adjust padding for mobile menu items */
    width: 100%; /* Full width within the menu */
    max-width: none; /* Remove max-width for mobile */
  }

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-nav-buttons {
    display: flex; /* Show on mobile */
    width: 100%;
    justify-content: center;
    padding: 10px 15px;
    gap: 12px;
    background-color: var(--header-top-bg); /* Same background as header-top */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    min-height: 30px; /* Minimum height for buttons */
  }

  .mobile-menu-overlay {
    display: block; /* Always block for JS to toggle visibility */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    visibility: hidden; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

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

  .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);
  }

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

  .footer-section {
    max-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;
  }
}
