:root { --header-offset: 122px; --primary: #017439; --secondary: #FFFFFF; --btn-bg: #C30808; --btn-text: #FFFF00; } * { 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 12px rgba(0,0,0,0.15); background-color: var(--secondary); } .header-top { height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); width: 100%; } .header-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-left: 25px; padding-right: 25px; } .logo { color: var(--secondary); font-size: 28px; font-weight: 800; text-decoration: none; letter-spacing: 1px; white-space: nowrap; line-height: 1; } .logo:hover { color: #c8f0d8; } .desktop-nav-buttons { display: flex; gap: 12px; align-items: center; } .btn { display: inline-block; padding: 10px 22px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; transition: all 0.25s ease; border: 2px solid transparent; white-space: nowrap; } .btn-login, .btn-register { background-color: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); } .btn-login:hover, .btn-register:hover { background-color: #9a0606; border-color: #9a0606; color: var(--btn-text); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(195,8,8,0.45); } .mobile-nav-buttons { display: none; min-height: 48px; } .hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; z-index: 1101; } .hamburger-line { display: block; width: 26px; height: 3px; background-color: var(--secondary); border-radius: 2px; transition: all 0.3s ease; } .hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; } .hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } .main-nav { height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #02622f; width: 100%; } .nav-container { height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 2px; } .nav-link { color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 4px; transition: background-color 0.25s ease, color 0.25s ease; white-space: nowrap; } .nav-link:hover, .nav-link.active { background-color: #ffffff; color: var(--primary); } .nav-overlay { display: none; } @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: 15px; padding-right: 15px; } .logo { font-size: 22px; flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !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: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: 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; } .hamburger-menu { display: flex; } .main-nav { display: none; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 82%; max-width: 320px; height: calc(100vh - var(--header-offset)); min-height: auto; background-color: #02622f; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; z-index: 1050; padding: 10px 0; } .main-nav.active { display: block; transform: translateX(0); } .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; width: 100%; max-width: none; padding: 0; gap: 0; } .nav-link { display: block; width: 100%; padding: 14px 20px; font-size: 15px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.1); } .nav-overlay { display: block; position: fixed; top: var(--header-offset); left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 1040; } .nav-overlay.active { opacity: 1; visibility: visible; } body.no-scroll { overflow: hidden; } .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-color: #014d26; color: #e8f5ee; padding: 0; margin-top: 40px; } .footer-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px 0; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.15); } .footer-col { min-width: 0; } .footer-about { display: flex; flex-direction: column; gap: 14px; } .footer-logo { color: var(--secondary); font-size: 26px; font-weight: 800; text-decoration: none; letter-spacing: 1px; display: inline-block; } .footer-logo:hover { color: #c8f0d8; } .footer-description { font-size: 14px; line-height: 1.7; color: #cfe6da; margin: 0; word-wrap: break-word; overflow-wrap: break-word; } .footer-heading { color: var(--secondary); font-size: 16px; font-weight: 700; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.5px; } .footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; } .footer-nav li a { color: #cfe6da; text-decoration: none; font-size: 14px; transition: color 0.2s ease; display: inline-block; } .footer-nav li a:hover { color: var(--btn-text); } .footer-dynamic-col { min-height: 1px; } .footer-slot-anchor, .footer-slot-anchor-inner { min-height: 1px; } .footer-mid-section { padding: 20px 0; } .footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } .footer-bottom { padding: 22px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.15); } .footer-copyright { margin: 0; font-size: 13px; color: #b8d4c5; } @media (max-width: 768px) { .footer-container { padding: 30px 15px 0; } .footer-top-grid { grid-template-columns: 1fr; gap: 24px; } .footer-mid-grid { grid-template-columns: repeat(2, 1fr); } .footer-logo { font-size: 22px; } .footer-heading { font-size: 15px; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
