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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #0A192F;
  padding-top: var(--header-offset);
}

/* Shared styles for content images and 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;
  }
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  min-height: var(--header-offset);
  display: flex;
  flex-direction: column;
}

.header-top {
  background-color: #0A192F; /* Dark Navy */
  padding: 10px 0;
  height: 70px; /* Fixed height for desktop header-top */
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.logo {
  color: #FFD700; /* Gold */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.main-nav {
  background-color: #1E90FF; /* Deep Sky Blue */
  padding: 10px 0;
  height: 50px; /* Fixed height for desktop main-nav */
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.nav-link {
  color: #FFFFFF; /* White */
  text-decoration: none;
  font-size: 16px;
  padding: 5px 0;
  transition: color 0.3s ease;
}

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

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

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

.btn-login {
  background-color: #FFD700; /* Gold */
  color: #0A192F; /* Dark Navy */
}

.btn-login:hover {
  background-color: #e6c200; /* Darker Gold */
}

.btn-register {
  background-color: #1E90FF; /* Deep Sky Blue */
  color: #FFFFFF; /* White */
}

.btn-register:hover {
  background-color: #1a7fdc; /* Darker Deep Sky Blue */
}

.hamburger-menu, .mobile-nav-buttons, .mobile-menu-overlay {
  display: none; /* Hidden by default on desktop */
}

/* Footer styles */
.site-footer {
  background-color: #0A192F; /* Dark Navy */
  padding: 40px 0;
  color: #E0E0E0;
  font-size: 14px;
}

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

.footer-column {
  flex: 1;
  min-width: 200px;
}

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

.footer-column h3 {
  color: #FFD700; /* Gold */
  font-size: 18px;
  margin-bottom: 20px;
}

.site-footer p {
  line-height: 1.6;
  margin: 0;
}

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

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

.footer-nav a {
  color: #E0E0E0; /* Light Grey */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #FFD700; /* Gold */
}

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

  .header-top {
    height: 60px; /* Fixed height for mobile header-top */
    padding: 5px 0;
  }

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Mobile container fills width */
    justify-content: space-between;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    margin-left: -40px; /* Offset hamburger width to truly center */
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #FFD700; /* Gold */
    transition: all 0.3s ease;
    border-radius: 2px;
  }

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

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

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

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

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background-color: #1E90FF; /* Deep Sky Blue */
    flex-direction: column;
    padding-top: var(--header-offset);
    transform: translateX(-100%); /* Off-screen */
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    z-index: 999;
    overflow-y: auto;
  }

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

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

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    background-color: #0A192F; /* Dark Navy */
    padding: 10px 0;
    height: 50px; /* Fixed height for mobile buttons */
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .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;
    text-align: center;
    gap: 20px;
  }

  .footer-column {
    min-width: unset;
    width: 100%;
  }

  .footer-nav {
    padding-top: 10px;
  }

  .footer-nav li {
    display: inline-block;
    margin: 0 8px 8px 0;
  }

  .footer-nav li:last-child {
    margin-right: 0;
  }
}
/* 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;
  }
}
