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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFFFFF; /* Default text color for dark backgrounds */
  background-color: #FFFFFF; /* Page background */
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

.no-scroll {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000000; /* Primary color for fixed header */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.site-header .header-top {
  background-color: #000000; /* Primary color */
  padding: 15px 0; /* Total height approx 60px */
  min-height: 30px; /* Ensures minimum height for content */
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.site-header .logo {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.site-header .hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
  padding: 5px;
}

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

.site-header .hamburger-menu.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.site-header .hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.site-header .hamburger-menu.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.site-header .desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.site-header .btn {
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.site-header .btn-login {
  background-color: #FCBC45;
  color: #000000;
}

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

.site-header .btn-register {
  background-color: #FFFFFF;
  color: #000000;
}

.site-header .btn-register:hover {
  background-color: #e0e0e0;
}

.site-header .main-nav {
  background-color: #1a1a1a; /* Dark gray, distinct from black */
  padding: 10px 0; /* Total height approx 50px */
  min-height: 30px; /* Ensures minimum height for content */
  display: flex; /* Desktop default: visible, row */
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
}

.site-header .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 25px; /* Spacing between nav links */
  padding: 0 20px;
  flex-wrap: wrap; /* Allow wrapping for many links */
}

.site-header .nav-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

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

.site-header .mobile-buttons {
  display: none; /* Hidden on desktop */
}

.site-header .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);
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.site-header .mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

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

.site-footer .footer-col h3 {
  color: #FCBC45;
  font-size: 18px;
  margin-bottom: 15px;
}

.site-footer .footer-col p {
  margin-bottom: 15px;
}

.site-footer .footer-nav a {
  display: block;
  color: #FFFFFF;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

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

.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333333;
}

@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;
  }

  .site-header .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .site-header .logo {
    flex: 1;
    text-align: center;
    font-size: 20px;
    order: 2; /* Logo in center */
  }

  .site-header .hamburger-menu {
    display: flex; /* Visible on mobile */
    order: 1; /* Hamburger on left */
  }

  .site-header .desktop-nav-buttons {
    display: none; /* Hidden on mobile */
  }

  .site-header .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Position below header */
    left: 0;
    width: 70%;
    max-width: 300px; /* Optional: Limit width on larger mobile devices */
    height: calc(100vh - var(--header-offset));
    background-color: #000000; /* Primary color for mobile menu */
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-out;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Ensure menu is above overlay */
  }

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

  .site-header .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
    gap: 15px;
    width: 100%;
    max-width: none;
  }

  .site-header .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #333333;
  }

  .site-header .nav-link:last-child {
    border-bottom: none;
  }

  .site-header .mobile-buttons {
    display: flex; /* Visible on mobile */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px; /* Total height approx 40px */
    background-color: #000000; /* Primary color */
    min-height: 20px; /* Base height for content */
    flex-shrink: 0;
  }

  .site-header .mobile-buttons .btn {
    flex: 1;
    text-align: center;
    font-size: 14px;
    padding: 8px 10px;
  }

  .site-footer .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

  .site-footer .footer-nav a {
    margin-bottom: 5px;
  }
}
/* 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;
  }
}
