:root { --header-offset: 122px; --primary: #017439; --secondary: #FFFFFF; --accent-red: #C30808; --accent-yellow: #FFFF00; --text-dark: #333333; --border-light: #e5e5e5; } *, *::before, *::after { box-sizing: border-box; } html { margin: 0; padding: 0; } body { margin: 0; padding: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--text-dark); background-color: #FFFFFF; line-height: 1.5; } .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: #FFFFFF; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); } .header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); } .header-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-left: 24px; padding-right: 24px; } .logo { display: inline-block; text-decoration: none; font-size: 30px; font-weight: 800; letter-spacing: 1px; color: var(--secondary); line-height: 1; flex-shrink: 0; } .logo:hover { color: var(--accent-yellow); } .desktop-nav-buttons { display: flex; align-items: center; gap: 12px; flex-shrink: 0; } .mobile-nav-buttons { display: none; } .btn { display: inline-block; text-decoration: none; text-align: center; font-weight: 700; border-radius: 6px; padding: 10px 22px; font-size: 15px; line-height: 1.2; border: none; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease; white-space: nowrap; } .btn:hover { transform: translateY(-1px); } .btn-login { background-color: var(--accent-red); color: var(--accent-yellow); border: 2px solid var(--accent-yellow); } .btn-login:hover { background-color: #a00606; color: var(--accent-yellow); } .btn-register { background-color: var(--accent-red); color: var(--accent-yellow); border: 2px solid var(--accent-yellow); } .btn-register:hover { background-color: #a00606; color: var(--accent-yellow); } .hamburger-menu { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 0; flex-shrink: 0; z-index: 1001; } .hamburger-menu span { display: block; width: 26px; 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); } .main-nav { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #014f28; } .nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; padding: 0 20px; } .nav-link { display: inline-block; text-decoration: none; color: var(--secondary); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 4px; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; } .nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.18); color: var(--accent-yellow); } .site-footer { background-color: #012d16; color: #d8e8df; margin-top: 40px; } .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; } .footer-top { padding: 40px 0 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 16px; } .footer-col { min-width: 0; } .footer-logo { display: inline-block; text-decoration: none; color: var(--secondary); font-size: 28px; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; } .footer-logo:hover { color: var(--accent-yellow); } .footer-description { font-size: 14px; line-height: 1.7; color: #b7cfc1; margin: 0 0 12px; overflow-wrap: break-word; word-wrap: break-word; } .footer-heading { font-size: 16px; font-weight: 700; color: var(--secondary); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; } .footer-nav { list-style: none; margin: 0; padding: 0; } .footer-nav li { margin-bottom: 9px; } .footer-nav a { text-decoration: none; color: #b7cfc1; font-size: 14px; line-height: 1.5; transition: color 0.2s ease; display: inline-block; } .footer-nav a:hover { color: var(--accent-yellow); } .footer-dynamic-col { min-width: 0; } .footer-mid { padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); } .footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 12px 0; } .footer-slot-anchor-inner { min-height: 1px; } .footer-bottom { background-color: #001f0f; padding: 18px 0; text-align: center; } .footer-copyright { margin: 0; font-size: 13px; color: #9dbbaa; } .no-scroll { overflow: hidden !important; } .nav-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .nav-overlay.active { opacity: 1; visibility: visible; } @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; justify-content: space-between; position: relative; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: flex-start !important; font-size: 26px; order: 2; } .hamburger-menu { display: flex; order: 1; position: relative; z-index: 1001; } .desktop-nav-buttons { display: none !important; } .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; min-height: 48px; box-sizing: border-box; padding: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #014f28; } .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 { display: none; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh; min-height: 100vh; flex-direction: column; justify-content: flex-start; align-items: stretch; background-color: #012d16; padding: 80px 0 24px; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1002; } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; width: 100%; max-width: none; padding: 0 12px; gap: 0; } .nav-link { display: block; width: 100%; padding: 14px 16px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; } .footer-top { padding: 28px 0 16px; } .footer-container { padding: 0 16px; } .footer-top-grid { grid-template-columns: 1fr; gap: 20px; } .footer-mid-grid { grid-template-columns: 1fr 1fr; } .footer-heading { font-size: 15px; } .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;
}
