/* Base Styles & Typography */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: 110px; /* Adjusted for desktop header height (header-main-top + main-nav) */
  background-color: #FFFFFF; /* Custom background color */
  color: #333333; /* Default text color */
  line-height: 1.6;
}

/* Utility Class for Mobile Menu */
body.no-scroll {
  overflow: hidden;
}

/* Site Header - Fixed & Suspended */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Stronger shadow for suspended effect */
  min-height: 60px; /* Ensure content adaptation */
  display: flex;
  flex-direction: column; /* Stack header components vertically */
  background-color: #FFFFFF; /* Fallback, specific sections will override */
}

/* Header Top Section (Desktop: Logo + Buttons) */
.header-main-top {
  background-color: #1E8BC3; /* Darker blue for header-top */
  width: 100%;
  padding: 10px 0;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFFFFF; /* White for logo text on dark background */
  text-decoration: none;
  text-transform: uppercase; /* Logo text uppercase */
  display: block; /* Ensure logo is visible */
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

/* General Button Styling */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Specific Button Colors */
.btn-login {
  background-color: #EA7C07; /* Custom color for Login */
  color: #FFFFFF;
}

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

.btn-register {
  background-color: #26A9E0; /* Primary color for Register */
  color: #FFFFFF;
}

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

/* Main Navigation (Desktop) */
.main-nav {
  background-color: #FFFFFF; /* White for main-nav */
  width: 100%;
  display: flex; /* Desktop default: flex */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Lighter shadow for nav */
}

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

.nav-link {
  color: #333333; /* Dark text for nav links */
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #26A9E0; /* Primary color on hover */
  background-color: #F0F8FF; /* Light background on hover */
  border-radius: 5px;
}

/* Hamburger menu, mobile buttons, and empty space are hidden on desktop */
.hamburger-menu,
.mobile-nav-buttons-wrapper,
.mobile-empty-space,
.mobile-menu-overlay {
  display: none;
}

/* Footer Styles */
.site-footer {
  background-color: #1E8BC3; /* Darker blue for footer background */
  color: #FFFFFF;
  padding: 40px 20px 20px;
}

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

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

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 8px;
}

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

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

.footer-column ul li a {
  color: #E0F2F7; /* Lighter blue for footer links */
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #26A9E0; /* Primary color on hover */
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: #E0F2F7;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 125px; /* Adjusted for mobile header (header-main-top + mobile-nav-buttons-wrapper) */
  }

  .site-header {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  .header-main-top {
    padding: 10px 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 centered */
  }

  .logo {
    flex-grow: 1; /* Logo takes available space */
    text-align: center; /* Center the logo text */
    order: 2; /* Place logo in the middle */
    font-size: 24px;
    padding: 0 5px; /* Reduced padding for logo */
  }

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

  .hamburger-menu {
    display: flex; /* Show hamburger menu on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    order: 1; /* Place hamburger on the left */
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Hamburger active state */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .mobile-empty-space {
    display: block; /* Create empty space on right to push logo left */
    width: 30px; /* Match hamburger width */
    height: 25px; /* Match hamburger height */
    order: 3; /* Right side */
  }

  .main-nav {
    display: none; /* Mobile default: hidden */
    position: fixed;
    top: 0; /* Will be dynamically adjusted by JS */
    left: 0;
    width: 280px; /* Sidebar width */
    height: 100vh; /* Full viewport height */
    background-color: #FFFFFF; /* White background for mobile menu */    flex-direction: column;
    transform: translateX(-100%); /* Initially off-screen */
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Above overlay */
    padding-top: 20px; /* Space for menu items */
  }

  .main-nav.active {
    display: flex; /* Must be flex to show */
    transform: translateX(0); /* Slide in */
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
  }
  .nav-link:last-child {
      border-bottom: none;
  }

  .mobile-nav-buttons-wrapper {
    display: block; /* Show mobile buttons wrapper */
    background-color: #26A9E0; /* Primary color for mobile button bar */
    padding: 10px 0;
  }

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

  .mobile-nav-buttons-container .btn {
      padding: 8px 15px;
      font-size: 14px;
      border-radius: 20px;
  }

  .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.5);
    z-index: 999; /* Below menu, above page content */
    opacity: 0;
    transition: opacity 0.3s ease;
  }

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

  /* Footer mobile adjustments */
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 0; /* Remove gap for vertical stacking */
  }

  .footer-column {
    width: 100%;
    text-align: center;
    margin-bottom: 30px; /* Add space between columns */
  }

  .footer-column h3 {
      border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Re-add border for separation */
      padding-bottom: 8px;
  }
}
/* 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;
  }
}
