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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #FFFFFF;
  background-color: #FFFFFF;
  padding-top: var(--header-offset);
}

/* Ensure mobile content doesn't overflow */
@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 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: transparent; /* Base for fixed header */
}

.header-top {
  background-color: #000000; /* Primary color */
  padding: 10px 0;
  height: 60px; /* 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;
}

.logo {
  color: #FCBC45; /* Login button color for logo */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  padding-right: 20px;
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  padding-left: 20px;
}

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

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

.btn-register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 1px solid #FCBC45;
}

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

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

.main-nav {
  background-color: #1a1a1a; /* Darker shade for contrast */
  padding: 10px 0;
  height: 50px; /* Fixed height for main-nav */
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 0 20px;
}

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

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

.hamburger-menu,
.mobile-buttons,
.mobile-menu-overlay {
  display: none;
}

/* Footer Styles */
.site-footer {
  background-color: #000000; /* Primary color */
  color: #FFFFFF;
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333333;
}

.site-footer .footer-column {
  flex: 1;
  min-width: 150px;
}

.site-footer .footer-column h3 {
  color: #FCBC45; /* Accent color for headings */
  font-size: 18px;
  margin-bottom: 15px;
  white-space: nowrap;
}

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

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

.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  color: #CCCCCC;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-top {
    height: 60px; /* Ensure fixed height */
  }
  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .logo {
    flex: 1; /* Allow logo to take available space */
    text-align: center;
    padding-right: 0;
    font-size: 24px;
    order: 2; /* Center logo between hamburger and potential right items */
  }

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    order: 1;
  }

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

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

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

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

  .main-nav {
    display: none; /* Default hidden */
    position: fixed;
    top: var(--header-offset); /* Below header and mobile buttons */
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-offset));
    background-color: #000000; /* Full black background for mobile menu */
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 1000;
  }

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

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

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

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

  .mobile-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    background-color: #000000; /* Same as header-top for continuity */
    padding: 10px 15px;
    height: 60px; /* Fixed height for mobile buttons */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 990; /* Below hamburger menu and main nav */
  }

  .mobile-buttons .btn {
    flex: 1;
    text-align: center;
    font-size: 16px;
    padding: 12px 15px;
  }

  .mobile-menu-overlay {
    display: none;
    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;
  }

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

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

  .site-footer .footer-column {
    text-align: center;
    min-width: unset;
    width: 100%;
  }

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

  .site-footer .footer-column 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;
  }
}
