:root { --header-offset: 122px; --primary-color: #017439; --secondary-color: #FFFFFF; --btn-register-bg: #C30808; --btn-login-bg: #C30808; --btn-text-color: #FFFF00; --header-top-bg: #00532a; --nav-bg: #ffffff; --nav-text-color: #333333; --footer-bg: #014d26; --footer-text: #e0f2e9; --border-radius: 8px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding-top: var(--header-offset); background-color: var(--secondary-color); } a { text-decoration: none; } .site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); background-color: var(--header-top-bg); min-height: auto; } .header-top { background-color: var(--header-top-bg); width: 100%; min-height: 68px; display: flex; align-items: center; } .header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-left: 25px; padding-right: 25px; width: 100%; } .logo { font-size: 1.6rem; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: 1px; background: linear-gradient(135deg, #00c853, #e8f5e9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; white-space: nowrap; display: block; } .desktop-nav-buttons { display: flex; align-items: center; gap: 10px; } .btn { display: inline-block; padding: 10px 24px; border-radius: 50px; font-size: 0.95rem; font-weight: 700; text-decoration: none; transition: all 0.3s ease; border: 2px solid transparent; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); color: var(--btn-text-color); } .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); } .btn-register { background: var(--btn-register-bg); border-color: #a00505; color: var(--btn-text-color); } .btn-login { background: var(--btn-login-bg); border-color: #a00505; color: var(--btn-text-color); } .main-nav { width: 100%; background-color: var(--nav-bg); display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid #eee; } .nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; flex-wrap: wrap; gap: 0 5px; } .nav-container a { color: var(--nav-text-color); font-size: 0.95rem; font-weight: 600; padding: 12px 12px; transition: color 0.3s, background-color 0.3s; position: relative; display: inline-block; text-decoration: none; } .nav-container a:hover { color: var(--primary-color); } .nav-container a:hover::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; background: var(--primary-color); border-radius: 3px; } .hamburger-menu { display: none; cursor: pointer; border: none; background: transparent; flex-direction: column; gap: 6px; padding: 12px; z-index: 1002; align-self: center; } .hamburger-line { width: 26px; height: 3px; border-radius: 3px; background-color: #fff; transition: transform 0.3s ease, opacity 0.3s ease; } .hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); } .hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; } .hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); } .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 998; opacity: 0; transition: opacity 0.3s ease; } .mobile-menu-overlay.active { display: block; opacity: 1; } .mobile-nav-buttons { display: none; } .site-footer { background-color: var(--footer-bg); color: var(--footer-text); padding-top: 40px; margin-top: 40px; font-size: 0.95rem; } .footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; padding: 0 30px 30px; flex-wrap: wrap; align-items: flex-start; } .footer-column { min-width: 180px; } .footer-column.footer-info { flex: 2; } .footer-column.footer-links, .footer-column.footer-legal, .footer-column.footer-contact { flex: 1; } .footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; text-transform: uppercase; display: block; max-width: 80%; margin-bottom: 12px; } .footer-description { line-height: 1.7; color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; max-width: 85%; } .footer-heading { color: #00e676; font-size: 1.1rem; margin-bottom: 16px; text-transform: uppercase; font-weight: 700; } .footer-nav { list-style: none; padding: 0; } .footer-nav a { color: rgba(255, 255, 255, 0.9); display: block; padding: 6px 0; transition: all 0.3s ease; font-size: 0.95rem; text-decoration: none; } .footer-nav a:hover { color: #fff; padding-left: 8px; opacity: 1; } .footer-nav li { margin-bottom: 2px; } .footer-contact p { color: rgba(255, 255, 255, 0.9); line-height: 1.6; margin-bottom: 8px; } .footer-contact a { color: rgba(255, 255, 255, 0.9); transition: all 0.3s ease; } .footer-contact a:hover { color: #fff; } .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 20px; text-align: center; background-color: #003b1d; } .footer-bottom p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); } @media (max-width: 768px) { body { padding-top: 110px; } .site-header { min-height: auto; } .header-top { min-height: 60px; } .header-container { width: 100%; max-width: none; padding-left: 10px; padding-right: 10px; display: flex; align-items: center; padding-top: 4px; padding-bottom: 4px; } .logo { font-size: 1.1rem; flex: 1; text-align: center; max-width: calc(100vw - 100px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .desktop-nav-buttons { display: none; } .hamburger-menu { display: flex; order: -1; margin-left: 0; padding: 10px 8px; flex-shrink: 0; align-self: center; } .main-nav { display: none; position: fixed; top: 0; left: 0; width: 250px; height: 100vh; background-color: #fff; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); flex-direction: column; justify-content: flex-start; align-items: stretch; padding-top: 70px; z-index: 999; transform: translateX(-100%); transition: transform 0.4s ease-in-out; overflow-y: auto; min-height: 100vh; border-bottom: none; } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { width: 100%; max-width: none; padding: 10px; flex-direction: column; align-items: stretch; gap: 0; } .nav-container a { font-size: 1rem; padding: 14px 15px 14px 20px; border-bottom: 1px solid #f0f0f0; position: relative; text-decoration: none; width: 100%; } .nav-container a:hover { background-color: #f9f9fc; } .nav-container a:hover::after { content: none; } .mobile-nav-buttons { display: flex; justify-content: center; align-items: center; gap: 12px; background-color: #00532a; padding: 0 15px; width: 100%; position: relative; z-index: 1000; } .mobile-nav-buttons .btn { flex: 1; padding: 8px 16px; justify-content: center; display: inline-block; text-align: center; margin: 8px 0; } .mobile-menu-overlay.active { display: block; } .site-footer { padding-top: 30px; } .footer-container { padding: 0 20px 25px; flex-direction: column; gap: 24px; } .footer-column { width: 100%; min-width: 0; } .footer-logo { max-width: 100%; } .footer-description { max-width: 100%; } .footer-bottom { padding: 14px 12px; } .footer-bottom p { font-size: 0.85rem; } .page-content { overflow-x: hidden; max-width: 100%; } .page-content img { max-width: 100% !important; height: auto !important; display: block; } body { overflow-x: hidden; } } @media (max-width: 480px) { .header-container { padding-left: 8px; padding-right: 8px; } .logo { font-size: 1rem; max-width: calc(100vw - 100px); } .mobile-nav-buttons { gap: 8px; padding: 0 8px; } .footer-heading { font-size: 1rem; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
