:root {
  --header-offset: 122px;
  --primary-color: #017439;
  --primary-dark: #015c2c;
  --primary-light: #018b42;
  --bg-light: #f0f4f1;
  --text-dark: #222222;
  --text-light: #ffffff;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-text-color: #FFFF00;
  --footer-bg: #003b1d;
  --footer-text: #e0e0e0;
}
body {
  padding-top: var(--header-offset);
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #FFFFFF;
  color: var(--text-dark);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background: var(--primary-color);
  min-height: auto;
}
.header-top {
  background-color: var(--primary-dark);
  width: 100%;
  border-bottom: 2px solid var(--primary-light);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;
  min-height: 68px;
  box-sizing: border-box;
  gap: 15px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  display: inline-block;
}
.logo:hover {
  color: var(--btn-text-color);
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn-login {
  background-color: var(--btn-login-bg);
  color: var(--btn-text-color);
  border-color: #ffd700;
}
.btn-register {
  background-color: var(--btn-register-bg);
  color: var(--btn-text-color);
  border-color: #ffd700;
}
.btn-download {
  background: linear-gradient(135deg, #f57c00, #e65100);
  color: var(--text-light);
  border-color: #ffd54f;
}
.main-nav {
  background-color: var(--primary-color);
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  min-height: 52px;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  gap: 4px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}
.nav-container a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-container a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--btn-text-color);
  text-decoration: none;
}
.hamburger-menu {
  display: none;
  position: absolute;
  top: 14px;
  left: 15px;
  z-index: 1001;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger-menu span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-light);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}
.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);
}
.mobile-nav-buttons {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 20px 20px;
  font-size: 0.95rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-brand .footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-light);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
}
.footer-brand p {
  line-height: 1.7;
  margin: 0;
  color: #b8d4c3;
}
.footer-column h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 10px;
}
.footer-column ul li a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  padding-left: 0;
}
.footer-column ul li a:hover {
  color: var(--btn-text-color);
  padding-left: 6px;
  text-decoration: none;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  color: #a0c0ad;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 60px;
    padding-right: 15px;
    min-height: 60px;
    justify-content: flex-end;
    gap: 10px;
  }
  .logo {
    font-size: 1rem;
    margin-right: auto;
    display: block;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .hamburger-menu {
    display: block;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 10px;
    background-color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
    position: relative;
    z-index: 1000;
    flex-wrap: wrap;
  }
  .mobile-nav-buttons .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 90px;
    max-width: 130px;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: var(--primary-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 80px;
    padding-left: 0;
    padding-right: 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    z-index: 1002;
    overflow-y: auto;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }
  .nav-container a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    border-radius: 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;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-column ul {
    text-align: center;
  }
  .footer-column ul li a:hover {
    padding-left: 0;
  }
  .footer-bottom {
    margin-top: 15px;
  }
  .site-footer {
    padding: 40px 15px 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;
}
