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

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

/* Site Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: transparent; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }

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

/* Logo */
.logo, .footer-logo { font-size: 24px; font-weight: bold; color: #F2C14E; text-decoration: none; display: flex; align-items: center; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.footer-logo { color: #F2C14E; font-size: 20px; margin-bottom: 15px; }

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

/* Main Navigation */
.main-nav { background-color: #11A84E; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; box-sizing: border-box; }
.main-nav .nav-container { height: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.nav-list li a { color: #F2FFF6; text-decoration: none; font-size: 15px; font-weight: 600; padding: 5px 0; transition: color 0.3s ease; white-space: nowrap; }
.nav-list li a:hover, .nav-list li a.active { color: #F2C14E; }

/* Hamburger Menu (Mobile) */
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger-menu .bar { display: block; width: 25px; height: 3px; background-color: #F2FFF6; margin: 5px 0; transition: 0.4s; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Navigation Buttons */
.mobile-nav-buttons { display: none; box-sizing: border-box; min-height: 48px; background-color: #0A4B2C; padding: 10px 20px; }

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

/* Buttons */
.btn { padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: bold; text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.3s ease; display: inline-block; box-sizing: border-box; }
.btn-primary { background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); color: #F2FFF6; border: 1px solid #2E7A4E; }
.btn-primary:hover { opacity: 0.9; box-shadow: 0 0 10px #57E38D; }
.btn-secondary { background-color: #11A84E; color: #F2FFF6; border: 1px solid #2E7A4E; }
.btn-secondary:hover { background-color: #22C768; }

/* Site Footer */
.site-footer { background-color: #08160F; padding: 40px 0 20px; color: #A7D9B8; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.footer-col h3 { color: #F2FFF6; font-size: 18px; margin-bottom: 20px; position: relative; }
.footer-col h3::after { content: ''; display: block; width: 40px; height: 2px; background-color: #11A84E; margin-top: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #A7D9B8; text-decoration: none; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: #F2C14E; }
.footer-description { line-height: 1.6; color: #A7D9B8; word-wrap: break-word; overflow-wrap: break-word; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #1E3A2A; color: #A7D9B8; }
.footer-slot-anchor { display: block; margin-bottom: 20px; }
.footer-slot-anchor-inner { display: block; }

/* Mobile 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 Top Bar Mobile */
  .header-top { min-height: 60px !important; height: 60px !important; padding: 0 15px; }
  .header-top .header-container { padding: 0; justify-content: space-between; position: relative; }
  .hamburger-menu { display: block; position: relative; z-index: 1001; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; }
  .logo img { max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .header-top .header-container::after { content: ''; width: 45px; } /* Balance hamburger space */

  /* Mobile Navigation Buttons */
  .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: 10px 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #0A4B2C; /* Consistent with header-top */
  }
  .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 Navigation Mobile */
  .main-nav {
    min-height: auto !important;
    height: 100vh; /* Full viewport height */
    width: 280px; /* Sidebar width */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #11271B; /* Card BG for menu */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 60px; /* Space for fixed header content */
    box-sizing: border-box;
    z-index: 999; /* Below hamburger, above overlay */
  }
  .main-nav.active {
    display: flex; /* Must be block/flex to show */
    transform: translateX(0);
  }
  .main-nav .nav-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .nav-list li {
    width: 100%;
    border-bottom: 1px solid #1E3A2A;
  }
  .nav-list li:last-child {
    border-bottom: none;
  }
  .nav-list li a {
    padding: 15px 0;
    display: block;
    width: 100%;
    font-size: 16px;
  }

  /* Footer Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .footer-col {
    margin-bottom: 30px;
  }
  .footer-col:last-child {
    margin-bottom: 0;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
