:root { --header-offset: 122px; --primary-color: #C91F17; --secondary-color: #E53935; --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); --card-bg: #D32F2F; --background-color: #B71C1C; --text-main: #FFF5E1; --border-color: #F2B544; --glow-color: #FFCC66; --gold-color: #F4D34D; --deep-red: #7A0E0E; }

body { margin: 0; font-family: 'Arial', sans-serif; padding-top: var(--header-offset); color: var(--text-main); background-color: var(--background-color); 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); background-color: var(--primary-color); }

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-red); width: 100%; }
.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 { display: inline-block; font-size: 24px; font-weight: bold; color: var(--gold-color); text-decoration: none; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); white-space: nowrap; }
.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(--primary-color); padding: 8px 20px; width: 100%; }

.btn { display: inline-block; padding: 10px 18px; border-radius: 25px; text-decoration: none; font-weight: bold; color: #333; text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.3s ease; background: var(--button-gradient); border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); }
.btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); 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-link { display: block; padding: 8px 15px; color: var(--text-main); text-decoration: none; font-weight: bold; transition: color 0.3s ease, background-color 0.3s ease; white-space: nowrap; }
.nav-link:hover { color: var(--gold-color); background-color: rgba(255, 255, 255, 0.1); border-radius: 5px; }

.hamburger-menu { display: none; width: 30px; height: 24px; position: relative; cursor: pointer; z-index: 1001; background: none; border: none; padding: 0; margin-left: 15px; margin-right: -15px; }
.hamburger-icon { display: block; position: absolute; width: 100%; height: 3px; background-color: var(--text-main); top: 50%; left: 0; transform: translateY(-50%); transition: background-color 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; position: absolute; width: 100%; height: 3px; background-color: var(--text-main); 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; }

.site-footer { background-color: var(--deep-red); padding: 40px 20px 20px; color: var(--text-main); font-size: 14px; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col { padding: 0; }
.footer-logo { display: block; font-size: 22px; font-weight: bold; color: var(--gold-color); text-decoration: none; margin-bottom: 15px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.footer-description { color: var(--text-main); margin-bottom: 15px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 18px; color: var(--gold-color); margin-bottom: 20px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a, .footer-nav-legal a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover, .footer-nav-legal a:hover { color: var(--gold-color); }

.footer-bottom { border-top: 1px solid var(--primary-color); padding-top: 20px; text-align: center; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.footer-bottom p { margin: 0 0 10px; }
.footer-nav-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

/* Footer Slot Anchors */
.footer-slot-anchor-outer, .footer-slot-anchor-inner { display: block; width: 100%; min-height: 0; overflow: visible; }

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

  .header-top { min-height: 60px; height: 60px; }
  .header-container { padding: 0 15px; width: 100%; max-width: none; }

  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; margin: 0; }
  .logo img { max-height: 56px; }

  .desktop-nav-buttons { display: none !important; }
  .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: 8px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--primary-color); }
  .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; }

  .hamburger-menu { display: block; }

  .main-nav { min-height: 48px; height: 100vh; position: fixed; top: var(--header-offset); left: 0; width: 280px; background-color: var(--deep-red); flex-direction: column; justify-content: flex-start; padding-top: 20px; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; overflow-y: auto; display: none; /* Default hidden */ }
  .main-nav.active { transform: translateX(0); display: flex; /* Show when active */ }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 0 15px; width: 100%; max-width: none; height: auto; }
  .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-link:last-child { border-bottom: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; }
  .footer-nav-legal { flex-direction: column; gap: 5px; }
  .footer-nav-legal li { 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;
  }
}
