:root {
  --header-offset: 110px; /* Desktop: Calculated height of header-top + main-nav */
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: Calculated height of header-top + mobile-nav-buttons */
  }
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #eeeeee; /* Light text for dark background */
  background-color: #111111; /* General background */
  line-height: 1.6;
}

/* Shared styles for content overflow on mobile */
@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;
  }
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1a1a1a; /* Dark grey/black for header */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  box-sizing: border-box;
}

.site-header .header-top {
  background-color: #1a1a1a; /* Dark grey/black */
  padding: 15px 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

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

.site-header .logo {
  color: #FFD700; /* Gold */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
  display: block;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.site-header .desktop-nav-buttons {
  display: flex;
  gap: 10px;
}

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

.site-header .main-nav {
  background-color: #2a2a2a; /* Slightly lighter dark grey for main nav */
  padding: 10px 0;
  display: flex; /* Display on desktop */
  width: 100%;
  box-sizing: border-box;
}

.site-header .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}

.site-header .nav-link {
  color: #eeeeee;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #FFD700; /* Gold on hover/active */
}

.site-header .hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.site-header .hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #FFD700;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.site-header .hamburger-menu span:nth-child(1) { top: 0; }
.site-header .hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.site-header .hamburger-menu span:nth-child(3) { bottom: 0; }

.site-header .hamburger-menu.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.site-header .hamburger-menu.active span:nth-child(2) { opacity: 0; }
.site-header .hamburger-menu.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

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

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

.site-header .header-right-filler {
  display: none; /* Hidden on desktop */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  border: 1px solid #FFD700;
}

.btn-primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.btn-secondary {
  background-color: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold */
  border: 1px solid #FFD700;
}

.btn-secondary:hover {
  background-color: #6a0000;
  color: #ffe066;
}

/* Site Footer */
.site-footer {
  background-color: #1a1a1a; /* Dark grey/black for footer */
  color: #eeeeee;
  padding: 40px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}

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

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

.site-footer .footer-logo {
  color: #FFD700;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.site-footer h3 {
  color: #FFD700;
  font-size: 18px;
  margin-bottom: 15px;
}

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

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

.site-footer ul li a {
  color: #eeeeee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer ul li a:hover {
  color: #FFD700;
}

.site-footer .footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid #333333;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .site-header {
    min-height: auto;
  }

  .site-header .header-top {
    padding: 15px 0;
  }

  .site-header .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Crucial for mobile container width */
    justify-content: space-between;
  }

  .site-header .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: 1;
  }

  .site-header .logo {
    order: 2;
    flex-grow: 1; /* Allows logo to take space */
    text-align: center; /* Center the text logo */
    font-size: 24px;
  }

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

  .site-header .header-right-filler {
    display: block; /* Show filler for balance */
    width: 30px; /* Match hamburger width */
    height: 24px; /* Match hamburger height */
    order: 3;
  }

  .site-header .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #1a1a1a; /* Same as header-top */
    justify-content: center; /* Center buttons if only one, or for overall layout */
  }

  .site-header .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px); /* For two buttons with 10px gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .site-header .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header and mobile buttons */
    left: 0;
    width: 70%; /* Side menu width */
    height: calc(100% - var(--header-offset));
    background-color: #2a2a2a;
    flex-direction: column;
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

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

  .site-header .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
    width: 100%;
    max-width: none; /* Crucial for mobile container width */
  }

  .site-header .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #333333;
  }

  .site-footer .footer-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  .site-footer .footer-col {
    min-width: unset;
    width: 100%;
    text-align: center;
  }

  .site-footer .footer-logo {
    text-align: center;
  }

  .site-footer h3 {
    text-align: center;
  }

  .site-footer ul {
    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;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
