:root { --header-offset: 122px; --primary: #017439; --secondary: #FFFFFF; --register-color: #C30808; --login-color: #C30808; --btn-text: #FFFF00; --bg: #FFFFFF; --text-dark: #222222; --footer-bg: #0a3d21; --footer-text: #e8f5ec; --footer-heading-color: #FFFFFF; } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Arial, sans-serif; background: var(--bg); color: var(--text-dark); } .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background: var(--primary); box-shadow: 0 4px 18px rgba(0,0,0,0.28); overflow-x: hidden; } .header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; background: linear-gradient(90deg, #015c2d 0%, #017439 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: var(--secondary); font-size: 30px; font-weight: 800; letter-spacing: 1px; text-decoration: none; line-height: 1; text-transform: lowercase; } .logo:hover { color: var(--btn-text); } .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; text-decoration: none; font-weight: 700; border-radius: 6px; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; cursor: pointer; line-height: 1.2; } .btn:hover { transform: translateY(-1px); filter: brightness(1.08); } .desktop-nav-buttons .btn { padding: 10px 22px; font-size: 15px; } .btn-login { background: var(--login-color); color: var(--btn-text); box-shadow: 0 2px 8px rgba(195,8,8,0.45); } .btn-register { background: var(--register-color); color: var(--btn-text); box-shadow: 0 2px 8px rgba(195,8,8,0.45); } .header-mobile-bar { display: none; } .logo-mobile { color: var(--secondary); font-size: 24px; font-weight: 800; text-decoration: none; text-transform: lowercase; } .hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 6px; z-index: 1001; } .hamburger-menu span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--secondary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; } .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger-menu.active span:nth-child(2) { opacity: 0; } .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } .main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; background: #01582b; border-top: 1px solid rgba(255,255,255,0.12); } .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; gap: 4px; padding: 0 20px; flex-wrap: nowrap; } .nav-container a { color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 4px; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; } .nav-container a:hover { background: rgba(255,255,255,0.16); color: var(--btn-text); } .nav-container a.active { background: var(--btn-text); color: #01582b; } .nav-overlay { display: none; } .site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 0; margin: 0; overflow-x: hidden; } .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; } .footer-top { padding: 40px 0 24px; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } .footer-col { min-width: 0; } .footer-logo { display: inline-block; color: var(--footer-heading-color); font-size: 28px; font-weight: 800; text-decoration: none; margin-bottom: 12px; text-transform: lowercase; } .footer-logo:hover { color: var(--btn-text); } .footer-description { font-size: 14px; line-height: 1.65; color: var(--footer-text); word-wrap: break-word; overflow-wrap: break-word; margin: 0 0 12px; } .footer-heading { font-size: 16px; color: var(--footer-heading-color); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--primary); display: inline-block; } .footer-nav { list-style: none; padding: 0; margin: 0; } .footer-nav li { margin-bottom: 8px; } .footer-nav a { color: var(--footer-text); text-decoration: none; font-size: 14px; transition: color 0.2s ease; } .footer-nav a:hover { color: var(--btn-text); text-decoration: underline; } .footer-slot-anchor-inner { min-height: 1px; width: 100%; } .footer-mid { padding: 8px 0; } .footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .footer-bottom { background: #062615; padding: 16px 0; margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.1); } .footer-copyright { margin: 0; text-align: center; font-size: 13px; color: #c9e6d5; } .footer-copyright span { color: var(--btn-text); font-weight: 700; } @media (max-width: 768px) { :root { --header-offset: 110px; } .header-top { display: none !important; } .header-mobile-bar { display: flex !important; align-items: center; justify-content: space-between; width: 100%; height: 60px; min-height: 60px; box-sizing: border-box; padding: 0 15px; background: linear-gradient(90deg, #015c2d 0%, #017439 100%); } .logo-mobile { flex: 1; text-align: center; display: flex; align-items: center; justify-content: center; } .hamburger-menu { display: block; flex: 0 0 auto; order: -1; } .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 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background: var(--primary); } .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: 85%; max-width: 320px; height: 100vh; min-height: 100vh; flex-direction: column; justify-content: flex-start; align-items: stretch; background: #01582b; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1002; padding-top: 20px; overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,0.4); } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { flex-direction: column; align-items: stretch; width: 100%; max-width: none; height: auto; padding: 10px 16px; gap: 4px; } .nav-container a { width: 100%; padding: 12px 14px; font-size: 15px; border-radius: 6px; } .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.55); z-index: 1000; } .nav-overlay.active { display: block; } body.no-scroll { overflow: hidden; } .footer-top-grid { grid-template-columns: 1fr; gap: 24px; } .footer-mid-grid { grid-template-columns: 1fr; gap: 12px; } .footer-container { padding: 0 16px; } .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;
}
