:root { --header-offset: 122px; --primary-color: #017439; --secondary-color: #FFFFFF; --btn-red: #C30808; --btn-text-yellow: #FFFF00; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.25); background-color: #FFFFFF; }
.header-top { box-sizing: border-box; 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; font-size: 28px; font-weight: 800; color: #FFFFFF; text-decoration: none; letter-spacing: 1px; line-height: 1; 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 { box-sizing: border-box; display: none; min-height: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 6px; border: none; cursor: pointer; transition: all 0.25s ease; text-align: center; }
.btn-login, .btn-register { background-color: #C30808; color: #FFFF00; padding: 10px 22px; font-size: 15px; box-shadow: 0 3px 10px rgba(195,8,8,0.4); }
.btn-login:hover, .btn-register:hover { background-color: #a00606; transform: translateY(-2px); box-shadow: 0 5px 14px rgba(195,8,8,0.55); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; margin-right: 4px; z-index: 1001; position: relative; }
.hamburger-menu span { display: block; width: 26px; height: 3px; background-color: #FFFFFF; margin: 5px 0; border-radius: 2px; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #015c2d; width: 100%; }
.nav-container { box-sizing: border-box; height: 100%; width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 6px; flex-wrap: nowrap; }
.nav-link { display: inline-block; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 4px; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.nav-link:hover { background-color: #017439; color: #FFFF00; }
.nav-link.active { background-color: #C30808; color: #FFFF00; }
.menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.55); z-index: 999; }
.menu-overlay.active { display: block; }
body.no-scroll { overflow: hidden; }
.site-footer { background-color: #012d16; color: #FFFFFF; width: 100%; }
.footer-top { background-color: #012d16; padding: 40px 0 20px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.footer-col { min-width: 0; }
.footer-about { display: flex; flex-direction: column; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 14px; letter-spacing: 1px; }
.footer-logo:hover { color: #FFFF00; }
.footer-description { color: #cfe6d9; font-size: 14px; line-height: 1.65; margin: 0 0 10px; 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 #017439; display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 9px; }
.footer-nav a { color: #cfe6d9; text-decoration: none; font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: #FFFF00; padding-left: 4px; }
.footer-mid { background-color: #012d16; padding: 20px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-bottom { background-color: #011a0d; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-copyright { margin: 0; text-align: center; color: #a8c9b6; font-size: 13px; line-height: 1.5; }
.footer-slot-anchor { min-height: 0; }
.footer-slot-anchor-inner { min-height: 0; }
@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: 12px; padding-right: 12px; position: relative; }
  .hamburger-menu { display: block; }
  .logo { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: calc(100% - 140px); font-size: 24px; }
  .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: 8px 12px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #FFFFFF; }
  .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 { 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: #015c2d; z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; padding-top: 70px; overflow-y: auto; box-shadow: 4px 0 18px rgba(0,0,0,0.4); }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 10px 16px; gap: 2px; }
  .nav-link { display: block; width: 100%; padding: 13px 14px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); white-space: normal; }
  .nav-link:hover { background-color: #017439; }
  .footer-top { padding: 30px 0 16px; }
  .footer-container { padding: 0 16px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-mid-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-heading { font-size: 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 (min-width: 769px) {
  .main-nav { display: flex !important; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
