:root {
  --primary: #017439;
  --primary-dark: #01502a;
  --primary-light: #f0f8f4;
  --white: #FFFFFF;
  --black: #1a1a1a;
  --text-dark: #333333;
  --text-light: #666666;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-text: #FFFF00;
  --header-offset: 122px;
  --nav-height: 52px;
  --header-top-height: 68px;
}

body {
  margin: 0;
  padding-top: var(--header-offset);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header Styles ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  border-bottom: 3px solid var(--primary);
  min-height: 120px;
}

/* Header Top */
.header-top {
  background-color: var(--primary);
  width: 100%;
  min-height: var(--header-top-height);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  min-height: var(--header-top-height);
  box-sizing: border-box;
}

.logo {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

.logo:hover {
  color: var(--btn-text);
}

.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-register {
  background-color: var(--btn-register-bg);
  color: var(--btn-text);
  box-shadow: 0 2px 8px rgba(195, 8, 8, 0.4);
}

.btn-register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(195, 8, 8, 0.5);
}

.btn-login {
  background-color: var(--btn-login-bg);
  color: var(--btn-text);
  box-shadow: 0 2px 8px rgba(195, 8, 8, 0.4);
}

.btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(195, 8, 8, 0.5);
}

/* Main Nav */
.main-nav {
  background-color: var(--primary-light);
  width: 100%;
  display: flex;
  min-height: var(--nav-height);
  border-top: 1px solid rgba(1, 116, 57, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
  gap: 4px;
}

.nav-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background-color: var(--primary);
}

/* Mobile Elements - hidden on desktop */
.hamburger-menu,
.mobile-menu-overlay,
.mobile-nav-buttons {
  display: none;
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 50px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {}

.footer-logo {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav li a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: var(--btn-text);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }

  .site-header {
    min-height: auto;
  }

  .header-top {
    min-height: 60px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 60px;
  }

  .logo {
    display: block;
    font-size: 1.2rem;
    text-align: center;
    order: 1;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 70px;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-top: none;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .main-nav.active {
    display: block;
    transform: translateX(0);
  }

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .nav-link {
    display: block;
    width: 100%;
    color: var(--white);
    font-size: 1rem;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    box-sizing: border-box;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--btn-text);
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 55px;
    height: 55px;
    cursor: pointer;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1003;
    order: 0;
    padding: 8px;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .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(5px, -5px);
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 48px;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 140px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-col {
    text-align: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
