:root {
  --header-offset: 110px; /* Desktop: header-top (60px) + main-nav (50px) */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: header-top (60px) + mobile-nav-buttons (50px) */
  }
  .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 {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
}

/* Site Header - Fixed Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: transparent; /* Base background, specific sections will have colors */
}

/* Header Top Section */
.header-top {
  background-color: #000000; /* Primary color */
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px; /* Padding for the entire top bar on desktop */
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #FCBC45; /* Golden yellow for logo text */
  text-decoration: none;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-login {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Black text on golden yellow background */
}

.btn-login:hover {
  background-color: #e0a53b;
}

.btn-register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Black text on white background */
}

.btn-register:hover {
  background-color: #f0f0f0;
}

/* Main Navigation (Desktop) */
.main-nav {
  background-color: #FFFFFF; /* Secondary color for main nav */
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.nav-link {
  color: #000000; /* Black text on white background */
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FCBC45; /* Golden yellow on hover */
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

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

/* Mobile Navigation Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
  display: none;
}

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

/* Footer */
.site-footer {
  background-color: #000000; /* Primary color */
  color: #FFFFFF;
  padding: 40px 0 20px;
}

.site-footer a {
  color: #FFFFFF;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

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

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-column h3 {
  color: #FCBC45; /* Golden yellow for footer headings */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column ul {
  font-size: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* Mobile Styles */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column; /* Stack header-top and mobile-nav-buttons */
    box-shadow: none; /* Remove shadow to blend with mobile-nav-buttons */
  }

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger-menu {
    display: block;
    order: 1;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 24px;
    color: #FFFFFF;
    position: relative;
    z-index: 1002; /* Ensure hamburger is above overlay */
  }

  .hamburger-menu.active::before {
    content: "\00d7"; /* X icon */
  }

  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 20px;
  }

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

  .mobile-spacer {
    display: block;
    order: 3;
    width: 30px; /* Balance hamburger width */
    height: 30px;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #000000; /* Same as header-top */
    height: 50px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow here for the combined fixed header */
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; /* Full height slide from top */
    left: 0;
    width: 80%;
    height: 100%;
    background-color: #000000;
    flex-direction: column;
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-out;
    z-index: 1001;
    padding-top: var(--header-offset); /* Space for fixed header content */
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    overflow-y: auto; /* Enable scrolling for long menus */
  }

  .main-nav.active {
    display: flex; /* Must be flex to show */
    transform: translateX(0);
  }

  .main-nav .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
  }

  .nav-link {
    color: #FFFFFF;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .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: 1000;
  }

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

  .site-footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-column {
    width: 100%;
    min-width: unset;
    margin-bottom: 30px;
  }

  .site-footer .footer-column:last-child {
    margin-bottom: 0;
  }

  .site-footer .footer-column ul {
    padding: 0;
  }

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

/* 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;
  }
}
