:root { --header-offset: 122px; --primary: #2F6BFF; --secondary: #6FA3FF; --bg: #F4F7FB; --card-bg: #FFFFFF; --text-main: #1F2D3D; --border: #D6E2FF; --glow: #A5C4FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text-main); background-color: var(--bg); }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(47, 107, 255, 0.15); }
.header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; border-bottom: 1px solid var(--border); }
.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; }
.logo { display: inline-block; font-size: 26px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: 0.5px; white-space: nowrap; }
.logo:hover { color: var(--secondary); }
.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-block; text-decoration: none; text-align: center; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.25s ease; border: none; line-height: 1.2; }
.btn-login { background: #FFFFFF; color: var(--primary); border: 1.5px solid var(--primary); padding: 10px 22px; font-size: 15px; }
.btn-login:hover { background: var(--bg); transform: translateY(-1px); }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; padding: 11px 24px; font-size: 15px; box-shadow: 0 4px 14px rgba(47, 107, 255, 0.35); }
.btn-register:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 107, 255, 0.45); }
.main-nav { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #1A3FA6; }
.nav-container { box-sizing: border-box; width: 100%; 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; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; flex-wrap: wrap; }
.nav-menu li { margin: 0; }
.nav-link { display: block; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 11px; border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-link:hover { background-color: var(--primary); color: #FFFFFF; }
.nav-link.active { background-color: var(--primary); color: #FFFFFF; }
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: #FFFFFF; border-radius: 2px; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: 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; }
.site-footer { background-color: #0F1F3D; color: #C9D6EA; padding: 40px 20px 0; }
.footer-top-row, .footer-top-grid, .footer-mid-section, .footer-bottom-slot, .footer-bottom { max-width: 1200px; margin: 0 auto; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 24px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 14px; }
.footer-logo:hover { color: var(--secondary); }
.footer-description { font-size: 14px; line-height: 1.7; color: #A9BAD6; margin: 0 0 14px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 16px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #A9BAD6; text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--secondary); }
.footer-dynamic-col { display: flex; flex-direction: column; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-mid-section { padding: 20px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-bottom-slot { padding: 10px 0; }
.footer-bottom { padding: 20px 0 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: #8697B5; }
@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; position: relative; }
  .logo { font-size: 22px; position: absolute; left: 50%; transform: translateX(-50%); }
  .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-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #FFFFFF; border-bottom: 1px solid var(--border); }
  .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: 0; left: 0; width: 280px; max-width: 85%; height: 100vh !important; flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1002; background-color: #1A3FA6; overflow-y: auto; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: 100%; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 70px 0 20px; }
  .hamburger-menu { display: flex; position: fixed; top: 18px; left: 15px; z-index: 1003; }
  .nav-menu { flex-direction: column; width: 100%; gap: 0; flex-wrap: nowrap; align-items: stretch; }
  .nav-menu li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-link { padding: 14px 24px; font-size: 15px; text-align: left; }
  .nav-overlay { z-index: 1001; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-mid-grid { grid-template-columns: 1fr; }
  .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: 480px) {
  .site-header { width: 100%; max-width: 100%; overflow-x: hidden; }
  .header-top { height: 60px !important; min-height: 60px !important; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
