:root { --header-offset: 122px; --primary: #2F6BFF; --secondary: #6FA3FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --bg: #F4F7FB; --card-bg: #FFFFFF; --text-main: #1F2D3D; --border: #D6E2FF; --glow: #A5C4FF; } * { box-sizing: border-box; } body { margin: 0; padding-top: var(--header-offset); background: var(--bg); 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; background: var(--card-bg); box-shadow: 0 4px 18px rgba(47, 107, 255, 0.18); border-bottom: 1px solid var(--border); } .header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; background: linear-gradient(180deg, #FFFFFF 0%, #EAF1FF 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: 28px; padding-right: 28px; } .logo { display: inline-block; font-size: 28px; font-weight: 800; letter-spacing: 0.5px; text-decoration: none; color: var(--primary); background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; } .logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; } .desktop-nav-buttons { display: flex; align-items: center; gap: 12px; margin-left: auto; } .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; font-weight: 700; border-radius: 10px; border: none; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; line-height: 1.2; white-space: nowrap; } .btn-login { background: #FFFFFF; color: var(--primary); border: 2px solid var(--primary); padding: 9px 20px; font-size: 15px; box-shadow: 0 2px 8px rgba(47, 107, 255, 0.15); } .btn-login:hover { background: #EAF1FF; transform: translateY(-1px); } .btn-register { background: var(--btn-gradient); color: #FFFFFF; padding: 11px 22px; font-size: 15px; box-shadow: 0 4px 14px rgba(47, 107, 255, 0.38); } .btn-register:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 107, 255, 0.5); } .main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; background: linear-gradient(180deg, #2F6BFF 0%, #2456D6 100%); } .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-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; flex-wrap: nowrap; } .nav-item { margin: 0; } .nav-link { display: inline-block; color: #FFFFFF; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 11px; border-radius: 8px; transition: background 0.18s ease, color 0.18s ease; white-space: nowrap; } .nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, 0.2); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); } .hamburger-menu { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 24px; background: transparent; border: none; padding: 0; cursor: pointer; z-index: 1001; } .hamburger-line { display: block; width: 100%; height: 3px; background: var(--primary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; } .hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(10.5px) rotate(45deg); } .hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; } .hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); } .nav-overlay { display: none; } .site-footer { background: #EAF1FF; color: var(--text-main); border-top: 3px solid var(--primary); margin-top: 0; } .footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; } .footer-top { padding: 44px 0 24px; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; } .footer-col { min-width: 0; } .footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: var(--primary); text-decoration: none; margin-bottom: 12px; line-height: 1; } .footer-description { font-size: 14px; line-height: 1.7; color: var(--text-main); margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; } .footer-title { font-size: 16px; font-weight: 700; color: #1F2D3D; margin: 0 0 14px; padding-bottom: 8px; position: relative; } .footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--btn-gradient); border-radius: 2px; } .footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; } .footer-nav li { margin: 0; } .footer-nav a { display: inline-block; color: #33455C; text-decoration: none; font-size: 14px; line-height: 1.45; padding: 2px 0; transition: color 0.18s ease, transform 0.18s ease; word-break: break-word; } .footer-nav a:hover { color: var(--primary); transform: translateX(3px); } .footer-mid { padding: 10px 0 20px; } .footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } .footer-slot-anchor-inner { display: block; } .footer-bottom { background: #2456D6; padding: 16px 0; } .footer-copyright { margin: 0; text-align: center; font-size: 13.5px; color: #FFFFFF; line-height: 1.5; } @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; position: relative; height: 100%; box-sizing: border-box; } .logo { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: calc(100% - 100px); font-size: 24px; } .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; } .hamburger-menu { display: flex; position: relative; z-index: 1001; } .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: #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 { position: fixed; top: 0; left: 0; width: 280px; max-width: 82%; height: 100vh !important; min-height: 100vh !important; display: none; flex-direction: column; justify-content: flex-start; align-items: stretch; background: linear-gradient(180deg, #2F6BFF 0%, #1E45A8 100%); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; padding-top: 76px; overflow-y: auto; box-shadow: 4px 0 22px rgba(0, 0, 0, 0.3); } .main-nav.active, .main-nav.open { display: flex; transform: translateX(0); } .nav-container { width: 100%; max-width: none; padding: 10px 0; height: auto; display: block; } .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; } .nav-item { width: 100%; } .nav-link { display: block; width: 100%; font-size: 16px; padding: 13px 22px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); } .nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, 0.16); box-shadow: none; } .nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 25, 45, 0.6); z-index: 999; } .nav-overlay.active, .nav-overlay.visible { display: block; } .footer-top-grid { grid-template-columns: 1fr; gap: 26px; } .footer-mid-grid { grid-template-columns: 1fr 1fr; gap: 16px; } .footer-container { padding: 0 16px; } .footer-top { padding: 32px 0 18px; } .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) { .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;
}
