:root {
  --primary-color: #000000;
  --secondary-color: #FFFFFF;
  --login-btn-bg: #FCBC45;
  --register-btn-bg: #FFFFFF;
  --header-offset: 100px; /* Desktop: header-top (60px) + main-nav (40px) */
}

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

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--secondary-color); /* Default text color for dark theme */
  background-color: #FFFFFF; /* Page background */
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

.header-top {
  background-color: var(--primary-color); /* Black */
  color: var(--secondary-color); /* White text */
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px; /* 30px vertical padding */
  min-height: 30px; /* Logo height + padding */
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* White */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.desktop-nav-buttons {
  display: flex; /* Always flex for desktop */
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none; /* Remove underline */
  border: none; /* Ensure no default button border */
  cursor: pointer;
}

.btn-login {
  background-color: var(--login-btn-bg); /* #FCBC45 */
  color: var(--primary-color); /* Black text */
}

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

.btn-register {
  background-color: var(--register-btn-bg); /* #FFFFFF */
  color: var(--primary-color); /* Black text */
  border: 1px solid var(--primary-color); /* Add a border for contrast */
}

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

.main-nav {
  background-color: #1a1a1a; /* Slightly lighter black than header-top */
  color: var(--secondary-color); /* White text */
  width: 100%;
  display: flex; /* Desktop default: flex */
  justify-content: center;
  align-items: center;
}

.main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop default: row */
  justify-content: center;
  align-items: center;
  padding: 10px 20px; /* 20px vertical padding */
  min-height: 20px; /* Nav link height + padding */
}

.nav-link {
  padding: 8px 15px;
  color: var(--secondary-color); /* White */
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap; /* Prevent wrapping */
}

.nav-link:hover {
  color: var(--login-btn-bg); /* Yellow on hover */
}

/* Mobile specific styles */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Above mobile buttons and overlay */
}

.hamburger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color); /* White */
  margin: 5px 0;
  transition: 0.4s;
}

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

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

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

.mobile-buttons {
  display: none; /* Hidden on desktop */
  background-color: var(--primary-color); /* Consistent with header-top */
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-buttons-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 15px; /* 20px vertical padding */
  min-height: 36px; /* Button height + padding */
}

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

/* Footer styles */
.site-footer {
  background-color: var(--primary-color); /* Black */
  color: var(--secondary-color); /* White text */
  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-section {
  flex: 1;
  min-width: 200px;
}

.site-footer .footer-logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color); /* White */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

.site-footer h3 {
  color: var(--login-btn-bg); /* Yellow for headings */
  font-size: 16px;
  margin-bottom: 15px;
}

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

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

.site-footer ul li a {
  color: var(--secondary-color); /* White */
  transition: color 0.3s ease;
}

.site-footer ul li a:hover {
  color: var(--login-btn-bg); /* Yellow on hover */
}

/* Responsive adjustments */
@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: 15px 15px; /* Smaller padding for mobile */
    width: 100%; /* Full width */
    max-width: none; /* No max-width */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Position left */
  }

  .logo {
    order: 2; /* Center logo */
    flex: 1; /* Take remaining space */
    text-align: center; /* Center text logo */
    font-size: 20px;
  }

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

  .mobile-buttons {
    display: block; /* Show mobile buttons */
    order: 3; /* Below header-top */
  }

  .mobile-buttons-container {
    width: 100%; /* Full width */
    max-width: none; /* No max-width */
    padding: 10px 15px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: var(--header-offset); /* Start below the header and mobile buttons */
    left: 0;
    width: 280px; /* Menu width */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--primary-color); /* Black background */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    overflow-y: auto; /* Scroll if menu content is long */
    z-index: 1000; /* Above overlay */
  }

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

  .main-nav .nav-container {
    flex-direction: column; /* Vertical links */
    padding: 20px 15px;
    width: 100%; /* Full width */
    max-width: none; /* No max-width */
    align-items: flex-start; /* Align links to the left */
  }

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

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

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

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

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

  .site-footer h3 {
    margin-top: 20px;
  }
}

/* CSS for no-scroll class */
body.no-scroll {
  overflow: hidden;
}
/* 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;
  }
}
