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

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

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

.logo {
  flex-shrink: 0;
  color: #FFF6D6; /* Text Main */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  display: block; /* Ensure logo is visible */
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
  margin-right: 15px;
}

.hamburger-menu .hamburger-icon {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #F2C14E; /* Primary color */
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu .hamburger-icon:nth-child(1) { top: 0; }
.hamburger-menu .hamburger-icon:nth-child(2) { top: 10px; }
.hamburger-menu .hamburger-icon:nth-child(3) { top: 20px; }

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

.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;
  position: relative;
  transition: color 0.3s ease;
}

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

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

.mobile-nav-buttons {
  display: none !important; /* Hidden by default 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: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
  box-shadow: 0 0 10px #FFD36B; /* Glow color */
}

.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;
}

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

.footer-slot-anchor { display: block; min-height: 1px; }
.footer-slot-anchor-inner { display: block; min-height: 1px; }

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

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

.footer-logo {
  color: #FFF6D6; /* Text Main */
  font-size: 24px;
  font-weight: bold;
  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-nav-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Primary color */
}

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

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

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

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

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

/* Responsive 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; /* Distribute items */
  }

  .hamburger-menu {
    display: block;
  }

  .logo {
    flex: 1 !important; /* For text logo centering */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    position: relative; /* For absolute positioning if needed, but flex handles it */
    max-width: calc(100% - 100px); /* Adjust max-width to prevent logo overlapping buttons */
  }

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

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

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

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

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

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

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