:root {
  --header-offset: 122px;
}
body {
  padding-top: var(--header-offset);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  min-height: auto;
}
.header-top {
  background-color: #08160F;
  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;
  min-height: 68px;
}
.logo {
  font-size: 32px;
  font-weight: 800;
  color: #F2FFF6;
  text-decoration: none;
  display: block;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #F2C14E, #57E38D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(87, 227, 141, 0.3);
}
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  color: #fff;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}
.btn-register {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 168, 78, 0.4);
}
.btn-login {
  background: linear-gradient(180deg, #F2C14E, #D4A03C);
  color: #08160F;
}
.main-nav {
  background-color: #11271B;
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  gap: 5px;
  width: 100%;
}
.nav-link {
  color: #F2FFF6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.nav-link:hover {
  color: #F2C14E;
  background-color: rgba(87, 227, 141, 0.1);
}
.mobile-nav-buttons {
  display: none;
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  body {
    padding-top: var(--header-offset);
  }
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  .header-top {
    width: 100%;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-size: 28px;
    display: block;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: #08160F;
    width: 100%;
    min-height: 48px;
    align-items: center;
  }
  .mobile-nav-buttons .btn {
    padding: 8px 18px;
    font-size: 13px;
    flex: 1;
    max-width: 160px;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #11271B;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    padding-top: 70px;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px 15px;
    gap: 0;
  }
  .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-link:hover {
    background-color: #0A4B2C;
  }
  .hamburger-menu {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: fixed;
    top: 18px;
    left: 15px;
    z-index: 1002;
    transition: all 0.3s ease;
  }
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #F2FFF6;
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }
  .mobile-menu-overlay.active {
    display: block;
  }
}

@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;
  }
}

.site-footer {
  background-color: #08160F;
  border-top: 2px solid #2E7A4E;
  padding: 50px 20px 20px;
  width: 100%;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-column {
  flex: 1;
  min-width: 200px;
}
.footer-logo {
  font-size: 30px;
  font-weight: 800;
  color: #F2FFF6;
  text-decoration: none;
  background: linear-gradient(135deg, #F2C14E, #57E38D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-description {
  color: #A7D9B8;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 15px;
  text-align: justify;
}
.footer-heading {
  color: #F2C14E;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-link {
  color: #A7D9B8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 3px 0;
}
.footer-link:hover {
  color: #F2C14E;
}
.footer-bottom {
  border-top: 1px solid #1E3A2A;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  width: 100%;
}
.copyright-text {
  color: #A7D9B8;
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 25px;
    padding: 0 10px;
  }
  .footer-column {
    min-width: 100%;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .footer-link {
    font-size: 13px;
  }
  .footer-bottom {
    padding-top: 10px;
    margin-top: 20px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
