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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  padding-top: var(--header-offset); /* Fixed header offset */
}

body.no-scroll {
  overflow: hidden;
}

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

.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; /* Stacks header-top and main-nav vertically */
}

.header-top {
  background-color: var(--primary-color); /* Black */
  width: 100%;
  padding: 15px 0; /* Total height of content + padding for header-top: 30px (content) + 30px (padding) = 60px */
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* White */
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0; /* For consistent vertical spacing */
  display: block;
}

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

.btn {
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

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

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

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

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color); /* White */
  border-radius: 2px;
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu .bar:last-child {
  margin-bottom: 0;
}

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

.main-nav {
  background-color: #1a1a1a; /* Dark Grey, distinct from primary black */
  width: 100%;
  display: flex; /* Visible on desktop */
  flex-direction: row; /* Horizontal on desktop */
  justify-content: center;
  align-items: center;
  padding: 10px 0; /* Total height of content + padding for main-nav: 20px (content) + 20px (padding) = 40px */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

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

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

.mobile-nav-buttons {
  display: none; /* 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 Styles */
.site-footer {
  background-color: var(--primary-color); /* Black */
  color: var(--secondary-color); /* White */
  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: var(--login-btn-color); /* Yellowish Orange for headings */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-section p, .footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
}

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

.footer-section ul li a:hover {
  color: var(--login-btn-color); /* Yellowish Orange on hover */
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

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

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

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
  }

  .logo {
    flex: 1; /* Allows logo to take available space for centering */
    text-align: center;
    font-size: 24px;
  }

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

  .hamburger-menu {
    display: block;
    order: -1;
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset));
    background-color: var(--primary-color);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px 0;
    overflow-y: auto;
    justify-content: flex-start;
    align-items: flex-start;
  }

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

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

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

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

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons below header-top */
    justify-content: center;
    gap: 12px;
    padding: 10px 15px; /* Total height of content + padding for mobile-nav-buttons: 30px (content) + 20px (padding) = 50px */
    background-color: #1a1a1a; /* Dark Grey */
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
  }

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

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-section {
    min-width: unset;
    text-align: center;
  }

  .footer-section ul {
    text-align: center;
  }
}
/* 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;
  }
}
