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

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  color: #FFFFFF; /* Default text color for dark background */
  background-color: #000000; /* Default background */
  overflow-x: hidden;
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  background-color: #000000; /* Fallback, specific sections will override */
}

.header-top {
  background-color: #000000; /* Primary dark background */
  width: 100%;
  padding: 15px 0; /* Vertical padding for desktop header-top */
}

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

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

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

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
  display: inline-block; /* Ensure button styling */
  border: none;
  cursor: pointer;
}

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

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

.register-btn {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Text color for register button */
}

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

.main-nav {
  background-color: #1a1a1a; /* Dark gray for main nav, contrasting with header-top */
  width: 100%;
  display: flex; /* Desktop default: flex */
}

.main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  justify-content: center;
  align-items: center;
  padding: 10px 20px; /* Vertical padding for main nav */
}

.main-nav .nav-link {
  color: #FFFFFF;
  text-decoration: none;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.main-nav .nav-link:hover {
  color: #FCBC45;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

/* Hide mobile specific elements on desktop */
.hamburger-menu,
.mobile-buttons-area,
.mobile-menu-overlay {
  display: none;
}

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

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.site-footer .footer-col {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.site-footer .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FCBC45; /* Logo color */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

.site-footer h3 {
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
}

.site-footer p {
  line-height: 1.6;
  color: #CCCCCC;
}

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

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #CCCCCC;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  color: #CCCCCC;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Mobile content area protection */
  .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: 15px 0;
  }

  .header-container {
    width: 100%;
    max-width: none; /* Mobile container full width */
    padding: 0 15px; /* Smaller horizontal padding for mobile */
    justify-content: space-between; /* Hamburger left, Logo center */
    position: relative;
  }

  .logo {
    flex: 1; /* Allows logo to push hamburger left and align text center */
    text-align: center; /* Center text logo */
    font-size: 24px; /* Adjust font size for mobile */
    order: 2; /* Logo in the middle */
    padding: 0 10px; /* Prevent logo from touching hamburger/right edge */
  }

  /* If the logo was an image, this would be used for centering:
  .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;
  }
  */

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: 1; /* Hamburger on the left */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Ensure hamburger is above overlay and menu */
  }

  .hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    position: relative;
    transition: background-color 0.3s ease;
  }

  .hamburger-icon::before,
  .hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    position: absolute;
    transition: transform 0.3s ease, top 0.3s ease;
  }

  .hamburger-icon::before {
    top: -8px;
  }

  .hamburger-icon::after {
    top: 8px;
  }

  .hamburger-menu.active .hamburger-icon {
    background-color: transparent; /* Hide middle bar */
  }

  .hamburger-menu.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
  }

  .hamburger-menu.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

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

  .mobile-buttons-area {
    display: flex; /* Show mobile buttons area */
    background-color: #000000; /* Same as header-top for consistency */
    padding: 10px 0; /* Padding for mobile buttons area */
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Slight shadow to separate from content */
    z-index: 990; /* Below hamburger and main nav */
  }

  .mobile-buttons-area .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .main-nav {
    display: none; /* Default hidden */
    flex-direction: column; /* Vertical layout */
    position: fixed;
    top: 0; /* Aligned with header-top */
    left: 0;
    width: 280px; /* Mobile menu width */
    height: 100%;
    background-color: #1a1a1a; /* Same as desktop main-nav */
    transform: translateX(-100%); /* Hidden off-screen */
    transition: transform 0.3s ease;
    padding-top: var(--header-offset); /* Push content below header */
    z-index: 1000; /* Above overlay */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Allow scrolling for long menus */
  }

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

  .main-nav .nav-container {
    width: 100%;
    max-width: none; /* Mobile container full width */
    flex-direction: column; /* Vertical links */
    align-items: flex-start; /* Align links to the left */
    padding: 20px 15px; /* Vertical padding */
  }

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

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

  .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; /* Below menu, above content */
  }

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

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

  .site-footer .footer-col {
    min-width: unset;
    flex-basis: 100%;
    text-align: center;
  }

  .site-footer .footer-logo {
    margin: 0 auto 15px;
  }

  .site-footer h3 {
    text-align: center;
  }

  .site-footer ul {
    text-align: 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;
  }
}
