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

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0A0A0A;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 20px;
}

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

.nav-link {
  color: #FFF6D6;
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFD36B;
  transform: translateY(-2px);
}

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

.mobile-nav-buttons {
  display: none !important;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #FFF6D6;
  cursor: pointer;
  padding: 5px 10px;
  z-index: 1001;
  line-height: 1;
  flex-shrink: 0;
}

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

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

/* Footer Styles */
.site-footer {
  background-color: #111111;
  color: #FFF6D6;
  padding: 40px 20px 20px;
  font-size: 0.95em;
}

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

.footer-col h3 {
  color: #FFD36B;
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

.footer-description {
  font-size: 0.9em;
  line-height: 1.6;
  color: #DDD;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-nav a {
  display: block;
  color: #FFF6D6;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

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

.contact-info li {
  list-style: none;
  margin-bottom: 8px;
  color: #DDD;
}

.contact-info {
  padding: 0;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #3A2A12;
  padding-top: 20px;
  font-size: 0.85em;
  color: #AAA;
}

.footer-slot-anchor-inner {
  /* Ensure visibility for injected content */
  min-height: 1px;
}

.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;
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

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

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

  .hamburger-menu {
    display: block;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-right: 0;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #111111;
    flex-direction: column;
    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;
    gap: 0;
  }

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

  .nav-link {
    margin-bottom: 15px;
    width: 100%;
    padding: 10px 0;
  }

  .desktop-nav-buttons {
    display: none !important;
  }

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

  .footer-main-content {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-info {
    text-align: center;
  }

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

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