:root {
  --header-offset: 124px;
  --header-offset-mobile: 112px;
}

body {
  padding-top: var(--header-offset);
  margin: 0;
  background-color: #08160F;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Header Styles ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0A4B2C;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-height: auto;
  display: block;
}

.header-top {
  background-color: #0A4B2C;
  width: 100%;
  padding: 8px 0;
}

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

.logo {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #F2C14E;
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

.logo:hover {
  color: #F2C14E;
  text-shadow: 0 0 25px rgba(242, 193, 78, 0.8);
}

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

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 90px;
}

.btn-register {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #08160F;
  box-shadow: 0 2px 10px rgba(42, 209, 111, 0.3);
}

.btn-register:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 4px 20px rgba(42, 209, 111, 0.5);
  color: #08160F;
}

.btn-login {
  background: linear-gradient(180deg, #F2C14E 0%, #D4A02A 100%);
  color: #08160F;
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.3);
}

.btn-login:hover {
  background: linear-gradient(180deg, #D4A02A 0%, #F2C14E 100%);
  box-shadow: 0 4px 20px rgba(242, 193, 78, 0.5);
  color: #08160F;
}

/* ===== Main Navigation ===== */
.main-nav {
  background-color: #11271B;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #2E7A4E;
  border-bottom: 1px solid #2E7A4E;
  padding: 0;
}

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

.nav-link {
  color: #F2FFF6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #F2C14E;
  background-color: rgba(42, 209, 111, 0.1);
}

.nav-link.active {
  color: #F2C14E;
  background-color: rgba(242, 193, 78, 0.15);
}

/* ===== Hamburger Menu ===== */
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #F2FFF6;
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: #0A4B2C;
  color: #A7D9B8;
  padding-top: 40px;
  border-top: 2px solid #2E7A4E;
  width: 100%;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 0 20px 30px;
}

.footer-brand .footer-logo {
  font-size: 32px;
  color: #F2C14E;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 2px;
}

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

.footer-links h3 {
  color: #F2C14E;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #A7D9B8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #F2C14E;
}

.footer-bottom {
  background-color: #08160F;
  border-top: 1px solid #2E7A4E;
  padding: 18px 20px;
  text-align: center;
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #A7D9B8;
}

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

  body {
    padding-top: var(--header-offset);
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 50px;
    justify-content: center;
  }

  .header-top {
    padding: 10px 0;
  }

  .logo {
    font-size: 24px;
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #0A4B2C;
    width: 100%;
    z-index: 999;
  }

  .btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 70px;
    border-radius: 4px;
  }

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

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

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

  .nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid #1E3A2A;
    border-radius: 0;
    white-space: normal;
    color: #F2FFF6;
  }

  .nav-link:hover {
    background-color: #0A4B2C;
    color: #F2C14E;
  }

  .nav-link.active {
    background-color: #0A4B2C;
    color: #F2C14E;
  }

  .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: 998;
    transition: opacity 0.3s ease;
  }

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

  .hamburger-menu {
    display: block;
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

  .footer-brand .footer-logo {
    font-size: 26px;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .footer-links h3 {
    font-size: 16px;
  }

  .footer-nav a {
    font-size: 13px;
  }

  .footer-bottom {
    padding: 12px 15px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

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