:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); }

/* Base styles for header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0A0A0A; /* Background color from scheme */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  z-index: 1000;
  min-height: 60px; /* Ensure content fits */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px; /* Desktop padding */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribute items */
  min-height: inherit;
}

/* Logo */
.logo {
  flex-shrink: 0;
  font-family: 'Arial', sans-serif; /* Example font, could be more creative */
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-decoration: none;
  text-transform: uppercase;
}

/* Main Navigation (Desktop) */
.main-nav {
  flex: 1; /* Take up available space */
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center nav links */
  align-items: center;
  gap: 25px; /* Spacing between nav items */
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav .nav-link {
  color: #FFF6D6; /* Text Main color */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #FFD36B; /* Glow color on hover */
}

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

.desktop-nav-buttons .btn,
.mobile-nav-buttons .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #0A0A0A; /* Dark text for bright buttons */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4); /* Glow effect */
}

.desktop-nav-buttons .btn:hover,
.mobile-nav-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

/* Hamburger menu (hidden by default on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: #FFF6D6; /* Text Main color */
  cursor: pointer;
  padding: 0 10px;
  z-index: 1001; /* Above other mobile elements */
}

/* Mobile navigation buttons (hidden by default on desktop) */
.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop, !important for override */
}

/* Mobile menu overlay (hidden by default) */
.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: 980;
}

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

/* Footer styles */
.site-footer {
  background-color: #0A0A0A; /* Background color from scheme */
  color: #FFF6D6; /* Text Main color */
  padding: 40px 30px 20px;
  font-size: 14px;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.site-footer .footer-col h3 {
  color: #F2C14E; /* Primary color for headings */
  font-size: 18px;
  margin-bottom: 15px;
}

.site-footer .footer-col .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.site-footer .footer-description {
  line-height: 1.6;
  color: #FFF6D6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.site-footer .footer-nav a:hover {
  color: #FFD36B; /* Glow color on hover */
}

.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  text-align: center;
  color: #FFF6D6; /* Text Main color */
}

.site-footer .footer-bottom p {
  margin: 0;
  line-height: 1.5;
}

/* Placeholder for slot anchors - ensuring visibility */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure it takes up space, but doesn't create unwanted height if empty */
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Header Offset for mobile */
  :root { --header-offset: 110px; }

  .header-container {
    width: 100%;
    max-width: none; /* No max-width on mobile */
    padding: 15px; /* Mobile padding */
    justify-content: space-between; /* Adjust for mobile layout */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    flex-shrink: 0;
  }

  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important; /* Center logo */
    align-items: center !important;
    font-size: 24px; /* Adjust font size for mobile */
  }

  /* Hide desktop nav and show mobile nav buttons */
  .main-nav {
    display: none; /* Hidden by default for mobile drawer */
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 70%; /* Drawer width */
    height: calc(100% - var(--header-offset));
    background-color: #111111; /* Card BG color for menu drawer */
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    z-index: 990;
    overflow-y: auto; /* Enable scrolling for long menus */
    align-items: flex-start; /* Align menu items to the left */
    gap: 15px; /* Spacing between mobile menu items */
  }

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

  .main-nav .nav-link {
    width: 100%; /* Full width for mobile menu items */
    padding: 10px 0;
    border-bottom: 1px solid #3A2A12; /* Separator */
  }

  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

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

  .mobile-nav-buttons {
    flex-shrink: 0;
    display: flex !important; /* Show mobile buttons on mobile */
    gap: 8px; /* Spacing between mobile buttons */
  }

  /* Footer responsive */
  .site-footer .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .site-footer .footer-col {
    text-align: center; /* Center content in footer columns */
  }
  .site-footer .footer-nav a {
    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;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
