:root {
  --header-offset: 120px; /* Desktop: max height for fixed header + button area */
  --primary-color: #0A2342;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 130px; /* Mobile: max height for fixed header (header-top + mobile-nav-buttons) */
  }
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-dark);
}

body.no-scroll {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-color); /* Fallback, specific sections will override */
}

/* Header Top Area - Desktop */
.header-top {
  background-color: var(--primary-color); /* Deep Blue */
  padding: 10px 0;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--secondary-color); /* Gold */
  text-decoration: none;
  padding: 5px 0;
  display: block;
  line-height: 1;
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  font-size: 0.95em;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--secondary-color); /* Gold */
  color: var(--primary-color); /* Deep Blue text */
}

.btn-primary:hover {
  background-color: #e6c200; /* Darker gold */
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-color); /* Deep Blue */
  color: var(--secondary-color); /* Gold text */
  border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #1a3554; /* Lighter blue */
  transform: translateY(-2px);
}

/* Main Navigation Area - Desktop */
.main-nav {
  background-color: #1E3F66; /* Slightly lighter blue, contrasting with header-top */
  width: 100%;
  display: flex; /* Default: flex for desktop */
  padding: 5px 0;
}

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

.nav-link {
  color: var(--text-light); /* White text */
  text-decoration: none;
  padding: 12px 20px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color); /* Gold on hover/active */
  background-color: rgba(255, 255, 255, 0.1); /* Subtle highlight */
  border-radius: 5px;
}

/* Hamburger menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
}

/* Mobile Nav Buttons (hidden on desktop) */
.mobile-nav-buttons {
  display: none; /* Hidden by default on desktop */
}

/* Mobile Menu Overlay (hidden on desktop) */
.mobile-menu-overlay {
  display: none; /* Hidden by default on desktop */
}

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color); /* Deep Blue */
  color: var(--text-light); /* White text */
  padding: 40px 20px 20px;
  font-size: 0.9em;
  line-height: 1.6;
}

.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: var(--secondary-color); /* Gold */
  font-size: 1.2em;
  margin-bottom: 15px;
}

.footer-col p {
  margin: 0;
}

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

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

.footer-nav a {
  color: var(--text-light); /* White */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--secondary-color); /* Gold */
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  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);
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
  }

  .header-top {
    width: 100%;
    padding: 10px 0;
    background-color: var(--primary-color); /* Deep Blue */
  }

  .header-container {
    width: 100%; /* Must be 100% */
    max-width: none; /* Must be none */
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For absolute positioning of logo */
    min-height: 50px;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    z-index: 2;
    color: var(--secondary-color);
  }

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

  .hamburger-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: auto; /* Push to left */
  }

  .hamburger-menu::before,
  .hamburger-menu::after,
  .hamburger-menu span {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger-menu.active::before {
    transform: translateY(10.5px) rotate(45deg);
  }

  .hamburger-menu.active::after {
    transform: translateY(-10.5px) rotate(-45deg);
  }

  .hamburger-menu.active span {
    opacity: 0;
  }

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    gap: 15px;
    background-color: var(--primary-color);
    padding: 10px 15px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-nav {
    display: none; /* Hidden by default for mobile */
    position: fixed;
    top: 0; /* Will be adjusted by JS to be below header total height */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color); /* Deep Blue for mobile menu background */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: var(--header-offset); /* Push menu content below fixed header total height */
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 998;
    overflow-y: auto;
  }

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

  .nav-container {
    width: 100%; /* Must be 100% */
    max-width: none; /* Must be none */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
  }

  .nav-link {
    width: 100%;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1em;
  }

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

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 997;
    display: none;
  }

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

  .footer-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

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

  .footer-nav {
    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;
}
