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

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  background-color: #0A0A0A;
  color: #FFF6D6;
  overflow-x: hidden;
}

.site-header {
  background-color: #1A1A1A; /* Dark background for Black Gold theme */
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  min-height: 68px; /* Minimum height for header-top, main-nav will add to it */
  display: flex;
  align-items: center;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: #FFF6D6;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  flex-shrink: 0;
  z-index: 1001;
}

.logo {
  color: #F2C14E;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 20px;
}

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

.main-nav .nav-link {
  color: #FFF6D6;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.main-nav .nav-link:hover {
  color: #FFD36B;
}

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

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

.btn {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #333333; /* Dark text for contrast on bright button */
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 998;
}

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

/* Footer styles */
.site-footer {
  background-color: #0A0A0A;
  color: #FFF6D6;
  padding: 40px 20px;
}

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

.footer-col h3 {
  color: #F2C14E;
  font-size: 18px;
  margin-bottom: 15px;
}

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

.footer-col .footer-description {
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.footer-nav a {
  color: #FFF6D6;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #3A2A12;
  font-size: 14px;
  color: #FFF6D6;
}

.footer-slot-anchor-inner {
  min-height: 10px; /* Ensure visibility for injection */
}

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

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden;
  }

  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    padding: 10px 15px;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block;
  }

  .logo {
    flex: 1 !important; /* Ensure logo takes available space for centering */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-right: 0;
    font-size: 24px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px;
    height: calc(100vh - var(--header-offset));
    background-color: #111111;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    overflow-y: auto;
    align-items: flex-start;
    gap: 15px;
  }

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

  .main-nav .nav-link {
    font-size: 18px;
    padding: 10px 0;
    width: 100%;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    gap: 8px;
    flex-shrink: 0;
    z-index: 1000; /* Ensure buttons are above overlay if present */
  }

  .btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  .footer-main-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
