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

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

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.header-top {
  background-color: #000000; /* Primary color */
  width: 100%;
  padding: 15px 0; /* Vertical padding */
}

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

.logo {
  font-family: 'Montserrat', sans-serif; /* Example font */
  font-size: 28px;
  font-weight: bold;
  color: #FCBC45; /* Contrasting with black header-top */
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.desktop-nav-buttons {
  display: flex;
  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;
  display: inline-block;
  cursor: pointer;
}

.btn.login-btn {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Text color for login button */
}

.btn.login-btn:hover {
  background-color: #e0a53b; /* Slightly darker on hover */
}

.btn.register-btn {
  background-color: #FFFFFF; /* Register color */
  color: #000000; /* Text color for register button */
  border: 1px solid #FCBC45; /* Border to stand out */
}

.btn.register-btn:hover {
  background-color: #f0f0f0; /* Slightly darker on hover */
}

.main-nav {
  background-color: #FFFFFF; /* Secondary color, contrasting with header-top */
  width: 100%;
  display: flex; /* Desktop: visible and flex */
  padding: 10px 0; /* Vertical padding */
}

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

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

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

/* Hide mobile specific elements on desktop */
.hamburger-menu,
.mobile-buttons-area,
.mobile-menu-overlay {
  display: none;
}

/* Footer styles */
.site-footer {
  background-color: #000000;
  color: #FFFFFF;
  padding: 40px 20px 20px;
  font-size: 14px;
}

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

.footer-section {
  flex: 1;
  min-width: 250px;
}

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

.footer-section p, .footer-section ul {
  color: #CCCCCC;
  line-height: 1.6;
}

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

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

.footer-section ul li a {
  color: #CCCCCC;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #FCBC45;
}

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

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

  body {
    overflow-x: hidden;
  }

  .site-header {
    flex-direction: column;
  }

  .header-top {
    padding: 10px 0;
  }

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

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    padding-left: 30px; /* Offset for hamburger menu */
  }

  .desktop-nav-buttons {
    display: none;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

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

  .hamburger-menu.active .hamburger-icon:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

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

  .hamburger-menu.active .hamburger-icon:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #000000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header elements */
    left: 0;
    width: 80%; /* Sidebar width */
    height: calc(100vh - var(--header-offset)); /* Fill remaining viewport height */
    background-color: #000000;
    flex-direction: column;
    transform: translateX(-100%); /* Start off-screen to the left */
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto; /* Allow scrolling if many links */
  }

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

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

  .nav-link {
    color: #FFFFFF;
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #FCBC45;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

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

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

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

  .footer-section ul {
    text-align: center;
  }

  .footer-bottom {
    padding-top: 15px;
    margin-top: 20px;
  }

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

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