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

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

/* Site-wide styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Text Main color */
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Contrast text for button */
  border: none;
  text-decoration: none; /* Remove underline */
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4); /* Glow color */
}

.btn:hover {
  opacity: 0.9;
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.6); /* Enhanced glow */
}

body.no-scroll {
  overflow: hidden;
}

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 30px; /* Adjust padding as needed */
  gap: 20px;
}

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

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: #FFF6D6; /* Text Main color */
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0;
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row; /* Desktop default */
  justify-content: center;
  align-items: center;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav .nav-link {
  font-size: 16px;
  font-weight: bold;
  color: #FFF6D6; /* Text Main color */
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #F2C14E; /* Primary color */
  transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after {
  width: 100%;
}

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

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

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

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

/* Footer styles */
.site-footer {
  background-color: #111111; /* Card BG for footer background */
  padding: 40px 20px 20px;
  color: #FFF6D6; /* Text Main color */
  font-size: 14px;
}

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

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

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: #FFF6D6; /* Text Main color */
  transition: color 0.3s ease;
}

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

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

.footer-description {
  line-height: 1.6;
  word-wrap: break-word; /* Ensure full display */
  overflow-wrap: break-word; /* Ensure full display */
}

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

/* Footer dynamic slot anchors - ensure visibility */
.footer-slot-anchor, .footer-slot-anchor-inner {
  min-height: 1px;
  min-width: 1px;
  display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
  .site-header {
    min-height: 50px;
  }
  .header-container {
    width: 100%;
    max-width: none; /* Important for mobile */
    padding: 10px 15px;
    justify-content: space-between; /* Adjust for hamburger, logo, buttons */
    gap: 10px;
  }

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

  .logo {
    order: 2; /* Middle */
    flex: 1 !important; /* Method 1 for image logo centering */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }
  .logo img { /* If logo becomes an image */
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

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

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

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column; /* Vertical layout */
    position: fixed;
    top: var(--header-offset); /* Position below header */
    left: 0;
    width: 280px; /* Sidebar width */
    height: calc(100% - var(--header-offset));
    background-color: #111111; /* Card BG for menu background */
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    z-index: 999; /* Below overlay, above content */
    align-items: flex-start; /* Align menu items left */
  }

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

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

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

  .main-nav .nav-link::after {
    display: none; /* Hide hover underline on mobile menu */
  }

  .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .footer-col:not(.footer-about) {
    text-align: center;
  }
  .footer-col h3 {
    text-align: center;
  }
  .footer-col .footer-nav a {
    text-align: center;
  }
  .footer-logo {
    text-align: center;
  }
  .footer-description {
    text-align: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
