:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --btn-bg-color: #C30808;
  --btn-text-color: #FFFF00;
  --header-top-bg: var(--primary-color);
  --main-nav-bg: #00964A; /* Slightly lighter green for contrast */
  --footer-bg: var(--primary-color);
  --footer-bottom-bg: #00592E; /* Darker green for copyright */
  --text-color-light: #F0F0F0;
  --text-color-dark: #333333;

  --header-offset: 122px; /* 68px (header-top) + 52px (main-nav) + 2px buffer */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  padding-top: var(--header-offset);
  overflow-x: hidden; /* Prevent horizontal scroll from initial layout */
}

body.no-scroll {
  overflow: hidden;
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background-color: var(--header-top-bg); /* Default background for entire header */
  box-sizing: border-box;
}

/* Header Top Bar */
.header-top {
  background-color: var(--header-top-bg);
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

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

/* Logo */
.logo {
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

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

/* Mobile Navigation Buttons (hidden by default on desktop) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden by default on desktop */
  min-height: 48px; /* Placeholder height, actual height depends on content */
  background-color: var(--header-top-bg); /* Same as header-top for consistency */
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001; /* Above header-top content */
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

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

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

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

/* Main Navigation */
.main-nav {
  background-color: var(--main-nav-bg);
  min-height: 52px;
  height: 52px;
  display: flex; /* Displayed by default on desktop */
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.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;
  box-sizing: border-box;
}

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

.nav-menu li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  display: block;
  white-space: nowrap;
  transition: color 0.3s ease;
  font-size: 15px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--btn-text-color); /* Highlight color */
}

/* Buttons */
.btn {
  background-color: var(--btn-bg-color);
  color: var(--btn-text-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 15px;
  box-sizing: border-box;
}

.btn:hover {
  background-color: #e02a2a; /* Slightly darker red on hover */
  transform: translateY(-1px);
}

/* Overlay for mobile menu */
.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-color-light);
  padding: 40px 20px 0;
  box-sizing: border-box;
}

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

.footer-col h3 {
  color: var(--secondary-color);
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-logo {
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

.footer-nav li a {
  color: var(--text-color-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: var(--btn-text-color);
}

.footer-bottom {
  background-color: var(--footer-bottom-bg);
  color: var(--text-color-light);
  text-align: center;
  padding: 15px 20px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  margin: 0;
}

.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure anchor is present even if empty */
}

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

  /* Header Top Bar for Mobile */
  .header-top {
    min-height: 60px;
    height: 60px;
  }

  .header-container {
    padding: 0 15px; /* Smaller padding for mobile */
    max-width: none; /* Remove max-width on mobile */
    position: relative; /* For absolute logo centering */
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px;
    position: static !important; /* Reset if absolute positioning used elsewhere */
    transform: none !important; /* Reset if transform used elsewhere */
  }

  /* Hamburger menu visible on mobile */
  .hamburger-menu {
    display: flex;
    position: absolute; /* Position relative to header-container */
    left: 15px; /* Align with container padding */
    top: 50%;
    transform: translateY(-50%);
  }

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

  /* Mobile buttons visible on mobile */
  .mobile-nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Half width minus gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Main Navigation for Mobile (hidden by default) */
  .main-nav {
    display: none; /* Hidden by default, shown with .active */
    position: fixed;
    top: var(--header-offset); /* Below the fixed header */
    left: 0;
    width: 280px; /* Sidebar width */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--main-nav-bg);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease;
    z-index: 1002; /* Above overlay */
    overflow-y: auto; /* Enable scrolling for long menus */
    box-sizing: border-box;
  }

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

  .nav-container {
    max-width: none; /* Remove max-width */
    padding: 0 15px;
    flex-direction: column;
    align-items: flex-start; /* Align menu items to the left */
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0; /* Remove gap for vertical list */
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator */
  }

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

  .nav-menu li a {
    padding: 12px 15px; /* Larger touch area */
    font-size: 16px;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 30px 15px 0;
  }

  .footer-top-grid {
    grid-template-columns: 1fr; /* Stack columns */
    gap: 30px;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
  }

  .footer-logo {
    font-size: 20px;
  }

  .footer-description {
    font-size: 13px;
  }

  .footer-nav li a {
    font-size: 13px;
  }

  /* Mobile content 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;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
