:root { --header-offset: 122px; --primary: #017439; --secondary: #FFFFFF; --btn-bg: #C30808; --btn-text: #FFFF00; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); overflow-x: hidden; }

/* ===== 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; }

.header-top { width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; box-sizing: border-box; }
.header-container { 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; box-sizing: border-box; }

.logo { display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: 1px; color: var(--primary); text-decoration: none; line-height: 1; white-space: nowrap; }
.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-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 8px; padding: 10px 20px; font-size: 15px; font-weight: 700; line-height: 1.2; border: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-login, .btn-register { background-color: var(--btn-bg); color: var(--btn-text); box-shadow: 0 4px 12px rgba(195,8,8,0.35); }

.mobile-nav-buttons { display: none; min-height: 48px; box-sizing: border-box; }

.main-nav { width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); box-sizing: border-box; }
.nav-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; box-sizing: border-box; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 6px; flex-wrap: nowrap; }
.nav-list li { margin: 0; }
.nav-link { display: inline-block; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 6px; line-height: 1.2; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.nav-link:hover { background-color: rgba(255,255,255,0.16); }
.nav-link.active { background-color: #FFFFFF; color: var(--primary); }

.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; z-index: 1001; }
.hamburger-line { display: block; width: 24px; height: 3px; background-color: #FFFFFF; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu-overlay { display: none; }

/* ===== Footer ===== */
.site-footer { background-color: #0B2A1E; color: #E7F3EC; margin-top: 40px; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.footer-top { padding: 44px 0 24px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: #FFFFFF; text-decoration: none; letter-spacing: 1px; margin-bottom: 12px; }
.footer-description { font-size: 14px; line-height: 1.7; color: #C6E2D3; margin: 0; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 14px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav li { margin: 0; }
.footer-nav a { color: #C6E2D3; text-decoration: none; font-size: 14px; line-height: 1.5; transition: color .2s ease; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }

.footer-mid { padding: 8px 0 16px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.footer-mid-bottom { padding: 0 0 16px; }

.footer-bottom { background-color: #082016; border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; }
.footer-bottom p { margin: 0; text-align: center; font-size: 13px; color: #A9CDBA; }

.footer-slot-anchor-inner { display: block; }

/* ===== 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; position: relative; height: 100%; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 26px; }
  .logo img { display: block !important; max-width: 100%; height: auto; 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%; box-sizing: border-box; padding-left: 15px; padding-right: 15px; padding-top: 8px; padding-bottom: 8px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #FFFFFF; }
  .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: flex; align-items: stretch; background-color: #017439; position: static; }
  .nav-container { width: 100%; max-width: none; padding-left: 0; padding-right: 0; justify-content: flex-start; position: relative; }
  .hamburger-menu { display: flex; margin-left: 13px; margin-top: 2px; margin-bottom: 2px; }

  .nav-list { display: none; position: fixed; top: 0; left: 0; width: 280px; max-width: 82vw; height: 100vh; background-color: #013F20; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 80px 0 24px; margin: 0; overflow-y: auto; z-index: 1001; transform: translateX(-100%); transition: transform .3s ease; box-shadow: 8px 0 30px rgba(0,0,0,0.35); }
  .nav-list.open { display: flex; transform: translateX(0); }
  .nav-list li { width: 100%; }
  .nav-link { display: block; width: 100%; padding: 14px 22px; font-size: 15px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-link:hover { background-color: rgba(255,255,255,0.12); }
  .nav-link.active { background-color: rgba(255,255,255,0.18); color: #FFFFFF; }

  .menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
  .menu-overlay.active { opacity: 1; visibility: visible; }
  body.no-scroll { overflow: hidden; }

  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { padding-left: 15px; padding-right: 15px; }

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