:root { --primary: #017439; --secondary: #FFFFFF; --accent-red: #C30808; --accent-yellow: #FFFF00; --header-offset: 122px; --header-top-bg: #017439; --nav-bg: #015c2d; --text-light: #FFFFFF; --text-dark: #333333; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; overflow-x: hidden; }
.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.28); background-color: var(--header-top-bg); }
.header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--header-top-bg); }
.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: 0 30px; }
.logo { display: inline-flex; align-items: center; font-size: 30px; font-weight: 800; letter-spacing: 1px; color: var(--accent-yellow); text-decoration: none; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.logo:hover, .logo:focus { color: var(--secondary); text-decoration: none; }
.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; box-sizing: border-box; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; font-size: 15px; font-weight: 700; border-radius: 6px; text-decoration: none; border: none; cursor: pointer; line-height: 1.2; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; white-space: nowrap; }
.btn:hover, .btn:focus { text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); }
.btn-login, .btn-register { background: var(--accent-red); color: var(--accent-yellow); border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 4px 12px rgba(195,8,8,0.45); }
.btn-login:hover, .btn-register:hover, .btn-login:focus, .btn-register:focus { color: var(--accent-yellow); box-shadow: 0 6px 18px rgba(195,8,8,0.6); }
.main-nav { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--nav-bg); border-top: 1px solid rgba(255,255,255,0.14); }
.nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; position: relative; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; width: 100%; }
.nav-menu li { margin: 0; padding: 0; }
.nav-link { display: inline-block; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--secondary); text-decoration: none; border-radius: 4px; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.nav-link:hover, .nav-link:focus { background-color: rgba(255,255,255,0.18); color: var(--accent-yellow); text-decoration: none; }
.nav-link.active { background-color: var(--accent-red); color: var(--accent-yellow); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger-menu span { display: block; width: 26px; height: 3px; margin: 5px 0; 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); }
.nav-overlay { display: none; }
.site-footer { background-color: #012b16; color: #d9e7df; margin-top: 60px; }
.footer-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.footer-top { padding: 46px 0 30px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.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; font-size: 26px; font-weight: 800; letter-spacing: 1px; color: var(--accent-yellow); text-decoration: none; margin-bottom: 14px; }
.footer-logo:hover, .footer-logo:focus { color: var(--secondary); text-decoration: none; }
.footer-description { font-size: 14px; line-height: 1.7; color: #c4d8cd; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: var(--secondary); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-red); display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 9px; }
.footer-nav a { display: inline-block; font-size: 14px; color: #c4d8cd; text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover, .footer-nav a:focus { color: var(--accent-yellow); text-decoration: underline; }
.footer-dynamic-col { min-height: 1px; }
.footer-mid { padding: 22px 0; }
.footer-mid .footer-container { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-bottom-anchor { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.footer-bottom { background-color: #001a0d; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-copyright { margin: 0; text-align: center; font-size: 13px; color: #9fb8a9; line-height: 1.6; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); overflow-x: hidden; }
  .header-top { height: 60px !important; min-height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 12px; padding-right: 12px; position: relative; }
  .logo { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 24px; }
  .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: 6px 12px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--header-top-bg); }
  .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 { height: 48px !important; min-height: 48px !important; display: none; position: fixed; top: calc(var(--header-offset) - 48px); left: 0; width: 100%; background-color: var(--nav-bg); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; flex-direction: column; justify-content: flex-start; height: auto; align-items: stretch; }
  .hamburger-menu { display: block; position: relative; z-index: 2; }
  .nav-menu { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; display: none; width: 100%; }
  .main-nav.active .nav-menu { display: flex; }
  .nav-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-link { display: block; width: 100%; padding: 14px 16px; font-size: 15px; border-radius: 0; }
  .nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.55); z-index: 999; }
  .nav-overlay.active { display: block; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-container { padding: 0 18px; }
  .footer-top { padding: 34px 0 24px; }
  .footer-mid .footer-container { flex-direction: column; }
  .footer-bottom-anchor { padding: 0 18px; }
  .footer-copyright { font-size: 12px; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
}
@media (min-width: 769px) { .nav-menu { display: flex !important; } .hamburger-menu { display: none !important; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
