/* General Resets & Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Offset */
:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
}

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

.site-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  width: 100%;
}

.site-header .logo {
  flex-shrink: 0;
  color: #FFF6D6; /* Text Main */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
  padding: 0;
  margin: 0;
}

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

.site-header .main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px; /* Adjust gap as needed */
  margin: 0 20px;
}

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

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

.site-header .desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

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

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 25px; /* Rounded buttons */
  text-decoration: none;
  color: #333333; /* Dark text for contrast on gold button */
  font-weight: bold;
  font-size: 15px;
  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;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4); /* Glow */
}

/* Footer */
.site-footer {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  padding: 40px 0 20px;
  border-top: 1px solid #3A2A12; /* Border */
}

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

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

.site-footer .footer-col h3 {
  color: #F2C14E; /* Primary */
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.site-footer .footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: #D3C7AB; /* Slightly lighter text for description */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

.site-footer .footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #D3C7AB; /* Slightly lighter text */
  padding-top: 20px;
  border-top: 1px solid #3A2A12; /* Border */
  margin-top: 20px;
}

/* Footer slot anchors visibility */
.footer-slot-anchor-inner, .footer-slot-anchor-outer {
  min-height: 1px; /* Ensure they are not completely collapsed */
  display: block; /* Ensure they respect display rules */
}

/* Mobile styles */
@media (max-width: 768px) {
  .site-header {
    min-height: 50px; /* Adjust min-height for mobile header */
  }

  .site-header .header-container {
    padding: 10px 15px; /* Smaller padding for mobile */
    max-width: none; /* Remove max-width on mobile */
    width: 100%;
  }

  .site-header .hamburger-menu {
    display: block; /* Show hamburger menu on mobile */
    flex-shrink: 0;
    font-size: 28px;
    background: none;
    border: none;
    color: #FFF6D6; /* Text Main */
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    line-height: 1;
  }

  .site-header .logo {
    flex: 1 !important; /* Centering logo for mobile */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }

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

  .site-header .mobile-nav-buttons {
    flex-shrink: 0;
    display: flex !important; /* Show mobile buttons on mobile */
    gap: 8px; /* Smaller gap for mobile buttons */
    align-items: center;
    z-index: 1000; /* Ensure buttons are above main content but below hamburger */
  }

  .site-header .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Aligned with the bottom of the header */
    left: 0;
    width: 80%;
    max-width: 300px; /* Max width for mobile menu */
    height: calc(100% - var(--header-offset));
    background-color: #111111; /* Card BG */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 990;
    padding: 20px;
    overflow-y: auto; /* Enable scrolling for long menus */
    align-items: flex-start;
    gap: 15px;
  }

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

  .site-header .main-nav .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #3A2A12; /* Border */
    font-size: 17px;
  }
  .site-header .main-nav .nav-link:last-child {
      border-bottom: none;
  }

  .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.6);
    z-index: 980;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

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

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

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

  .site-footer .footer-col h3 {
    margin-bottom: 15px;
  }

  .site-footer .footer-nav {
    align-items: center;
  }

  .site-footer .footer-logo {
    text-align: center;
  }

  /* Mobile 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;
  }
}

/* Ensure body padding-top is not overridden by other sections */
.page-xxx, .__hero-section, .__video-section, .__title-section {
    padding-top: 10px; /* Small decorative top padding, not --header-offset */
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
