:root { --primary-color: #F2C14E; --secondary-color: #FFD36B; --card-bg: #111111; --background-color: #0A0A0A; --text-main-color: #FFF6D6; --border-color: #3A2A12; --glow-color: #FFD36B; --header-offset: 122px; }
body { font-family: Arial, sans-serif; margin: 0; padding-top: var(--header-offset); background-color: var(--background-color); color: var(--text-main-color); overflow-x: hidden; }

.site-header { background-color: var(--background-color); width: 100%; position: fixed; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); min-height: 60px; display: flex; align-items: center; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 15px 30px; width: 100%; }

.logo { font-size: 28px; font-weight: bold; color: var(--primary-color); text-decoration: none; flex-shrink: 0; display: block; }

.main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 25px; transition: transform 0.3s ease; }
.nav-link { color: var(--text-main-color); text-decoration: none; font-size: 16px; padding: 8px 0; position: relative; transition: color 0.3s ease; }
.nav-link:hover { color: var(--primary-color); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-size: 16px; font-weight: bold; text-decoration: none; color: #333; cursor: pointer; border: none; transition: all 0.3s ease; background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--glow-color); }

.desktop-nav-buttons { flex-shrink: 0; margin-left: auto; display: flex; gap: 10px; }
.mobile-nav-buttons { display: none !important; }
.hamburger-menu { display: none; background: none; border: none; font-size: 30px; color: var(--text-main-color); cursor: pointer; z-index: 1001; padding: 5px; line-height: 1; flex-shrink: 0; }
.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: 998; }
.mobile-menu-overlay.active { display: block; }

/* Footer Styles */
.site-footer { background-color: var(--card-bg); color: var(--text-main-color); padding: 40px 0 20px; border-top: 1px solid var(--border-color); }
.footer-content-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-decoration: none; margin-bottom: 15px; }
.footer-description { font-size: 14px; line-height: 1.6; color: rgba(255, 246, 214, 0.7); word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 18px; font-weight: bold; color: var(--primary-color); margin-bottom: 20px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: rgba(255, 246, 214, 0.7); text-decoration: none; font-size: 14px; transition: color 0.3s ease; }
.footer-link:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255, 246, 214, 0.5); margin-top: 20px; max-width: 1200px; margin-left: auto; margin-right: auto; padding: 20px 20px 0; }

.footer-slot-anchor { min-height: 10px; }
.footer-slot-anchor-inner { min-height: 10px; margin-top: 10px; }

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .site-header { min-height: 50px; }
  .header-container { padding: 10px 15px; width: 100%; max-width: none; }
  .hamburger-menu { display: block; order: 0; margin-right: 10px; }
  .logo { order: 1; flex: 1; text-align: center; font-size: 24px; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; order: 2; gap: 8px; }
  .main-nav { display: none; position: fixed; top: var(--header-offset); left: 0; width: 250px; height: calc(100% - var(--header-offset)); background-color: var(--card-bg); flex-direction: column; align-items: flex-start; padding: 20px; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; overflow-y: auto; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255, 246, 214, 0.1); }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }
  
  .footer-grid-container { grid-template-columns: 1fr; gap: 25px; }
  .footer-col { text-align: center; }
  .footer-nav { align-items: center; }
  .footer-description { max-width: 90%; margin-left: auto; margin-right: auto; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-bottom { padding: 20px 15px 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;
  }
}
