:root { --header-offset: 122px; --primary: #017439; --secondary: #FFFFFF; --btn-login: #C30808; --btn-register: #C30808; --btn-text: #FFFF00; --text-dark: #222222; --text-light: #FFFFFF; --footer-bg: #033d21; --footer-text: #e6f2eb; } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; padding-top: var(--header-offset); font-family: Arial, Helvetica, sans-serif; color: var(--text-dark); background-color: var(--secondary); } .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--primary); box-shadow: 0 3px 10px rgba(0,0,0,0.25); border-bottom: 1px solid rgba(255,255,255,0.15); overflow-x: hidden; } .header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: 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; font-size: 26px; font-weight: 800; letter-spacing: 0.5px; color: var(--secondary); text-decoration: none; line-height: 1; } .logo:hover { color: #d7ffe9; } .desktop-nav-buttons { display: flex; gap: 12px; align-items: center; } .btn { display: inline-block; text-decoration: none; text-align: center; font-weight: 700; border-radius: 6px; padding: 10px 20px; font-size: 15px; line-height: 1.2; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; cursor: pointer; border: none; } .btn-login, .btn-register { background-color: var(--btn-login); color: var(--btn-text); box-shadow: 0 2px 6px rgba(0,0,0,0.3); } .btn-register { background-color: var(--btn-register); } .btn-login:hover, .btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.4); filter: brightness(1.1); } .hamburger-menu { display: none; } .mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; } .main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #02602f; width: 100%; border-top: 1px solid rgba(255,255,255,0.08); } .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; flex-wrap: wrap; padding: 0 20px; gap: 4px; } .nav-link { display: inline-block; color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; } .nav-link:hover { background-color: rgba(255,255,255,0.15); color: #FFFF00; } .nav-overlay { display: none; position: fixed; inset: 0; background-color: rgba(0,0,0,0.55); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .nav-overlay.active { opacity: 1; visibility: visible; } .site-footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 40px 20px 0; margin-top: 40px; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto 30px; } .footer-col { min-width: 0; } .footer-about { display: flex; flex-direction: column; gap: 12px; } .footer-logo { display: inline-block; font-size: 24px; font-weight: 800; color: var(--secondary); text-decoration: none; letter-spacing: 0.5px; } .footer-logo:hover { color: #FFFF00; } .footer-description { font-size: 14px; line-height: 1.6; color: #cfe6d8; margin: 0; word-wrap: break-word; overflow-wrap: break-word; } .footer-title { font-size: 16px; font-weight: 700; color: var(--secondary); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid #FFFF00; display: inline-block; } .footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; } .footer-nav li a { color: #cfe6d8; text-decoration: none; font-size: 14px; transition: color 0.2s ease; word-wrap: break-word; overflow-wrap: break-word; } .footer-nav li a:hover { color: #FFFF00; text-decoration: underline; } .footer-slot-anchor-inner { display: block; min-height: 1px; } .footer-mid { max-width: 1200px; margin: 0 auto 20px; } .footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; } .footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 16px 20px; text-align: center; background-color: #022b17; } .footer-copyright { margin: 0; font-size: 13px; color: #b9d6c4; } @media (max-width: 768px) { :root { --header-offset: 110px; } body { padding-top: var(--header-offset); overflow-x: hidden; } .header-top { min-height: 60px !important; height: 60px !important; } .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; height: 100%; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; text-align: center; font-size: 22px; } .desktop-nav-buttons { display: none !important; } .hamburger-menu { display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 30px; height: 30px; background: transparent; border: none; padding: 0; cursor: pointer; z-index: 1001; position: relative; } .hamburger-menu span { display: block; width: 24px; height: 3px; background-color: var(--secondary); 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); } .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; } .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; display: none; position: fixed; top: var(--header-offset); left: 0; width: 100%; max-width: 100%; background-color: #02602f; z-index: 1001; flex-direction: column; align-items: stretch; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; } .main-nav.active { display: block; transform: translateX(0); } .nav-container { width: 100%; max-width: none; padding: 10px 15px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; height: auto; } .nav-link { display: block; padding: 12px 14px; font-size: 15px; white-space: normal; border-bottom: 1px solid rgba(255,255,255,0.08); } .nav-overlay { display: block; } .footer-top-grid { grid-template-columns: 1fr; gap: 20px; } .footer-mid-grid { grid-template-columns: repeat(2, 1fr); } .footer-bottom { padding: 14px 15px; } .page-content img { max-width: 100% !important; height: auto !important; display: block; } .page-content { overflow-x: hidden; max-width: 100%; } } @media (max-width: 480px) { .footer-mid-grid { grid-template-columns: 1fr; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
