html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; line-height: 1.6; color: #333333; padding-top: var(--header-offset); overflow-x: hidden; }
:root { --primary-color: #017439; --auxiliary-color: #FFFFFF; --btn-bg-color: #C30808; --btn-text-color: #FFFF00; --header-offset: 122px; }

.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); background-color: var(--primary-color); }

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); 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; }

.logo { color: var(--auxiliary-color); font-size: 24px; font-weight: bold; text-decoration: none; display: block; }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: #f8f8f8; /* A light background for mobile buttons */ }

.btn { background-color: var(--btn-bg-color); color: var(--btn-text-color); padding: 10px 18px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; white-space: nowrap; }
.btn:hover { background-color: darken(var(--btn-bg-color), 10%); /* Example hover effect */ }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--auxiliary-color); width: 100%; border-top: 1px solid #eee; }
.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-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.nav-menu a { color: #333333; text-decoration: none; font-weight: bold; padding: 5px 0; transition: color 0.3s ease; }
.nav-menu a:hover { color: var(--primary-color); }

.hamburger-menu { display: none; cursor: pointer; background: none; border: none; padding: 0; width: 30px; height: 24px; position: relative; z-index: 1002; margin-right: 15px; /* Adjust as needed */ }
.hamburger-menu .bar { display: block; width: 100%; height: 3px; background-color: var(--auxiliary-color); margin: 5px 0; transition: all 0.3s ease; }
.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); }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 999; display: none; transition: opacity 0.3s ease; opacity: 0; }
.overlay.active { display: block; opacity: 1; }

/* Footer Styles */
.site-footer { background-color: #333333; color: #FFFFFF; padding: 40px 0 20px; }
.footer-top-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 0 20px; }
.footer-col { margin-bottom: 20px; }
.footer-col h3 { color: var(--auxiliary-color); margin-bottom: 15px; font-size: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #CCCCCC; text-decoration: none; transition: color 0.3s ease; font-size: 14px; }
.footer-col ul a:hover { color: var(--primary-color); }

.footer-logo { color: var(--auxiliary-color); font-size: 22px; font-weight: bold; text-decoration: none; margin-bottom: 15px; display: block; }
.footer-description { font-size: 14px; line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; }

.footer-bottom-nav { background-color: #222222; padding: 10px 0; margin-top: 30px; }
.footer-legal-nav { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 20px; }
.footer-legal-nav a { color: #CCCCCC; text-decoration: none; font-size: 13px; transition: color 0.3s ease; }
.footer-legal-nav a:hover { color: var(--primary-color); }

.footer-bottom { text-align: center; margin-top: 20px; font-size: 13px; color: #CCCCCC; }

.footer-slot-anchor-inner { min-height: 1px; }

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

  .header-top { min-height: 60px; height: 60px; justify-content: space-between; }
  .header-container { padding: 0 15px; width: 100%; max-width: none; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; margin: 0; position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 100px); /* Account for hamburger menu */ }
  .logo img { max-height: 56px; width: auto; height: auto; display: block; }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
    background-color: #f8f8f8;
  }
  .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;
  }

  .hamburger-menu { display: block; margin-right: 0; }

  .main-nav {
    min-height: 48px; height: 48px; /* Override desktop height */
    display: none; /* Hidden by default for mobile menu */
    position: fixed; top: var(--header-offset); left: 0; /* Position below header */
    width: 280px; /* Width of the mobile menu */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--auxiliary-color);
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    border-top: none; /* Remove border from main-nav on mobile */
  }
  .main-nav.active { display: flex; transform: translateX(0); /* Slide into view */ }
  .nav-container { width: 100%; max-width: none; padding: 0; }
  .nav-menu { flex-direction: column; gap: 15px; width: 100%; text-align: left; }
  .nav-menu a { padding: 10px 0; display: block; border-bottom: 1px solid #eee; }
  .nav-menu li:last-child a { border-bottom: none; }

  .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px; }
  .footer-col { text-align: center; }
  .footer-col ul { text-align: center; }
  .footer-legal-nav { flex-direction: column; gap: 10px; padding: 0 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;
}
