html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding-top: var(--header-offset); color: #F3F8FF; background-color: #08162B; }

:root { --header-offset: 122px; --primary-color: #113B7A; --secondary-color: #1D5FD1; --text-main: #F3F8FF; --text-secondary: #AFC4E8; --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); --card-bg: #10233F; --border-color: #244D84; --deep-navy: #08162B; }

.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; 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(--deep-navy); 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 { font-size: 28px; font-weight: bold; color: var(--gold, #F2C14E); text-decoration: none; display: flex; align-items: center; 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(--deep-navy); width: 100%; }

.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; gap: 25px; }
.nav-link { color: var(--text-main); text-decoration: none; font-size: 16px; padding: 5px 0; white-space: nowrap; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--gold, #F2C14E); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background-color: var(--gold, #F2C14E); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn { background: var(--button-gradient); color: #fff; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; white-space: nowrap; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { box-shadow: 0 0 15px var(--glow, #4FA8FF); transform: translateY(-2px); }

.hamburger-menu { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; cursor: pointer; position: relative; z-index: 1002; }
.hamburger-menu .bar { height: 3px; width: 100%; background-color: var(--text-main); border-radius: 10px; transition: all 0.3s ease; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

.site-footer { background-color: var(--card-bg); padding: 40px 20px 20px; color: var(--text-secondary); font-size: 14px; }
.footer-slot-anchor { width: 100%; height: 0; overflow: hidden; }
.footer-slot-anchor-inner { width: 100%; height: 0; overflow: hidden; }
.footer-grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; border-bottom: 1px solid var(--divider, #1B3357); padding-bottom: 30px; }
.footer-col-title { font-size: 18px; color: var(--text-main); margin-bottom: 15px; }
.footer-about .footer-logo { font-size: 24px; color: var(--gold, #F2C14E); margin-bottom: 15px; display: block; }
.footer-about .footer-description { line-height: 1.6; color: var(--text-secondary); word-wrap: break-word; overflow-wrap: break-word; }
.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(--text-main); }
.footer-bottom { text-align: center; margin-top: 20px; color: var(--text-secondary); }
.footer-bottom p { margin: 0; }

@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; padding: 0 15px; justify-content: space-between; }
  .header-container { max-width: none; padding: 0; justify-content: center; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .logo img { max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: flex; margin-right: auto; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }

  .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: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--divider, #1B3357);
  }
  .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 {
    position: fixed; top: var(--header-offset); left: 0; height: calc(100% - var(--header-offset)); width: 280px;
    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%); transition: transform 0.3s ease;
    display: none; /* Default hidden */
    z-index: 1001; /* Above overlay */
    overflow-y: auto;
    min-height: auto; /* Allow content to dictate height */
    height: calc(100% - var(--header-offset)); /* Fill remaining height */
  }
  .main-nav.active { transform: translateX(0); display: flex; /* Show when active */ }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 0; width: 100%; gap: 15px; }
  .nav-link { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { bottom: 0; }

  .footer-grid-container { grid-template-columns: 1fr; text-align: center; }
  .footer-col { margin-bottom: 20px; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-nav { text-align: center; }
}

@media (max-width: 480px) {
  .logo { font-size: 22px; }
  .btn { padding: 8px 15px; font-size: 14px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
