:root {
  --header-offset: 122px; /* Desktop: 68px (top bar) + 52px (main nav) = 120px, plus 2px buffer */
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Ensure body padding matches header height */
  background-color: var(--background-color);
  color: var(--text-main-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-color); /* Dark background for black gold theme */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  z-index: 1000;
  min-height: 60px; /* Minimum height for header */
  display: flex; /* Use flex to center container if needed */
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  flex-shrink: 0;
  padding: 5px 0; /* Add some padding for better click area */
  white-space: nowrap; /* Prevent logo text from wrapping */
}

.main-nav {
  display: flex;
  flex-direction: row; /* Desktop horizontal */
  justify-content: center;
  align-items: center;
  flex: 1; /* Take up available space */
  gap: 30px;
  padding: 0 20px; /* Padding for nav to not touch logo/buttons */
}

.nav-link {
  color: var(--text-main-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 0;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.desktop-nav-buttons {
  display: flex; /* Desktop visible */
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto; /* Push to the right */
}

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

.btn {
  background: var(--button-gradient);
  color: var(--text-main-color);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.btn:hover {
  box-shadow: 0 6px 15px var(--glow-color, rgba(255, 211, 107, 0.4));
  transform: translateY(-2px);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
  line-height: 1;
}

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

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

/* Footer Styles */
.site-footer {
  background-color: var(--card-bg); /* Darker background for footer */
  color: var(--text-main-color);
  padding: 40px 20px 20px;
  border-top: 1px solid var(--border-color);
}

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

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 15px;
}

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

.footer-title {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.footer-nav .nav-link {
  color: #BBB;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 0; /* Remove padding from general nav-link */
}

.footer-nav .nav-link:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: #888;
}

/* Anchor slot styling to ensure visibility */
.footer-slot-anchor,
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure element takes up at least 1px to be renderable */
  width: 100%;
  box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: 60px (top bar) + 48px (main nav) = 108px, plus 2px buffer */
  }

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden; /* Ensure body itself doesn't cause horizontal scroll */
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .site-header {
    min-height: 50px; /* Smaller header height on mobile */
  }

  .header-container {
    padding: 10px 15px; /* Smaller padding for mobile */
    width: 100%; /* Occupy full width */
    max-width: none; /* Remove max-width for mobile */
    position: relative; /* For absolute logo positioning if needed */
  }

  .hamburger-menu {
    display: block;
    order: 1;
    font-size: 24px;
  }

  .logo {
    order: 2;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    max-width: calc(100% - 120px); /* Ensure space for buttons/hamburger */
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 280px; /* Sidebar width */
    height: calc(100% - var(--header-offset)); /* Fill remaining height */
    background-color: var(--card-bg); /* Dark background for mobile menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto; /* Enable scrolling for long menus */
    padding: 20px 0;
    gap: 0; /* Remove gap for vertical links */
  }

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

  .main-nav .nav-link {
    padding: 12px 20px; /* Padding for mobile menu items */
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

  .desktop-nav-buttons {
    display: none !important;
  }

  .mobile-nav-buttons {
    display: flex !important;
    order: 3;
    gap: 8px;
  }
  
  .btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* Footer Mobile */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-col {
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    margin-bottom: 10px;
  }
  .footer-title {
    margin-top: 20px;
  }
  .footer-nav {
    align-items: 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;
  }
}
