/* General Body & Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  padding-top: var(--header-offset); /* Ensure content is below fixed header */
}

:root {
  --primary-color: #003366;
  --auxiliary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #000000;
  --header-offset: 104px; /* Desktop: header-top (64px) + main-nav (40px) */
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-top {
  background-color: var(--primary-color); /* Deep Blue */
  width: 100%;
}

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

.logo {
  color: var(--auxiliary-color); /* Gold text */
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  display: block; /* Ensure it's visible by default */
}

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

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

.btn-login {
  background-color: var(--primary-color); /* Deep Blue */
  color: var(--text-light); /* White text */
  border: 1px solid var(--auxiliary-color); /* Gold border */
}

.btn-login:hover {
  background-color: #004488; /* Slightly lighter deep blue */
  color: var(--auxiliary-color);
}

.btn-register {
  background-color: var(--auxiliary-color); /* Gold */
  color: var(--primary-color); /* Deep Blue text */
  border: 1px solid var(--auxiliary-color);
}

.btn-register:hover {
  background-color: #E6B800; /* Slightly darker gold */
  color: var(--primary-color);
}

.main-nav {
  background-color: var(--auxiliary-color); /* Gold background for nav */
  width: 100%;
  display: flex; /* Desktop: visible and flex */
  justify-content: center;
}

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

.nav-link {
  color: var(--primary-color); /* Deep Blue text on gold background */
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #0055AA; /* Lighter deep blue on hover */
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color); /* Deep Blue */
  color: var(--text-light); /* White text */
  padding: 40px 20px;
  font-size: 14px;
}

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

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

.footer-col h3 {
  color: var(--auxiliary-color); /* 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(--text-light); /* White links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--auxiliary-color); /* Gold on hover */
}

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

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 96px; /* Mobile: header-top (50px) + mobile-header-buttons-area (46px) */
  }

  body {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .site-header {
    flex-direction: column; /* Stack header-top and mobile-header-buttons-area */
    align-items: center;
  }

  .header-top {
    width: 100%;
    padding: 0;
  }

  .header-container {
    width: 100%;
    max-width: none; /* Remove max-width on mobile */
    padding: 10px 15px; /* Smaller padding for mobile */
    justify-content: space-between; /* Hamburger left, Logo center */
  }

  .hamburger-menu {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--auxiliary-color); /* Gold hamburger icon */
    cursor: pointer;
    z-index: 1001;
    padding: 5px 10px;
  }

  .hamburger-menu.active {
    color: var(--text-light); /* White when active */
  }

  .logo {
    flex: 1 !important; /* Force logo to take available space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px;
    padding-left: 10px; /* Adjust for hamburger menu */
  }

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

  .mobile-header-buttons-area {
    display: block; /* Show mobile buttons area */
    background-color: #1a4a7a; /* Slightly darker primary color for button area */
    width: 100%;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow to this specific part too for consistency */
  }

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

  .mobile-header-buttons-area .btn {
    flex: 1;
    text-align: center;
    max-width: 150px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px;
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    background-color: var(--primary-color); /* Deep Blue for mobile menu */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Below hamburger menu */
    overflow-y: auto; /* Enable scrolling for long menus */
  }

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

  .nav-container {
    width: 100%;
    max-width: none; /* Remove max-width on mobile */
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
    gap: 15px;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light); /* White text for mobile menu */
    text-align: left;
  }

  .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: rgba(0, 0, 0, 0.5);
    z-index: 998; /* Below menu, above content */
  }

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

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

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

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: 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;
  }
}
