:root {
  --header-offset: 122px;
}

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

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 80px;
}

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

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

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

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

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

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

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

.btn {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 980;
}

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

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

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

.footer-col {
  margin-bottom: 20px;
}

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

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

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

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: #FFD36B; /* Secondary color */
}

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 30px 0;
  border-top: 1px solid #3A2A12; /* Border color */
  text-align: center;
  font-size: 13px;
  color: #FFF6D6; /* Text Main */
}

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

  body {
    overflow-x: hidden;
  }

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    min-height: 70px;
    justify-content: space-between; /* Space out items */
  }

  .hamburger-menu {
    display: block;
    order: 1;
    font-size: 24px;
    margin-right: 10px; /* Space between hamburger and logo */
  }

  .logo {
    order: 2;
    flex: 1 !important; /* Force flex item to take available space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 26px;
    margin-right: 10px; /* Space between logo and buttons */
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 70%; /* Adjust as needed */
    max-width: 300px; /* Max width for mobile nav */
    height: calc(100vh - var(--header-offset));
    background-color: #111111; /* Card BG */
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    z-index: 990;
    align-items: flex-start;
    gap: 15px;
  }

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

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

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

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

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

  .footer-main-content {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .footer-col {
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

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

  .footer-nav a {
    text-align: center;
  }

  .footer-bottom {
    padding: 20px 15px 0;
  }

  /* Mobile overflow protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}

/* No-scroll class for body when mobile menu is active */
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;
  }
}
