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

/* Mobile Content Overflow Protection */
@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;
  }
}

/* General Body & Link Reset */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
  color: inherit;
}

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

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for logo */
  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;
  font-size: 16px;
  padding: 8px 12px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #111111; /* Dark text for hover on bright background for contrast */
  background-color: #F2C14E; /* Primary color for hover */
}

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

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

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #111111; /* Dark text for contrast on bright button */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
  transition: all 0.3s 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 6px 20px rgba(242, 193, 78, 0.6);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 28px;
  color: #F2C14E;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  flex-shrink: 0;
}

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

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

.footer-slot-anchor,
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure visibility for injection */
  display: block; /* Ensure it takes up space */
}

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

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

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

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: #FFF6D6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-nav a {
  display: block;
  color: #FFF6D6;
  font-size: 15px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid #3A2A12;
  font-size: 14px;
  color: #FFF6D6;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .site-header {
    min-height: 55px;
  }
  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    padding: 10px 15px;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block;
    order: 0;
    margin-right: 10px;
  }

  .logo {
    flex: 1 !important; /* Method 1 for centering image/text logo */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-right: 0; /* Remove desktop padding */
    order: 1;
  }
  /* If the logo was an <img>: */
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px; /* Adjust as needed */
  }

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

  .main-nav.active {
    display: flex; /* Crucial: show when active */
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    font-size: 17px;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    order: 2;
    gap: 8px;
    margin-left: 10px; /* Space from logo */
  }

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

  .footer-content-wrapper {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 30px;
  }

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

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

  .footer-nav a {
    display: inline-block;
    margin: 0 10px 10px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
