:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); overflow-x: hidden; margin: 0; font-family: Arial, sans-serif; }

/* Base Styles for Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-top {
  height: 68px;
  display: flex;
  align-items: center;
  background-color: #0A4B2C; /* Deep Green */
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.header-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop by default */
  min-height: 48px;
  background-color: #0A4B2C; /* Deep Green */
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.main-nav {
  height: 52px;
  display: flex;
  align-items: center;
  background-color: #11271B; /* Card BG */
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.nav-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.nav-link {
  color: #A7D9B8; /* Text Secondary */
  text-decoration: none;
  padding: 0 15px;
  font-size: 15px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.3s, background-color 0.3s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #F2FFF6; /* Text Main */
  background-color: #1E3A2A; /* Divider */
}

/* Buttons */
.btn {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  border: none;
  text-align: center;
  display: inline-block; /* Ensure padding and width work as expected */
}

.btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

.btn-secondary {
  background-color: #1E3A2A; /* Divider */
  color: #A7D9B8; /* Text Secondary */
  border: 1px solid #2E7A4E; /* Border */
}

.btn-secondary:hover {
  background-color: #2E7A4E; /* Border */
  color: #F2FFF6; /* Text Main */
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  box-sizing: border-box;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #F2FFF6; /* Text Main */
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

.hamburger-menu.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
}

.overlay.active {
  display: block;
}

/* Footer Styles */
.site-footer {
  background-color: #08160F; /* Background */
  color: #A7D9B8; /* Text Secondary */
  padding: 40px 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

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

.footer-col {
  margin-bottom: 0; /* Reset for desktop grid */
}

.footer-col h3 {
  color: #F2FFF6; /* Text Main */
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

.footer-col ul li a {
  color: #A7D9B8; /* Text Secondary */
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #F2FFF6; /* Text Main */
}

.footer-logo {
  font-size: 20px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-bottom {
  border-top: 1px solid #1E3A2A; /* Divider */
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #A7D9B8; /* Text Secondary */
}

/* Dynamic Slot Anchors - ensure they are visible */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure visibility for injection */
}

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }

  /* Mobile 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;
  }

  .site-header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Ensure shadow persists */
  }

  .header-top {
    height: 60px !important;
  }

  .header-container {
    padding: 0 15px;
    position: relative;
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
    order: -1; /* Place it at the beginning of flex items */
    margin-right: 15px; /* Spacing from logo */
  }

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

  .logo img {
    max-height: 56px !important; /* Smaller for mobile */
  }

  .desktop-nav-buttons {
    display: none !important;
  }

  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center; /* Center buttons horizontally */
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #0A4B2C; /* Deep Green */
    border-top: 1px solid #1E3A2A; /* Divider */
    border-bottom: 1px solid #1E3A2A; /* Divider */
  }

  .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 {
    display: none; /* Hidden by default, shown with JS */
    flex-direction: column;
    position: fixed;
    top: 0; 
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #08160F; /* Background */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    padding-top: 60px; /* Offset for header-top, so content starts below */
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  }

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

  .nav-container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    max-width: none; /* Remove max-width for mobile */
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    justify-content: flex-start;
    font-size: 16px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-col:last-of-type {
    margin-bottom: 0;
  }

  .footer-bottom {
    padding-left: 15px;
    padding-right: 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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
