:root { --header-offset: 122px; } /* Desktop: 68px (top bar) + 52px (main nav) + 2px = 122px */
body { padding-top: var(--header-offset); overflow-x: hidden; } /* Ensure body content starts below fixed header and prevent horizontal scroll */

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--header-offset); /* Ensure container has enough height to push content down */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFF6D6; /* Text Main color */
  text-decoration: none;
  flex-shrink: 0;
  padding: 10px 0;
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.main-nav .nav-link {
  color: #FFF6D6; /* Text Main color */
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.main-nav .nav-link:hover {
  color: #FFD36B; /* Glow color for hover */
}

.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  gap: 10px;
}

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

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  color: #111111; /* Card BG color for contrast against bright button */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Footer Styles */
.site-footer {
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Text Main color */
  padding: 40px 30px 20px;
  font-size: 14px;
}

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

.footer-col h3 {
  color: #FFD36B; /* Glow color for headings */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-col .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FFF6D6; /* Text Main color */
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
}

.footer-col .footer-description {
  line-height: 1.6;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

.footer-nav a:hover {
  color: #FFD36B; /* Glow color for hover */
}

.footer-mid-slots {
  display: contents; /* Allows children to participate in grid layout if parent is grid */
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #3A2A12; /* Border color */
  color: #FFF6D6;
}

.footer-slot-anchor-inner {
  min-height: 10px; /* Ensure element exists and can be targeted */
  margin-top: 10px; /* Provide some spacing */
}

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; } /* Mobile: 60px (top bar) + 48px (main nav) + 2px = 110px */

  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    padding: 0 15px;
    min-height: var(--header-offset); /* Ensure mobile header height */
  }

  .hamburger-menu {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: #FFF6D6;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    flex-shrink: 0;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    padding: 8px 0;
    max-width: calc(100% - 100px); /* Prevent logo from pushing buttons/hamburger too far */
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Start below fixed header */
    left: 0;
    width: 75%; /* Slide-out menu width */
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    background-color: #111111; /* Card BG color for menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    z-index: 999;
  }

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

  .main-nav .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid #3A2A12; /* Border color */
    text-align: left;
    width: 100%;
  }

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

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

  .mobile-nav-buttons {
    flex-shrink: 0;
    display: flex !important; /* Visible on mobile, forced */
    gap: 8px;
    margin-left: auto; /* Push to right */
  }

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

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

  /* Mobile content overflow protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body.no-scroll {
    overflow: hidden;
  }

  .site-footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer-container {
    grid-template-columns: 1fr; /* Single column 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;
  }
}
