:root { --header-offset: 122px; --primary: #2F6BFF; --secondary: #6FA3FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --card-bg: #FFFFFF; --bg: #F4F7FB; --text-main: #1F2D3D; --border: #D6E2FF; --glow: #A5C4FF; } *, *::before, *::after { box-sizing: border-box; } body { padding-top: var(--header-offset); margin: 0; overflow-x: hidden; } .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 18px rgba(47, 107, 255, 0.18); background: #FFFFFF; } .header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; background: linear-gradient(90deg, #2F6BFF 0%, #1E4FCC 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: 30px; font-weight: 800; letter-spacing: 0.5px; color: #FFFFFF; text-decoration: none; line-height: 1; white-space: nowrap; flex-shrink: 0; } .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; flex-shrink: 0; } .mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; } .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.25s ease; text-align: center; line-height: 1.2; font-size: 15px; padding: 10px 22px; white-space: nowrap; } .btn-login { background: #FFFFFF; color: #2F6BFF; border: 2px solid #FFFFFF; box-shadow: 0 2px 8px rgba(0,0,0,0.12); } .btn-login:hover { background: var(--glow); color: #1E4FCC; border-color: var(--glow); } .btn-register { background: linear-gradient(180deg, #FFB020 0%, #F08A00 100%); color: #1F2D3D; border: 2px solid transparent; box-shadow: 0 3px 12px rgba(240, 138, 0, 0.4); } .btn-register:hover { background: linear-gradient(180deg, #FFC042 0%, #FF9A11 100%); transform: translateY(-2px); } .hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; z-index: 1001; } .hamburger-menu span { display: block; width: 26px; height: 3px; background: #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); } .main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; background: #FFFFFF; border-top: 1px solid var(--border); position: static; } .nav-container { box-sizing: border-box; height: 100%; max-width: 1200px; width: 100%; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 4px; overflow: hidden; } .nav-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 6px; transition: background 0.2s ease, color 0.2s ease; white-space: nowrap; position: relative; } .nav-link:hover, .nav-link.active { background: var(--bg); color: var(--primary); } .nav-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 999; } .nav-overlay.active { opacity: 1; visibility: visible; } body.no-scroll { overflow: hidden; } @media (max-width: 768px) { :root { --header-offset: 110px; } .header-top { min-height: 60px !important; height: 60px !important; } .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 26px; } .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; } .hamburger-menu { display: flex; position: relative; z-index: 2; order: -1; } .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-left: 15px; padding-right: 15px; padding-top: 6px; padding-bottom: 6px; overflow: hidden; gap: 10px; flex-wrap: nowrap; min-height: 48px; background: #FFFFFF; } .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 { min-height: 48px !important; height: 48px !important; display: none; position: fixed; top: var(--header-offset); left: 0; right: 0; bottom: 0; height: auto !important; width: 100%; background: #FFFFFF; flex-direction: column; align-items: stretch; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; border-top: none; padding: 12px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.2); } .main-nav.active, .main-nav.open { display: block; transform: translateX(0); } .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; max-width: none; padding: 0 16px; height: auto; gap: 2px; } .nav-link { width: 100%; justify-content: flex-start; font-size: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); border-radius: 0; } .nav-link:last-child { border-bottom: none; } .page-content img { max-width: 100% !important; height: auto !important; display: block; } .page-content { overflow-x: hidden; max-width: 100%; } body { overflow-x: hidden; } } .site-footer { background: #0F1E3D; color: #E2E8F0; padding-top: 40px; margin-top: 40px; } .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; } .footer-top-row { max-width: 1200px; margin: 0 auto; padding: 0 24px 16px; } .footer-top-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(165, 196, 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: 12px; letter-spacing: 0.5px; } .footer-logo:hover { color: var(--glow); } .footer-description { font-size: 14px; line-height: 1.7; color: #C3D2EE; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; } .footer-heading { 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; padding: 0; margin: 0; } .footer-nav li { margin-bottom: 8px; } .footer-nav a { display: inline-block; color: #C3D2EE; text-decoration: none; font-size: 14px; padding: 4px 0; transition: color 0.2s ease, padding-left 0.2s ease; } .footer-nav a:hover { color: var(--glow); padding-left: 4px; } .footer-slot-anchor-inner { min-height: 1px; } .footer-dynamic-col { min-width: 0; } .footer-mid { max-width: 1200px; margin: 0 auto; padding: 0 24px; } .footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 8px 0; } .footer-bottom { background: #0A1529; color: #A9B8D8; text-align: center; padding: 18px 16px; font-size: 13px; border-top: 1px solid rgba(165, 196, 255, 0.15); } .footer-bottom p { margin: 0; } @media (max-width: 768px) { .site-footer { padding-top: 28px; margin-top: 28px; } .footer-container, .footer-top-row, .footer-mid { padding-left: 16px; padding-right: 16px; } .footer-top-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 20px; } .footer-mid-grid { grid-template-columns: 1fr 1fr; } .footer-logo { font-size: 24px; } .footer-heading { font-size: 15px; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
