:root { --primary: #017439; --secondary: #FFFFFF; --bg: #FFFFFF; --text-dark: #2d2d2d; --text-light: #ffffff; --login-bg: #C30808; --register-bg: #C30808; --button-text: #FFFF00; --header-offset: 122px; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; padding-top: var(--header-offset); background-color: var(--bg); margin: 0; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--secondary); box-shadow: 0 4px 12px rgba(0,0,0,0.15); margin: 0; padding: 0; }
.header-top { background: linear-gradient(135deg, #003d1e 0%, #017439 60%, #02894a 100%); width: 100%; min-height: 68px; border-bottom: 1px solid #024d2c; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 8px 30px; min-height: 68px; }
.logo { font-size: 1.8rem; font-weight: 900; color: var(--text-light); letter-spacing: -0.5px; display: inline-block; text-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.logo:hover { color: #e8fff2; }
.desktop-nav-buttons { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 8px; padding: 10px 24px; font-size: 0.95rem; line-height: 1.2; min-height: 44px; white-space: nowrap; transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.15); border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.btn-login { background-color: var(--login-bg); color: var(--button-text) !important; border: 1px solid #fff; }
.btn-login:hover { background-color: #a90505; transform: translateY(-1px); }
.btn-register { background-color: var(--register-bg); color: var(--button-text) !important; border: 1px solid #fff; }
.btn-register:hover { background-color: #a90505; transform: translateY(-1px); }
.main-nav { display: flex; background: var(--secondary); width: 100%; min-height: 52px; border-top: 1px solid #017439; position: relative; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; flex-direction: row; justify-content: center; align-items: center; gap: 0 12px; padding: 0 20px; }
.nav-link { display: inline-block; padding: 15px 12px; font-weight: 600; font-size: 0.95rem; color: #ffffff; border-bottom: 3px solid transparent; transition: all 0.25s ease; min-height: 52px; background: transparent; }
.nav-link:hover, .nav-link.active { color: #ffffff; border-bottom-color: #017439; background-color: rgba(1, 116, 57, 0.1); }
.mobile-nav-buttons { display: none; }
.hamburger-menu { display: none; }
.mobile-menu-overlay { display: none; }
@media (max-width: 768px) { :root { --header-offset: 110px; } .header-top { min-height: 60px; } .header-container { max-width: none; width: 100%; padding: 6px 15px; min-height: 60px; display: flex; justify-content: space-between; align-items: center; }
.logo { margin: 0; font-size: 1.2rem; flex: 1; text-align: center; order: 1; }
.desktop-nav-buttons { display: none; }
.mobile-nav-buttons { display: flex; flex-direction: row; justify-content: center; gap: 12px; padding: 6px 10px; background: #fff; border-bottom: 2px solid #017439; position: relative; z-index: 999; }
.mobile-nav-buttons .btn { font-size: 0.85rem; padding: 6px 12px; min-height: 36px; }
.main-nav { display: none; position: fixed; top: 0; left: 0; width: 78%; max-width: 340px; height: 100vh; background: #fff; flex-direction: column; transform: translateX(-100%); transition: transform 0.4s ease; padding-top: 30px; z-index: 1002; border-right: 4px solid var(--primary); border-top: none; }
.nav-container { width: 100%; max-width: none; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0; }
.nav-link { display: block; padding: 15px 24px; font-size: 1rem; text-align: left; border-bottom: 1px solid #e0eee6; color: #2d2d2d; }
.nav-link:hover, .main-nav .nav-link.active { background-color: var(--primary); color: #fff; }
.main-nav.active { display: block; transform: translateX(0); }
.hamburger-menu { display: flex; width: 48px; height: 48px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; z-index: 1005; background: transparent; border: none; padding: 0; margin: 0; position: relative; order: 0; }
.hamburger-menu span { width: 28px; height: 3px; background: var(--primary); border-radius: 3px; transition: 0.3s; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); background: var(--primary); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); background: #fff; }
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1001; }
.mobile-menu-overlay.active { display: block; }
.main-nav.active { display: flex; transform: translateX(0); }
.page-content img { max-width: 100% !important; height: auto !important; display: block; }
.page-content { overflow-x: hidden; max-width: 100%; }
body { overflow-x: hidden; }
}
.site-footer { background: linear-gradient(135deg, #012e16 0%, #017439 70%, #00b158 100%); color: #ffffff; margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 50px 30px 30px; }
.footer-logo { font-size: 1.6rem; font-weight: 900; color: #ffffff; letter-spacing: 1px; display: inline-block; margin-bottom: 15px; }
.footer-column h4 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: #ffffff; }
.footer-desc { font-size: 0.85rem; line-height: 1.6; opacity: 0.9; color: #ffffff; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 0.85rem; line-height: 1.5; color: #f0f0f0; transition: color 0.2s; }
.footer-nav a:hover { color: var(--button-text); }
.footer-column a:hover { color: var(--button-text); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); text-align: center; padding: 18px 20px; font-size: 0.8rem; color: #fff; }
.footer-bottom p { margin: 0; color: #fff; }
.no-scroll { overflow: hidden; }
.site-header .logo { color: #fff; }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
