:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-light: #FFFFFF;
  --text-dark: #333333; /* For text on gold background */
  --header-offset: 120px; /* Desktop */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 200px; /* Mobile: Header top + mobile buttons */
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f4f4f4;
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: auto; /* Ensure content is not truncated */
  background-color: transparent; /* Base, will be overridden by header-top and main-nav */
}

.header-top {
  background-color: var(--primary-color); /* Dark blue */
  padding: 10px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Ensure logo and buttons don't stick to edges */
  min-height: 50px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold text for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block; /* Ensure visibility */
  flex-shrink: 0; /* Prevent logo from shrinking */
  text-decoration: none;
}

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

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

.btn-primary {
  background-color: var(--secondary-color); /* Gold background */
  color: var(--primary-color); /* Dark blue text */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary {
  background-color: var(--primary-color); /* Dark blue background */
  color: var(--secondary-color); /* Gold text */
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #081e4a; /* Slightly darker blue */
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: #f0f0f0; /* Light background for 'Download' */
  color: var(--primary-color); /* Dark text */
  border: 1px solid #ddd;
}

.btn-tertiary:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.main-nav {
  background-color: var(--secondary-color); /* Gold background */
  padding: 10px 0;
  width: 100%;
  display: flex; /* Desktop default: flex */
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop default: row */
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller desktop screens */
}

.nav-link {
  color: var(--primary-color); /* Dark blue text on gold background */
  padding: 10px 15px;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
  white-space: nowrap; /* Prevent menu item text wrapping */
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(10, 36, 99, 0.1); /* Slight primary color tint on hover */
  color: var(--primary-color);
}

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

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color); /* Gold bars */
  margin: 5px auto;
  transition: all 0.3s ease;
}

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

/* Mobile specific styles */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

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

/* Footer */
.site-footer {
  background-color: var(--primary-color); /* Dark blue footer */
  color: var(--text-light); /* White text */  padding: 40px 20px;
  font-size: 14px;
}

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

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold for footer logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

.site-footer h3 {
  color: var(--secondary-color); /* Gold headings */
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.site-footer ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.site-footer ul li a:hover {
  color: var(--secondary-color); /* Gold on hover */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
    justify-content: space-between; /* Space between hamburger and logo */
    position: relative; /* For absolute positioning of logo */
  }

  .hamburger-menu {
    display: block; /* Show hamburger */
  }

  .logo {
    text-align: center; /* Center text logo */
    flex-grow: 1; /* Allow logo to take available space */
    font-size: 24px;
    position: absolute; /* Absolute position to center without affecting flex */
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Allow content width */
    max-width: calc(100% - 100px); /* Ensure space for hamburger */
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .main-nav {
    display: none; /* Hidden by default for mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: var(--header-offset); /* Start below the header + mobile buttons */
    left: 0;
    width: 80%; /* Menu width */
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    background-color: var(--primary-color); /* Dark blue menu background */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    overflow-y: auto; /* Scroll if menu content is too long */
    padding-top: 20px;
  }

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

  .nav-container {
    flex-direction: column;
    padding: 0 15px;
    max-width: none; /* No max-width on mobile */
    align-items: flex-start; /* Align menu items to the left */
  }

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    color: var(--text-light); /* White text on dark blue menu */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #081e4a; /* Slightly darker blue for button strip */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 50px; /* Ensure button area has height */
    flex-wrap: wrap; /* Allow buttons to wrap */
  }

  .mobile-nav-buttons .btn {
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 150px; /* Limit button width */
    padding: 8px 15px;
    font-size: 14px;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below hamburger and menu */
    display: none; /* Hidden by default */
  }
  .mobile-menu-overlay.active {
    display: block; /* Show when active */
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-col {
    min-width: unset;
    flex-basis: 100%;
  }
}
/* 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;
  }
}
