:root {
  --header-offset: 110px; /* Desktop: Calculated based on header-top (65px) + main-nav (45px) */
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: Calculated based on header-top (65px) + mobile-buttons-area (45px) */
  }
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #FFFFFF; /* Default text color for the dark theme */
  background-color: #FFFFFF; /* Overall page background */
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
}

/* General Link Styles */
a {
  text-decoration: none;
  color: inherit;
}

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

/* Header Top Area (Desktop) */
.header-top {
  background-color: #000000; /* Distinct from main-nav */
  min-height: 65px; /* Fixed height for header-top */
  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;
  box-sizing: border-box;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FCBC45; /* A contrasting color for the logo */
  text-transform: uppercase;
  padding: 10px 0; /* Ensures it contributes to header-top height */
  display: block; /* For text logo */
}

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

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  font-size: 16px;
}

.btn-login {
  background-color: #FCBC45; /* Login specified color */
  color: #000000; /* Dark text for contrast */
  border: 1px solid #FCBC45;
}

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

.btn-register {
  background-color: #FFFFFF; /* Register specified color */
  color: #000000; /* Dark text for contrast */
  border: 1px solid #FFFFFF;
}

.btn-register:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Main Navigation Area (Desktop) */
.main-nav {
  background-color: #1a1a1a; /* Distinct from header-top */
  min-height: 45px; /* Fixed height for main-nav */
  display: flex; /* Desktop default is flex */
  align-items: center;
  justify-content: center; /* Center menu items */
}

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

.nav-link {
  color: #FFFFFF;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
  color: #FCBC45;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001; /* Above mobile buttons */
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
  top: 0px;
}

.hamburger-menu span:nth-child(2) {
  top: 9px;
}

.hamburger-menu span:nth-child(3) {
  top: 18px;
}

.hamburger-menu.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger-menu.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* Mobile Buttons Area (Hidden on Desktop) */
.mobile-buttons-area {
  display: none; /* Hidden on desktop */
  background-color: #000000; /* Same as header-top */
  min-height: 45px; /* Fixed height for mobile buttons */
  align-items: center;
  justify-content: center;
}

.mobile-buttons-area .header-container {
  justify-content: center; /* Center buttons */
  gap: 12px;
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.site-footer {
  background-color: #000000; /* Primary color */
  color: #FFFFFF; /* Auxiliary color */
  padding: 40px 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: 250px;
}

.site-footer .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FCBC45; /* Contrasting color for footer logo */
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.site-footer h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #FCBC45; /* Contrasting color for headings */
}

.site-footer p {
  line-height: 1.6;
  margin-bottom: 10px;
}

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

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

.site-footer .footer-nav a {
  color: #FFFFFF;
  transition: color 0.3s ease;
}

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

/* Mobile Responsive */
@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;
  }

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Crucial for mobile container */
  }
  .nav-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Crucial for mobile container */
  }

  /* Header Top Area (Mobile) */
  .header-top {
    justify-content: flex-start; /* Align hamburger left */
  }

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

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: 1; /* Place it first */
    margin-right: 15px; /* Space between hamburger and logo */
  }

  .logo {
    flex: 1; /* Take remaining space */
    text-align: center; /* Center the text logo */
    padding: 10px 0; /* Adjust padding for mobile */
    font-size: 24px; /* Adjust font size for mobile */
    order: 2; /* Place logo second */
  }

  /* Mobile Buttons Area */
  .mobile-buttons-area {
    display: flex; /* Show mobile buttons */
  }

  /* Main Navigation (Mobile - hidden by default) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout */
    position: fixed;
    top: var(--header-offset); /* Start below the visible header */
    left: 0;
    width: 70%; /* Adjust width as needed */
    height: calc(100% - var(--header-offset)); /* Fill remaining height */
    background-color: #1a1a1a; /* Same as desktop nav, or slightly different */
    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 */
    z-index: 1000;
  }

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

  .main-nav .nav-container {
    flex-direction: column; /* Vertical links */
    align-items: flex-start; /* Align links to the left */
    padding: 20px;
  }

  .main-nav .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

  /* Footer Mobile */
  .site-footer .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .site-footer .footer-col {
    min-width: unset;
  }
}
/* 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;
  }
}
