/* Fixed header offset */
:root {
  --header-offset: 122px; /* Desktop: 68px (top) + 52px (main-nav) + 2px (buffer) */
}
body {
  padding-top: var(--header-offset);
  overflow-x: hidden; /* Prevent horizontal scroll on desktop too, generally good practice */
}

/* Base styles for header */
.site-header {
  background-color: #0A0A0A; /* Use the specified background color */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  min-height: 60px; /* Ensure content adaptation */
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.logo {
  font-family: 'Arial', sans-serif; /* Example font */
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for logo */
  text-decoration: none;
  flex-shrink: 0;
  padding: 5px 0; /* Add some padding for visual height */
}

/* Main navigation (desktop default) */
.main-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px; /* Spacing between nav links */
  flex: 1; /* Occupy middle space */
  padding: 0 20px; /* Padding to prevent links from touching logo/buttons */
}

.main-nav .nav-link {
  color: #FFF6D6; /* Text Main color */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
  white-space: nowrap; /* Prevent wrapping */
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #0A0A0A; /* Contrast with text main */
  background-color: #F2C14E; /* Primary color on hover/active */
}

/* Hamburger menu (hidden by default on desktop) */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  color: #FFF6D6; /* Text Main color */
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 1001;
}

/* Buttons (desktop default) */
.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; /* Rounded buttons */
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  color: #0A0A0A; /* Dark text for bright buttons */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Mobile menu overlay (hidden by default) */
.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;
}

/* Footer styles */
.site-footer {
  background-color: #0A0A0A; /* Background color for footer */
  color: #FFF6D6; /* Text Main color */
  padding: 40px 20px 20px;
  font-size: 15px;
  line-height: 1.6;
}

.site-footer h3 {
  color: #F2C14E; /* Primary color for headings */
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.site-footer .footer-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.site-footer .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid #3A2A12; /* Border color */
  margin-bottom: 20px;
}

.site-footer .footer-col {
  display: flex;
  flex-direction: column;
}

.site-footer .footer-logo {
  font-family: 'Arial', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for logo */
  text-decoration: none;
  margin-bottom: 15px;
}

.site-footer .footer-description {
  color: #FFF6D6; /* Text Main color */
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

.site-footer .footer-nav a:hover {
  color: #F2C14E; /* Primary color on hover */
}

.footer-slot-anchor { /* General slot container */
  min-height: 10px; /* Ensure visibility */
  width: 100%;
}
.footer-slot-anchor-inner { /* Inner slot container for columns */
  min-height: 10px; /* Ensure visibility */
  width: 100%;
}

.footer-bottom {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #3A2A12; /* Border color */
  color: #FFF6D6; /* Text Main color */
  font-size: 14px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  /* Header offset for mobile */
  :root {
    --header-offset: 110px; /* Mobile: 60px (top) + 48px (main-nav) + 2px (buffer) */
  }

  /* Header container for mobile */
  .header-container {
    padding: 10px 15px; /* Smaller padding for mobile */
    width: 100%;
    max-width: none; /* Crucial: no max-width on mobile */
    justify-content: space-between; /* Space out hamburger, logo, buttons */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* First item */
  }

  .logo {
    order: 2; /* Second item */
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px; /* Adjust logo size for mobile */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons on mobile */
    order: 3; /* Third item */
    gap: 8px; /* Smaller gap for mobile buttons */
  }
  .mobile-nav-buttons .btn {
      padding: 8px 15px; /* Adjust button padding for mobile */
      font-size: 14px;
  }

  /* Main navigation (mobile - hidden by default, slide-in) */
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column; /* Vertical layout */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 250px; /* Width of the mobile menu */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #111111; /* Card BG for mobile menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    padding: 20px;
    align-items: flex-start; /* Align links to the left */
    z-index: 999; /* Below overlay */
    overflow-y: auto; /* Enable scrolling for long menus */
  }

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

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

  /* 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 {
    overflow-x: hidden;
  }

  /* Footer mobile layout */
  .site-footer .footer-container {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 30px;
  }

  .site-footer .footer-col {
    align-items: center; /* Center align footer columns */
    text-align: center;
  }

  .site-footer .footer-nav {
    text-align: center; /* Center align nav links */
  }
}

/* No-scroll class for body when menu is open */
body.no-scroll {
  overflow: hidden;
}

/* Hamburger menu active state (for animation) */
.hamburger-menu.active {
  color: #F2C14E; /* Highlight active hamburger */
}

/* Ensure contrast for text and background */
.site-header, .site-footer {
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}
.site-header .nav-link, .site-footer .footer-nav a {
  color: #FFF6D6; /* Text Main */
}
.site-header .nav-link:hover, .site-footer .footer-nav a:hover {
  color: #F2C14E; /* Primary */
}
.site-header .logo, .site-footer .footer-logo, .site-footer h3 {
  color: #F2C14E; /* Primary */
}
.btn {
  color: #0A0A0A; /* Background color for text on bright button */
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
