:root { --header-offset: 122px; --primary: #017439; --secondary: #FFFFFF; --btn-login: #C30808; --btn-register: #C30808; --btn-text: #FFFF00; } * { box-sizing: border-box; } body { margin: 0; padding-top: var(--header-offset); overflow-x: hidden; } .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 { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; background-color: #01522a; } .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: 30px; padding-right: 30px; position: relative; } .logo { display: inline-block; font-size: 26px; font-weight: 800; color: var(--secondary); text-decoration: none; letter-spacing: 0.5px; 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; padding: 10px 22px; font-size: 15px; line-height: 1.2; border: none; cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease; white-space: nowrap; } .btn:hover { transform: translateY(-2px); filter: brightness(1.1); } .btn-login { background-color: var(--btn-login); color: var(--btn-text); } .btn-register { background-color: var(--btn-register); color: var(--btn-text); } .main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; background-color: #017439; border-top: 1px solid rgba(255, 255, 255, 0.15); } .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; } .nav-link { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; color: var(--secondary); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; } .nav-link:hover { color: #FFFF00; border-bottom-color: #FFFF00; background-color: rgba(255, 255, 255, 0.08); } .nav-link.active { color: #FFFF00; border-bottom-color: #FFFF00; } .hamburger-menu { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; } .hamburger-menu span { display: block; width: 26px; height: 3px; background-color: #FFFFFF; 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); } .site-footer { background-color: #012b16; color: #FFFFFF; padding: 40px 20px 0; font-size: 15px; line-height: 1.6; } .footer-top-row { max-width: 1200px; margin: 0 auto 20px; } .footer-top-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); } .footer-col { min-width: 0; } .footer-logo { display: inline-block; font-size: 24px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 12px; } .footer-logo:hover { color: #FFFF00; } .footer-description { color: #cfd8d3; margin: 0; word-wrap: break-word; overflow-wrap: break-word; } .footer-heading { color: #FFFFFF; font-size: 17px; font-weight: 700; margin: 0 0 12px; } .footer-nav { list-style: none; padding: 0; margin: 0; } .footer-nav li { margin-bottom: 8px; } .footer-nav a { color: #cfd8d3; text-decoration: none; transition: color 0.2s ease; } .footer-nav a:hover { color: #FFFF00; text-decoration: underline; } .footer-mid-row { max-width: 1200px; margin: 0 auto; padding: 20px 0; } .footer-mid-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 0; } .footer-mid-col { min-width: 0; } .footer-slot-anchor-inner { min-height: 1px; } .footer-bottom { max-width: 1200px; margin: 20px auto 0; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.15); text-align: center; color: #a8b8af; font-size: 14px; } .footer-bottom p { margin: 0; } .no-scroll { overflow: hidden; } .nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; display: none; } .nav-overlay.active { display: block; } @media (max-width: 768px) { :root { --header-offset: 110px; } .header-top { min-height: 60px !important; height: 60px !important; } .header-container { width: 100%; max-width: none; padding-left: 10px; padding-right: 10px; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 22px; } .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; } .hamburger-menu { display: flex; position: relative; z-index: 1001; flex-shrink: 0; } .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: #01522a; } .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 { min-height: 48px !important; height: 48px !important; position: fixed; top: 0; left: 0; width: 85%; max-width: 320px; height: 100vh !important; min-height: 100vh !important; background-color: #01522a; z-index: 1000; display: none; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; padding-top: 20px; box-shadow: 4px 0 16px rgba(0, 0, 0, 0.3); } .main-nav.active { display: block; transform: translateX(0); } .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; padding: 60px 15px 20px; width: 100%; max-width: none; height: auto; } .nav-link { display: block; width: 100%; height: auto; padding: 14px 12px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); border-left: 3px solid transparent; } .nav-link:hover, .nav-link.active { border-bottom-color: rgba(255, 255, 255, 0.12); border-left-color: #FFFF00; background-color: rgba(255, 255, 255, 0.08); } .footer-top-grid { grid-template-columns: 1fr; gap: 24px; } .footer-mid-grid { grid-template-columns: 1fr 1fr; } .site-footer { padding: 30px 15px 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; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
