html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, sans-serif; line-height: 1.6; color: #FFF6D6; background-color: #0A0A0A; }
:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); }

/* Header Styles */
.site-header {
  background-color: #0A0A0A; /* Background for header */
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  min-height: 68px; /* Based on header-top height */
  display: flex;
  align-items: center;
  padding: 10px 0; /* Vertical padding for the header */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribute items */
  padding: 0 20px; /* Desktop side padding */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for logo */
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 20px; /* Space between logo and nav */
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #F2C14E;
}

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

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

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: none;
  color: #FFF6D6; /* Text Main for buttons */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above mobile nav */
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
}

.hamburger-icon {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #FFF6D6;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-icon:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .hamburger-icon:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .hamburger-icon:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.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 Styles */
.site-footer {
  background-color: #111111; /* Card BG for footer */
  color: #FFF6D6;
  padding: 40px 20px 20px;
  font-size: 15px;
  line-height: 1.8;
  border-top: 1px solid #3A2A12; /* Border color */
}

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

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

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

.footer-description {
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-heading {
  font-size: 18px;
  color: #FFD36B; /* Accent color for headings */
  margin-bottom: 15px;
}

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

.footer-link {
  color: #FFF6D6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #F2C14E;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #3A2A12;
  color: #FFF6D6;
}

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

  .site-header {
    min-height: 60px; /* Adjust for mobile header top */
    padding: 8px 0;
  }

  .header-container {
    width: 100%;
    max-width: none; /* Important: remove max-width on mobile */
    padding: 0 15px; /* Mobile side padding */
    justify-content: space-between;
  }

  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    order: 0;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Start below the fixed header */
    left: 0;
    width: 280px;
    height: calc(100% - var(--header-offset));
    background-color: #111111; /* Card BG for mobile menu */
    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;
    overflow-y: auto;
    align-items: flex-start;
    gap: 15px;
  }

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

  .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;
    order: 2;
    flex-shrink: 0;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .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;
  }
}
