:root {
  --header-offset: 120px; /* Desktop: Total height of header + button area should not exceed this value */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 200px; /* Mobile: Total height of marquee/header/button area should not exceed this value */
  }
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

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

.header-top {
  background-color: #0A2463; /* Primary color */
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px; /* Padding for logo and buttons from container edge */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color for logo */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block; /* Ensure logo is visible on desktop */
}

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

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

.btn-register {
  background-color: #FFD700; /* Auxiliary color */
  color: #0A2463; /* Primary color for text */
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.btn-register:hover {
  background-color: #e6c200;
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.6);
}

.btn-login {
  background-color: #0A2463; /* Primary color */
  color: #FFD700; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

.btn-login:hover {
  background-color: #071a47;
  border-color: #e6c200;
}

.main-nav {
  background-color: #FFD700; /* Auxiliary color, different from header-top */
  width: 100%;
  display: flex;
  justify-content: center; /* Center the nav-container */
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center menu items horizontally */
  align-items: center;
  padding: 0 20px; /* Smaller padding for nav links */
}

.nav-link {
  color: #0A2463; /* Primary color for nav links */
  text-decoration: none;
  padding: 10px 18px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
  background-color: #0A2463; /* Primary color on hover */
  color: #FFD700; /* Auxiliary color for text on hover */
}

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

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFD700;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-buttons-area {
  display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

.site-footer {
  background-color: #0A2463; /* Primary color */
  color: #FFD700; /* Auxiliary color for text */
  padding: 40px 0;
  font-size: 14px;
}

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

.footer-col {
  flex: 1;
  min-width: 200px;
}

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

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

.footer-nav-link {
  color: #FFD700;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-nav-link:hover {
  color: #e6c200;
}

.copyright-info {
  flex-basis: 100%;
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 215, 0, 0.7); /* Lighter auxiliary for copyright text */
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
    position: relative; /* For absolute positioning of logo if needed */
  }

  .nav-container,
  .footer-container {
    width: 100%;
    max-width: none; /* Important: remove max-width on mobile */
    padding: 0 15px;
  }

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

  .hamburger-menu {
    display: block;
    order: -1; /* Place hamburger on the left */
    margin-right: auto; /* Push logo to center */
    color: #FFD700;
  }

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

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px); /* Ensure logo doesn't overlap hamburger */
  }

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #0A2463; /* Same as header-top */
    width: 100%;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Below the header and mobile buttons */
    left: 0;
    width: 80%;
    height: calc(100% - var(--header-offset));
    background-color: #FFD700; /* Auxiliary color for mobile menu */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
  }

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

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    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-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

  .footer-nav-link {
    display: inline-block; /* For better spacing in mobile footer */
    margin: 0 5px 8px 5px;
  }
  
  .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;
  }
}
