html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; font-family: Arial, sans-serif; color: #FFF6D6; background-color: #0A0A0A; line-height: 1.6; }

/* Header Offset */
:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); }

/* Site Header - Desktop Styles (Global) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0A0A0A; /* Background color from palette */
  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;
  padding: 15px 30px; /* Adjusted padding for better spacing */
  display: flex;
  align-items: center;
  width: 100%;
}

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

.logo {
  color: #FFF6D6; /* Text Main */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 20px;
  white-space: nowrap;
}

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

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

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

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

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

.btn {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for contrast */
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none; /* No underline for buttons */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4); /* Glow effect */
}

/* Mobile Menu Overlay */
.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: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer Styles */
.site-footer {
  background-color: #111111; /* Card BG */
  padding: 40px 0 20px;
  color: #FFF6D6; /* Text Main */
  border-top: 1px solid #3A2A12; /* Border color */
}

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

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

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

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

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #FFF6D6;
}

.footer-heading {
  font-size: 18px;
  color: #FFD36B; /* Secondary color */
  margin-bottom: 15px;
  border-bottom: 1px solid #3A2A12; /* Border color */
  padding-bottom: 5px;
}

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

.footer-nav .nav-link {
  color: #FFF6D6; /* Text Main */
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

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

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

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

  .site-header {
    min-height: 50px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    justify-content: space-between; /* Space out elements */
  }

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: 10px;
  }

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

  .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 for mobile menu */
    overflow-y: auto;
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease, display 0.3s ease;
    z-index: 1000;
    padding: 20px;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
  }

  .main-nav.active {
    display: flex; /* Must set display to show */
    transform: translateX(0); /* Slide in */
  }

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

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

  .mobile-menu-overlay {
    z-index: 999;
  }

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer Mobile Styles */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

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

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-description {
    margin-bottom: 15px;
  }

  .footer-heading {
    margin-bottom: 10px;
  }

  .footer-nav {
    gap: 8px;
  }

  .footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
  }

  /* 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;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
