/* Global Reset & Body */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

/* Header Offset */
:root { --header-offset: 122px; } /* Desktop: 68px (top bar if any) + 52px (main nav) = 120px + 2px buffer */
body { padding-top: var(--header-offset); }
@media (max-width: 768px) {
  :root { --header-offset: 110px; } /* Mobile: 60px (top bar if any) + 48px (main nav) = 108px + 2px buffer */
}

/* Fixed Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #111111; /* Card BG, a dark color for contrast */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  z-index: 1000;
  min-height: 60px; /* Ensure content fits */
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3A2A12; /* Border */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px; /* Desktop padding */
  display: flex;
  align-items: center;
  width: 100%; /* Ensure it spans width within max-width */
}

/* Logo */
.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-decoration: none;
  flex-shrink: 0;
  padding: 10px 0;
  text-shadow: 0 0 5px #FFD36B; /* Glow effect */
}

/* Main Navigation (Desktop) */
.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 0 20px;
}

.main-nav .nav-link {
  color: #FFF6D6; /* Text Main */
  text-decoration: none;
  font-size: 1.1em;
  padding: 10px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #FFD36B; /* Accent color */
  text-shadow: 0 0 8px #FFD36B; /* Glow effect */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  color: #111111; /* Dark text on bright button */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4); /* Glow effect */
  min-width: 80px; /* Ensure buttons have a minimum width */
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
  transform: translateY(-2px);
}

.desktop-nav-buttons {
  display: flex; /* Desktop default */
  gap: 10px;
  margin-left: auto; /* Push to right */
  align-items: center;
}

.mobile-nav-buttons {
  display: none !important; /* Hidden by default on desktop */
  gap: 8px;
  align-items: center;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  font-size: 1.8em;
  color: #FFF6D6; /* Text Main */
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
  z-index: 1001; /* Above other elements */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998; /* Below menu, above content */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer */
.site-footer {
  background-color: #111111; /* Card BG */
  padding: 40px 20px 20px;
  border-top: 1px solid #3A2A12; /* Border */
  color: #FFF6D6; /* Text Main */
  font-size: 0.9em;
  text-align: center;
}

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

.footer-col h3 {
  color: #F2C14E; /* Primary color */
  font-size: 1.2em;
  margin-bottom: 15px;
  text-shadow: 0 0 3px rgba(242, 193, 78, 0.5);
}

.footer-col p {
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
  text-shadow: 0 0 5px #FFD36B; /* Glow effect */
}

.footer-description {
  margin-top: 10px;
  line-height: 1.8;
  color: #DDD;
}

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

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

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

.footer-nav a:hover {
  color: #FFD36B; /* Accent color */
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #3A2A12; /* Border */
  font-size: 0.85em;
  color: #AAA;
  text-align: center;
}

/* Dynamic Slot Anchors */
.footer-slot-anchor, .footer-slot-anchor-inner {
  min-height: 1px;
  width: 100%;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  /* Header */
  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    padding: 0 15px; /* Mobile padding */
    justify-content: space-between; /* Space out items */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* First item */
  }

  .logo {
    order: 2; /* Second item */
    flex: 1 !important; /* Take remaining space */
    display: flex !important; /* Use flex for centering */
    justify-content: center !important; /* Center logo horizontally */
    align-items: center !important;
    font-size: 1.8em;
    padding: 8px 0;
  }
  .logo img { /* If logo is an image */
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

  .main-nav {
    display: none; /* Hidden by default, controlled by JS */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset)); /* Fill remaining height */
    background-color: #111111; /* Card BG */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    padding: 20px;
    align-items: flex-start;
    gap: 15px;
    z-index: 999; /* Below overlay if overlay is 998 */
    overflow-y: auto; /* Enable scrolling for long menus */
    border-right: 1px solid #3A2A12;
  }

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

  .main-nav .nav-link {
    font-size: 1.2em;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(58, 42, 18, 0.5); /* Border */
  }
  .main-nav .nav-link:last-child {
      border-bottom: none;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons on mobile */
    order: 3; /* Last item */
    gap: 5px; /* Smaller gap for mobile buttons */
  }
  .mobile-nav-buttons .btn {
      padding: 8px 12px; /* Smaller padding for mobile buttons */
      font-size: 0.9em;
      border-radius: 20px;
  }

  /* Footer */
  .site-footer {
    padding: 30px 15px 15px;
  }
  .footer-content-wrapper {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    text-align: center;
  }
  .footer-col h3 {
    margin-top: 20px;
  }
  .footer-logo {
    margin: 0 auto 15px;
  }
  .footer-nav ul {
    text-align: center;
  }
  .footer-nav li {
    margin-bottom: 5px;
  }
  .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;
  }
}

/* Hamburger menu active state (for animation if desired) */
.hamburger-menu.active {
  transform: rotate(90deg);
  color: #FFD36B;
}

/* No-scroll class for body */
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;
  }
}
