*, *::before, *::after { box-sizing: border-box; }
:root { --header-offset: 122px; --primary: #2F6BFF; --secondary: #6FA3FF; --bg: #F4F7FB; --card-bg: #FFFFFF; --text-main: #1F2D3D; --text-black: #000000; --border: #D6E2FF; --glow: #A5C4FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); }
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg); color: var(--text-main); }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; max-width: 100%; z-index: 1000; overflow-x: hidden; }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; background-color: #0B1B3A; box-shadow: 0 4px 18px rgba(15, 35, 80, 0.28); }
.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-left: 30px; padding-right: 30px; }
.logo { display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: 1px; color: #FFFFFF; text-decoration: none; line-height: 1; text-shadow: 0 2px 10px rgba(47, 107, 255, 0.65); }
.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; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.2; padding: 11px 22px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; border: none; }
.btn-primary { background: var(--btn-gradient); color: #FFFFFF; box-shadow: 0 4px 14px rgba(47, 107, 255, 0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(47, 107, 255, 0.6); filter: brightness(1.05); }
.btn-outline { background: transparent; color: #FFFFFF; border: 2px solid var(--glow); }
.btn-outline:hover { background: rgba(165, 196, 255, 0.18); transform: translateY(-2px); }

.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; background-color: #14264D; border-top: 1px solid rgba(111, 163, 255, 0.35); box-shadow: 0 6px 14px rgba(10, 25, 60, 0.25); }
.nav-container { box-sizing: border-box; position: relative; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; flex-wrap: nowrap; }
.nav-link { display: inline-block; padding: 8px 12px; color: #E6EEFF; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 8px; white-space: nowrap; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-link:hover, .nav-link.active { color: #FFFFFF; background-color: var(--primary); }
.hamburger-menu { display: none; }
.nav-overlay { display: none; }

/* ===== FOOTER ===== */
.site-footer { background-color: #0B1B3A; color: #D9E5FF; margin-top: 0; }
.footer-top { background: linear-gradient(180deg, #102350 0%, #0B1B3A 100%); border-top: 3px solid var(--primary); }
.footer-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 30px 10px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 28px; font-weight: 800; letter-spacing: 1px; color: #FFFFFF; text-decoration: none; margin-bottom: 14px; text-shadow: 0 2px 10px rgba(47, 107, 255, 0.6); }
.footer-description { font-size: 14px; line-height: 1.7; color: #BFD2F5; margin: 0; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 16px; padding-bottom: 10px; position: relative; }
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; border-radius: 2px; background: var(--btn-gradient); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav li { margin: 0; }
.footer-nav a { color: #BFD2F5; font-size: 14px; text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav a:hover { color: #FFFFFF; padding-left: 5px; }
.footer-slot-anchor-inner { display: block; }
.footer-mid { padding: 10px 0 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-bottom { background-color: #071228; border-top: 1px solid rgba(111, 163, 255, 0.25); padding: 18px 0; }
.footer-bottom .footer-container { padding: 0 30px; }
.footer-copyright { margin: 0; font-size: 13px; color: #9FB6E0; text-align: center; }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }

  .header-top { height: 60px !important; min-height: 60px !important; }
  .header-container { position: relative; width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; height: 100%; }
  .logo { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: calc(100% - 120px); font-size: 24px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; 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: #0B1B3A; }
  .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 { height: 48px !important; min-height: 48px !important; display: none; position: fixed; top: calc(var(--header-offset) - 48px); left: 0; width: 100%; max-width: 100%; background-color: #14264D; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding: 8px 0; }
  .nav-list li { width: 100%; }
  .nav-link { display: block; width: 100%; padding: 13px 24px; font-size: 15px; border-radius: 0; border-bottom: 1px solid rgba(111, 163, 255, 0.15); white-space: normal; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; background: transparent; border: none; cursor: pointer; z-index: 1002; padding: 0; }
  .hamburger-menu span { display: block; width: 24px; height: 3px; background-color: #FFFFFF; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-overlay { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(4, 12, 30, 0.6); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
  .nav-overlay.active { opacity: 1; visibility: visible; }
  body.no-scroll { overflow: hidden; }

  .footer-container { padding: 30px 18px 10px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-bottom .footer-container { padding: 0 18px; }
  .footer-copyright { font-size: 12px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-top-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-mid-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
