:root {
  --primary: #017439;
  --primary-dark: #015a2c;
  --primary-light: #e8f5ee;
  --accent: #FFFFFF;
  --btn-red: #C30808;
  --btn-text: #FFFF00;
  --text-dark: #1a1a1a;
  --text-muted: #555555;
  --header-offset: 122px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--header-offset);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: #FFFFFF;
  line-height: 1.5;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
  border-bottom: 2px solid var(--primary-dark);
}
.header-top {
  width: 100%;
  height: 68px;
  min-height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
  box-sizing: border-box;
}
.header-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.logo {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.mobile-nav-buttons {
  display: none;
  min-height: 48px;
  box-sizing: border-box;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-login, .btn-register {
  background: var(--btn-red);
  color: var(--btn-text);
  border-color: #9c0606;
  box-shadow: 0 2px 8px rgba(195, 8, 8, 0.4);
}
.btn-login:hover, .btn-register:hover {
  background: #a50606;
  box-shadow: 0 4px 12px rgba(195, 8, 8, 0.55);
}
.main-nav {
  width: 100%;
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  flex-wrap: nowrap;
}
.nav-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
  background: var(--primary);
  color: #FFFF00;
}
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 1001;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  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: #06281c;
  color: #e6efe9;
  font-size: 14px;
  margin-top: 40px;
  border-top: 4px solid var(--primary);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.footer-top { padding: 42px 0 26px; }
.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: 28px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-description {
  margin: 0 0 10px;
  color: #b9ccc2;
  line-height: 1.65;
  font-size: 13.5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li { margin-bottom: 9px; }
.footer-nav a {
  color: #c9dbd1;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease, padding-left 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-nav a:hover { color: #FFFF00; padding-left: 3px; }
.footer-dynamic-col { min-height: 0; }
.footer-slot-anchor,
.footer-slot-anchor-inner { display: block; }
.footer-mid { padding: 10px 0; }
.footer-mid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.footer-bottom-anchor { padding: 0; }
.footer-bottom {
  background: #041f15;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  margin-top: 20px;
}
.footer-copyright {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #a9bdb2;
}
@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: 12px;
    padding-right: 12px;
    position: relative;
  }
  .hamburger-menu { display: flex; }
  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: calc(100% - 130px);
    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%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 6px 12px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .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 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    min-height: 100vh;
    background: var(--primary-dark);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 76px 0 24px;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-top-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-mid-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { padding: 0 16px; }
  .footer-top { padding: 30px 0 20px; }
  .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;
}
