:root { --primary: #017439; --secondary: #FFFFFF; --accent-register: #C30808; --accent-login: #C30808; --btn-text: #FFFF00; --header-offset: 122px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: #013a1c; box-shadow: 0 4px 18px rgba(0,0,0,0.35); border-bottom: 2px solid #025c2e; }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #012b14; 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; position: relative; }
.logo { display: inline-block; color: #FFFFFF; font-size: 22px; font-weight: 800; text-decoration: none; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.logo:hover { color: #FFFF00; }
.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; }
.mobile-nav-buttons { display: none; min-height: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 6px; padding: 10px 22px; font-size: 15px; color: var(--btn-text); border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; white-space: nowrap; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.35); filter: brightness(1.1); }
.btn-login { background: linear-gradient(135deg, #C30808 0%, #8c0505 100%); color: #FFFF00; box-shadow: 0 3px 10px rgba(195,8,8,0.45); }
.btn-register { background: linear-gradient(135deg, #C30808 0%, #8c0505 100%); color: #FFFF00; box-shadow: 0 3px 10px rgba(195,8,8,0.45); }
.hamburger-menu { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 22px; cursor: pointer; z-index: 1001; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: #FFFFFF; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #017439; 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; }
.nav-link { display: inline-block; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 11px; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background-color: #025c2e; color: #FFFF00; }
.nav-overlay { display: none; position: fixed; inset: 0; background-color: rgba(0,0,0,0.6); 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: #012b14; color: #d8e8dd; padding: 40px 20px 0; border-top: 4px solid #017439; }
.footer-top-row { max-width: 1200px; margin: 0 auto 20px; }
.footer-top-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; color: #FFFFFF; font-size: 22px; font-weight: 800; text-decoration: none; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px; }
.footer-logo:hover { color: #FFFF00; }
.footer-description { color: #b8d6c4; font-size: 14px; line-height: 1.7; margin: 0 0 10px; overflow-wrap: break-word; word-wrap: break-word; }
.footer-heading { color: #FFFFFF; font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid #017439; display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #b8d6c4; text-decoration: none; font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: #FFFF00; padding-left: 4px; }
.footer-mid-area { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-slot-bottom-wrap { max-width: 1200px; margin: 0 auto; }
.footer-slot-anchor-inner { display: block; min-height: 1px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.15); text-align: center; }
.footer-bottom p { margin: 0; color: #9fc4ad; font-size: 13px; line-height: 1.6; }
@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; }
  .logo { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 17px; max-width: calc(100% - 130px); }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .hamburger-menu { display: flex; position: relative; z-index: 1002; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #012b14; border-top: 1px solid #025c2e; }
  .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 { height: auto !important; min-height: 48px !important; display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px; background-color: #012b14; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 80px 0 30px; overflow-y: auto; z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.5); }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 0; flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; gap: 0; }
  .nav-link { display: block; width: 100%; box-sizing: border-box; padding: 14px 20px; font-size: 15px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-link:hover, .nav-link.active { background-color: #025c2e; color: #FFFF00; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 30px 15px 0; }
  .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;
}
