/* Color Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-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 */
  --header-offset: 122px; /* 68px (header-top) + 52px (main-nav) + 2px buffer */
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Fixed header offset */
  background-color: var(--background-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent body overflow */
}

/* Base styles for anchors (buttons, links) */
a {
  color: var(--text-main);
  text-decoration: none;
}
a:hover {
  color: var(--secondary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--button-gradient);
  color: var(--text-main);
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color) inset;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color) inset;
  color: var(--text-main); /* Ensure text color doesn't change on hover */
}

/* 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.4);
  background-color: var(--card-bg); /* Use card-bg for overall header */
}

/* Header Top Bar */
.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px; /* Fixed height for desktop */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--deep-green); /* Darker for top bar */
  width: 100%;
  padding: 0 20px; /* Add padding to header-top itself */
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color); /* Gold color for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block; /* Default for text logo */
  line-height: 1;
}

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

.desktop-nav-buttons {
  display: flex; /* Default: visible on desktop */
  gap: 12px;
  align-items: center;
}

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Default: hidden on desktop */
  min-height: 48px; /* Fixed height for mobile button bar */
  background-color: var(--primary-color); /* Background for mobile button bar */
  padding: 8px 20px; /* Consistent padding */
  width: 100%;
}

.header-right-placeholder {
  display: none; /* Hidden on desktop */
  width: 40px; /* Match hamburger width for balance */
}

/* Main Navigation */
.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px; /* Fixed height for desktop */
  display: flex; /* Default: visible on desktop */
  align-items: center;
  overflow: hidden;
  background-color: var(--primary-color); /* Lighter for main nav */
  width: 100%;
  padding: 0 20px; /* Add padding to main-nav itself */
}

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

.nav-link {
  display: block;
  padding: 0 15px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  line-height: 52px; /* Match main-nav height for vertical centering */
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--gold-color);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001; /* Above header */
  padding: 5px; /* Clickable area */
}

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

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

.hamburger-menu.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu-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; /* Below menu, above content */
}
.mobile-menu-overlay.active {
  display: block;
}

/* Site Footer */
.site-footer {
  background-color: var(--background-color); /* Darkest background */
  padding: 40px 20px 20px;
  color: var(--text-secondary);
  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);
  padding-bottom: 30px;
}

.footer-col {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.footer-about .footer-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-col h3 {
  color: var(--text-main);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}
.footer-col h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--gold-color);
  margin-top: 8px;
}

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

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

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

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

.footer-dynamic-col {
  /* This column is specifically for dynamic injection, no default content */
}

.footer-slot-anchor-inner {
  /* Ensure these are visible for content injection */
  min-height: 1px; /* Small height to ensure it takes space */
  width: 100%;
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--divider-color); /* Add a divider */
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-secondary);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* 60px (header-top) + 48px (mobile-nav-buttons) + 2px buffer */
  }

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden; /* Prevent body overflow for mobile */
  }

  .site-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  /* Header Top Bar Mobile */
  .header-top {
    min-height: 60px !important; /* Fixed height for mobile */
    height: 60px !important;
    padding: 0 15px;
    justify-content: space-between; /* Hamburger left, logo center, spacer right */
  }

  .header-container {
    width: 100%;
    max-width: none; /* No max-width on mobile */
    margin: 0;
    flex-grow: 1; /* Allow it to take available space */
    justify-content: center; /* Center the logo within its flex-grow space */
    order: 2; /* Logo in the middle */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Place it first */
  }

  .logo {
    flex: none !important; /* Reset flex-grow if any, for precise centering */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center; /* For text logo */
  }

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

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

  .header-right-placeholder {
    display: block; /* Show spacer on mobile */
    width: 40px; /* Same width as hamburger for balance */
    order: 3; /* Spacer right */
  }

  /* Mobile Button Bar */
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons on mobile */
    min-height: 48px;
    align-items: center;
    justify-content: center; /* Center buttons if less than 2 */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
  }

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

  /* Main Navigation Mobile */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed; /* Fixed position for mobile menu */
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 75%; /* Slide in from left */
    max-width: 300px; /* Max width for mobile menu */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--card-bg); /* Use card-bg for mobile menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    overflow-y: auto; /* Enable scrolling for long menus */
    padding: 0; /* Remove padding from main-nav itself, container will handle */
    min-height: auto;
    height: auto;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start; /* Align menu items to the left */
    padding: 20px 15px; /* Padding inside mobile menu */
    width: 100%;
    max-width: none; /* No max-width on mobile */
    height: auto;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    line-height: normal; /* Adjust line height for vertical menu */
    border-bottom: 1px solid var(--divider-color);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  /* Body no-scroll when menu is open */
  body.no-scroll {
    overflow: hidden;
  }

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

  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  .footer-col h3 {
    margin-bottom: 15px;
    font-size: 16px;
  }
  .footer-col h3::after {
    margin-top: 5px;
  }
  .footer-nav li {
    margin-bottom: 8px;
  }

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

  /* Mobile overflow protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
