:root { --header-offset: 122px; --primary: #017439; --secondary: #FFFFFF; --accent-red: #C30808; --accent-yellow: #FFFF00; }
* { box-sizing: border-box; }
body { padding-top: var(--header-offset); margin: 0; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 18px rgba(0,0,0,0.18); background: #FFFFFF; }
.site-header .header-top { height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #014d26 0%, #017439 100%); 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: 28px; padding-right: 28px; }
.logo { display: inline-block; color: #FFFFFF; font-size: 24px; font-weight: 800; letter-spacing: 0.5px; text-decoration: none; text-transform: none; white-space: nowrap; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.logo:hover { color: #FFFF00; }
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 8px; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; border: 1px solid transparent; text-align: center; line-height: 1.2; }
.btn-login { background: #C30808; color: #FFFF00; padding: 10px 22px; font-size: 14px; box-shadow: 0 3px 10px rgba(195,8,8,0.35); }
.btn-register { background: #C30808; color: #FFFF00; padding: 10px 22px; font-size: 14px; box-shadow: 0 3px 10px rgba(195,8,8,0.35); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.28); }
.mobile-nav-buttons { display: none; box-sizing: border-box; min-height: 48px; width: 100%; }

.main-nav { height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: #FFFFFF; width: 100%; border-top: 1px solid rgba(1,116,57,0.15); border-bottom: 3px solid #017439; }
.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; width: 100%; }
.nav-menu { display: flex; flex-direction: row; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; height: 100%; }
.nav-menu li { height: 100%; display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; color: #017439; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; transition: color 0.2s ease, background 0.2s ease; border-radius: 4px; }
.nav-link:hover, .nav-link.active { color: #FFFFFF; background: #017439; }
.hamburger-menu { display: none; }
.nav-overlay { display: none; }

/* ===== FOOTER ===== */
.site-footer { background: #0d2418; color: #e6f2ea; font-size: 14px; line-height: 1.7; margin-top: 40px; }
.footer-container { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 28px; width: 100%; }
.footer-top { padding: 44px 0 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; color: #FFFFFF; font-size: 22px; font-weight: 800; text-decoration: none; margin-bottom: 14px; letter-spacing: 0.4px; }
.footer-logo:hover { color: #FFFF00; }
.footer-description { color: #bcd6c6; margin: 0 0 8px; word-wrap: break-word; overflow-wrap: break-word; font-size: 13.5px; }
.footer-heading { color: #FFFFFF; font-size: 15px; margin: 0 0 14px; font-weight: 700; position: relative; padding-bottom: 8px; }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: #017439; border-radius: 2px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #bcd6c6; 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: #FFFF00; padding-left: 4px; }
.footer-mid { padding: 20px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 12px; }
.footer-mid-col { min-width: 0; }
.footer-slot-anchor-inner { width: 100%; }
.footer-bottom { background: #07160e; border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; text-align: center; }
.footer-copyright { margin: 0; color: #9bbfa8; font-size: 13px; }

/* ===== MOBILE ===== */
@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 { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 20px; }
  .logo img { max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; padding-left: 15px; padding-right: 15px; gap: 10px; flex-wrap: nowrap; overflow: hidden; }
  .mobile-nav-buttons .btn { flex: 1; min-width: 0; max-width: calc(50% - 5px); padding: 8px 12px; font-size: 13px; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; }

  .main-nav { height: 48px !important; min-height: 48px !important; position: relative; }
  .nav-container { width: 100%; max-width: none; padding-left: 12px; padding-right: 12px; justify-content: space-between; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
  .hamburger-menu span { display: block; width: 26px; height: 3px; background: #017439; 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-menu { display: none; flex-direction: column; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh; background: #FFFFFF; padding: 84px 20px 24px; margin: 0; gap: 0; overflow-y: auto; box-shadow: 6px 0 24px rgba(0,0,0,0.25); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; list-style: none; align-items: stretch; }
  .nav-menu.active { display: flex; transform: translateX(0); }
  .nav-menu li { height: auto; display: block; border-bottom: 1px solid rgba(1,116,57,0.1); }
  .nav-link { display: block; height: auto; padding: 14px 8px; font-size: 15px; color: #017439; border-radius: 0; }
  .nav-link:hover, .nav-link.active { background: #017439; color: #FFFFFF; }

  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 999; }
  .nav-overlay.active { opacity: 1; visibility: visible; }
  body.no-scroll { overflow: hidden; }

  .footer-top { padding: 30px 0 20px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-container { padding: 0 16px; }

  .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-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;
}
