:root { --primary: #017439; --primary-light: #018a43; --primary-dark: #00532a; --secondary: #ffffff; --accent-red: #C30808; --accent-yellow: #FFFF00; --text-dark: #222222; --text-light: #f8f9fa; --shadow-sm: 0 2px 8px rgba(0,0,0,0.1); --shadow-md: 0 4px 16px rgba(0,0,0,0.12); --shadow-lg: 0 8px 30px rgba(0,0,0,0.15); --transition-normal: all 0.3s ease-in-out; --header-offset: 122px; } body { padding-top: var(--header-offset); margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #FFFFFF; color: var(--text-dark); line-height: 1.6; overflow-x: hidden; } @media (max-width: 768px) { :root { --header-offset: 164px; } body { padding-top: var(--header-offset); overflow-x: hidden; } .page-content img { max-width: 100% !important; height: auto !important; display: block; } .page-content { overflow-x: hidden; max-width: 100%; } } a { text-decoration: none; color: inherit; } .site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); } .header-top { background: var(--primary); width: 100%; min-height: 60px; } .header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; width: 100%; box-sizing: border-box; min-height: 60px; } .logo { display: block; font-size: 1.9rem; font-weight: 900; color: var(--secondary); letter-spacing: 1px; line-height: 1.2; transition: transform 0.2s ease; white-space: nowrap; } .logo:hover { transform: scale(1.03); } .logo-text { display: inline-block; } .logo-highlight { color: var(--accent-yellow); } .header-actions { display: flex; gap: 10px; align-items: center; } .btn-header { display: inline-block; padding: 8px 22px; border-radius: 4px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.3px; transition: var(--transition-normal); cursor: pointer; white-space: nowrap; color: var(--secondary); } .btn-login { background: var(--accent-red); border: 2px solid transparent; color: var(--accent-yellow); } .btn-login:hover { background: #a00606; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(192, 8, 8, 0.3); } .btn-register { background: var(--accent-red); border: 2px solid var(--accent-yellow); color: var(--accent-yellow); animation: pulse-register 1.5s infinite; } .btn-register:hover { background: #a00606; transform: translateY(-2px); box-shadow: 0 0 15px rgba(255, 255, 0, 0.2); } @keyframes pulse-register { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 8, 8, 0.5); } 50% { box-shadow: 0 0 12px 4px rgba(192, 8, 8, 0.3); } } .main-nav { background: var(--secondary); width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; border-top: 1px solid rgba(0,0,0,0.05); } .nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 0px; padding: 0 20px; flex-wrap: wrap; width: 100%; box-sizing: border-box; min-height: 48px; } .nav-link { display: inline-block; padding: 8px 12px; color: #333; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; white-space: nowrap; } .nav-link:hover, .nav-link:focus { color: var(--primary); border-color: var(--primary); } .nav-link.active { color: var(--primary); border-color: var(--primary); } .mobile-nav-buttons { display: none; } .hamburger-menu { display: none; } .mobile-menu-overlay { display: none; } @media (min-width: 769px) { .nav-link:first-child { padding-left: 0; } } @media (max-width: 768px) { .site-header { min-height: 0; } .header-top { min-height: 52px; } .header-container { max-width: none; width: 100%; padding: 8px 12px; min-height: 52px; position: relative; } .logo { font-size: 1.6rem; flex-grow: 1; text-align: center; } .header-actions { display: none; } .mobile-nav-buttons { display: flex; background: var(--primary-dark); width: 100%; padding: 6px 12px; gap: 8px; justify-content: center; align-items: center; box-sizing: border-box; min-height: 48px; } .btn-header { display: inline-block; padding: 8px 18px; font-size: 0.8rem; text-align: center; } .mobile-nav-buttons .btn-header { flex: 1; max-width: 200px; } .main-nav { display: none; position: fixed; left: 0; top: 0; width: 280px; height: 100vh; background: var(--secondary); flex-direction: column; align-items: flex-start; justify-content: flex-start; box-shadow: 4px 0 30px rgba(0,0,0,0.2); z-index: 1002; transform: translateX(-100%); transition: transform 0.3s ease-in-out; padding-top: 16px; overflow-y: auto; min-height: 100vh; } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { max-width: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 0; margin: 0; gap: 0; min-height: auto; } .nav-link { display: block; width: 100%; color: #333; font-size: 0.9rem; font-weight: 500; padding: 12px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); border-bottom: none; text-align: left; white-space: normal; text-transform: none; } .nav-link:hover { color: var(--primary); background: #f8f9fa; } .nav-link:first-child { padding-top: 8px; } .hamburger-menu { display: flex; position: fixed; top: 8px; left: 8px; width: 40px; height: 40px; background-color: #ffffff; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; z-index: 2000; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .hamburger-line { display: block; background-color: var(--primary); width: 20px; height: 2px; border-radius: 2px; transition: all 0.3s ease; } .hamburger-menu.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background-color: var(--primary); } .hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; } .hamburger-menu.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); background-color: var(--primary); } .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; } .mobile-menu-overlay.active { display: block; } } .site-footer { background: #1a1a1a; color: rgba(255, 255, 255, 0.9); padding: 0; margin-top: auto; font-size: 0.85rem; } .footer-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; box-sizing: border-box; } .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; } .footer-col { display: flex; flex-direction: column; align-items: flex-start; } .footer-logo { font-size: 1.6rem; font-weight: 900; color: var(--secondary); margin-bottom: 12px; display: inline-block; } .footer-logo-highlight { color: var(--accent-yellow); } .footer-description { line-height: 1.6; font-size: 0.8rem; color: rgba(255,255,255,0.7); } .footer-title { color: var(--secondary); font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); } .footer-nav { display: flex; flex-direction: column; gap: 10px; } .footer-link { color: rgba(255, 255, 255, 0.65); transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; padding: 0; } .footer-link:hover { color: var(--secondary); padding-left: 5px; } .footer-bottom { background: #111111; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 0; } .footer-bottom-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; } .copyright { color: rgba(255, 255, 255, 0.5); line-height: 1.4; } .footer-quote { color: rgba(255, 255, 255, 0.5); line-height: 1.4; font-size: 0.75rem; } @media (max-width: 768px) { .site-footer { font-size: 0.8rem; } .footer-container { padding: 30px 16px; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .footer-logo { font-size: 1.4rem; } .footer-title { font-size: 0.9rem; margin-bottom: 12px; } .footer-bottom-container { flex-direction: column; justify-content: center; text-align: center; padding: 0 16px; gap: 6px; } .copyright, .footer-quote { text-align: center; width: 100%; } } @media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } .footer-col { width: 100%; } .footer-nav { flex-direction: column; gap: 6px; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
