:root { --primary-color: #017439; --secondary-color: #FFFFFF; --login-btn-color: #C30808; --register-btn-color: #C30808; --login-register-text: #FFFF00; --header-offset: 122px; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Arial, sans-serif; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 16px rgba(0,0,0,0.18); background-color: #017439; }
.header-top { height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #017439; 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-left: 24px; padding-right: 24px; }
.logo { display: inline-block; color: #FFFFFF; font-size: 24px; font-weight: 800; text-decoration: none; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.logo:hover { color: #FFFF00; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.mobile-nav-buttons { display: none; min-height: 48px; box-sizing: border-box; }
.btn { display: inline-block; padding: 9px 20px; border-radius: 6px; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; border: none; transition: all 0.25s ease; white-space: nowrap; }
.btn-login { background-color: #C30808; color: #FFFF00; border: 2px solid #C30808; }
.btn-login:hover { background-color: #a00606; border-color: #a00606; transform: translateY(-1px); }
.btn-register { background-color: #C30808; color: #FFFF00; border: 2px solid #C30808; }
.btn-register:hover { background-color: #a00606; border-color: #a00606; transform: translateY(-1px); }
.main-nav { height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #014f27; 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; width: 100%; }
.nav-list { display: flex; flex-direction: row; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-list li { margin: 0; }
.nav-link { display: block; padding: 8px 11px; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-link:hover { background-color: #017439; color: #FFFF00; }
.hamburger-menu { display: none; position: absolute; top: 16px; left: 15px; width: 36px; height: 36px; background: transparent; border: none; cursor: pointer; padding: 6px; z-index: 1001; flex-direction: column; justify-content: space-between; align-items: center; }
.hamburger-line { display: block; width: 100%; height: 3px; background-color: #FFFFFF; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.menu-overlay { display: none; position: fixed; inset: 0; background-color: rgba(0,0,0,0.55); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.menu-overlay.active { display: block; opacity: 1; }
.site-footer { background-color: #017439; color: #FFFFFF; padding: 0; box-sizing: border-box; width: 100%; }
.footer-top { padding: 40px 0 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { min-width: 0; }
.footer-about .footer-logo { display: inline-block; color: #FFFFFF; font-size: 22px; font-weight: 800; text-decoration: none; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.footer-about .footer-logo:hover { color: #FFFF00; }
.footer-description { color: #e6f4ec; font-size: 14px; line-height: 1.7; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { color: #FFFFFF; font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid #014f27; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav li { margin: 0; }
.footer-nav a { color: #d4ecdd; text-decoration: none; font-size: 14px; line-height: 1.5; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: #FFFF00; padding-left: 4px; }
.footer-dynamic-col { min-height: 20px; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-mid-grid { margin-top: 28px; padding-top: 20px; border-top: 1px solid #014f27; }
.footer-mid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 12px; }
.footer-bottom { background-color: #014f27; padding: 18px 0; text-align: center; }
.footer-copyright { margin: 0; color: #d4ecdd; font-size: 13px; line-height: 1.5; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { height: 60px !important; min-height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 55px; padding-right: 15px; position: relative; }
  .logo { font-size: 17px; flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; text-align: center; white-space: normal; line-height: 1.1; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; min-height: 48px; background-color: #017439; }
  .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: 48px !important; min-height: 48px !important; display: none; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh !important; min-height: 100vh !important; flex-direction: column; justify-content: flex-start; align-items: stretch; background-color: #014f27; z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; padding-top: 70px; }
  .main-nav.active { display: flex !important; transform: translateX(0) !important; }
  .nav-container { width: 100%; max-width: none; height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 10px 15px; }
  .nav-list { flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; gap: 2px; }
  .nav-link { padding: 12px 14px; font-size: 15px; border-bottom: 1px solid #017439; border-radius: 0; white-space: normal; }
  .hamburger-menu { display: flex; top: 12px; left: 15px; }
  .footer-top { padding: 28px 0 16px; }
  .footer-container { padding: 0 15px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-mid-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .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: 380px) {
  .logo { font-size: 15px; }
  .header-container { padding-left: 50px; padding-right: 10px; }
  .mobile-nav-buttons .btn { font-size: 12px; padding: 7px 8px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
