:root { --header-offset: 122px; --primary-color: #017439; --secondary-color: #FFFFFF; --btn-login-bg: #C30808; --btn-register-bg: #C30808; --btn-text-color: #FFFF00; --text-dark: #333333; --text-light: #FFFFFF; --footer-bg: #0a2e1e; --footer-text: #d4e5dc; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* === HEADER === */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); background-color: var(--primary-color); }

.header-top { height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); width: 100%; }
.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; }
.logo { font-size: 32px; font-weight: 800; color: var(--secondary-color); text-decoration: none; letter-spacing: 1px; display: inline-block; line-height: 1; text-transform: lowercase; }
.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 20px; font-size: 15px; transition: transform 0.2s ease, filter 0.2s ease; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn-login { background-color: var(--btn-login-bg); color: var(--btn-text-color); }
.btn-register { background-color: var(--btn-register-bg); color: var(--btn-text-color); }

.main-nav { height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #015c2d; width: 100%; }
.nav-container { height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-list { display: flex; flex-direction: row; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; }
.nav-list li a { display: block; color: var(--secondary-color); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-list li a:hover { background-color: rgba(255, 255, 255, 0.18); }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger-menu span { 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 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); }

.menu-overlay { display: none; }

/* === FOOTER === */
.site-footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 50px 0 0; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top-row { width: 100%; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.footer-col { min-width: 0; }
.footer-about { display: flex; flex-direction: column; }
.footer-logo { font-size: 28px; font-weight: 800; color: var(--secondary-color); text-decoration: none; margin-bottom: 12px; display: inline-block; }
.footer-description { font-size: 14px; line-height: 1.7; color: var(--footer-text); word-wrap: break-word; overflow-wrap: break-word; margin: 0 0 12px; }
.footer-heading { font-size: 16px; font-weight: 700; color: #7ee0a9; margin: 0 0 14px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav li a { color: var(--footer-text); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-nav li a:hover { color: #7ee0a9; text-decoration: underline; }
.footer-slot-anchor-inner { min-height: 1px; width: 100%; }
.footer-mid-area { width: 100%; }
.footer-mid-row { width: 100%; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-mid-cell { min-height: 1px; }
.footer-bottom-anchor { width: 100%; min-height: 1px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 22px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--footer-text); }

/* === RESPONSIVE === */
@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; }
  .logo img { max-height: 56px !important; display: block !important; max-width: 100%; height: auto; }
  .hamburger-menu { display: flex; position: relative; z-index: 2; }
  .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; overflow: hidden; gap: 10px; flex-wrap: nowrap; }
  .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: 48px !important; min-height: 48px !important; }
  .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; justify-content: flex-start; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; width: 85%; max-width: 320px; height: 100vh !important; min-height: 100vh !important; flex-direction: column; background-color: #015c2d; z-index: 1002; padding-top: 80px; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: flex-start; height: auto; padding: 0 20px; }
  .nav-list { flex-direction: column; width: 100%; gap: 0; }
  .nav-list li { width: 100%; }
  .nav-list li a { display: block; width: 100%; padding: 14px 10px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0; }
  .menu-overlay { display: block; 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; }
  .menu-overlay.active { opacity: 1; visibility: visible; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .site-footer { padding-top: 36px; margin-top: 40px; }
  .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.no-scroll { overflow: 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;
}
