:root {
  --header-offset: 110px; /* Desktop: header-top (60px) + main-nav (50px) */
}

/* General styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Apply header offset to body */
  line-height: 1.6;
  color: #FFFFFF; /* Default text color for body, will be overridden */
  background-color: #FFFFFF; /* Page background color */
}

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

/* Header Top Section (Desktop) */
.header-top {
  background-color: #000000; /* Primary color */
  width: 100%;
  min-height: 60px; /* Base height for header-top */
  display: flex;
  align-items: center;
  padding: 10px 0; /* Vertical padding */
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Horizontal padding */
}

/* Logo (Desktop) */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FCBC45; /* Bright color for visibility on black */
  text-decoration: none;
  text-transform: uppercase; /* As per requirement */
  display: block; /* Ensure it's always visible */
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex; /* Show on desktop */
  gap: 12px;
}
.btn {
  padding: 10px 20px;
  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: #FCBC45; /* Login color */
  color: #000000;
}
.btn-login:hover {
  background-color: #FFD700; /* Lighter gold on hover */
}
.btn-register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 1px solid #FCBC45; /* Add a border for definition */
}
.btn-register:hover {
  background-color: #F0F0F0; /* Slightly darker white on hover */
}

/* Main Navigation (Desktop) */
.main-nav {
  background-color: #1a1a1a; /* Dark gray, contrasting with header-top */
  width: 100%;
  min-height: 50px; /* Base height for main-nav */
  display: flex; /* Show on desktop */
  align-items: center;
  padding: 10px 0; /* Vertical padding */
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center; /* Center menu items */
  align-items: center;
  padding: 0 20px; /* Horizontal padding */
}
.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  padding: 8px 15px;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.nav-link:hover {
  color: #FCBC45;
  background-color: rgba(255,255,255,0.1);
  border-radius: 3px;
}

/* Mobile specific elements (hidden by default on desktop) */
.hamburger-menu, .mobile-buttons-area, .mobile-menu-overlay {
  display: none;
}

/* Footer */
.site-footer {
  background-color: #000000; /* Primary color */
  color: #FFFFFF;
  padding: 40px 0 20px;
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-section {
  flex: 1;
  min-width: 250px; /* Allow sections to wrap on smaller screens */
}
.footer-section h3 {
  color: #FCBC45; /* Highlight footer headings */
  margin-bottom: 15px;
  font-size: 1.2rem;
}
.footer-section p, .footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-section a:hover {
  color: #FCBC45;
}
.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.copyright p {
  margin: 0;
  color: #CCCCCC;
}

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

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

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Header Top (Mobile) */
  .header-container {
    padding: 0 15px; /* Smaller horizontal padding */
    justify-content: space-between; /* Space between hamburger and logo */
    flex-wrap: nowrap; /* Prevent wrapping */
  }
  .hamburger-menu {
    display: flex; /* Show hamburger menu */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
  }
  .hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FCBC45; /* Hamburger icon color */
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .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);
  }

  .logo {
    flex: 1; /* Allow logo to take available space for centering */
    text-align: center; /* Center text logo */
    font-size: 1.6rem;
    margin-left: 10px; /* Space from hamburger */
    margin-right: 10px; /* Space from potential right element (none here, but good practice) */
  }

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

  /* Mobile Buttons Area */
  .mobile-buttons-area {
    display: block; /* Show mobile buttons area */
    width: 100%;
    background-color: #000000; /* Match header-top background */
    padding: 10px 0; /* Vertical padding */
    min-height: 50px; /* Base height for mobile buttons */
  }
  .mobile-buttons-container {
    width: 100%; /* Full width */
    max-width: none; /* Crucial: no max-width on mobile containers */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 15px; /* Horizontal padding */
  }

  /* Main Navigation (Mobile - hidden by default) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 250px; /* Width of the mobile menu */
    height: calc(100vh - var(--header-offset)); /* Full height minus header */
    background-color: #1a1a1a; /* Match desktop main-nav background */
    flex-direction: column;
    padding: 20px 0;
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    overflow-y: auto; /* Enable scrolling for long menus */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container {
    flex-direction: column; /* Stack links vertically */
    padding: 0; /* Remove horizontal padding */
    max-width: none; /* Crucial: no max-width on mobile containers */
    width: 100%;
  }
  .nav-link {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  /* 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.5);
    z-index: 999;
  }
  .mobile-menu-overlay.active {
    display: block; /* Show when active */
  }

  /* Body no-scroll for mobile menu */
  body.no-scroll {
    overflow: hidden;
  }

  /* Footer (Mobile) */
  .footer-container {
    flex-direction: column; /* Stack sections vertically */
    gap: 20px;
  }
  .footer-section {
    min-width: unset; /* Remove min-width constraint */
    width: 100%;
    text-align: center; /* Center footer content */
  }
  .footer-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .footer-section ul li {
    margin-bottom: 0;
  }
}
/* 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;
  }
}
