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

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: linear-gradient(180deg, #FFE68C 0%, #F2C14E 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0A0A0A;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  min-height: 60px;
  display: flex;
  align-items: center;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 15px 30px;
  width: 100%;
}
.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin-right: 20px; /* Space between logo and nav */
}
.hamburger-menu {
  display: none; /* Hidden on desktop */
}
.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
}
.nav-link {
  color: #FFF6D6;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #F2C14E;
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link:hover, .nav-link.active {
  color: #F2C14E;
}
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.mobile-nav-buttons {
  display: none !important;
}
.mobile-menu-overlay {
  display: none;
}

/* Footer */
.site-footer {
  background-color: #111111;
  color: #FFF6D6;
  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;
  padding-bottom: 30px;
  border-bottom: 1px solid #3A2A12;
}
.footer-col h3 {
  color: #F2C14E;
  font-size: 18px;
  margin-bottom: 15px;
}
.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
}
.footer-description {
  line-height: 1.6;
  color: #ccc;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-nav a {
  display: block;
  color: #FFF6D6;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: #F2C14E;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  color: #ccc;
}
.footer-slot-anchor, .footer-slot-anchor-inner { /* Ensures visibility for dynamic content */
  min-height: 1px; /* Smallest possible height to ensure element exists */
}

/* Mobile responsive */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body {
    overflow-x: hidden;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  .header-container {
    padding: 10px 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
    position: relative;
  }
  .hamburger-menu {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    color: #F2C14E;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    flex-shrink: 0;
    order: 0; /* Ensures it's first */
  }
  .hamburger-menu.active {
    /* Styles for X icon, e.g., transform rotate */
  }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    order: 1; /* Ensures it's second */
    margin-right: 0;
  }
  .desktop-nav-buttons {
    display: none !important;
  }
  .mobile-nav-buttons {
    display: flex !important;
    gap: 8px;
    flex-shrink: 0;
    order: 2; /* Ensures it's third */
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 75%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #111111;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    align-items: flex-start; /* Align links to the left */
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-link {
    color: #FFF6D6;
    padding: 10px 0;
    border-bottom: 1px solid #3A2A12;
    width: 100%;
    text-align: left;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .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;
    transition: opacity 0.3s ease;
  }
  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }
  .footer-content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h3 {
    text-align: center;
  }
  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
