:root { --header-offset: 122px; --main-color: #11A84E; --aux-color: #22C768; --text-main: #F2FFF6; --text-secondary: #A7D9B8; --card-bg: #11271B; --background: #08160F; --border-color: #2E7A4E; --glow-color: #57E38D; --gold-color: #F2C14E; --divider-color: #1E3A2A; --deep-green: #0A4B2C; }

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

.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; background-color: var(--deep-green); color: var(--text-main); overflow: hidden; }
.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: var(--gold-color); text-decoration: none; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); display: flex; align-items: center; height: 100%; }
.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; min-height: 48px; background-color: var(--card-bg); /* Different from header-top and main-nav */ width: 100%; max-width: 100%; padding: 0 20px; }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; background-color: var(--main-color); color: var(--text-main); overflow: hidden; transition: transform 0.3s ease; }
.nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 25px; }
.main-nav li a { text-decoration: none; color: var(--text-main); font-weight: bold; padding: 10px 0; display: block; white-space: nowrap; transition: color 0.3s ease; font-size: 15px; }
.main-nav li a:hover, .main-nav li a.active { color: var(--gold-color); }

.btn { background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); color: var(--text-main); padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger-icon { display: block; width: 25px; height: 3px; background-color: var(--text-main); position: relative; transition: background-color 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; width: 25px; height: 3px; background-color: var(--text-main); position: absolute; transition: transform 0.3s ease; }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }
.hamburger-menu.active .hamburger-icon { background-color: transparent; }
.hamburger-menu.active .hamburger-icon::before { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-icon::after { transform: translateY(-8px) 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; }
.overlay.active { display: block; }

/* Footer styles */
.site-footer { background-color: var(--background); color: var(--text-secondary); padding: 40px 0 20px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px 30px; border-bottom: 1px solid var(--divider-color); }
.footer-col h3 { color: var(--text-main); font-size: 18px; margin-bottom: 15px; border-left: 3px solid var(--gold-color); padding-left: 10px; }
.footer-col p { color: var(--text-secondary); word-wrap: break-word; overflow-wrap: break-word; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--gold-color); text-decoration: none; display: block; margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav li a { text-decoration: none; color: var(--text-secondary); transition: color 0.3s ease; }
.footer-nav li a:hover { color: var(--text-main); }

.footer-bottom { text-align: center; padding: 20px 20px 0; max-width: 1200px; margin: 0 auto; color: var(--text-secondary); }
.footer-bottom p { margin: 0; }
.footer-slot-anchor-inner { min-height: 10px; /* Ensure visibility for injection */ }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); }

  .header-top { height: 60px; }
  .header-container { padding: 0 15px; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .logo img { max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }

  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  }
  .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;
    border-radius: 20px;
  }

  .main-nav {
    display: none; /* Hidden by default for mobile */
    position: fixed; top: 0; left: 0; width: 75%; height: 100%;
    background-color: var(--card-bg); /* Darker background for mobile menu */
    flex-direction: column;
    justify-content: flex-start; align-items: flex-start;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%); /* Off-screen by default */
    z-index: 1001; /* Above overlay */
    overflow-y: auto;
    height: 100vh; /* Ensure it covers full viewport height */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container { flex-direction: column; width: 100%; max-width: none; padding: 0; }
  .main-nav ul { flex-direction: column; width: 100%; gap: 0; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--divider-color); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav li a { padding: 15px 20px; font-size: 16px; }

  .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px 20px; }
  .footer-col { margin-bottom: 20px; }
  .footer-col:last-of-type { margin-bottom: 0; }

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