:root { --header-offset: 122px; --primary: #017439; --secondary: #FFFFFF; --btn-red: #C30808; --btn-yellow: #FFFF00; --footer-bg: #0a2e1f; --footer-text: #e8f5ec; --footer-muted: #a8c9b8; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.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: 32px; padding-right: 32px; }
.logo { font-size: 28px; font-weight: 800; color: var(--secondary); text-decoration: none; letter-spacing: 1px; display: inline-block; white-space: nowrap; }
.logo:hover { color: #c7f0d8; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-block; text-decoration: none; text-align: center; border-radius: 6px; font-weight: 700; cursor: pointer; border: 2px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; white-space: nowrap; }
.btn-login { background-color: var(--btn-red); color: var(--btn-yellow); padding: 9px 22px; font-size: 15px; box-shadow: 0 3px 10px rgba(195,8,8,0.4); }
.btn-login:hover { background-color: #a00606; transform: translateY(-2px); box-shadow: 0 5px 14px rgba(195,8,8,0.55); }
.btn-register { background-color: var(--btn-red); color: var(--btn-yellow); padding: 9px 22px; font-size: 15px; box-shadow: 0 3px 10px rgba(195,8,8,0.4); }
.btn-register:hover { background-color: #a00606; transform: translateY(-2px); box-shadow: 0 5px 14px rgba(195,8,8,0.55); }
.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: #015f2e; width: 100%; }
.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; padding: 0 20px; gap: 4px; flex-wrap: nowrap; }
.nav-link { color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 11px; border-radius: 5px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background-color: var(--secondary); color: var(--primary); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; width: 44px; height: 44px; position: relative; z-index: 1002; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.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); }
.nav-overlay { display: none; position: fixed; inset: 0; background-color: rgba(0,0,0,0.55); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.nav-overlay.active { display: block; opacity: 1; }
body.no-scroll { overflow: hidden; }
.site-footer { background-color: var(--footer-bg); color: var(--footer-text); font-size: 14px; line-height: 1.6; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { padding: 48px 0 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col { min-width: 0; }
.footer-about { grid-column: span 1; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: var(--secondary); text-decoration: none; margin-bottom: 14px; letter-spacing: 1px; }
.footer-logo:hover { color: #9fe0b8; }
.footer-description { color: var(--footer-muted); margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; font-size: 13.5px; }
.footer-heading { color: var(--secondary); font-size: 16px; font-weight: 700; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: var(--footer-muted); text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; font-size: 13.5px; }
.footer-nav a:hover { color: var(--secondary); padding-left: 4px; }
.footer-dynamic-col { display: flex; flex-direction: column; }
.footer-slot-anchor, .footer-slot-anchor-inner { min-height: 0; }
.footer-mid { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-bottom { padding: 20px 0; text-align: center; background-color: rgba(0,0,0,0.25); }
.footer-copyright { margin: 0; color: var(--footer-muted); font-size: 13px; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 22px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .hamburger-menu { display: flex; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; min-height: 48px; align-items: center; width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--primary); }
  .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: 0; left: 0; width: 85%; max-width: 320px; height: 100vh !important; min-height: 100vh !important; background-color: #015f2e; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; padding-top: 20px; align-items: flex-start; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 10px 16px 30px; gap: 2px; }
  .nav-link { display: block; padding: 12px 14px; font-size: 15px; border-radius: 6px; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-about { grid-column: span 2; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-top { padding: 32px 0 24px; }
  .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: 480px) {
  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: span 1; }
  .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;
}
