:root { --header-offset: 122px; --primary-color: #F2C14E; --secondary-color: #FFD36B; --card-bg: #111111; --page-bg: #0A0A0A; --text-main: #FFF6D6; --border-color: #3A2A12; --glow-color: #FFD36B; }

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

/* Header Styles */
.site-header { background-color: var(--page-bg); width: 100%; position: fixed; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); min-height: 60px; display: flex; align-items: center; }

.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 30px; width: 100%; }

.logo { font-size: 2.2rem; font-weight: bold; color: var(--primary-color); text-decoration: none; flex-shrink: 0; padding: 5px 0; }
.logo:hover { color: var(--secondary-color); }

.main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 25px; }
.main-nav .nav-link { color: var(--text-main); text-decoration: none; font-size: 1.1rem; padding: 8px 0; transition: color 0.3s ease, transform 0.3s ease; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--primary-color); transform: translateY(-2px); }

.desktop-nav-buttons { display: flex; gap: 10px; flex-shrink: 0; margin-left: auto; }
.mobile-nav-buttons { display: none !important; /* Hidden by default on desktop */ }

.btn { padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 1rem; text-align: center; transition: all 0.3s ease; border: none; cursor: pointer; color: #0A0A0A; /* Dark text for contrast with bright buttons */ background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(255, 211, 107, 0.6); }

.hamburger-menu { display: none; /* Hidden by default on desktop */ width: 30px; height: 24px; position: relative; cursor: pointer; flex-direction: column; justify-content: space-between; z-index: 1001; flex-shrink: 0; }
.hamburger-icon { display: block; height: 3px; width: 100%; background-color: var(--text-main); border-radius: 2px; transition: all 0.3s ease-in-out; }
.hamburger-menu.active .hamburger-icon:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.hamburger-menu.active .hamburger-icon:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-icon:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

.mobile-menu-overlay { display: none; /* Hidden by default */ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 998; }
.mobile-menu-overlay.active { display: block; }

/* Footer Styles */
.site-footer { background-color: var(--page-bg); padding: 40px 0 20px; border-top: 1px solid var(--border-color); }
.footer-top-section { padding-bottom: 30px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 0 30px; }

.footer-col { display: flex; flex-direction: column; }
.footer-col .footer-logo { font-size: 1.8rem; font-weight: bold; color: var(--primary-color); text-decoration: none; margin-bottom: 15px; }
.footer-col .footer-description { font-size: 0.95rem; color: var(--text-main); line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; margin-bottom: 15px; }
.footer-col .footer-heading { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 20px; position: relative; }
.footer-col .footer-heading::after { content: ''; display: block; width: 40px; height: 2px; background-color: var(--secondary-color); margin-top: 8px; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); }

.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); margin-top: 30px; font-size: 0.85rem; color: var(--text-main); }

/* Footer Dynamic Slots */
.footer-slot-anchor-inner { min-height: 1px; /* Ensure visibility for injection */ }

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }

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

  .site-header { min-height: 55px; }
  .header-container { padding: 8px 15px; width: 100%; max-width: none; justify-content: space-between; }

  .hamburger-menu { display: flex; }

  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 1.8rem; }
  /* No img tag for logo, so .logo img rule is not strictly necessary but included for robustness */
  .logo img { max-height: 40px; }

  .main-nav { display: none; /* Default hidden */ flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 75%; height: calc(100% - var(--header-offset)); background-color: var(--card-bg); overflow-y: auto; padding: 20px; box-shadow: 4px 0 10px rgba(0, 0, 0, 0.4); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; align-items: flex-start; gap: 15px; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .main-nav .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .main-nav .nav-link:last-child { border-bottom: none; }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; gap: 8px; flex-shrink: 0; }
  .mobile-nav-buttons .btn { padding: 8px 15px; font-size: 0.9rem; border-radius: 20px; }

  .footer-container { grid-template-columns: 1fr; padding: 0 20px; }
  .footer-col { margin-bottom: 25px; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-col .footer-logo { text-align: center; }
  .footer-col .footer-description { text-align: center; }
  .footer-col .footer-heading { text-align: center; }
  .footer-col .footer-heading::after { margin-left: auto; margin-right: auto; }
  .footer-nav { align-items: center; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
