html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #F2FFF6;
  background-color: #08160F;
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

:root {
  --header-offset: 122px;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0A4B2C; /* Deep Green for header-top */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-top {
  box-sizing: border-box;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  background-color: #0A4B2C;
  color: #F2FFF6;
}

.header-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold for logo text */
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

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

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden by default for desktop */
  min-height: 48px;
  width: 100%;
  background-color: #11271B; /* Card BG for mobile button bar */
  color: #F2FFF6;
  padding: 0 15px;
}

.main-nav {
  box-sizing: border-box;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  background-color: #11271B; /* Card BG for main nav */
  color: #F2FFF6;
}

.nav-container {
  box-sizing: border-box;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.nav-container::-webkit-scrollbar { /* Webkit */
  display: none;
}

.nav-link {
  color: #F2FFF6;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2AD16F;
  background-color: rgba(42, 209, 111, 0.1);
  border-radius: 4px;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #F2FFF6;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #F2FFF6;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

.hamburger-menu.active .hamburger-icon {
  background-color: transparent;
}

.hamburger-menu.active .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger-menu.active .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.overlay.visible {
  display: block;
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #F2FFF6; /* Text Main */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 80px;
  text-align: center;
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-register {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.btn-login {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Footer Styles */
.site-footer {
  background-color: #0A4B2C; /* Deep Green */
  color: #A7D9B8; /* Text Secondary */
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.footer-col h3 {
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #2AD16F;
}

.footer-logo {
  font-size: 32px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

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

.footer-contact p {
  margin-bottom: 10px;
}

.footer-contact a {
  color: #A7D9B8;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #2AD16F;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  color: #A7D9B8;
}

.footer-bottom p {
  margin: 0;
}

.footer-slot-anchor,
.footer-slot-anchor-inner {
  /* These are placeholders for content injection, should not be hidden by CSS */
  min-height: 1px; /* Ensure they occupy at least some space if empty */
}

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

  body {
    overflow-x: hidden;
  }

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

  .header-top {
    height: 60px !important;
    justify-content: space-between;
    padding: 0 15px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0;
    justify-content: flex-start;
    position: relative;
  }

  .hamburger-menu {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px); /* Adjust based on hamburger width */
  }

  .logo img {
    max-height: 56px !important;
    max-width: 100%;
  }

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

  .mobile-nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #11271B;
    color: #F2FFF6;
  }

  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .main-nav {
    height: auto;
    min-height: 100vh;
    width: 250px;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    background-color: #0A4B2C; /* Deep Green for mobile menu */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: none; /* Hidden by default, shown with .active */
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  }

  .main-nav.active {
    transform: translateX(0);
    display: flex; /* Must set display for it to be visible */
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-bottom: 1px solid #1E3A2A; /* Divider */
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .footer-col {
    margin-bottom: 30px;
  }

  .footer-col:last-of-type {
    margin-bottom: 0;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo,
  .footer-description,
  .footer-nav,
  .footer-contact p {
    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;
}
