:root { --header-offset: 122px; --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; }

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

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

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-green); width: 100%; padding: 0 20px; }
.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 { color: var(--gold-color); font-size: 28px; font-weight: bold; text-decoration: none; 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; }
.btn { text-decoration: none; padding: 10px 20px; border-radius: 8px; font-weight: bold; text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.3s ease; color: var(--text-main); border: none; }
.btn-primary { background: var(--button-gradient); box-shadow: 0 2px 8px rgba(42, 209, 111, 0.4); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42, 209, 111, 0.6); }
.btn-secondary { background-color: var(--primary-color); border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: var(--secondary-color); }

.hamburger-menu { display: none; cursor: pointer; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; }
.hamburger-menu .bar { width: 100%; height: 3px; background-color: var(--text-main); transition: all 0.3s ease; }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--card-bg); 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; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.nav-list li a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 16px; padding: 5px 0; position: relative; transition: color 0.3s ease; }
.nav-list li a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: var(--gold-color); transition: width 0.3s ease; }
.nav-list li a:hover::after, .nav-list li a.active::after { width: 100%; }
.nav-list li a:hover { color: var(--gold-color); }

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

/* Mobile Nav Buttons - Hidden by default on desktop */
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }

/* Shared Footer Styles */
.site-footer { background-color: var(--card-bg); color: var(--text-secondary); padding: 40px 20px 20px; font-size: 14px; line-height: 1.8; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; border-bottom: 1px solid var(--divider-color); padding-bottom: 30px; }
.footer-col { display: flex; flex-direction: column; }
.footer-logo { color: var(--gold-color); font-size: 24px; font-weight: bold; text-decoration: none; margin-bottom: 15px; display: block; }
.footer-description { margin-bottom: 15px; color: var(--text-secondary); word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { color: var(--text-main); font-size: 18px; margin-bottom: 15px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li a { text-decoration: none; color: var(--text-secondary); display: block; padding: 5px 0; transition: color 0.3s ease; }
.footer-nav li a:hover { color: var(--gold-color); }

.footer-slot-anchor { display: block; width: 100%; min-height: 1px; margin-bottom: 15px; }
.footer-slot-anchor-inner { display: block; width: 100%; min-height: 1px; margin-top: 15px; }
.footer-slot-anchor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; border-bottom: 1px solid var(--divider-color); padding-bottom: 30px; }
.footer-slot-anchor-grid .footer-slot-anchor-inner { margin-top: 0; }

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

/* Media Queries for Mobile */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); overflow-x: hidden; }

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

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

  .header-top { min-height: 60px !important; height: 60px !important; padding: 0 15px; }
  .header-container { width: 100%; max-width: none; justify-content: flex-start; position: relative; }
  
  .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); /* Account for hamburger menu width */
    height: 100%;
  }
  .logo img { max-height: 56px !important; }

  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: flex; z-index: 1001; position: relative; }
  .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-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center; /* Center buttons if only one */
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--deep-green);
  }
  .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 {
    min-height: 48px !important;
    height: auto; /* Allow content to dictate height */
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header and mobile buttons */
    left: 0;
    width: 80%; /* Sidebar width */
    max-width: 300px;
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    background-color: var(--card-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    overflow-y: auto; /* Enable scrolling for long menus */
    z-index: 1000; /* Ensure menu is above other content */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container { width: 100%; max-width: none; padding: 0; }
  .nav-list { flex-direction: column; gap: 15px; width: 100%; }
  .nav-list li a { font-size: 17px; padding: 10px 0; width: 100%; }
  .nav-list li a::after { display: none; }

  .overlay.active { display: block; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-col { align-items: center; }
  .footer-nav li a { text-align: center; }
  .footer-slot-anchor-grid { grid-template-columns: 1fr; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
