/* General styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  padding-top: var(--header-offset); /* Header offset */
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
}

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

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

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

.logo {
  flex-shrink: 0;
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 20px;
}

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

.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 */
  font-size: 16px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none; /* No underline */
  color: #0A0A0A; /* Dark text for contrast on bright button */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

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

/* 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: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

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

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

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: #FFF6D6; /* Text Main */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-heading {
  font-size: 18px;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.footer-nav .nav-link {
  color: #FFF6D6; /* Text Main */
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav .nav-link:hover {
  color: #F2C14E; /* Primary 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 */
}

/* Dynamic slot anchors - ensure they are visible */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure visibility */
}

/* Placeholder for dynamic slots, ensuring they are rendered */
.footer-top-row, .footer-mid-row-1, .footer-mid-row-2, .footer-mid-row-3,
.footer-mid-row-4, .footer-mid-row-5, .footer-mid-row-6, .footer-mid-row-7,
.footer-mid-row-8, .footer-mid-row-9, .footer-mid-row-10, .footer-bottom-row {
    min-height: 1px; /* Ensure these are rendered */
    width: 100%;
    margin-bottom: 10px; /* Small spacing */
}

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

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

  .header-container {
    width: 100%;
    max-width: none; /* Crucial: no max-width on mobile */
    padding: 10px 15px; /* Adjust padding for mobile */
    position: relative;
  }

  .logo {
    flex: 1 !important; /* Image LOGO居中实现 - Method 1 */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0; /* Remove margin-right */
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }
  /* If logo is text, ensure it's centered */
  .logo:not(:has(img)) {
    text-align: center;
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
    order: -1; /* Place it first */
    margin-right: 15px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Align with header bottom */
    left: 0;
    width: 280px; /* Width of the 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%); /* Slide out from left */
    transition: transform 0.3s ease;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
    z-index: 999; /* Below overlay */
    overflow-y: auto;
  }

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

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

  .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 */
    flex-shrink: 0;
    gap: 8px;
    margin-left: 15px; /* Adjust spacing from logo */
  }

  .mobile-menu-overlay {
    z-index: 998; /* Below menu, above page content */
  }
  
  /* 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;
  }

  /* Mobile Footer */
  .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    padding: 0 15px;
  }

  .footer-col {
    margin-bottom: 30px;
  }
  .footer-col:last-child {
    margin-bottom: 0;
  }

  .footer-bottom {
    margin-top: 30px;
  }
}

/* No scroll on 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;
  }
}
