:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --header-offset: 122px;
  --header-top-height: 68px;
  --main-nav-height: 52px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  padding-top: var(--header-offset);
  font-family: Arial, Helvetica, sans-serif;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #017439;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  min-height: auto;
}
.header-top {
  background: #006432;
  width: 100%;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  min-height: 68px;
}
.logo {
  display: inline-block;
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  text-decoration: none;
  line-height: 1.2;
  order: 1;
}
.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  order: 2;
}
.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  padding: 12px 22px;
  transition: all 0.3s ease;
  color: #FFFF00;
  line-height: 1.4;
}
.btn-login {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #FFFF00;
}
.btn-register {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #FFD700;
  box-shadow: 0 0 10px rgba(255,215,0,0.3);
}
.btn-download {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #FFFFFF;
}
.btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}
.main-nav {
  background: #F5FDF8;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  position: static;
  transition: transform 0.3s ease;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 4px 20px;
  gap: 8px;
}
.nav-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
  white-space: nowrap;
}
.nav-link:hover {
  background: #017439;
  color: #FFFFFF;
}
.nav-link.active {
  background: #017439;
  color: #FFFFFF;
}
.mobile-header {
  display: none;
}
.mobile-nav-buttons {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.site-footer {
  background: #023D20;
  color: #FFFFFF;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
  margin-top: 40px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.footer-brand .footer-logo {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700;
  text-decoration: none;
}
.footer-brand p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #E0F5E9;
}
.footer-column h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #FFD700;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #E0F5E9;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #FFD700;
  text-decoration: underline;
}
.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #E0F5E9;
}
.footer-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.footer-actions .btn {
  padding: 10px 18px;
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #E0F5E9;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
    --header-top-height: 60px;
    --main-nav-height: 48px;
  }
  body {
    padding-top: var(--header-offset);
  }
  .site-header {
    min-height: auto;
  }
  .header-top {
    display: none;
  }
  .logo {
    display: inline-block;
    order: 2;
    flex: 0 0 auto;
    margin: 0;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-offset));
    left: 0;
    width: 80%;
    max-width: 320px;
    height: auto;
    background: #F5FDF8;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    border-radius: 0 8px 8px 0;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .nav-link {
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #c8e6d9;
  }
  .mobile-header {
    display: block;
    background: #096A3E;
    width: 100%;
  }
  .mobile-header-container {
    width: 100%;
    max-width: none;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    position: relative;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    order: 1;
  }
  .hamburger-menu span {
    display: block;
    width: 22px;
    height: 3px;
    background: #FFFF00;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .mobile-header-spacer {
    width: 36px;
    height: 36px;
    order: 3;
  }
  .mobile-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 2;
    flex: none;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #017439;
    padding: 8px 10px;
    width: 100%;
    min-height: 48px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .mobile-menu-overlay.active {
    display: block;
  }
  .site-footer {
    padding: 30px 15px 15px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-bottom {
    font-size: 13px;
  }
  .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;
}
