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

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

body.no-scroll {
  overflow: hidden;
}

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

/* Shared Container Styles */
.header-container, .nav-container, .footer-container, .nav-buttons-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Desktop padding */
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Suspended effect */
  background-color: #000000; /* Default dark background for header area */
}

.header-top {
  background-color: #000000; /* Primary color, very dark */
  color: #FFFFFF;
  padding: 15px 0;
  display: flex;
  align-items: center;
  height: 30px; /* Combined with padding 15px top/bottom, makes total height 60px */
}

.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FCBC45; /* Logo color contrasting with black */
  text-transform: uppercase;
  display: block; /* Ensure logo is visible */
}

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

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  text-decoration: none; /* Remove underline */
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent buttons from wrapping */
}

.btn-login {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Text color for login button */
}

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

.btn-register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Text color for register button */
  border: 1px solid #FCBC45; /* Add border for definition */
}

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

.main-nav {
  background-color: #333333; /* Dark grey, distinct from header-top's black */
  padding: 10px 0;
  display: flex; /* Default to flex for desktop */
  justify-content: center;
  align-items: center;
  height: 30px; /* Combined with padding 10px top/bottom, makes total height 50px */
}

.main-nav .nav-container {
  display: flex;
  justify-content: center; /* Center menu items on desktop */
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping if many items */
  gap: 25px; /* Spacing between menu items */
}

.nav-link {
  color: #FFFFFF;
  font-weight: bold;
  padding: 5px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #FCBC45;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001; /* Above mobile menu overlay */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #FCBC45; /* Hamburger color */
  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-nav-buttons {
  display: none; /* Hidden on desktop */
  background-color: #000000; /* Same as header-top for consistency */
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-nav-buttons .nav-buttons-container {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}


/* Footer Styles */
.site-footer {
  background-color: #000000; /* Primary color */
  color: #FFFFFF;
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

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

.footer-section h3 {
  color: #FCBC45; /* Heading color */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-nav a:hover {
  color: #FCBC45;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333333;
}

.footer-bottom p {
  margin: 0;
  color: #cccccc;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  /* Ensure content images are responsive */
  .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 adjustments for mobile */
  .header-container, .nav-container, .nav-buttons-container {
    width: 100%;
    max-width: none; /* Important for mobile */
    padding: 0 15px; /* Smaller padding for mobile */
  }

  .header-top .header-container {
    justify-content: space-between; /* Hamburger left, Logo center */
  }

  .logo {
    flex: 1 !important; /* Force logo to take available space for centering */
    display: flex !important; /* Use flex to center child image/text */
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px; /* Adjust logo size for mobile */
  }

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

  .hamburger-menu {
    display: block; /* Show hamburger menu on mobile */
    order: -1; /* Place hamburger menu to the left */
  }
  
  .mobile-nav-buttons {
    display: block; /* Show mobile buttons below header-top */
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Start below the fixed header + buttons */
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-offset)); /* Take full height below header */
    background-color: #000000; /* Full screen menu background */
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto; /* Allow scrolling for long menus */
    padding: 20px 0; /* Add padding to the menu itself */
    align-items: flex-start; /* Align menu items to the left */
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
    gap: 15px; /* Spacing between menu items */
    width: 100%; /* Ensure container takes full width */
  }
  
  .nav-link {
    width: 100%; /* Make links full width */
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  /* Footer adjustments for mobile */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .footer-nav {
    align-items: center;
  }
}
/* 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;
  }
}
