:root {
  --header-offset: 122px;
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  background-color: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

/* Site Header - Fixed & Suspended */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: var(--color-background); /* Overall header background, sections will override */
}

/* Header Top Section */
.header-top {
  box-sizing: border-box;
  height: 68px; /* Desktop fixed height */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-deep-green); /* Deep Green for top bar */
  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 20px; /* Padding for logo and buttons */
}

/* Logo */
.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-gold); /* Gold for logo text */
  text-decoration: none;
  white-space: nowrap;
  display: block; /* Ensure visibility */
}
.logo img { /* If logo is an image */
  display: block;
  max-height: 60px; /* Desktop max height */
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

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

/* Mobile Navigation Buttons (hidden on desktop) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop */
  min-height: 48px; /* Mobile fixed height */
  background-color: var(--color-card-bg); /* Different background for mobile buttons */
  border-bottom: 1px solid var(--color-divider);
}

/* Main Navigation */
.main-nav {
  box-sizing: border-box;
  height: 52px; /* Desktop fixed height */
  display: flex; /* Visible on desktop */
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary); /* Main Green for nav bar */
  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;
}

.nav-link {
  color: var(--color-text-main);
  text-decoration: none;
  padding: 0 15px;
  font-size: 16px;
  font-weight: bold;
  height: 100%;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-gold);
}

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001; /* Above header-top */
  margin-right: 15px; /* Spacing from logo */
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--color-text-main);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) { top: 0px; }
.hamburger-menu span:nth-child(2) { top: 10px; }
.hamburger-menu span:nth-child(3) { top: 20px; }

.hamburger-menu.active span:nth-child(1) { top: 10px; transform: rotate(135deg); background: var(--color-gold); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger-menu.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); background: var(--color-gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: var(--color-text-main);
  background: var(--btn-gradient); /* Use gradient for buttons */
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--color-background);
  color: var(--color-text-secondary);
  padding: 40px 20px 20px;
  border-top: 1px solid var(--color-divider);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr); /* 4 columns, first wider */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

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

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

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  word-wrap: break-word; /* Ensure full text display */
  overflow-wrap: break-word;
}

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

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

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

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  padding-top: 20px;
  border-top: 1px solid var(--color-divider);
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
}

/* Dynamic Slot Anchor Inner Containers (must be visible) */
.footer-slot-anchor-inner {
  min-height: 10px; /* Ensure they take up some space for visibility */
  width: 100%;
}

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

  body {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Header adjustments */
  .site-header {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent header content from causing overflow */
  }

  .header-top {
    height: 60px !important; /* Mobile fixed height */
    padding: 0 15px;
  }

  .header-container {
    width: 100%;
    max-width: none; /* Remove max-width on mobile */
    padding: 0; /* Remove horizontal padding from container, handled by header-top */
    justify-content: space-between; /* To push hamburger left, logo center */
    position: relative; /* For absolute positioning of logo if needed */
  }

  /* Hamburger menu visible on mobile */
  .hamburger-menu {
    display: block;
    margin-right: 0; /* No margin needed, flex handles spacing */
    order: 0; /* Keep it left */
  }

  /* Mobile Logo Centering (Flexbox method) */
  .logo {
    flex: 1 !important; /* Take available space */
    display: flex !important;
    justify-content: center !important; /* Center the logo text */
    align-items: center !important;
    order: 1; /* Keep it center */
    font-size: 24px;
    padding-left: 15px; /* Adjust for hamburger menu width */
  }
  .logo img { /* If logo is an image */
    max-height: 56px !important; /* Mobile max height */
  }

  /* Hide desktop buttons, show mobile buttons */
  .desktop-nav-buttons {
    display: none !important;
  }
  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    align-items: center;
    justify-content: center; /* Center buttons horizontally */
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 8px 15px; /* Smaller padding for mobile */
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px); /* Max width for two buttons with gap */
    box-sizing: border-box;
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font size */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }

  /* Main navigation (mobile off-canvas menu) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-offset); /* Below fixed header */
    left: 0;
    width: 75%; /* Adjust width as needed */
    height: calc(100% - var(--header-offset));
    background-color: var(--color-card-bg); /* Use card background for menu */
    flex-direction: column;
    padding: 20px 0;
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.3);
    z-index: 1001; /* Above overlay */
    overflow-y: auto; /* Allow scrolling for long menus */
    height: auto !important; /* Remove fixed height for off-canvas */
    min-height: auto !important;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-divider);
    justify-content: flex-start;
    color: var(--color-text-main);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  /* Footer adjustments */
  .site-footer {
    padding: 30px 15px 15px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    margin-bottom: 20px;
  }
  .footer-col {
    margin-bottom: 20px;
  }
  .footer-col:last-child {
    margin-bottom: 0;
  }
  .footer-top-grid .footer-col:nth-child(1) { order: 1; } /* About */
  .footer-top-grid .footer-col:nth-child(2) { order: 2; } /* Links */
  .footer-top-grid .footer-col:nth-child(3) { order: 3; } /* Legal */
  .footer-top-grid .footer-col:nth-child(4) { order: 0; } /* Dynamic slot at top */
}

/* Ensure color contrast for all text */
h1, h2, h3, h4, h5, h6 { color: var(--color-text-main); }
p, li, a:not(.btn) { color: var(--color-text-secondary); }
.btn { color: var(--color-text-main); } /* Overrides if btn text is set to secondary */
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
