html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; color: #F2FFF6; background-color: #08160F; padding-top: var(--header-offset); }
:root { --header-offset: 122px; }

/* Shared Container Styles */
.header-container, .nav-container, .footer-top-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Site Header - Fixed Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background-color: #08160F; /* Overall header background for fixed effect */
}

/* Header Top Bar */
.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  background-color: #0A4B2C; /* Deep Green for header-top */
  width: 100%;
  overflow: hidden;
}
.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Logo */
.logo, .footer-logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold for logo text */
  text-decoration: none;
  display: block;
  line-height: 1;
}
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Mobile Navigation Buttons (hidden by default) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden by default on desktop */
  min-height: 48px;
  background-color: #08160F; /* Background color for mobile buttons bar */
  width: 100%;
  overflow: hidden;
}

/* Main Navigation Bar */
.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  display: flex; /* Displayed on desktop */
  align-items: center;
  background-color: #11A84E; /* Primary color for main-nav */
  width: 100%;
  overflow: hidden;
}
.main-nav .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  gap: 25px;
}
.nav-link {
  color: #F2FFF6;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #F2C14E; /* Gold on hover */
}

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  width: 30px;
  height: 30px;
  z-index: 1001;
}
.hamburger-menu::before, .hamburger-menu::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #F2FFF6;
  left: 0;
  transition: all 0.3s ease;
}
.hamburger-menu::before { top: 8px; }
.hamburger-menu::after { bottom: 8px; }
.hamburger-menu.active::before {
  transform: rotate(45deg);
  top: 13px;
}
.hamburger-menu.active::after {
  transform: rotate(-45deg);
  bottom: 14px;
}
.hamburger-menu.active::before, .hamburger-menu.active::after {
  background-color: #F2C14E;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}
.mobile-nav-overlay.active {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  color: #F2FFF6;
  font-weight: bold;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px #57E38D; /* Glow effect */
}

/* Footer */
.site-footer {
  background-color: #11271B; /* Card BG for footer */
  padding: 40px 0 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 14px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1E3A2A; /* Divider color */
  margin-bottom: 20px;
}
.footer-col h3 {
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  margin-bottom: 15px;
}
.footer-col .footer-logo {
  font-size: 24px;
  margin-bottom: 15px;
}
.footer-col .footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  margin-bottom: 10px;
}
.footer-nav a {
  color: #A7D9B8;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: #F2C14E;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1E3A2A; /* Divider color */
}
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure anchor is renderable */
}

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

  .header-container, .nav-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header Top Mobile */
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
    position: relative;
  }
  .header-top .header-container {
    justify-content: space-between;
    position: relative; /* For absolute positioning of logo */
  }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px); /* Account for hamburger menu width */
  }
  .logo img {
    max-height: 56px !important;
  }

  /* Hamburger Menu Mobile */
  .hamburger-menu {
    display: block; /* Show on mobile */
    position: relative;
    z-index: 1001;
  }

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

  /* Mobile Buttons shown on mobile */
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Main Nav Mobile - Hidden by default, slides in */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; /* Adjusted to be full height below header */
    left: 0;
    width: 280px; /* Sidebar width */
    height: 100vh; /* Full viewport height */
    background-color: #0A4B2C; /* Deep Green for mobile nav */
    flex-direction: column;
    padding-top: var(--header-offset); /* Push content below header */
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Below overlay, but above page content */
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    gap: 15px;
    width: 100%;
    max-width: none;
  }
  .main-nav .nav-link {
    width: 100%;
    padding: 10px 20px;
    border-bottom: 1px solid #1E3A2A;
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

  /* Footer Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col .footer-nav {
    margin-top: 15px;
  }
  .footer-col .footer-nav li {
    display: inline-block;
    margin: 0 8px 8px 8px;
  }
  .footer-col .footer-nav li a {
    white-space: nowrap;
  }
  .footer-col.footer-about .footer-description {
    padding: 0 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
