:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); overflow-x: hidden; margin: 0; font-family: Arial, sans-serif; }

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background-color: #0A0A0A; /* Background */
  min-height: 52px; /* min-height for content adaptation */
  display: flex;
  align-items: center;
}

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

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  text-decoration: none;
  flex-shrink: 0;
  order: 1;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  order: 2;
}

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

.nav-link:hover {
  color: #F2C14E; /* Main color */
}

.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  order: 3;
}

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

.btn {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Card BG for contrast */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

/* Footer Styles */
.site-footer {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  padding: 40px 20px;
  font-size: 14px;
}

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

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

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

.footer-description {
  color: #FFF6D6; /* Text Main */
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav li a {
  color: #FFF6D6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.footer-nav li a:hover {
  color: #F2C14E; /* Main color */
}

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

.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure visibility for potential injected content */
}

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }

  .header-container {
    width: 100%;
    max-width: none; /* Important: remove max-width for mobile */
    padding: 10px 15px; /* Mobile padding */
    position: relative; /* For absolute positioning of logo if needed */
  }

  .hamburger-menu {
    display: block;
    flex-shrink: 0;
    font-size: 24px;
    background: none;
    border: none;
    color: #FFF6D6; /* Text Main */
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    order: 1;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    order: 2;
  }

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

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #111111; /* Card BG */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
    align-items: flex-start;
    justify-content: flex-start;
  }

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

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

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

  .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-container {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

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

  .footer-col h3 {
    margin-top: 20px;
  }

  .footer-nav ul {
    text-align: center;
  }
  
  /* 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;
  }
  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;
  }
}
