:root {
  --primary: #017439;
  --white: #FFFFFF;
  --reg-bg: #C30808;
  --login-bg: #C30808;
  --btn-text: #FFFF00;
  --header-offset: 142px;
  --footer-bg: #014d26;
  --header-top-bg: #017439;
  --main-nav-bg: #014d26;
  --text-light: #FFFFFF;
  --text-dark: #333333;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--white);
  padding-top: var(--header-offset);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  background-color: var(--header-top-bg);
  min-height: auto;
}
.header-top {
  background-color: var(--header-top-bg);
  width: 100%;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
  width: 100%;
}
.logo {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-light);
  display: inline-block;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  background: linear-gradient(135deg, #ffffff 0%, #ffe680 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  color: var(--btn-text);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-login {
  background-color: var(--login-bg);
  border-color: #a10505;
}
.btn-login:hover {
  background-color: #a50505;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.btn-register {
  background-color: var(--reg-bg);
  border-color: #a10505;
}
.btn-register:hover {
  background-color: #a50505;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.main-nav {
  background-color: var(--main-nav-bg);
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  min-height: auto;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 20px;
  padding-right: 20px;
  gap: 5px;
  width: 100%;
}
.nav-link {
  color: var(--text-light);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--btn-text);
}
.mobile-menu-overlay {
  display: none;
}
.mobile-nav-buttons {
  display: none;
}
.hamburger-menu {
  display: none;
}
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  padding-top: 50px;
}
.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 40px;
  width: 100%;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}
.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffe680;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-nav a:hover {
  color: #ffe680;
  padding-left: 5px;
}
.footer-contact-item {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}
.footer-contact-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  width: 100%;
}
.copyright-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 768px) {
  :root {
    --header-offset: 148px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }
  .logo {
    font-size: 24px;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--main-nav-bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    padding-top: 20px;
    overflow-y: auto;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 30px;
    gap: 0;
  }
  .main-nav .nav-link {
    display: block;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .mobile-nav-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #006633;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 14px;
    text-align: center;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    z-index: 1002;
    margin-right: 5px;
  }
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    margin-bottom: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hamburger-menu span:last-child {
    margin-bottom: 0;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-brand-col {
    text-align: center;
  }
  .footer-col {
    align-items: center;
    text-align: center;
  }
  .footer-nav {
    align-items: center;
  }
  .footer-nav a:hover {
    padding-left: 0;
    padding-right: 5px;
  }
  .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;
}
