:root { --header-offset: 122px; --primary: #2F6BFF; --secondary: #6FA3FF; --bg: #F4F7FB; --card-bg: #FFFFFF; --text-main: #1F2D3D; --border: #D6E2FF; --glow: #A5C4FF; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Arial, sans-serif; background-color: var(--bg); color: var(--text-main); }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--card-bg); box-shadow: 0 4px 18px rgba(47, 107, 255, 0.14); border-bottom: 1px solid var(--border); overflow-x: hidden; }
.header-top { height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #1a3fbf 0%, #2F6BFF 100%); width: 100%; }
.header-container { 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: 30px; font-weight: 800; letter-spacing: 1px; color: #FFFFFF; text-decoration: none; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.logo:hover { color: var(--glow); }
.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; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-weight: 700; border-radius: 8px; border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; line-height: 1.2; }
.btn-login { background: #FFFFFF; color: var(--primary); border: 2px solid #FFFFFF; padding: 10px 22px; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.btn-login:hover { background: var(--glow); border-color: var(--glow); color: #0a2a7a; transform: translateY(-1px); }
.btn-register { background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); color: #FFFFFF; padding: 10px 26px; font-size: 15px; border: 2px solid #FFFFFF; box-shadow: 0 4px 12px rgba(47, 107, 255, 0.35); }
.btn-register:hover { box-shadow: 0 6px 18px rgba(47, 107, 255, 0.55); transform: translateY(-1px); filter: brightness(1.08); }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }
.main-nav { min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #0F2A6B; width: 100%; border-top: 1px solid rgba(111, 163, 255, 0.25); }
.nav-container { position: relative; height: 100%; max-width: 1200px; width: 100%; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 24px; }
.nav-menu { display: flex; flex-direction: row; align-items: center; justify-content: center; list-style: none; margin: 0; padding: 0; gap: 2px; flex-wrap: nowrap; }
.nav-item { display: inline-block; }
.nav-link { display: inline-block; padding: 8px 11px; color: #E4ECFF; text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link:focus { background-color: rgba(111, 163, 255, 0.28); color: #FFFFFF; }
.hamburger-menu { display: none; }
.nav-overlay { display: none; }
.site-footer { background-color: #0B1E4C; color: #C9D8FF; padding: 48px 20px 0; margin-top: 40px; }
.footer-top-row { max-width: 1200px; margin: 0 auto; }
.footer-top-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(111, 163, 255, 0.2); }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 28px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 14px; letter-spacing: 1px; }
.footer-logo:hover { color: var(--glow); }
.footer-description { font-size: 14px; line-height: 1.7; color: #B8CCF5; margin: 0 0 12px; overflow-wrap: break-word; word-wrap: break-word; }
.footer-heading { color: #FFFFFF; font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: #B8CCF5; text-decoration: none; font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: #FFFFFF; padding-left: 4px; }
.footer-dynamic-col { min-height: 40px; }
.footer-mid { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-bottom-slot { max-width: 1200px; margin: 0 auto; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 0; text-align: center; border-top: 1px solid rgba(111, 163, 255, 0.2); }
.footer-bottom p { margin: 0; font-size: 13px; color: #9FB6E8; }
.footer-slot-anchor-inner { min-height: 1px; }
@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%; }
  .site-header { overflow-x: hidden; max-width: 100%; }
  .header-top { height: 60px !important; min-height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; height: 100%; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; text-align: center; 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: #1A3FBF; }
  .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; border-radius: 6px; }
  .mobile-nav-buttons .btn-login { padding: 8px 10px; }
  .mobile-nav-buttons .btn-register { padding: 8px 10px; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; width: 85%; max-width: 320px; height: 100vh; min-height: 100vh; background-color: #0B1E4C; flex-direction: column; align-items: stretch; justify-content: flex-start; padding-top: 20px; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,0.4); border-top: none; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 0 15px; flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; }
  .nav-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; gap: 0; margin-top: 48px; }
  .nav-item { width: 100%; border-bottom: 1px solid rgba(111,163,255,0.15); }
  .nav-link { display: block; width: 100%; padding: 14px 10px; font-size: 15px; border-radius: 0; color: #E4ECFF; text-align: left; }
  .nav-link:hover, .nav-link:focus { background-color: rgba(111, 163, 255, 0.2); }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; background-color: transparent; border: none; cursor: pointer; position: fixed; top: 8px; left: 10px; z-index: 1002; }
  .hamburger-line { display: block; width: 24px; height: 3px; background-color: #FFFFFF; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
  .hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.55); z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
  .nav-overlay.active { display: block; opacity: 1; }
  body.no-scroll { overflow: hidden; }
  .site-footer { padding: 36px 15px 0; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 26px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { font-size: 24px; }
  .footer-bottom p { font-size: 12px; }
}
@media (max-width: 480px) {
  .footer-mid-grid { grid-template-columns: 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;
}
