:root { --primary: #017439; --primary-dark: #015c2d; --primary-light: #029a4c; --secondary: #FFFFFF; --accent-red: #C30808; --accent-red-dark: #a10606; --accent-yellow: #FFFF00; --bg-page: #FFFFFF; --text-dark: #1a1a1a; --text-light: #f0f0f0; --header-offset: 122px; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-page); color: var(--text-dark); }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--primary); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-dark); 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; }
.logo { display: inline-block; color: var(--secondary); font-size: 28px; font-weight: 800; letter-spacing: 1px; text-decoration: none; text-transform: lowercase; text-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.logo:hover { color: var(--accent-yellow); }
.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 { box-sizing: border-box; display: none; min-height: 48px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 6px; text-align: center; cursor: pointer; border: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.btn-login, .btn-register { background-color: var(--accent-red); color: var(--accent-yellow); padding: 10px 22px; font-size: 15px; box-shadow: 0 3px 10px rgba(195, 8, 8, 0.45); }
.btn-login:hover, .btn-register:hover { background-color: var(--accent-red-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(195, 8, 8, 0.6); }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); 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; width: 100%; position: relative; }
.nav-menu { display: flex; flex-direction: row; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 6px; height: 100%; flex-wrap: nowrap; }
.nav-menu li { height: 100%; display: flex; align-items: center; }
.nav-menu a { display: flex; align-items: center; height: 100%; padding: 0 12px; color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; border-radius: 4px; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-yellow); background-color: rgba(255,255,255,0.12); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; z-index: 1001; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; }
.hamburger-menu span { display: block; width: 24px; height: 3px; background-color: var(--secondary); 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; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.6); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.menu-overlay.active { display: block; opacity: 1; }
body.no-scroll { overflow: hidden; }
.site-footer { background-color: #012f18; color: var(--text-light); padding: 40px 0 0; margin-top: 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 30px; }
.footer-col { min-width: 0; }
.footer-about { display: flex; flex-direction: column; }
.footer-logo { display: inline-block; color: var(--secondary); font-size: 26px; font-weight: 800; letter-spacing: 1px; text-decoration: none; margin-bottom: 12px; }
.footer-logo:hover { color: var(--accent-yellow); }
.footer-description { font-size: 14px; line-height: 1.7; color: #c8d8cd; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: var(--secondary); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #c8d8cd; text-decoration: none; font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-nav a:hover { color: var(--accent-yellow); padding-left: 4px; }
.footer-mid-dynamic { display: contents; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-dynamic-col { min-height: 1px; }
.footer-bottom { background-color: #011d0f; padding: 18px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { margin: 0; font-size: 13px; color: #a8bfb1; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { height: 60px; min-height: 60px; }
  .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 { 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-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; min-height: 48px; display: none; position: fixed; top: 0; left: 0; width: 280px; max-width: 80%; height: 100vh; background-color: var(--primary-dark); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; padding-top: 24px; border-top: none; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .hamburger-menu { display: flex; position: fixed; top: 8px; left: 12px; z-index: 1001; }
  .nav-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; height: auto; width: 100%; margin-top: 8px; }
  .nav-menu li { height: auto; width: 100%; }
  .nav-menu a { height: auto; padding: 14px 12px; font-size: 15px; width: 100%; border-radius: 6px; }
  .menu-overlay.active { display: block; opacity: 1; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-container { padding: 0 18px; }
  .footer-bottom p { font-size: 12px; }
}
@media (max-width: 480px) {
  .nav-menu a { font-size: 14px; padding: 12px 10px; }
  .footer-title { font-size: 15px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
