/* Variables for header offset */
:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0A0A0A; /* Background */
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  z-index: 1000;
  min-height: 60px; /* Ensure content fits */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 10px 30px;
  min-height: 52px; /* Accommodate main-nav height */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 28px;
  color: #FFF6D6; /* Text Main */
  cursor: pointer;
  padding: 0;
  margin-right: 15px;
  line-height: 1;
  z-index: 1001; /* Ensure it's above other elements on mobile */
}

.logo {
  flex-shrink: 0;
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-decoration: none;
  margin-right: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.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: 16px;
  padding: 8px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFD36B; /* Secondary color */
}

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

.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop, important to override other rules */
}

/* Button Styles */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: #111111; /* Dark text for bright buttons */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4); /* Glow */
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.6);
}

/* 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: 998;
}

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

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

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

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

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

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

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

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

.footer-nav .nav-link:hover {
  color: #FFD36B; /* Secondary color */
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Header Mobile Layout */
  .header-container {
    width: 100%;
    max-width: none; /* Override desktop max-width */
    padding: 10px 15px;
    justify-content: space-between;
    position: relative; /* For logo centering with flex */
    min-height: 48px;
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
    order: 0; /* Leftmost */
  }

  .logo {
    order: 1; /* Center */
    flex: 1 !important; /* Take available space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    margin-right: 0; /* Reset desktop margin */
  }
  
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    max-width: 300px;
    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.5);
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    align-items: flex-start; /* Align links to the left in column layout */
  }

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

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

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

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

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

  /* Footer Mobile Layout */
  .site-footer {
    padding: 30px 15px 15px;
  }

  .footer-content-wrapper {
    grid-template-columns: 1fr; /* Single column */
    gap: 25px;
  }

  .footer-col h3 {
    margin-bottom: 15px;
  }

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

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

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

  .footer-bottom {
    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;
  }
}
