:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); margin: 0; font-family: Arial, sans-serif; background-color: #0A0A0A; color: #FFF6D6; }

/* Mobile content overflow protection */
@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;
  }
  :root { --header-offset: 110px; }
}

/* Site Header - Fixed, Desktop First */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0A0A0A; /* Background color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  z-index: 1000;
  min-height: 60px; /* Ensure content adaptation */
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px; /* Desktop padding */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribute items */
  width: 100%;
  min-height: 60px;
}

.logo {
  font-family: 'Arial Black', sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-decoration: none;
  flex-shrink: 0;
  padding: 10px 0;
  display: block;
}

.main-nav {
  display: flex; /* Desktop default: visible, horizontal */
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px; /* Spacing between nav links */
  flex: 1; /* Take up available space */
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-link {
  color: #FFF6D6; /* Text Main */
  text-decoration: none;
  font-weight: 600;
  padding: 10px 0;
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent wrapping */
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #F2C14E; /* Primary color on hover/active */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: #FFF6D6;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 1001;
  flex-shrink: 0;
}

.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 10px; /* Spacing between buttons */
  flex-shrink: 0;
  margin-left: auto; /* Push to the right */
}

.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop, important to override other rules */
}

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: #0A0A0A; /* Dark text for bright buttons */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px #FFD36B; /* Glow effect */
}

/* Mobile styles */
@media (max-width: 768px) {
  body.no-scroll {
    overflow: hidden;
  }
  .header-container {
    padding: 0 15px; /* Mobile padding */
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
  }

  .logo {
    flex: 1 !important; /* Take up available space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px; /* Adjust font size for mobile */
    padding: 5px 0;
  }
  .logo img { /* If logo is an image */
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout for mobile menu */
    position: fixed; /* Fixed position for off-canvas menu */
    top: var(--header-offset); /* Start below the fixed header */
    left: 0;
    width: 75%; /* Menu width */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #111111; /* Card BG for menu background */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    padding: 20px;
    align-items: flex-start; /* Align links to the left */
    overflow-y: auto; /* Scroll if content overflows */
    z-index: 999;
  }

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

  .main-nav .nav-link {
    width: 100%; /* Full width links */
    padding: 15px 0;
    border-bottom: 1px solid #3A2A12; /* Border for separation */
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    gap: 8px; /* Spacing between buttons */
    flex-shrink: 0;
  }

  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }

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

/* Site Footer */
.site-footer {
  background-color: #111111; /* Card BG for footer */
  color: #FFF6D6; /* Text Main */
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-main-content {
  padding-bottom: 30px;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
  gap: 30px;
}

.footer-col h3 {
  color: #F2C14E; /* Primary color for headings */
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: #F2C14E;
  margin-top: 5px;
}

.footer-about .footer-logo {
  font-family: 'Arial Black', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #FFF6D6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  background-color: #0A0A0A; /* Background for copyright */
  padding: 15px 0;
  text-align: center;
  border-top: 1px solid #3A2A12; /* Border color */
}

.footer-bottom .footer-container {
  padding: 0 30px;
}

.footer-bottom p {
  margin: 0;
  color: #FFF6D6;
}

/* Footer slot anchors */
.footer-slot-anchor, .footer-slot-anchor-inner {
  min-height: 1px;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    padding: 0 20px;
  }
  .footer-col {
    margin-bottom: 20px;
  }
  .footer-col:last-child {
    margin-bottom: 0;
  }
  .footer-about .footer-logo {
    text-align: center;
  }
  .footer-description {
    text-align: center;
  }
  .footer-col h3 {
    text-align: center;
  }
  .footer-col h3::after {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-nav {
    align-items: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
