:root {
  --header-offset: 110px; /* Desktop: header-top (60px) + main-nav (50px) */
}
@media (max-width: 768px) {
  :root {
    --header-offset: 98px; /* Mobile: header-top (50px) + mobile-nav-buttons (48px) */
  }
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  background-color: #FFFFFF;
  color: #333333;
  line-height: 1.6;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #FFFFFF; /* Base background, individual sections will override */
}

.header-top {
  background-color: #017439; /* Primary color for top bar */
  padding: 10px 0;
  min-height: 60px;
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for contrast on dark green */
  text-decoration: none;
  padding: 5px 0;
  white-space: nowrap;
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-block;
  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;
  text-align: center;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-register, .btn-login {
  background-color: #C30808; /* Red */
  color: #FFFF00; /* Yellow */
}

.btn-register:hover, .btn-login:hover {
  background-color: #a30707; /* Darker red on hover */
  transform: translateY(-2px);
}

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

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

.main-nav {
  background-color: #02964b; /* Lighter green for nav bar */
  padding: 10px 0;
  min-height: 50px;
  display: flex; /* Desktop default: visible, horizontal */
  align-items: center;
  flex-direction: row;
  position: static; /* Desktop default: static */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* Desktop default */
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-link {
  color: #FFFFFF; /* White text on green */
  text-decoration: none;
  padding: 8px 15px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFFF00; /* Yellow on hover */
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .site-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }

  .header-top {
    padding: 5px 0;
    min-height: 50px;
  }

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Important for mobile */
    justify-content: space-between; /* Hamburger left, Logo center, empty right */
  }

  .logo {
    flex: 1 !important; /* Take available space */
    display: flex !important;
    justify-content: center !important; /* Center the text logo */
    align-items: center !important;
    font-size: 24px;
    padding: 0;
    color: #FFFF00;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 5px; /* Increase clickable area */
    flex-shrink: 0;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF; /* White lines */
    border-radius: 2px;
    transition: all 0.3s ease;
  }

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

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

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

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

  .mobile-nav-buttons {
    display: flex !important;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px; /* Vertical padding for the container */
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #017439; /* Same as header-top for continuity */
    min-height: 48px;
    justify-content: center; /* Center buttons if only one */
  }

  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px); /* Max width for each button to fit two */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2; /* Adjust line height for multi-line text */
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Below header and mobile buttons */
    left: 0;
    width: 80%; /* Sidebar width */
    max-width: 300px; /* Max width for sidebar */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #f8f8f8; /* Light background for mobile menu */
    flex-direction: column;
    padding: 20px 0;
    transform: translateX(-100%); /* Off-screen initially */
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    overflow-y: auto; /* Enable scrolling for long menus */
    z-index: 999; /* Below hamburger, above overlay */
  }

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

  .nav-container {
    flex-direction: column;
    padding: 0;
    max-width: none;
    width: 100%;
    align-items: flex-start; /* Align links to the left */
  }

  .nav-link {
    color: #333333; /* Dark text on light background */
    padding: 12px 20px;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-link:hover {
    background-color: #e0e0e0;
    color: #017439; /* Primary green on hover */
  }

  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998; /* Below menu, above page content */
    transition: opacity 0.3s ease-out;
    opacity: 0;
  }

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

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .no-scroll {
    overflow: hidden;
  }
}

/* Footer styles */
.site-footer {
  background-color: #222; /* Dark background */
  color: #FFFFFF; /* White text */
  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;
  max-width: 300px;
}

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

.footer-col p, .site-footer ul {
  margin-bottom: 15px;
  line-height: 1.6;
}

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

.site-footer ul li a {
  color: #FFFFFF;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.site-footer ul li a:hover {
  color: #FFFF00; /* Yellow on hover */
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #CCCCCC;
}
/* 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;
  }
}
