:root { --primary: #017439; --primary-dark: #015a2c; --primary-light: #e6f4ed; --secondary: #FFFFFF; --accent: #C30808; --accent-dark: #a00606; --accent-text: #FFFF00; --header-offset: 122px; --header-top-bg: var(--primary); --main-nav-bg: var(--primary-dark); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Arial, sans-serif; }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--secondary); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); }
.header-top { background: var(--header-top-bg); width: 100%; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; min-height: 68px; }
.logo { color: var(--secondary); font-size: 28px; font-weight: 800; text-decoration: none; letter-spacing: 1px; display: inline-block; text-transform: uppercase; }
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.btn { text-decoration: none; padding: 10px 24px; border-radius: 6px; font-weight: 700; transition: all 0.3s ease; display: inline-block; }
.btn-login { background: var(--accent); color: var(--accent-text); }
.btn-login:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-register { background: var(--accent); color: var(--accent-text); }
.btn-register:hover { background: var(--accent-dark); transform: translateY(-2px); }
.main-nav { background: var(--main-nav-bg); width: 100%; display: flex; min-height: 52px; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; width: 100%; padding: 0 20px; }
.nav-link { color: var(--secondary); text-decoration: none; padding: 12px 16px; font-weight: 600; transition: background 0.3s ease, color 0.3s ease; white-space: nowrap; }
.nav-link:hover { background: rgba(255, 255, 255, 0.15); }
.nav-link.active { background: rgba(255, 255, 255, 0.2); border-bottom: 3px solid var(--accent-text); }
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger-line { display: block; width: 24px; height: 3px; background: var(--secondary); margin: 5px 0; transition: all 0.3s ease; }
.mobile-nav-buttons { display: none; }
.mobile-menu-overlay { display: none; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-container { width: 100%; max-width: none; padding: 0 15px; min-height: 60px; justify-content: space-between; position: relative; }
  .logo { font-size: 22px; position: absolute; left: 50%; transform: translateX(-50%); }
  .hamburger-menu { display: block; order: -1; }
  .desktop-nav-buttons { display: none; }
  .mobile-nav-buttons { display: flex; justify-content: center; gap: 10px; background: var(--primary); padding: 6px 10px; min-height: 48px; }
  .mobile-nav-buttons .btn { padding: 8px 20px; font-size: 14px; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; width: 80%; max-width: 320px; height: 100vh; background: var(--primary-dark); flex-direction: column; align-items: flex-start; padding-top: 70px; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 10px; width: 100%; }
  .nav-link { width: 100%; padding: 14px 20px; }
  .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; }
  .mobile-menu-overlay.active { display: block; }
  .hamburger-menu.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
  body.no-scroll { overflow: hidden; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }
}
.site-footer { background: #1a1a2e; color: var(--secondary); padding: 50px 20px 0; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-logo { color: var(--secondary); font-size: 24px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.footer-brand p { color: rgba(255, 255, 255, 0.8); line-height: 1.7; margin-top: 15px; font-size: 14px; }
.footer-title { color: var(--secondary); font-size: 18px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: #C30808; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.3s ease, padding-left 0.3s; }
.footer-links a:hover { color: #FFFFFF; padding-left: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
