:root { --header-offset: 164px; --primary: #017439; --white: #FFFFFF; } body { padding-top: var(--header-offset); overflow-x: hidden; } .site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.15); font-family: Arial, sans-serif; } .header-top { background: #015c2e; width: 100%; } .header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-left: 30px; padding-right: 30px; min-height: 68px; box-sizing: border-box; } .logo { color: #FFD700; font-size: 32px; font-weight: 900; text-decoration: none; display: inline-block; letter-spacing: 1px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); flex-shrink: 0; } .desktop-nav-buttons { display: flex; gap: 10px; align-items: center; flex-shrink: 0; } .desktop-nav-buttons .btn { display: inline-block; text-decoration: none; padding: 10px 24px; border-radius: 30px; font-weight: 700; font-size: 14px; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.2); } .btn-login { background: #C30808; color: #FFFF00; } .btn-login:hover { background: #a00707; transform: translateY(-2px); } .btn-register { background: #C30808; color: #FFFF00; } .btn-register:hover { background: #a00707; transform: translateY(-2px); } .main-nav { background: #017439; width: 100%; display: flex; min-height: 52px; position: static; } .nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 10px; width: 100%; box-sizing: border-box; } .nav-menu { list-style: none; display: flex; flex-direction: row; gap: 0; margin: 0; padding: 0; } .nav-menu li { position: relative; } .nav-menu li a { display: block; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 700; padding: 16px 14px; transition: all 0.3s ease; letter-spacing: 0.3px; white-space: nowrap; } .nav-menu li a:hover { background: rgba(255,255,255,0.15); color: #FFFF00; } .hamburger-menu { display: none; } .mobile-menu-overlay { display: none; } .mobile-nav-buttons { display: none; } .site-footer { background: #015c2e; color: #FFFFFF; padding-top: 50px; margin-top: 60px; font-family: Arial, sans-serif; } .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 0 30px 40px; } .footer-column h3 { color: #FFD700; font-size: 28px; margin-bottom: 20px; } .footer-column h4 { color: #FFD700; font-size: 18px; margin-bottom: 15px; } .footer-column p { font-size: 14px; line-height: 1.6; color: #eee; } .footer-nav { list-style: none; padding: 0; margin: 0; } .footer-nav li { margin-bottom: 10px; } .footer-nav li a { color: #fff; text-decoration: none; font-size: 14px; transition: color 0.3s; } .footer-nav li a:hover { color: #FFD700; } .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 20px; font-size: 14px; color: #ccc; } @media (max-width: 768px) { :root { --header-offset: 146px; } .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; min-height: 60px; } .header-top { position: relative; } .header-container { justify-content: center; } .logo { font-size: 28px; } .desktop-nav-buttons { display: none; } .mobile-nav-buttons { display: flex; justify-content: center; gap: 10px; padding: 10px 15px; background: #015c2e; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; box-sizing: border-box; z-index: 1000; } .mobile-nav-buttons .btn { display: inline-block; text-decoration: none; padding: 10px 24px; border-radius: 30px; font-weight: 700; font-size: 14px; width: auto; min-width: 130px; text-align: center; } .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; position: absolute; left: 10px; top: 8px; z-index: 1001; background: transparent; border: none; padding: 0; } .hamburger-menu span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease; } .hamburger-menu.active span { background: #fff; } .hamburger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .hamburger-menu.active span:nth-child(2) { opacity: 0; } .hamburger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } .main-nav { display: none; flex-direction: column; position: fixed; top: 0; left: 0; width: 280px; height: 100vh; background: #017439; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; overflow-y: auto; padding-top: 80px; box-shadow: 2px 0 10px rgba(0,0,0,0.3); } .main-nav.active { display: block; transform: translateX(0); } .nav-container { width: 100%; max-width: none; padding: 0; justify-content: flex-start; } .nav-menu { flex-direction: column; width: 100%; } .nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.1); } .nav-menu li a { padding: 15px 20px; font-size: 15px; display: block; } .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999; } .mobile-menu-overlay.active { display: block; } .footer-container { grid-template-columns: 1fr; gap: 30px; padding: 0 20px 30px; } .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;
}
