:root { --header-offset: 122px; } body { padding-top: var(--header-offset); } .site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); min-height: auto; } .header-top { background-color: #ffffff; width: 100%; border-bottom: 1px solid #e0e0e0; } .header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-left: 20px; padding-right: 20px; min-height: 68px; } .logo { display: inline-block; font-size: 24px; font-weight: 800; color: #017439; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; } .btn { display: inline-block; padding: 10px 22px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 14px; text-transform: uppercase; transition: all 0.3s ease; } .btn-login { background-color: #C30808; color: #FFFF00; margin-right: 10px; border: none; } .btn-login:hover { background-color: #A00505; color: #FFFF00; box-shadow: 0 4px 12px rgba(195, 8, 8, 0.4); transform: translateY(-2px); } .btn-register { background-color: #C30808; color: #FFFF00; border: none; } .btn-register:hover { background-color: #A00505; color: #FFFF00; box-shadow: 0 4px 12px rgba(195, 8, 8, 0.4); transform: translateY(-2px); } .desktop-nav-buttons { display: flex; align-items: center; margin-left: auto; } .hamburger-menu { display: none; } .main-nav { display: block; background-color: #017439; width: 100%; } .nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; padding: 10px 20px; flex-wrap: nowrap; overflow-x: hidden; } .nav-container a { color: #ffffff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 15px; display: block; white-space: nowrap; border-radius: 4px; transition: background-color 0.3s; } .nav-container a:hover { background-color: #015a2d; } .mobile-nav-buttons { display: none; } .mobile-menu-overlay { display: none; } .site-footer { background-color: #1a1a2e; color: #ffffff; padding: 40px 0 20px; } .footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding: 0 20px; } .footer-column { flex: 1 1 250px; } .footer-column h4 { color: #FFD700; margin-bottom: 15px; font-size: 18px; } .footer-column p { color: #b0b0b0; font-size: 14px; line-height: 1.6; } .footer-nav { display: flex; flex-direction: column; gap: 8px; } .footer-nav a { color: #b0b0b0; text-decoration: none; font-size: 14px; transition: color 0.3s; } .footer-nav a:hover { color: #FFD700; } .copyright-text { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2a2a40; color: #b0b0b0; font-size: 14px; } .copyright-text a { color: #FFD700; text-decoration: none; } .page-content { max-width: 1200px; margin: 0 auto; padding: 60px 20px; } .page-content img { max-width: 100%; height: auto; display: block; } @media (max-width: 768px) { :root { --header-offset: 110px; } .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; min-height: 60px; } .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; } .logo { order: 2; font-size: 20px; } .hamburger-menu { display: block; order: 1; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; } .hamburger-menu span { display: block; width: 25px; height: 3px; background-color: #017439; margin: 5px 0; transition: all 0.3s ease; } .hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); } .hamburger-menu.active span:nth-child(2) { opacity: 0; } .hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); } .desktop-nav-buttons { display: none; } .mobile-nav-buttons { display: flex; justify-content: center; gap: 10px; padding: 8px 15px; background-color: #f8f8f8; border-bottom: 1px solid #e0e0e0; } .mobile-nav-buttons a { flex: 1; text-align: center; padding: 8px 10px; } .main-nav { display: none; position: fixed; top: 108px; left: 0; right: 0; width: 100%; height: auto; max-height: calc(100vh - 108px); overflow-y: auto; background-color: #017439; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s ease-in-out; } .main-nav.active { display: block; transform: translateX(0); } .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 10px 0; } .nav-container a { color: #ffffff; padding: 12px 20px; border-bottom: 1px solid #015a2d; text-align: center; white-space: normal; } .nav-container a:hover { background-color: #015a2d; } .mobile-menu-overlay { display: none; } .mobile-menu-overlay.active { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 999; } body.no-scroll { overflow: hidden; } .page-content { padding-top: 10px; } .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;
}
