:root { --primary: #2F6BFF; --secondary: #6FA3FF; --accent: #A5C4FF; --bg-page: #F4F7FB; --bg-card: #FFFFFF; --text-main: #1F2D3D; --border-color: #D6E2FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --header-offset: 122px; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); background-color: var(--bg-page); color: var(--text-main); font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 18px rgba(31, 45, 61, 0.12); background-color: #FFFFFF; }
.header-top { width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #0B2B6B; }
.header-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: inline-block; font-size: 26px; font-weight: 800; letter-spacing: 0.5px; color: #FFFFFF; text-decoration: none; line-height: 1; text-shadow: 0 2px 8px rgba(165, 196, 255, 0.5); }
.logo:hover { color: var(--accent); }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; gap: 10px; align-items: center; }
.mobile-nav-buttons { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; border-radius: 8px; border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; white-space: nowrap; }
.btn-login { background: transparent; color: #FFFFFF; border: 2px solid var(--accent); }
.btn-login:hover { background-color: rgba(165, 196, 255, 0.18); transform: translateY(-1px); }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; box-shadow: 0 4px 14px rgba(47, 107, 255, 0.45); }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6); opacity: 0.96; }
.main-nav { width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; border-top: 1px solid var(--border-color); }
.nav-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: row; justify-content: center; align-items: center; position: relative; }
.nav-menu { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { margin: 0; padding: 0; }
.nav-menu a { display: inline-block; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--text-main); text-decoration: none; border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; }
.nav-menu a:hover { background-color: rgba(47, 107, 255, 0.1); color: var(--primary); }
.nav-menu a.active { background-color: var(--primary); color: #FFFFFF; }
.hamburger-menu { display: none; }
.menu-overlay { display: none; }
.site-footer { background-color: #0B2B6B; color: #E6EEFF; margin-top: 0; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { padding: 48px 0 28px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.footer-col { min-width: 0; }
.footer-about .footer-logo { display: inline-block; font-size: 24px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 12px; letter-spacing: 0.5px; text-shadow: 0 2px 8px rgba(165, 196, 255, 0.4); }
.footer-about .footer-logo:hover { color: var(--accent); }
.footer-description { font-size: 14px; line-height: 1.7; color: #B9CDFF; margin: 0 0 16px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { display: inline-block; font-size: 14px; color: #B9CDFF; text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-nav a:hover { color: #FFFFFF; padding-left: 4px; }
.footer-mid { padding: 8px 0 24px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.footer-bottom { background-color: #071F4F; padding: 18px 0; border-top: 1px solid rgba(214, 226, 255, 0.18); }
.footer-bottom .copyright { margin: 0; text-align: center; font-size: 13px; color: #9FB8F5; }
.footer-slot-anchor-inner { min-height: 1px; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { height: 60px; min-height: 60px; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; }
  .logo { font-size: 22px; }
  .logo img { max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; min-height: 48px; width: 100%; max-width: 100%; box-sizing: border-box; padding: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #0B2B6B; }
  .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; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh; min-height: 100vh; background-color: #071F4F; z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4); overflow-y: auto; border-top: none; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; padding: 70px 20px 30px; display: block; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; padding: 0; background: transparent; border: none; cursor: pointer; position: fixed; top: 10px; left: 12px; z-index: 1002; }
  .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-menu { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu li { width: 100%; border-bottom: 1px solid rgba(214, 226, 255, 0.12); }
  .nav-menu a { display: block; width: 100%; padding: 14px 10px; font-size: 15px; color: #E6EEFF; border-radius: 0; }
  .nav-menu a:hover { background-color: rgba(47, 107, 255, 0.25); color: #FFFFFF; padding-left: 16px; }
  .nav-menu a.active { background-color: var(--primary); color: #FFFFFF; }
  .menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.55); z-index: 999; }
  .menu-overlay.active { display: block; }
  body.no-scroll { overflow: hidden; }
  .footer-top { padding: 32px 0 20px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-mid-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-container { padding: 0 16px; }
  .footer-title { font-size: 15px; }
  .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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
