/* General styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Text Main color */
  padding-top: var(--header-offset); /* Header offset for main content */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

:root {
  --header-offset: 122px; /* Desktop header height (68px top + 52px main nav) */
}

/* Site Header */
.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: 68px; /* Base height, content will expand */
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px; /* Adjust padding */
  display: flex;
  align-items: center;
  width: 100%; /* Occupy full width within max-width */
}

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  font-size: 28px;
  color: #FFD36B; /* Accent color */
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  flex-shrink: 0;
  outline: none;
}

.logo {
  color: #FFF6D6; /* Text Main color */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 20px; /* Space between logo and nav */
}

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

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

.nav-link:hover {
  color: #FFD36B; /* Accent color */
}

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

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

.btn {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #1A1A1A; /* Dark text for contrast on bright button */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent button text from wrapping */
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.7); /* Glow color */
}

/* Mobile Menu Overlay */
.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: 980;
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Site Footer */
.site-footer {
  background-color: #111111; /* Card BG color */
  color: #FFF6D6; /* Text Main color */
  padding: 40px 20px 20px;
  line-height: 1.6;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3 {
  color: #FFD36B; /* Accent color */
  font-size: 18px;
  margin-bottom: 20px;
}

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

.footer-description {
  font-size: 14px;
  word-wrap: break-word; /* Ensure long words break */
  overflow-wrap: break-word; /* Ensure long words break */
}

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

.footer-nav a {
  color: #FFF6D6; /* Text Main color */
  text-decoration: none;
  display: block;
  padding: 5px 0;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

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

/* Footer Slot Anchors - ensure visibility */
.footer-slot-anchor-inner, .footer-slot-anchor {
  display: block; /* Ensure they take up space if content is injected */
  min-height: 1px; /* Smallest possible height if empty */
}

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

  body {
    overflow-x: hidden;
  }

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

  .site-header {
    min-height: 60px; /* Adjust for mobile header height */
  }

  .header-container {
    padding: 10px 15px;
    width: 100%; /* Occupy full width on mobile */
    max-width: none; /* No max-width on mobile */
    justify-content: space-between; /* Space out items */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Order it first */
    z-index: 1001; /* Ensure it's above other elements */
  }

  .logo {
    order: 2; /* Order it second */
    flex: 1; /* Allow logo to take available space */
    text-align: center; /* Center text logo */
    padding-right: 0; /* Remove right padding */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Position below header */
    left: 0;
    width: 70%; /* Menu width */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #111111; /* Card BG color */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Move off-screen to the left */
    transition: transform 0.3s ease;
    z-index: 990;
    align-items: flex-start; /* Align menu items to the left */
    gap: 10px;
  }

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

  .nav-link {
    padding: 10px 0; /* Adjust padding for mobile menu items */
    width: 100%; /* Make links full width */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons on mobile */
    order: 3; /* Order it third */
    flex-shrink: 0;
    gap: 8px;
  }

  .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h3 {
    margin-top: 20px;
  }

  .footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
  }

  .footer-nav li {
    flex-basis: auto; /* Allow items to size naturally */
  }

  .footer-nav a {
    padding: 5px 10px;
  }

  .footer-logo {
    margin-bottom: 10px;
  }
}

/* No-scroll class for body when mobile menu is open */
body.no-scroll {
  overflow: hidden;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
