:root { --header-offset: 122px; --primary: #2F6BFF; --secondary: #6FA3FF; --bg: #F4F7FB; --card-bg: #FFFFFF; --text-main: #1F2D3D; --text-dark: #000000; --border-color: #D6E2FF; --glow: #A5C4FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); }
body { padding-top: var(--header-offset); margin: 0; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(31, 45, 61, 0.15); background-color: var(--card-bg); }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--card-bg); width: 100%; border-bottom: 1px solid var(--border-color); }
.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; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; }
.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-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; border-radius: 8px; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; border: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(47, 107, 255, 0.35); }
.btn-login { padding: 9px 20px; font-size: 14px; color: var(--primary); background-color: var(--card-bg); border: 1.5px solid var(--primary); box-shadow: 0 2px 6px rgba(47, 107, 255, 0.1); }
.btn-register { padding: 9px 20px; font-size: 14px; color: #FFFFFF; background: var(--btn-gradient); box-shadow: 0 4px 12px rgba(47, 107, 255, 0.35); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; z-index: 1001; flex-direction: column; gap: 5px; }
.hamburger-menu span { display: block; width: 24px; height: 3px; background-color: var(--text-main); 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; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); 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; gap: 4px; }
.nav-link { display: inline-block; padding: 6px 12px; font-size: 14px; font-weight: 600; color: #FFFFFF; text-decoration: none; border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-link:hover { background-color: rgba(255, 255, 255, 0.18); }
.nav-link.active { background-color: #FFFFFF; color: var(--primary); }
.site-footer { background-color: var(--text-main); color: #E8EEF7; padding-top: 0; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.footer-top { background-color: #1A2533; padding: 40px 0 30px; }
.footer-slot-anchor { width: 100%; }
.footer-slot-anchor-inner { width: 100%; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: var(--secondary); text-decoration: none; margin-bottom: 12px; }
.footer-description { font-size: 14px; line-height: 1.7; color: #B8C6D9; margin: 0 0 12px 0; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 14px 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { font-size: 14px; color: #B8C6D9; text-decoration: none; transition: color 0.2s ease; word-wrap: break-word; }
.footer-nav a:hover { color: var(--secondary); }
.footer-dynamic-col { display: block; }
.footer-mid { padding: 24px 0 10px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.footer-bottom { background-color: #101A26; padding: 16px 0; border-top: 1px solid #2A3A4D; }
.footer-copyright { font-size: 13px; color: #8FA2B8; margin: 0; text-align: center; }
.overlay { display: none; position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.55); z-index: 999; }
.overlay.active { display: block; }
body.no-scroll { overflow: hidden; }
@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; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 22px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .hamburger-menu { display: flex; position: relative; z-index: 1001; order: -1; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; min-height: 48px; align-items: 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: var(--bg); border-bottom: 1px solid var(--border-color); }
  .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 { display: none; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh !important; min-height: 100vh !important; background-color: var(--card-bg); z-index: 1000; flex-direction: column; align-items: stretch; justify-content: flex-start; padding-top: 80px; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2); }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 10px 16px; gap: 2px; }
  .nav-link { display: block; padding: 12px 14px; font-size: 15px; color: var(--text-main); border-radius: 8px; }
  .nav-link:hover { background-color: var(--bg); }
  .nav-link.active { background-color: var(--primary); color: #FFFFFF; }
  .footer-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { padding: 28px 0 20px; }
  .footer-logo { font-size: 22px; }
  .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: 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;
}
