:root { --header-offset: 122px; --primary-color: #017439; --secondary-color: #FFFFFF; --login-register-bg: #C30808; --login-register-text: #FFFF00; --footer-bg: #012e17; --footer-text: #d8e6df; --footer-heading: #FFFFFF; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #FFFFFF; }
.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.25); background-color: var(--primary-color); }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); 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: 25px; padding-right: 25px; }
.logo { display: inline-block; color: var(--secondary-color); text-decoration: none; font-size: 28px; font-weight: 800; letter-spacing: 1.5px; line-height: 1; }
.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; font-weight: 700; border-radius: 6px; border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-login, .btn-register { background-color: var(--login-register-bg); color: var(--login-register-text); padding: 10px 22px; font-size: 15px; box-shadow: 0 3px 10px rgba(195, 8, 8, 0.45); }
.btn-login:hover, .btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(195, 8, 8, 0.65); }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #015c2e; width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.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 { color: var(--secondary-color); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 5px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.18); color: #FFFF00; }
.hamburger-menu { display: none; }
.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.55); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }
.site-footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 30px 0 0; width: 100%; }
.footer-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; color: var(--footer-heading); font-size: 26px; font-weight: 800; letter-spacing: 1px; text-decoration: none; margin-bottom: 14px; }
.footer-description { font-size: 14px; line-height: 1.7; color: var(--footer-text); margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { color: var(--footer-heading); font-size: 17px; font-weight: 700; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-color); display: inline-block; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--footer-text); 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: 5px; }
.footer-dynamic-col { min-height: 10px; }
.footer-mid { padding: 10px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.footer-slot-anchor-inner { width: 100%; }
.footer-bottom { background-color: #011d0e; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; margin-top: 20px; }
.footer-copyright { margin: 0; text-align: center; font-size: 13px; color: #a8c5b6; }
@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: 24px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }
  .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: 8px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--primary-color); }
  .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; text-align: center; }
  .main-nav { min-height: 48px !important; height: 48px !important; display: block; position: fixed; top: 108px; left: 0; width: 100%; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; background-color: #015c2e; overflow-y: auto; border-top: none; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 15px; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px; height: auto; }
  .hamburger-menu { display: flex !important; 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: 1002; position: relative; }
  .hamburger-line { display: block; width: 26px; height: 3px; background-color: var(--secondary-color); border-radius: 2px; transition: transform 0.3s ease, opacity 0.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); }
  .nav-link { display: block; width: 100%; padding: 12px 16px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-overlay { display: block; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-container { padding: 0 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: 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;
}
