:root {
  --header-offset: 120px; /* Desktop: total height of header + button area not exceeding this value */
}
@media (max-width: 768px) {
  :root {
    --header-offset: 200px; /* Mobile: total height of marquee/header/button area not exceeding this value */
  }
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  padding-top: var(--header-offset); /* Apply header offset to body */
}

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);
  min-height: 60px; /* Ensure content fits */
  display: flex;
  flex-direction: column;
}

.header-top {
  background-color: #1A2E47; /* Primary color */
  padding: 10px 0;
  color: #fff;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color */
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  display: inline-block; /* Ensures logo is visible */
}

.desktop-nav-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* Remove underline */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
}

.btn-register {
  background: linear-gradient(45deg, #FFD700, #FFA500); /* Gold to Orange gradient */
  color: #1A2E47; /* Dark text for contrast */
}

.btn-register:hover {
  background: linear-gradient(45deg, #FFA500, #FFD700);
  transform: translateY(-2px);
}

.btn-login {
  background-color: #1A2E47; /* Primary color */
  color: #FFD700; /* Auxiliary color */
  border: 2px solid #FFD700;
}

.btn-login:hover {
  background-color: #FFD700;
  color: #1A2E47;
  transform: translateY(-2px);
}

.main-nav {
  background-color: #FFD700; /* Auxiliary color - contrasting with header-top */
  padding: 10px 0;
  display: flex; /* Desktop default */
  flex-direction: row; /* Desktop default */
  justify-content: center; /* Center nav links on desktop */
}

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

.nav-link {
  color: #1A2E47; /* Dark text for contrast on gold background */
  font-weight: bold;
  padding: 5px 10px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background-color: #1A2E47;
  border-radius: 5px;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFD700; /* Auxiliary color for contrast */
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-buttons-area {
  display: none; /* Hidden on desktop */
  background-color: #1A2E47; /* Primary color */
  padding: 10px 20px;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.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;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Footer Styles */
.site-footer {
  background-color: #1A2E47; /* Primary color */
  color: #fff;
  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-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3 {
  color: #FFD700; /* Auxiliary color */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-col p, .footer-nav ul li a {
  color: #ccc;
}

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

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

.footer-nav ul li a:hover {
  color: #FFD700;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
}

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

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

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

  .hamburger-menu {
    display: block;
    order: -1; /* Place hamburger on the left */
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Adjust as needed */
    height: 100%;
    background-color: #1A2E47; /* Primary color for mobile menu */
    flex-direction: column;
    padding-top: 80px;
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  }

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

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

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

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

  .nav-link:hover {
    color: #FFD700;
    background-color: transparent;
  }

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

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

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

  .mobile-buttons-area {
    display: flex; /* Show on mobile */
    position: sticky; /* Sticky or fixed below header-top */
    top: 60px; /* Adjust based on header-top height */
    width: 100%;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 990; /* Below menu, above content */
  }

  .site-header {
    min-height: auto;
  }

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

  .footer-col {
    min-width: unset;
    width: 100%;
  }
  
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: 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;
  }
}
