: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);
}

/* Header Styles */
.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: #000000; /* Primary color */
  color: #FFFFFF;
  padding: 10px 0;
}

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

.logo {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase; /* Ensures PHJOY22 is uppercase */
}

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

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

.login-btn {
  background-color: #FCBC45;
  color: #000000;
}

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

.register-btn {
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid #FCBC45;
}

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

.main-nav {
  background-color: #333333; /* Dark gray, contrasting with black */
  color: #FFFFFF;
  padding: 15px 0;
  min-height: 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  padding: 8px 12px;
  transition: background-color 0.3s ease;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: #555555;
}

.hamburger-menu {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 1002; /* Ensure it's above overlay */
}

.hamburger-menu.active::before {
  content: '\2716'; /* 'X' icon */
}

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

.mobile-menu-overlay {
  display: none;
}

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

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

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

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

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

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

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

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

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

/* Mobile Styles */
@media (max-width: 768px) {
  .header-container,
  .nav-container,
  .mobile-nav-buttons-container,
  .footer-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hamburger-menu {
    display: block;
  }

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

  .header-container {
    justify-content: flex-start; /* Align hamburger left */
    gap: 10px;
  }

  .logo {
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center the text logo */
    font-size: 22px;
  }

  /* Specific rule for image logo if it were present, as per requirements */
  /*
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }
  */

  .mobile-nav-buttons {
    display: block; /* Show mobile specific buttons */
    background-color: #000000; /* Same as header-top */
    padding: 10px 0;
  }

  .mobile-nav-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; /* Will be adjusted by JS to be below header */
    left: 0;
    width: 70%; /* Adjust as needed */
    height: 100vh;
    background-color: #333333;
    flex-direction: column;
    padding-top: var(--header-offset); /* Push content below fixed header elements */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid #555555;
  }

  .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.5);
    z-index: 1000;
  }

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

  .footer-section {
    flex-basis: 100%;
    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;
  }
}
