:root {
  --header-offset: 122px;
}

body {
  padding-top: var(--header-offset);
  margin: 0;
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: transparent; /* Parent container, children will have colors */
}

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

.header-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px; /* Desktop padding */
}

.logo {
  color: #F2FFF6; /* Text Main */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
  display: block;
}

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

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #F2FFF6; /* Text Main */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
  box-shadow: 0 0 10px #57E38D; /* Glow effect */
}

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden by default on desktop */
  min-height: 48px;
  background-color: #11A84E; /* Primary color */
}

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
}

.main-nav {
  box-sizing: border-box;
  height: 52px; /* Desktop fixed height */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #11A84E; /* Primary color */
  width: 100%;
}

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

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px; /* Spacing between menu items */
}

.main-nav li a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-nav li a:hover {
  color: #A7D9B8; /* Text Secondary */
}

/* Footer styles */
.site-footer {
  background-color: #08160F; /* Background */
  color: #A7D9B8; /* Text Secondary */
  padding: 60px 20px 20px;
  font-size: 14px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  color: #F2FFF6; /* Text Main */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
}

.footer-description {
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1E3A2A; /* Divider */
  color: #A7D9B8; /* Text Secondary */
}

.footer-bottom p {
  margin: 0;
}

.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure anchor takes up minimal space */
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

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

body.no-scroll {
  overflow: hidden;
}

/* Mobile styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (mobile-nav-buttons) + 2px */
  }

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

  .header-top {
    height: 60px; /* Mobile fixed height */
    padding: 0 15px;
    position: relative; /* For logo absolute positioning */
    justify-content: flex-start; /* Align hamburger left */
  }

  .header-container {
    display: none; /* Hide desktop logo/buttons container on mobile */
  }

  .header-top .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    font-size: 24px;
    z-index: 1;
    max-width: calc(100% - 100px); /* Prevent logo from overlapping hamburger */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #F2FFF6; /* Text Main */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

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

  .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: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #11A84E; /* Primary color */
  }

  .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 {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    background-color: #08160F; /* Background color for menu */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: none; /* Hidden by default */
    overflow-y: auto;
    padding-top: calc(60px + 48px + 15px); /* Space for header-top + mobile-nav-buttons + internal padding */
    box-sizing: border-box;
    z-index: 1001;
    flex-direction: column;
  }

  .main-nav.active {
    transform: translateX(0);
    display: flex;
  }

  .nav-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid #1E3A2A; /* Divider */
  }

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

  .main-nav li a {
    padding: 15px 0;
    display: block;
    width: 100%;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-col {
    align-items: flex-start;
  }

  .site-footer {
    padding: 40px 15px 15px;
  }

  .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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
