:root {
  --header-offset: 120px; /* Desktop: Header + button area total height */
  --primary-color: #0A2240;
  --auxiliary-color: #FFD700;
  --dark-gold: #CCAA00; /* Darker variant of auxiliary for contrast */
  --light-text-color: #ffffff;
  --dark-text-color: #0A2240;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 140px; /* Mobile: Header-top + mobile-buttons area total height */
  }
}

/* Base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Fixed Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column; /* Default to column for mobile, overridden by desktop */
}

/* Header Top - Desktop */
.header-top {
  background-color: var(--primary-color); /* Dark blue */
  padding: 15px 0;
  color: var(--light-text-color);
}
.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: var(--auxiliary-color); /* Gold */
  text-decoration: none;
  padding: 5px 0;
  display: block;
  line-height: 1;
}
.desktop-nav-buttons {
  display: flex; /* Show on desktop */
  gap: 10px;
}
.hamburger-menu {
  display: none; /* Hidden on desktop */
}
.mobile-buttons {
  display: none; /* Hidden on desktop */
}

/* Main Navigation - Desktop */
.main-nav {
  background-color: var(--dark-gold); /* Dark gold for contrast */
  padding: 10px 0;
  display: flex; /* Default to flex for desktop */
  width: 100%;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.nav-link {
  color: var(--dark-text-color); /* Dark blue text on gold background */
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  line-height: 1;
}
.nav-link:hover, .nav-link.active {
  background-color: var(--primary-color);
  color: var(--auxiliary-color);
  border-radius: 5px;
}

/* Buttons */
.btn {
  background-color: var(--auxiliary-color); /* Gold */
  color: var(--primary-color); /* Dark blue for text */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.btn:hover {
  background-color: #e0b800; /* Slightly darker gold */
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background-color: var(--primary-color); /* Dark blue */
  color: var(--light-text-color);
  padding: 40px 20px;
  font-size: 14px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-section {
  flex: 1;
  min-width: 200px;
}
.footer-section h3 {
  color: var(--auxiliary-color); /* Gold */
  font-size: 18px;
  margin-bottom: 15px;
}
.footer-section p, .footer-section ul {
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li a {
  color: var(--light-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-section ul li a:hover {
  color: var(--auxiliary-color);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Specifics */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    min-height: auto;
  }
  .header-top {
    padding: 10px 0;
  }
  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    position: relative;
    justify-content: flex-start; /* Align hamburger to left */
  }
  .hamburger-menu {
    display: block;
    order: 1;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--auxiliary-color);
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    margin-right: auto; /* Push logo to center */
    line-height: 1;
  }
  .hamburger-menu.active::before {
    content: '✖';
  }
  .hamburger-menu::before {
    content: '☰';
  }
  .logo {
    order: 2;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    padding: 0;
    position: absolute; /* Absolute positioning for logo centering */
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Allow logo to size naturally */
    max-width: calc(100% - 100px); /* Ensure logo doesn't overlap hamburger */
    height: 100%; /* Take full height of header-top */
  }
  .desktop-nav-buttons {
    display: none;
  }

  .mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
  }
  .mobile-buttons .btn {
    flex: 1;
    text-align: center;
    max-width: 150px;
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 0; /* Start from the very top of the viewport */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%; /* Full viewport height */
    background-color: var(--primary-color);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999; 
    overflow-y: auto;
    padding-top: calc(var(--header-offset) + 20px); /* Push content below fixed header elements */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0);
  }
  .nav-container {
    flex-direction: column;
    padding: 20px 15px;
    width: 100%;
    max-width: none;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-link {
    width: 100%;
    color: var(--auxiliary-color);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link:hover, .nav-link.active {
    background-color: var(--auxiliary-color);
    color: var(--primary-color);
  }

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

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-section {
    min-width: unset;
    width: 100%;
  }
}

/* Ensure body doesn't scroll when menu is open */
body.no-scroll {
  overflow: 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;
  }
}
