:root {
  --primary-color: #11A84E;
  --accent-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;

  /* Header offset: No marquee (68px header-top + 52px main-nav = 120px desktop). Add 2px for safety. */
  --header-offset: 122px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  padding-top: var(--header-offset); /* IMPORTANT: Body padding for fixed header */
  overflow-x: hidden; /* Prevents body overflow on mobile */
}

a {
  text-decoration: none;
  color: var(--text-main);
}

/* Site Header - Fixed position */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background-color: var(--deep-green); /* Default for header-top */
}

/* Header Top Area */
.header-top {
  box-sizing: border-box;
  min-height: 68px; /* Desktop height */
  height: 68px; /* Desktop height */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--deep-green); /* Distinct from main-nav */
  width: 100%;
}

.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; /* Padding for logo and buttons */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color); /* Gold color for logo text */
  display: flex; /* Use flex for potential image logo centering */
  align-items: center;
  height: 100%;
}

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

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  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; /* Mobile height for this strip */
  background-color: var(--card-bg); /* Distinct background */
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 25px;
  background: var(--button-gradient);
  color: var(--text-main);
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none; /* Remove underline for buttons */
}

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

/* Main Navigation Area */
.main-nav {
  box-sizing: border-box;
  min-height: 52px; /* Desktop height */
  height: 52px; /* Desktop height */
  display: flex; /* Visible on desktop */
  align-items: center;
  overflow: hidden;
  background-color: var(--card-bg); /* Distinct from header-top */
  width: 100%;
}

.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;
  gap: 25px; /* Spacing between nav links */
}

.nav-link {
  color: var(--text-main);
  font-size: 16px;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap; /* Keep nav links on one line */
}

.nav-link:hover {
  color: var(--accent-color);
}

/* Hamburger Menu - Hidden by default on desktop */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001; /* Above header */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  padding: 40px 20px 20px;
  font-size: 14px;
}

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

.footer-col h3 {
  color: var(--text-main);
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-col p {
  line-height: 1.6;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  display: block;
  margin-bottom: 15px;
}

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

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

.footer-nav a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* Dynamic slot anchor containers - ensure they are visible */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure they take up some space if empty */
  width: 100%;
}

/* ========================================================= */
/* Mobile Styles */
/* ========================================================= */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (mobile-nav-buttons) = 108px. Add 2px for safety. */
  }

  body {
    padding-top: var(--header-offset); /* Update body padding for mobile */
    overflow-x: hidden; /* Ensure body doesn't overflow */
  }

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

  /* Header Top Area - Mobile */
  .header-top {
    min-height: 60px !important; /* Mobile height */
    height: 60px !important; /* Mobile height */
  }

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

  /* Hamburger Menu - Visible on mobile */
  .hamburger-menu {
    display: flex;
    position: relative;
    z-index: 2; /* Above logo if logo is absolute */
  }

  /* Logo - Centered on mobile */
  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important; /* Center horizontally */
    align-items: center !important;
    position: absolute; /* For robust centering */
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px); /* Leave space for hamburger and potential right element */
    height: 100%;
  }

  .logo img {
    max-height: 56px !important; /* Mobile logo image height */
  }

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

  /* Mobile Buttons - Visible on mobile */
  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    align-items: center;
    justify-content: center; /* Center buttons if only one, or for flex distribution */
    padding: 0 15px; /* Padding for buttons */
    gap: 10px; /* Space between buttons */
    flex-wrap: nowrap; /* Prevent buttons from wrapping */
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden; /* Prevent overflow */
  }

  .mobile-nav-buttons .btn {
    flex: 1; /* Distribute space equally */
    min-width: 0; /* Allow shrinking */
    max-width: calc(50% - 5px); /* Max width for two buttons with 10px gap */
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font size */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    overflow-wrap: break-word;
  }

  /* Main Navigation Area - Mobile (Hidden by default, shown when active) */
  .main-nav {
    min-height: auto !important; /* Allow height to adjust based on content */
    height: auto !important;
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout */
    position: fixed; /* Fixed position for sidebar menu */
    top: var(--header-offset); /* Position below fixed header and mobile buttons */
    left: 0;
    width: 280px; /* Sidebar width */
    height: calc(100vh - var(--header-offset)); /* Fill remaining height */
    background-color: var(--card-bg); /* Same as desktop nav, or a darker variant */
    transform: translateX(-100%); /* Slide out of view initially */
    transition: transform 0.3s ease;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Above header */
    overflow-y: auto; /* Allow scrolling for long menus */
  }

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

  .nav-container {
    flex-direction: column; /* Vertical links */
    align-items: flex-start; /* Align links to the left */
    padding: 0 20px;
    gap: 15px; /* Spacing between vertical links */
    max-width: none; /* Occupy full width */
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--divider-color); /* Separator for mobile links */
  }

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

  /* Mobile Menu Overlay - Visible when active */
  .mobile-menu-overlay.active {
    display: block;
  }

  /* Footer - Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
  }

  .footer-col {
    text-align: center; /* Center text in columns */
  }

  .footer-logo {
    text-align: center;
  }

  .footer-nav {
    text-align: center;
  }
  .footer-nav li {
    display: inline-block; /* Inline-block for better spacing on mobile */
    margin: 0 8px 8px 8px;
  }
}

/* Hamburger menu active state */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Prevent body scroll when menu is open */
body.no-scroll {
  overflow: 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;
}
