:root { --primary: #2F6BFF; --secondary: #6FA3FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --bg-main: #F4F7FB; --card-bg: #FFFFFF; --text-main: #1F2D3D; --text-black: #000000; --border-color: #D6E2FF; --glow: #A5C4FF; --header-offset: 122px; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--text-main); background-color: var(--bg-main); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--card-bg); box-shadow: 0 4px 20px rgba(47, 107, 255, 0.15); border-bottom: 1px solid var(--border-color); overflow-x: hidden; }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #1A3A8F; 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-left: 24px; padding-right: 24px; position: relative; }
.logo { display: inline-block; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; color: #FFFFFF; text-decoration: none; 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 { display: none; box-sizing: border-box; width: 100%; max-width: 100%; min-height: 48px; padding: 6px 15px; background-color: #1A3A8F; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap; overflow: hidden; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: all 0.25s ease; border: 1px solid transparent; }
.btn-login { background-color: transparent; color: #FFFFFF; border: 1px solid #FFFFFF; }
.btn-login:hover { background-color: rgba(255, 255, 255, 0.15); }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; border: none; box-shadow: 0 4px 14px rgba(47, 107, 255, 0.45); }
.btn-register:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(47, 107, 255, 0.6); }
.hamburger-menu { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; padding: 0; background: transparent; border: none; cursor: pointer; z-index: 1001; flex-shrink: 0; }
.hamburger-menu span { display: block; width: 24px; height: 2.5px; background-color: #FFFFFF; border-radius: 2px; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: var(--btn-gradient); 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-menu { display: flex; flex-direction: row; align-items: center; justify-content: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-menu li { margin: 0; padding: 0; }
.nav-link { display: block; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #FFFFFF; text-decoration: none; border-radius: 6px; transition: all 0.25s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.2); color: #FFFFFF; }
.site-footer { background-color: #1A3A8F; color: #E8EEFF; width: 100%; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { padding: 50px 0 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col { min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 16px; }
.footer-description { font-size: 14px; line-height: 1.7; color: #C5D4F5; margin: 0 0 12px; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--secondary); display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: 14px; color: #C5D4F5; text-decoration: none; transition: color 0.25s ease; display: inline-block; }
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-dynamic-col { display: flex; flex-direction: column; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-mid { padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-bottom { padding: 20px 0; background-color: #142E70; }
.footer-copyright { font-size: 13px; color: #A8BCE8; text-align: center; margin: 0; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { height: 60px !important; min-height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; justify-content: center; }
  .hamburger-menu { display: flex; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
  .logo { font-size: 22px; position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; justify-content: center !important; align-items: center !important; max-width: calc(100% - 100px); }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; }
  .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: var(--header-offset); left: 0; width: 100%; flex-direction: column; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; background: var(--btn-gradient); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; padding: 10px 15px; flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .nav-menu { flex-direction: column; width: 100%; gap: 0; align-items: stretch; }
  .nav-menu li { width: 100%; }
  .nav-link { padding: 14px 16px; font-size: 15px; border-radius: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { padding: 32px 0 20px; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }
}
.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.nav-overlay.active { display: block; opacity: 1; }
body.no-scroll { overflow: 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;
}
