:root {
  --header-offset: 110px; /* Desktop: header-top (60px) + main-nav (50px) */
  --primary-color: #000000;
  --secondary-color: #FFFFFF;
  --login-btn-color: #FCBC45;
  --register-btn-color: #FFFFFF;
  --background-color: #FFFFFF;
}

@media (max-width: 768px) {
  :root {
    --header-offset: 120px; /* Mobile: header-top (60px) + mobile-nav-buttons (60px) */
  }
  .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 {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Fixed header offset */
  background-color: var(--background-color);
  color: var(--primary-color); /* Default text color */
}

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

/* Site Header - Fixed Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header Top Section (Desktop: Logo Left, Buttons Right) */
.header-top {
  background-color: var(--primary-color); /* Black background */
  min-height: 60px; /* Example height */
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* White logo text */
  padding: 10px 0;
  display: block; /* Ensure it's not inline for flex alignment */
}

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

/* Main Navigation Section (Desktop: Menu Centered) */
.main-nav {
  background-color: var(--secondary-color); /* White background */
  min-height: 50px; /* Example height */
  display: flex; /* Default desktop: flex */
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* Subtle separator */
}

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

.nav-link {
  color: var(--primary-color); /* Black link text */
  padding: 15px 20px;
  font-weight: bold;
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent wrapping */
}

.nav-link:hover {
  color: var(--login-btn-color); /* Highlight color */
}

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

.btn-login {
  background-color: var(--login-btn-color); /* Yellow/Gold */
  color: var(--primary-color); /* Black text */
  border: 1px solid var(--login-btn-color);
}

.btn-login:hover {
  background-color: #e6a73c; /* Darken on hover */
  box-shadow: 0 0 10px rgba(252, 188, 69, 0.5);
}

.btn-register {
  background-color: var(--register-btn-color); /* White */
  color: var(--primary-color); /* Black text */
  border: 1px solid var(--login-btn-color); /* Yellow/Gold border */
}

.btn-register:hover {
  background-color: var(--login-btn-color); /* Yellow/Gold on hover */
  color: var(--secondary-color); /* White text on hover */
  box-shadow: 0 0 10px rgba(252, 188, 69, 0.5);
}


/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
  z-index: 1001; /* Above logo and buttons */
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color); /* White bars */
  margin: 5px 0;
  transition: 0.4s;
}

/* Mobile Nav Buttons (Mobile Only) */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
  background-color: var(--primary-color); /* Consistent with header-top */
  min-height: 60px; /* Example height for buttons */
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Add shadow for separation */
}

/* Mobile Menu Overlay */
.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); /* Dark overlay */
  z-index: 999;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color); /* Black footer */
  color: var(--secondary-color); /* White text */
  padding: 40px 20px 20px;
  text-align: center;
}

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

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

.footer-col h3 {
  color: var(--login-btn-color); /* Yellow/Gold headings */
  font-size: 18px;
  margin-bottom: 15px;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--secondary-color); /* White links */
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--login-btn-color); /* Highlight color */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Utility class for no scroll */
body.no-scroll {
  overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column; /* Stack header elements */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .header-top {
    min-height: 60px; /* Consistent height */
    padding: 0 15px; /* Smaller padding */
    display: flex;
    justify-content: space-between; /* Hamburger left, Logo center */
    align-items: center;
    width: 100%; /* Ensure it takes full width */
  }

  .header-container {
    padding: 0; /* Remove container padding as header-top has it */
    width: 100%;
    max-width: none; /* Crucial for mobile container */
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: 1; /* Place hamburger first */
  }

  .logo {
    order: 2; /* Place logo second for centering */
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0;
  }

  /* Placeholder to push logo to center */
  .header-top .desktop-nav-buttons {
    order: 3; /* Push to right, acts as a spacer */
    display: flex; /* Keep it flex to maintain space */
    width: 55px; /* Match hamburger width for centering */
    justify-content: flex-end; /* Align content to the right */
    visibility: hidden; /* Hide content but keep space */
  }


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

  .main-nav {
    display: none; /* Hide main nav by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed; /* Fixed position for sidebar menu */
    top: 0;
    left: 0;
    width: 250px; /* Sidebar width */
    height: 100%;
    background-color: var(--primary-color); /* Dark background for sidebar */
    padding-top: 80px; /* Space for hamburger/logo if needed, but it's full height */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Below overlay */
    border-top: none; /* Remove border */
    overflow-y: auto; /* Enable scrolling for long menus */
  }

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

  .nav-container {
    flex-direction: column; /* Vertical links */
    align-items: flex-start; /* Align links to left */
    padding: 0 20px; /* Add padding to links */
    width: 100%;
    max-width: none; /* Crucial for mobile container */
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-color); /* White links for dark sidebar */
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    width: 100%; /* Full width */
    justify-content: center; /* Center buttons */
    background-color: var(--primary-color); /* Match header-top */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
    box-shadow: none; /* Remove redundant shadow */
  }

  .mobile-nav-buttons .btn {
    flex: 1; /* Distribute space */
    max-width: 150px; /* Max width for buttons */
  }

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

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

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

  .footer-col ul {
    margin-bottom: 20px;
  }
}
/* 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;
  }
}
