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

/* Mobile content overflow protection */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}

/* Base styles */
a { text-decoration: none; color: #FFF6D6; }
a:hover { color: #FFD36B; }
h1, h2, h3, h4, h5, h6 { color: #FFF6D6; margin-top: 0; margin-bottom: 15px; }
p { line-height: 1.6; margin-bottom: 15px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4);
  white-space: nowrap; /* Prevent button text from wrapping */
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.6);
  color: #0A0A0A; /* Ensure hover text is still dark */
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0A0A0A; /* Background color */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Suspended effect */
  z-index: 1000;
  min-height: 60px; /* Ensure minimum height */
  display: flex; /* Flex container for content */
  align-items: center; /* Vertically align content */
  padding: 10px 0; /* Vertical padding */
}

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

/* Logo */
.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B; /* Gold for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin-right: 20px; /* Space between logo and nav */
}

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

.main-nav .nav-link {
  color: #FFF6D6;
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #FFD36B;
  transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  width: 100%;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  gap: 10px;
}

/* Mobile Navigation Buttons & Hamburger (Default Hidden) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: #FFD36B;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 1001; /* Above mobile menu */
  transition: transform 0.3s ease;
}
.hamburger-menu.active {
  transform: rotate(90deg); /* Example animation */
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .site-header {
    padding: 8px 0; /* Adjust padding for mobile header */
  }

  .header-container {
    width: 100%;
    max-width: none; /* Crucial: no max-width on mobile */
    padding: 0 15px; /* Mobile side padding */
    justify-content: space-between; /* Space out items */
  }

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

  /* Logo positioning on mobile */
  .logo {
    order: 2; /* Second item */
    flex: 1; /* Take available space */
    text-align: center; /* Center text logo */
    margin: 0 10px; /* Space around logo */
  }

  /* Main Nav hidden by default on mobile */
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Start below header */
    left: 0;
    width: 280px; /* Width of the mobile menu */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #111111; /* Card BG for menu */
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    overflow-y: auto; /* Scroll if content is long */
    align-items: flex-start; /* Align links to the left */
    gap: 15px;
  }

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

  .main-nav .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #3A2A12; /* Border for menu items */
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }
  .main-nav .nav-link::after {
    display: none; /* Hide underline on mobile menu */
  }
  .main-nav .nav-link:hover {
    color: #FFD36B;
  }

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

  /* Mobile buttons visible on mobile */
  .mobile-nav-buttons {
    display: flex !important;
    order: 3; /* Third item */
    gap: 8px;
    flex-shrink: 0;
  }
  .mobile-nav-buttons .btn {
    padding: 8px 15px; /* Smaller buttons for mobile */
    font-size: 14px;
  }
}

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

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

.site-footer h3 {
  color: #FFD36B; /* Gold for footer headings */
  font-size: 18px;
  margin-bottom: 20px;
}

.site-footer .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

.site-footer .footer-description {
  font-size: 14px;
  line-height: 1.8;
  word-wrap: break-word; /* Ensure description wraps */
  overflow-wrap: break-word;
  max-width: 300px; /* Limit width for readability */
}

.site-footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-nav a {
  color: #FFF6D6;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #3A2A12;
  font-size: 13px;
  color: #FFF6D6;
}

.footer-slot-anchor-inner { /* Ensure inner slots are visible */
  min-height: 1px; /* Smallest possible height */
}

/* Mobile Footer */
@media (max-width: 768px) {
  .site-footer .footer-content {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .site-footer .footer-about {
    text-align: center;
  }
  .site-footer .footer-logo {
    display: inline-block; /* Center text logo */
  }
  .site-footer .footer-description {
    max-width: 100%;
    text-align: center;
  }
  .site-footer .footer-col {
    text-align: center;
  }
  .site-footer .footer-nav {
    align-items: center; /* Center nav links */
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
