:root { --header-offset: 122px; --primary: #017439; --secondary: #FFFFFF; --btn-red: #C30808; --btn-text-yellow: #FFFF00; --footer-bg: #0a3d24; --footer-text: #e8f5ee; } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; overflow-x: hidden; } .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.28); } .header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: var(--primary); 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; color: var(--secondary); font-size: 26px; font-weight: 800; letter-spacing: 0.5px; text-decoration: none; white-space: nowrap; } .logo:hover, .logo:focus { color: #b8f5d0; } .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; width: 100%; max-width: 100%; background: var(--primary); padding: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; align-items: center; justify-content: center; } .btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease; border: none; } .btn:hover { transform: translateY(-2px); filter: brightness(1.08); } .btn-login, .btn-register { background: var(--btn-red); color: var(--btn-text-yellow); padding: 10px 22px; font-size: 15px; min-height: 42px; } .main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: #021f10; width: 100%; } .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; padding: 0 20px; gap: 4px; } .nav-link { color: #d9f2e4; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 4px; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; } .nav-link:hover, .nav-link.active { background: var(--primary); color: #FFFFFF; } .hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; z-index: 1001; flex-direction: column; gap: 5px; align-items: center; justify-content: center; } .hamburger-menu span { display: block; width: 26px; height: 3px; background: #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); } .menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 999; opacity: 0; transition: opacity 0.3s ease; } .menu-overlay.active { display: block; opacity: 1; } @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 { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 20px; } .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; } .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; order: -1; } .main-nav { position: fixed; top: var(--header-offset); left: 0; width: 86%; max-width: 320px; height: auto; min-height: 0; display: none; flex-direction: column; background: #021f10; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; padding: 16px 0; box-shadow: 4px 0 18px rgba(0,0,0,0.35); overflow-y: auto; max-height: calc(100vh - var(--header-offset)); } .main-nav.active { display: block; transform: translateX(0); } .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; max-width: none; padding: 0 16px; gap: 4px; } .nav-link { display: block; width: 100%; padding: 12px 14px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.08); } .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: var(--footer-bg); color: var(--footer-text); padding: 0; margin-top: 40px; font-size: 14px; } .footer-top { padding: 46px 0 30px; } .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; } .footer-col { min-width: 0; } .footer-logo { display: inline-block; color: #FFFFFF; font-size: 24px; font-weight: 800; text-decoration: none; margin-bottom: 14px; } .footer-logo:hover { color: #b8f5d0; } .footer-description { color: #cfe8db; line-height: 1.7; margin: 0; word-wrap: break-word; overflow-wrap: break-word; } .footer-col-title { color: #FFFFFF; font-size: 16px; font-weight: 700; margin: 0 0 14px; letter-spacing: 0.3px; } .footer-nav { list-style: none; margin: 0; padding: 0; } .footer-nav li { margin-bottom: 9px; } .footer-nav a { color: #cfe8db; text-decoration: none; transition: color 0.2s ease; word-wrap: break-word; } .footer-nav a:hover { color: #FFFFFF; text-decoration: underline; } .footer-mid { padding: 10px 0 26px; } .footer-slot-anchor-inner { width: 100%; } .footer-bottom { background: #04241433; border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; background-color: #042414; } .footer-copyright { margin: 0; text-align: center; color: #b9d8c8; font-size: 13px; } @media (max-width: 768px) { .footer-top-grid { grid-template-columns: 1fr; gap: 26px; } .footer-container { padding: 0 16px; } .footer-top { padding: 34px 0 22px; } .footer-logo { font-size: 21px; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
