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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #E0E0E0;
  background-color: #0F0F0F;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-top {
  background-color: #1A1A1A; /* Auxiliary color for header top */
  padding: 15px 0;
}

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

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

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

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

.btn-login {
  background-color: #FFD700; /* Primary color for login button */
  color: #1A1A1A;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.btn-login:hover {
  background-color: #E6C200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

.btn-register {
  background-color: #C0392B; /* A contrasting red for register */
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(192, 57, 43, 0.4);
}

.btn-register:hover {
  background-color: #A93226;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(192, 57, 43, 0.6);
}

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

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

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

.main-nav {
  background-color: #FFD700; /* Primary color for main navigation */
  padding: 10px 0;
  display: flex; /* Desktop default: flex */
  justify-content: center;
  align-items: center;
}

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

.nav-link {
  color: #1A1A1A; /* Auxiliary color for nav links */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #1A1A1A;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Footer styles */
.site-footer {
  background-color: #1A1A1A; /* Auxiliary color for footer */
  color: #E0E0E0;
  padding: 40px 20px;
  text-align: center;
}

.site-footer a {
  color: #FFD700;
  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;
  gap: 30px;
}

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

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

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

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

.footer-brand-info {
  flex: 2;
  text-align: right;
}

.footer-brand-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* 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-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    justify-content: flex-start; /* Align hamburger to left */
  }

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: 15px;
  }

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

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

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

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 2;
    margin-left: -45px; /* Offset for hamburger menu */
  }

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

  .mobile-buttons-area {
    display: block;
    background-color: #1A1A1A;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .mobile-buttons-area .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-offset); /* Adjusted for fixed header and mobile buttons */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #1A1A1A; /* Auxiliary color for mobile menu */
    flex-direction: column;
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    gap: 15px;
  }

  .nav-link {
    color: #E0E0E0;
    font-size: 18px;
    width: 100%;
    padding: 10px 0;
  }

  .nav-link::after {
    background-color: #FFD700;
  }

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

  .footer-column {
    text-align: center;
    min-width: unset;
  }

  .footer-brand-info {
    text-align: center;
  }
}

body.no-scroll {
  overflow: hidden;
}
/* 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;
  }
}
