/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  padding-top: var(--header-offset); /* Body padding for fixed header */
  overflow-x: hidden; /* Prevent body overflow on desktop as well */
}

a {
  text-decoration: none;
  color: #F2FFF6; /* Text Main */
}

ul {
  list-style: none;
}

/* Header Offset Variables */
:root {
  --header-offset: 122px; /* Desktop: header-top (68px) + main-nav (52px) */
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-color: #08160F; /* Ensure a solid background */
}

/* Header Top Bar (Desktop) */
.header-top {
  background-color: #0A4B2C; /* Deep Green, contrasting with main-nav */
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.header-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Padding for desktop container */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex; /* For potential image logo alignment */
  align-items: center;
  height: 100%;
}

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

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Mobile Navigation Buttons (Hidden by default on desktop) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden by default on desktop */
  min-height: 48px; /* Min height for mobile button bar */
  background-color: #11271B; /* Card BG, distinct from header-top and main-nav */
  padding: 0 15px; /* Mobile specific padding */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  flex-wrap: nowrap;
}

/* Main Navigation (Desktop) */
.main-nav {
  background-color: #11271B; /* Card BG, contrasting with header-top */
  min-height: 52px;
  height: 52px;
  display: flex; /* Default for desktop */
  align-items: center;
  overflow: hidden;
  width: 100%;
}

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

.nav-list {
  display: flex;
  gap: 25px;
}

.nav-list a {
  color: #A7D9B8; /* Text Secondary */
  font-weight: 600;
  font-size: 15px;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #F2C14E; /* Gold on hover */
}

/* Hamburger Menu (Hidden by default on desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above header */
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #F2FFF6; /* Text Main */
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

/* Mobile Nav Overlay (Hidden by default) */
.mobile-nav-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none; /* Remove underline */
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px #57E38D; /* Glow */
}

/* Footer */
.site-footer {
  background-color: #0A4B2C; /* Deep Green, consistent with header-top for branding */
  padding: 40px 20px 20px;
  color: #A7D9B8; /* Text Secondary */
}

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

.footer-col h3 {
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.footer-nav a {
  color: #A7D9B8; /* Text Secondary */
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #F2FFF6; /* Text Main */
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
}

/* Footer Slot Anchors - ensure they are visible for injection */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure visibility for injection even if empty */
}

body.no-scroll {
  overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Header Offset for Mobile */
  :root {
    --header-offset: 110px; /* Mobile: header-top (60px) + mobile-nav-buttons (48px) */
  }

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

  /* Header Top Bar (Mobile) */
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
    justify-content: flex-start; /* For hamburger alignment */
  }

  .header-container {
    width: 100%;
    max-width: none; /* No max-width on mobile container */
    padding: 0 15px; /* Smaller padding for mobile */
    position: relative; /* For absolute logo centering */
  }

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

  .logo img {
    max-height: 56px !important; /* Max height for mobile logo */
  }

  .desktop-nav-buttons {
    display: none !important; /* Hide desktop buttons on mobile */
  }

  /* Mobile Navigation Buttons (Visible on mobile) */
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

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

  /* Hamburger Menu (Visible on mobile) */
  .hamburger-menu {
    display: block; /* Show hamburger menu on mobile */
    order: -1; /* Place it at the start of flex container */
    margin-right: auto; /* Push it to the left */
    z-index: 1002;
  }

  /* Main Navigation (Mobile - Off-canvas) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout for mobile menu */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header and mobile buttons */
    left: 0;
    width: 280px; /* Width of the off-canvas menu */
    height: calc(100% - var(--header-offset)); /* Fill remaining height */
    background-color: #11271B; /* Card BG */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    overflow-y: auto; /* Enable scrolling for long menus */
    z-index: 1001; /* Above overlay, below hamburger */
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }

  .nav-container {
    flex-direction: column; /* Vertical for mobile */
    align-items: flex-start; /* Align menu items left */
    padding: 0 20px;
    max-width: none; /* No max-width on mobile container */
    width: 100%;
    height: auto; /* Adjust height based on content */
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid #1E3A2A; /* Divider for menu items */
  }

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

  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: #F2FFF6; /* Text Main */
  }

  /* Mobile Nav Overlay (Visible when menu is active) */
  .mobile-nav-overlay.active {
    display: block;
  }

  /* Footer (Mobile) */
  .site-footer {
    padding: 30px 15px 15px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .footer-col h3 {
    margin-bottom: 10px;
  }

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