html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #F3F8FF; background-color: #08162B; padding-top: var(--header-offset); }
:root { --header-offset: 122px; --primary-color: #113B7A; --secondary-color: #1D5FD1; --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); --card-bg: #10233F; --text-main: #F3F8FF; --text-secondary: #AFC4E8; --border-color: #244D84; --glow-color: #4FA8FF; --gold-color: #F2C14E; --divider-color: #1B3357; --deep-navy: #08162B; }

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

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); 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 30px; }

.logo { font-size: 28px; font-weight: bold; color: var(--gold-color); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; 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; transition: all 0.3s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--btn-gradient); color: var(--text-main); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.btn-secondary { background-color: var(--secondary-color); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: #1a52b8; }

.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--deep-navy); width: 100%; padding: 10px 15px; }

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

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

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

/* Ensure footer slot anchors are visible for content injection */
.footer-slot-anchor-inner { min-height: 1px; }

/* Responsive 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%; }

  .header-top { min-height: 60px; height: 60px; background-color: var(--primary-color); }
  .header-container { width: 100%; max-width: none; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; height: 100%; }
  .logo img { max-height: 56px !important; }

  .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: 10px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--deep-navy); }
  .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 { display: none; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 280px; height: calc(100% - var(--header-offset)); background-color: var(--deep-navy); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3); }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 20px 0; width: 100%; max-width: none; height: auto; }
  .nav-link { width: 100%; padding: 12px 20px; border-bottom: 1px solid var(--divider-color); }
  .nav-link:last-child { border-bottom: none; }

  .hamburger-menu { display: block; }

  .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px; }
  .footer-bottom { padding: 0 15px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
