:root {
  --header-offset: 120px; /* Desktop: Total height of header + button area */
}
@media (max-width: 768px) {
  :root {
    --header-offset: 200px; /* Mobile: Total height of marquee/header/button area */
  }
}

/* Common styles */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  color: #fff;
  background-color: #000;
  overflow-x: hidden;
  line-height: 1.6;
}

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

.header-top {
  background-color: #0A192F; /* Primary color */
  width: 100%;
  padding: 15px 0;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Gold color for logo */
  text-decoration: none;
  flex-shrink: 0;
}

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

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

.btn-register {
  background-color: #FFD700; /* Gold button */
  color: #0A192F; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

.btn-login {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.btn-login:hover {
  background-color: #FFD700;
  color: #0A192F;
}

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

.main-nav {
  background-color: #2E4057; /* Darker blue for main nav, distinct from header-top */
  width: 100%;
  display: flex; /* Desktop default: flex */
  position: static; /* Desktop default: static */
  padding: 10px 0;
}

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

.nav-link {
  color: #FFFFFF; /* White text for nav links */
  text-decoration: none;
  padding: 10px 15px;
  margin: 0 5px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #FFD700; /* Gold on hover/active */
  background-color: rgba(255, 215, 0, 0.1); /* Subtle gold background on hover */
  border-radius: 3px;
}

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

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

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

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

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

.footer-col p {
  margin-bottom: 10px;
  line-height: 1.6;
}

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

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

.footer-nav a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Mobile styles */
@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 adjustments */
  .header-container {
    padding: 10px 15px;
    max-width: none; /* Ensure container takes full width */
    width: 100%;
    position: relative; /* For absolute positioning of logo */
    min-height: 50px; /* Ensure enough height for logo */
    justify-content: flex-start; /* Reset from space-between */
    gap: 15px; /* Space between hamburger and logo */
  }

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

  .hamburger-menu {
    display: flex;
    z-index: 2; /* Ensure hamburger is clickable */
  }

  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: calc(100% - 100px); /* Leave space for hamburger */
    font-size: 24px;
    z-index: 1; /* Below hamburger */
  }

  .header-top {
    padding: 10px 0;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #0A192F; /* Same as header-top */
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 998; /* Below hamburger/menu */
    width: 100%;
  }

  .main-nav {
    display: none; /* Default hidden on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header and mobile buttons */
    left: 0;
    width: 80%; /* Menu width */
    height: calc(100% - var(--header-offset));
    background-color: #0A192F; /* Primary color for mobile menu */
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  }

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

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

  .nav-link {
    width: 100%;
    padding: 15px 0;
    margin: 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: rgba(0, 0, 0, 0.7);
    z-index: 998; /* Below mobile menu, above mobile buttons */
  }

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

  /* Hamburger active state */
  .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);
  }

  /* Footer adjustments */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 15px;
  }
  .footer-col {
    min-width: unset;
    width: 100%;
  }
  .footer-nav {
    padding-left: 0;
  }
  .footer-nav li {
    text-align: center;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}
/* 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;
  }
}
