:root {
  --header-offset: 122px;
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --btn-login-bg: #C30808;
  --btn-register-bg: #C30808;
  --btn-font-color: #FFFF00;
}

body {
  padding-top: var(--header-offset);
  margin: 0;
  font-family: 'Arial', sans-serif;
}

/* ===== Header Styles ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-top {
  background-color: #014D2A;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  min-height: 48px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  line-height: 1.2;
}

.logo:hover {
  color: #FFFF00;
}

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--btn-font-color);
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-login {
  background-color: var(--btn-login-bg);
  border: 2px solid #A00505;
}

.btn-register {
  background-color: var(--btn-register-bg);
  border: 2px solid #A00505;
}

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

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

.main-nav {
  background-color: #FFFFFF;
  width: 100%;
  display: flex;
  border-top: 2px solid #E8F5EC;
  border-bottom: 1px solid #D4E8DB;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  flex-wrap: wrap;
}

.nav-container a {
  color: #01572E;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-container a:hover {
  background-color: #E8F5EC;
  color: var(--primary-color);
}

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

.hamburger-menu {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: #014D2A;
  color: #FFFFFF;
  width: 100%;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 25px 20px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: #C9E6D6;
  margin-top: 15px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E8F5EC;
  padding-bottom: 10px;
  border-bottom: 2px solid #2E8B65;
  display: inline-block;
}

.footer-col a {
  display: block;
  color: #A8D5BC;
  text-decoration: none;
  font-size: 14px;
  line-height: 2.2;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #FFFF00;
}

.footer-bottom {
  background-color: #01381F;
  text-align: center;
  padding: 10px 20px;
}

.footer-bottom p {
  color: #A8D5BC;
  font-size: 14px;
}

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 15px;
    min-height: 44px;
  }

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

  .logo {
    font-size: 24px;
  }

  .hamburger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    order: -1;
    margin-right: auto;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    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);
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: #FFFFFF;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    border-top: none;
    border-bottom: none;
  }

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

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 20px 15px;
  }

  .nav-container a {
    display: block;
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #E8F5EC;
  }

  .nav-container a:hover {
    background-color: #F5FFF8;
  }

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    padding: 5px 10px;
    position: relative;
    z-index: 999;
    min-height: 48px;
    align-items: center;
    border-bottom: 1px solid #E8F5EC;
  }

  .mobile-nav-buttons .btn {
    padding: 8px 20px;
    font-size: 14px;
    flex: 1;
    max-width: 160px;
  }

  /* Prevent content overflow on mobile */
  .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 mobile */
  .footer-container {
    padding: 30px 15px 20px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 8px 10px;
  }
  .logo {
    font-size: 20px;
  }
  .footer-col {
    min-width: 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
